:root{color-scheme:light;--bg:#f4f6f5;--panel:#ffffff;--ink:#101820;--muted:#637083;--line:#d7dedb;--accent:#184447;--accent-2:#ff6b2c;--good:#cce9b9;--bad:#e26464;--soft:#edf1f0}*{box-sizing:border-box}body,html{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}body{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}button,input,select{font:inherit}.auth-shell{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 15%,rgba(24,68,71,.08),transparent 28%),linear-gradient(180deg,#f8faf9,#e9eeee);padding:24px}.brand-loader-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:#fff;cursor:wait}.brand-loader-logo{width:clamp(180px,24vw,300px);height:auto;animation:rhd-loader-pulse 1.15s ease-in-out infinite;filter:drop-shadow(0 14px 25px rgba(24,68,71,.12));will-change:opacity,transform,filter}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);white-space:nowrap}@keyframes rhd-loader-pulse{0%,to{opacity:.22;transform:scale(.96);filter:drop-shadow(0 8px 18px rgba(24,68,71,.06))}50%{opacity:1;transform:scale(1.03);filter:drop-shadow(0 16px 30px rgba(24,68,71,.2))}}@media (prefers-reduced-motion:reduce){.brand-loader-logo{animation-duration:2.4s;transform:none}}.login-card{width:min(760px,100%);min-height:420px;display:grid;grid-template-columns:minmax(240px,.9fr) minmax(320px,1.1fr);overflow:hidden;border:1px solid rgba(16,24,32,.08);border-radius:10px;background:#fff;box-shadow:0 26px 70px rgba(16,24,32,.18)}.login-visual{min-height:420px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(180deg,rgba(16,24,32,.05),rgba(16,24,32,.72)),url(https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=900&q=80);background-position:50%;background-size:cover;color:#fff;padding:24px}.login-brand{font-size:13px;font-weight:900}.login-visual strong{display:block;max-width:220px;font-size:18px;line-height:1.15}.login-visual span{display:block;max-width:220px;margin-top:8px;font-size:12px;line-height:1.4;opacity:.85}.login-form{width:min(320px,100%);display:grid;align-content:center;grid-gap:14px;gap:14px;margin:0 auto;padding:36px 24px}.login-form h2{font-size:24px}.login-button{min-height:38px;border:0;border-radius:8px;background:var(--accent);color:#fff;cursor:pointer;font-weight:900}.login-button:disabled{cursor:wait;opacity:.7}.login-error{border:1px solid #f3b3b3;border-radius:8px;background:#fff1f1;color:#9f1c1c;font-size:12px;font-weight:800;padding:9px 10px}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(360px,45vw) minmax(420px,1fr);background:#fff}.login-hero{min-height:100vh;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(180deg,rgba(16,24,32,.06),rgba(16,24,32,.74)),url(https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=80);background-position:50%;background-size:cover;color:#fff;padding:clamp(28px,4vw,56px)}.login-hero-brand{font-size:14px;font-weight:900}.login-hero-copy{max-width:360px}.login-hero-copy strong{display:block;font-size:clamp(28px,4vw,52px);line-height:1}.login-hero-copy span{display:block;margin-top:16px;font-size:15px;line-height:1.5;opacity:.88}.login-panel{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 20% 18%,rgba(24,68,71,.07),transparent 28%),#f8faf9;padding:40px}.login-page-form{width:min(420px,100%)}.login-heading,.login-page-form{display:grid;grid-gap:18px;gap:18px}.login-logo{position:absolute;top:20px;width:250px;height:250px;justify-self:center;object-fit:contain}.login-page-form h1{font-size:38px}.login-page-form .field input{min-height:48px}.login-page-form .login-button{min-height:48px;margin-top:4px}.app-shell{width:100%;margin:0;padding:24px 18px}.topbar{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.eyebrow{margin:0 0 4px;color:var(--muted);font-size:13px;font-weight:700;text-transform:uppercase}h1,h2{margin:0;letter-spacing:0}h1{font-size:36px}h2{font-size:18px}.month-control{display:grid;grid-gap:6px;gap:6px;color:var(--muted);font-size:13px;font-weight:700}.date-actions{display:flex;align-items:flex-end;gap:10px}.date-actions-stack{display:grid;grid-gap:6px;gap:6px;justify-items:end}.last-sync{margin:0;color:var(--muted);font-size:12px;font-weight:700}.user-pill{display:inline-flex;align-items:center}.user-pill button{min-height:40px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);cursor:pointer;font-size:12px;font-weight:800;padding:0 9px}.date-range-control{display:flex;align-items:flex-end;gap:10px}.view-as-control{min-width:260px}.view-as-select .custom-select-trigger{min-height:40px}.view-as-select .custom-select-menu{min-width:260px}.range-pill{display:inline-flex;align-items:center;color:var(--muted);font-size:13px;font-weight:800}.field input,.month-control input,.range-pill{min-height:40px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:0 12px}.field input,.month-control input{color:var(--ink)}.sync-button{min-height:40px;border:1px solid var(--accent);border-radius:6px;background:var(--accent);color:#fff;cursor:pointer;font-weight:800;padding:0 14px}.sync-button:disabled{cursor:wait;opacity:.7}.tabs{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:8px;background:#fff;margin-bottom:20px}.tabs button{border:0;border-radius:6px;background:transparent;color:var(--muted);cursor:pointer;font-weight:700;min-height:36px;padding:0 16px}.tabs button.active{background:var(--accent);color:#fff}.management-workspace,.manual-grid,.workspace{display:grid;grid-gap:18px;gap:18px}.navigation-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.navigation-logout{flex:0 0 auto}.management-toolbar{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:6px}.management-toolbar-actions{display:flex;align-items:center;gap:16px}.infinite-scroll-sentinel{height:1px}.infinite-scroll-status{margin:0;color:var(--muted);font-size:12px;font-weight:700;text-align:center}.management-table td,.management-table th{text-align:left;vertical-align:middle}.management-table td:not(:nth-child(2)),.management-table th:not(:nth-child(2)){text-align:center}.management-account-id{display:block;margin-top:3px;color:var(--muted);font-size:11px}.management-account-search{width:min(100%,260px);border:0;border-bottom:1px solid transparent;border-radius:0;outline:0;background:transparent;color:#fff;font:inherit;font-weight:700}.management-account-search::placeholder{color:rgba(255,255,255,.9);opacity:1}.management-account-search:focus{border-bottom-color:rgba(255,255,255,.75)}.management-account-search::-webkit-search-cancel-button{filter:invert(1)}.credit-date-value{border:0;background:transparent;color:inherit;cursor:pointer;font:inherit;padding:4px 6px}.credit-date-value:focus-visible,.credit-date-value:hover{color:var(--accent);text-decoration:underline}.credit-date-editor{display:inline-flex;align-items:center;gap:4px}.credit-date-editor input{width:132px;min-height:30px;padding:0 6px}.credit-date-editor button,.credit-date-editor input{border:1px solid var(--line);border-radius:5px;background:#fff}.credit-date-editor button{min-width:28px;min-height:28px;cursor:pointer;font-weight:800}.management-table td.credit-availability{font-weight:800}.management-table td.credit-availability-danger{background:#f8d7da;color:#842029}.management-table td.credit-availability-warning{background:#ffe5b4;color:#7a4b00}.management-table td.credit-availability-good{background:#d9f0cc;color:#185f25}.management-table td.credit-availability-pending{background:transparent;color:inherit}.summary-strip{display:grid;grid-template-columns:repeat(7,minmax(130px,1fr));grid-gap:10px;gap:10px}.control-toolbar{display:flex;justify-content:flex-start}.metric{min-height:76px;border:1px solid var(--line);border-radius:8px;background:var(--panel);display:grid;align-content:center;grid-gap:6px;gap:6px;padding:14px}.metric span{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.metric-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.metric-filter{flex:0 0 48px;width:48px}.metric-filter .custom-select-trigger,.status-select .custom-select-trigger{min-height:30px;border-radius:6px;font-size:11px;font-weight:800;padding:0 5px}.metric-filter .custom-select-trigger{gap:3px;min-width:48px}.metric-filter .custom-select-arrow{font-size:8px}.metric-filter .custom-select-menu,.status-select .custom-select-menu{min-width:110px}.metric-filter .custom-select-menu{left:auto;right:0}.metric strong{font-size:20px}.days-metric{gap:10px}.days-metric-grid{display:grid;grid-template-columns:1fr 1fr;grid-column-gap:18px;column-gap:18px;position:relative}.days-metric-grid:before{content:"";position:absolute;left:50%;top:0;bottom:0;width:1px;background:var(--line)}.days-metric-labels span,.days-metric-values strong{text-align:center}.days-metric-values strong{font-size:20px}.metric.good strong{color:#0f6b3b}.metric.bad strong,.negative{color:#b91c1c}.deviation-cell{font-weight:800;padding:0}.deviation-cell.good{background:#d9f0cc;color:#185f25}.deviation-cell.warning{background:#ffdf6d;color:#4d3700}.deviation-cell.danger{background:#e26464;color:#fff}.deviation-button{width:100%;min-height:56px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:0;background:transparent;color:inherit;cursor:pointer;font:inherit}.deviation-button:hover{background:rgba(255,255,255,.22)}.deviation-button:focus-visible{outline:2px solid #0f4f4f;outline-offset:-3px}.comment-dot{width:7px;height:7px;border-radius:999px;background:currentColor;box-shadow:0 0 0 2px rgba(255,255,255,.55)}.table-wrap{overflow-x:visible;border:1px solid var(--line);border-radius:8px;background:var(--panel);width:100%}table{width:100%;border-collapse:collapse}.control-table{table-layout:auto}.control-table thead th{position:-webkit-sticky;position:sticky;top:0;z-index:20}.control-table td,.control-table th{text-align:center}.control-table td:nth-child(-n+5),.control-table th:nth-child(-n+5){text-align:left}.control-table .campaign-column{box-sizing:border-box;max-width:170px;width:170px}.control-table td.campaign-column{overflow:hidden;text-overflow:ellipsis}.control-table .control-totals td{background:#0f4f4f;color:#fff;font-weight:900;text-align:center}.control-table .control-totals td:first-child{text-align:left;text-transform:uppercase}.control-table .control-totals .negative{color:#ffd3d3}td,th{border-bottom:1px solid var(--line);padding:9px 7px;text-align:right}th{background:var(--accent);color:#fff;font-size:11px;line-height:1.15;white-space:normal}.filter-header{position:relative;display:inline-flex;align-items:center;gap:6px;max-width:100%;color:#fff;font-weight:800}.filter-header span{overflow:hidden;text-overflow:ellipsis}.filter-trigger{width:18px;height:18px;border:0;border-radius:4px;background:transparent;color:#fff;cursor:pointer;font-size:9px;line-height:1;padding:0}.filter-trigger:hover{background:rgba(255,255,255,.16)}.filter-header.active .filter-trigger{color:var(--accent-2)}.filter-menu{position:absolute;top:calc(100% + 8px);left:0;z-index:12;min-width:180px;max-height:240px;overflow-x:hidden;overflow-y:auto;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 12px 30px rgba(16,24,32,.16);padding:6px;scrollbar-width:none;-ms-overflow-style:none}.filter-menu::-webkit-scrollbar{display:none}.filter-menu button{width:100%;min-height:34px;border:0;border-radius:6px;background:transparent;color:var(--ink);cursor:pointer;font-size:13px;font-weight:700;padding:0 10px;text-align:left}.filter-menu button.selected,.filter-menu button:hover{background:var(--soft);color:var(--accent)}.filter-menu button.typeahead-match:not(.selected){background:#f4f7f5;color:var(--accent)}.sort-header{width:100%;min-height:22px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;background:transparent;color:#fff;cursor:pointer;font-size:11px;font-weight:800;line-height:1.15;padding:0;text-align:center}.sort-header.active,.sort-header:hover{color:var(--accent-2)}.sort-icon{font-size:12px;line-height:1}td{font-size:13px;white-space:nowrap}td:first-child,td:nth-child(2),td:nth-child(3),td:nth-child(4),td:nth-child(5),th:first-child,th:nth-child(2),th:nth-child(3),th:nth-child(4),th:nth-child(5){text-align:left}tbody tr:nth-child(2n){background:#f8faf9}.platform{display:inline-flex;align-items:center;justify-content:center;width:74px;min-height:26px;border-radius:6px;color:#fff;font-size:13px;font-weight:800;line-height:1;padding:0 6px;white-space:nowrap}.platform-meta{background:#5790e6}.platform-google{background:#228122}.platform-merc-libre{background:#f5cd2f;color:#fff}.platform-tiktok{background:#050505}.platform-linkedin{background:#123a6f}.empty{color:var(--muted);text-align:center}.manual-grid{grid-template-columns:minmax(210px,232px) minmax(0,1fr);align-items:start}.manual-grid.viewer{grid-template-columns:1fr}@media (min-width:1440px){.manual-grid{grid-template-columns:minmax(230px,280px) minmax(0,1fr)}}@media (min-width:1680px){.manual-grid{grid-template-columns:minmax(260px,320px) minmax(0,1fr)}}@media (min-width:1920px){.manual-grid{grid-template-columns:minmax(300px,360px) minmax(0,1fr)}}.manual-form{position:-webkit-sticky;position:sticky;top:12px;width:100%;max-height:calc(100vh - 24px);overflow-y:auto;scrollbar-gutter:stable}.manual-form-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.manual-form,.manual-preview{border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:16px}.manual-preview{padding:16px .5rem}.manual-form{padding:12px 10px 14px}.manual-form::-webkit-scrollbar{width:8px}.manual-form::-webkit-scrollbar-thumb{border:2px solid var(--panel);border-radius:999px;background:#c7d0d0}.manual-form h2{font-size:17px}.form-grid{display:grid;grid-gap:12px;gap:12px;margin:18px 0}.manual-form .form-grid{gap:7px;margin:10px 0}.manual-form .field{gap:4px}.manual-form .field span{font-size:11px}.manual-form .custom-select-trigger,.manual-form .field input,.manual-form .month-picker-trigger{min-height:34px}.form-suggestion{display:grid;grid-gap:10px;gap:10px;border:1px solid #badbcc;border-radius:8px;background:#f3fbf6;padding:10px}.form-suggestion-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.form-suggestion-heading span{color:#256d3d;font-size:11px;font-weight:900;text-transform:uppercase}.form-suggestion-heading strong{color:var(--ink);font-size:12px}.form-suggestion-values{display:flex;flex-wrap:wrap;gap:6px}.form-suggestion-values span{border:1px solid #d5eadc;border-radius:999px;background:#fff;color:var(--muted);font-size:11px;font-weight:800;padding:4px 7px}.suggestion-button{min-height:32px;border:1px solid #38a169;border-radius:6px;background:#dcfce7;color:#166534;cursor:pointer;font-size:12px;font-weight:900}.campaign-suggestion-list{display:grid;grid-gap:6px;gap:6px}.campaign-suggestion{display:grid;grid-gap:3px;gap:3px;border:1px solid #d5eadc;border-radius:7px;background:#fff;color:var(--ink);cursor:pointer;padding:8px;text-align:left}.campaign-suggestion-top{display:block}.campaign-suggestion-top div{display:grid;grid-gap:3px;gap:3px}.campaign-suggestion-top strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.campaign-suggestion-meta{display:flex;align-items:center;justify-content:space-between;gap:12px}.campaign-suggestion dd,.campaign-suggestion dt,.campaign-suggestion-meta span{color:var(--muted);font-size:11px;font-weight:800}.campaign-suggestion dl{display:grid;grid-gap:4px;gap:4px;margin:0}.campaign-suggestion dl div{display:flex;align-items:center;justify-content:space-between;gap:12px}.campaign-suggestion dd,.campaign-suggestion dt{margin:0}.campaign-suggestion dd{color:var(--ink);text-align:right}.campaign-suggestion:hover{border-color:#38a169;background:#f8fff9}.field{display:grid;grid-gap:6px;gap:6px}.field span{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.custom-select-trigger{width:100%;min-height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);cursor:pointer;font-size:14px;font-weight:700;padding:0 12px;text-align:left}.custom-select-trigger span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.custom-select-arrow{flex:0 0 auto;color:var(--accent);font-size:10px}.custom-select-trigger:focus,.custom-select.open .custom-select-trigger{border-color:var(--accent);outline:2px solid rgba(24,68,71,.12)}.custom-select.disabled .custom-select-trigger{cursor:not-allowed;opacity:.55}.custom-select-menu{top:calc(100% + 8px);z-index:20;max-width:min(320px,80vw);max-height:260px;overflow-x:hidden;border:1px solid var(--line);box-shadow:0 14px 34px rgba(16,24,32,.18);padding:6px;scrollbar-width:none;-ms-overflow-style:none}.custom-select-menu::-webkit-scrollbar{display:none}.custom-select-menu button{width:100%;min-height:34px;border:0;border-radius:6px;background:transparent;color:var(--ink);cursor:pointer;font-size:13px;font-weight:700;padding:0 10px;text-align:left;white-space:nowrap}.custom-select-menu button.selected,.custom-select-menu button:hover{background:var(--soft);color:var(--accent)}.custom-select-menu button.typeahead-match:not(.selected){background:#f4f7f5;color:var(--accent)}.custom-select-empty{min-height:34px;display:grid;place-items:center start;color:var(--muted);font-size:13px;font-weight:800;padding:0 10px}.date-preset-select .custom-select-menu{max-height:360px}.month-picker,.month-picker-field{position:relative}.month-picker-trigger{width:100%;min-height:40px;display:inline-flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);cursor:pointer;font-weight:700;padding:0 12px;text-align:left}.month-picker-trigger:focus,.month-picker.open .month-picker-trigger{border-color:var(--accent);outline:2px solid rgba(24,68,71,.12)}.month-picker-icon{color:var(--accent);font-size:12px}.month-picker-menu{position:absolute;top:calc(100% + 6px);left:0;z-index:9999;width:260px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 14px 34px rgba(16,24,32,.18);padding:10px}.month-picker-year{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;grid-gap:8px;gap:8px;margin-bottom:8px}.month-picker-year strong{text-align:center;font-size:14px}.month-picker-year button{min-height:30px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--accent);cursor:pointer;font-size:16px;font-weight:900}.month-picker-grid{display:grid;grid-template-columns:repeat(4,1fr);grid-gap:6px;gap:6px}.month-picker-grid button{min-height:34px;border:0;border-radius:6px;background:transparent;color:var(--ink);cursor:pointer;font-weight:700;text-transform:capitalize}.month-picker-grid button.selected,.month-picker-grid button:hover{background:var(--accent);color:#fff}.primary-button{width:100%;min-height:42px;border:0;border-radius:6px;background:var(--accent-2);color:#fff;cursor:pointer;font-weight:800}.primary-button:disabled{cursor:wait;opacity:.7}.status-toggle{display:grid;grid-template-columns:1fr 1fr;grid-gap:3px;gap:3px}.status-toggle.compact{width:144px;min-width:0}.status-select{width:112px;max-width:140px}.status-select.yellow .custom-select-trigger{background:#fff5cc;border-color:#e8b931;color:#6f5200}.status-select.green .custom-select-trigger{background:#dcf4d2;border-color:#63b85b;color:#185f25}.status-badge{min-height:32px;display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:6px;font-size:12px;font-weight:800;padding:0 10px;white-space:nowrap}.status-badge.yellow{background:#fff5cc;border-color:#e8b931;color:#6f5200}.status-badge.green{background:#dcf4d2;border-color:#63b85b;color:#185f25}.status-option{min-height:28px;display:flex;align-items:center;gap:3px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);cursor:pointer;font-size:9px;font-weight:800;overflow:hidden;padding:0 4px;white-space:nowrap}.status-option input{flex:0 0 auto;width:10px;height:10px}.status-option.yellow.active{background:#fff5cc;border-color:#e8b931;color:#6f5200}.status-option.green.active{background:#dcf4d2;border-color:#63b85b;color:#185f25}.budget-input{width:104px;min-height:32px;border:1px solid var(--line);border-radius:6px;padding:0 8px;text-align:right}.inline-actions{display:inline-flex;gap:4px;justify-content:center;width:76px}.icon-button{width:30px;height:30px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--accent);cursor:pointer;font-weight:900;line-height:1}.icon-button:disabled{cursor:not-allowed;opacity:.45}.actions-cell{min-width:0;padding-left:4px;padding-right:4px;text-align:center;width:104px}.button-icon,.icon-button img{display:block;width:14px;height:14px;margin:auto}.button-icon{fill:none;stroke:currentColor;stroke-width:2}.button-icon circle{fill:currentColor;stroke:none}.icon-button.confirm{background:var(--accent);border-color:var(--accent);color:#fff}.icon-button.delete.active{border-color:#ef4444;background:#fff1f1}.secondary-button{min-height:30px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--muted);cursor:pointer;font-size:12px;font-weight:800;padding:0 10px}.manual-preview{display:grid;grid-gap:16px;gap:16px;min-width:0;width:100%}.preview-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:0 .5rem}.preview-heading{display:grid;grid-gap:4px;gap:4px}.preview-heading span{color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.preview-filters{display:grid;grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) minmax(150px,1fr);grid-gap:10px;gap:10px;min-width:min(560px,100%)}.preview-block{min-width:0;overflow:visible}.forecast-table-wrap{max-width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-gutter:stable}.forecast-table-wrap::-webkit-scrollbar{height:8px}.forecast-table-wrap::-webkit-scrollbar-thumb{border:2px solid var(--panel);border-radius:999px;background:#c7d0d0}.preview-block table{table-layout:fixed;min-width:1104px}.preview-block td,.preview-block th{padding-left:6px;padding-right:6px;vertical-align:middle}.preview-block tr:has(.custom-select.open){position:relative;z-index:60}.preview-block td:has(.custom-select.open){position:relative;overflow:visible;z-index:70}.preview-block .cell-select .custom-select-menu{max-height:260px;min-width:max(220px,100%);z-index:80}.preview-block td:first-child,.preview-block th:first-child{width:104px}.preview-block td:nth-child(2),.preview-block th:nth-child(2){width:82px}.preview-block td:nth-child(3),.preview-block th:nth-child(3){width:104px}.preview-block td:nth-child(4),.preview-block th:nth-child(4){width:150px;max-width:150px;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.preview-block td:nth-child(5),.preview-block th:nth-child(5){width:52px;text-align:center}.preview-block td:nth-child(6),.preview-block th:nth-child(6){padding-left:3px;padding-right:12px;width:120px;text-align:right}.preview-block td:nth-child(7),.preview-block th:nth-child(7){padding-left:6px;width:50px;text-align:center}.preview-block td:nth-child(8),.preview-block th:nth-child(8){width:90px;text-align:center}.preview-block td:nth-child(9),.preview-block th:nth-child(9){width:100px;text-align:center}.preview-block td:nth-child(10),.preview-block th:nth-child(10){width:74px;text-align:right}.preview-block td:nth-child(11),.preview-block th:nth-child(11){width:112px;padding-left:3px;padding-right:8px;text-align:center}.preview-block td:nth-child(12),.preview-block th:nth-child(12){width:104px;padding-left:4px;padding-right:4px;text-align:center}.preview-block .forecast-actions-footer,.preview-block .forecast-actions-header{background:var(--accent);width:104px}.preview-block .field{display:block;gap:0;width:100%}.preview-block .budget-input,.preview-block .custom-select{min-height:32px;width:100%;min-width:0}.preview-block .budget-input{padding-left:8px;padding-right:8px}.preview-block .custom-select-trigger{min-height:32px;border-radius:6px;font-size:12px;padding-left:8px;padding-right:8px}.preview-title-main .status-select{flex:0 1 140px;width:min(140px,100%)}.forecast-export-button{min-height:36px;border:1px solid #174c4c;border-radius:7px;background:#fff;color:#174c4c;cursor:pointer;font-size:12px;font-weight:800;padding:0 14px;white-space:nowrap}.forecast-export-button:hover{background:#eef6f6}.manual-empty{border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-weight:700;padding:18px}.preview-title{justify-content:space-between;gap:12px;margin-bottom:8px;padding:0 .5rem}.brand-cell,.preview-title,.preview-title-actions,.preview-title-main{display:flex;align-items:center}.brand-cell,.preview-title-main{gap:8px}.preview-title-main{flex:1 1 auto;min-width:0;flex-wrap:nowrap}.preview-title-main strong{flex:0 0 auto;max-width:none;white-space:nowrap}.preview-title-actions{flex:0 0 auto;gap:6px}.brand-cell input{width:14px;height:14px;margin:0}.bulk-delete-bar,.select-all-brand{display:flex;align-items:center}.bulk-delete-bar{flex-wrap:wrap;gap:8px;margin:-4px 0 8px;padding:6px 0 2px 5px;background:transparent}.select-all-brand{min-height:24px;gap:5px;padding:3px 7px;border:1px solid rgba(255,255,255,.45);border-radius:6px;color:#000;font-size:12px;font-weight:700;line-height:1;cursor:pointer;white-space:nowrap}.select-all-brand input{width:13px;height:13px;margin:0}.preview-title .currency-badge{border-radius:999px;background:var(--soft);padding:4px 10px}.preview-title .currency-badge,.status-finished{color:var(--muted);font-size:12px;font-weight:800}.status-finished{min-height:30px;display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:6px;background:#eef1f1;padding:0 12px}.range-trigger{cursor:pointer;min-width:168px}.date-range-picker{position:relative}.range-calendar{position:absolute;right:0;top:calc(100% + 8px);z-index:30;width:292px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 18px 40px rgba(15,23,42,.16);padding:14px}.range-calendar-head{display:grid;grid-template-columns:32px 1fr 32px;align-items:center;margin-bottom:12px}.range-calendar-head strong{color:var(--ink);font-size:15px;font-weight:900;text-align:center;text-transform:capitalize}.range-calendar-head button{width:30px;height:30px;border:0;border-radius:6px;background:#fff;color:var(--muted);cursor:pointer;font-size:18px;font-weight:900}.range-calendar-head button:hover{background:#eef2f7}.range-days,.range-weekdays{display:grid;grid-template-columns:repeat(7,1fr);grid-gap:4px;gap:4px}.range-weekdays span{color:#9aa3b2;font-size:11px;font-weight:900;text-align:center}.range-days{margin-top:8px}.range-day{width:34px;height:34px;border:1px solid transparent;border-radius:4px;background:#fff;color:#2b115c;cursor:pointer;font-size:13px;font-weight:900}.range-day.empty{cursor:default}.range-day.in-range{background:#eee7fb}.range-day.selected{border-color:#5b21b6;background:#2b115c;color:#fff}.range-day.today{position:relative;color:#5b21b6}.range-day.today:not(.selected),.range-day.today:not(.selected):hover{border-color:transparent}.range-day.today:after{position:absolute;bottom:2px;left:50%;width:4px;height:4px;border-radius:50%;background:#5b21b6;content:"";transform:translateX(-50%)}.range-day.today.selected{color:#fff}.range-day.today.selected:after{background:#fff}.range-day:not(.empty):hover{border-color:#5b21b6}tfoot td{background:var(--accent);color:#fff;font-weight:800}.preview-block tfoot td:first-child{width:76px;text-align:left}.preview-block tfoot td:nth-child(2){width:82px;text-align:left}.preview-block tfoot td:nth-child(3){width:104px;text-align:left}.preview-block tfoot td:nth-child(4){width:80px;text-align:center}.preview-block tfoot td:nth-child(5),.preview-block tfoot td:nth-child(6){width:112px;text-align:right}.preview-block tfoot td:nth-child(7){padding-left:12px;width:62px;text-align:center}.preview-block tfoot td:nth-child(8){width:90px;text-align:center}.preview-block tfoot td:nth-child(9){width:112px;text-align:center}.preview-block tfoot td:nth-child(10){width:86px;text-align:right}.preview-block tfoot td:nth-child(11){width:112px;text-align:center}.preview-block tfoot td:nth-child(12){width:104px;padding-left:4px;padding-right:4px;text-align:center}.error-banner{border:1px solid #f3b3b3;border-radius:8px;background:#fff1f1;color:#9f1c1c;font-weight:800;margin-bottom:16px;padding:12px 14px}.modal-backdrop{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:rgba(0,0,0,.52);padding:20px}.confirm-modal{width:min(360px,100%);display:grid;justify-items:center;grid-gap:18px;gap:18px;border:1px solid var(--line);background:#f8f8f8;padding:30px;text-align:center}.modal-icon{width:34px;height:34px;display:grid;place-items:center;border:1px solid #ef4444;border-radius:999px;color:#ef4444;font-size:20px;line-height:1}.confirm-modal p{margin:0;font-size:12px}.modal-actions{display:flex;gap:28px}.modal-button{min-width:78px;min-height:28px;border:0;border-radius:4px;background:#0f4f4f;color:#fff;cursor:pointer;font-size:11px;font-weight:700;padding:0 14px}.modal-button.muted{background:#a3a3a3}.modal-button.danger{background:#ff2f2f}.modal-button:disabled{cursor:wait;opacity:.7}.forecast-export-modal{width:min(720px,100%);max-height:calc(100vh - 40px);display:grid;grid-gap:18px;gap:18px;overflow-y:auto;border:1px solid var(--line);border-radius:10px;background:#fff;padding:22px}.forecast-export-column-actions,.forecast-export-modal-actions,.forecast-export-modal-header{display:flex;align-items:center}.forecast-export-modal-header{justify-content:space-between;gap:20px}.forecast-export-modal-header h2,.forecast-export-modal-header p,.forecast-export-warning{margin:0}.forecast-export-modal-header p{margin-top:5px;color:var(--muted);font-size:12px;font-weight:700}.modal-close-button{width:34px;height:34px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#174c4c;cursor:pointer;font-size:24px;line-height:1}.forecast-export-columns{display:grid;grid-gap:12px;gap:12px;border:1px solid var(--line);border-radius:8px;padding:14px}.forecast-export-columns legend,.forecast-export-observations>span{color:#173f3f;font-size:13px;font-weight:800}.forecast-export-column-actions{gap:8px}.forecast-export-column-actions button{border:0;background:transparent;color:#176767;cursor:pointer;font-size:11px;font-weight:800;padding:0}.forecast-export-column-actions button+button:before{content:"·";margin-right:8px;color:var(--muted)}.forecast-export-column-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:9px 12px;gap:9px 12px}.forecast-export-column-grid label{display:flex;align-items:center;gap:7px;min-width:0;font-size:12px;font-weight:700}.forecast-export-column-grid input{width:15px;height:15px;margin:0;accent-color:#174c4c}.forecast-export-observations{display:grid;grid-gap:8px;gap:8px}.forecast-export-observations textarea{width:100%;resize:vertical;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:13px;line-height:1.45;padding:11px 12px}.forecast-export-observations textarea:focus{border-color:#176767;outline:2px solid rgba(23,103,103,.12)}.forecast-export-warning{color:#a32626;font-size:12px;font-weight:800}.forecast-export-modal-actions{justify-content:flex-end;gap:10px}@media (max-width:680px){.forecast-export-column-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.deviation-comment-modal,.previous-values-modal{width:min(620px,100%);max-height:min(720px,calc(100vh - 40px));display:grid;grid-gap:14px;gap:14px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f8f8f8;padding:18px}.previous-values-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.previous-values-header span{color:#256d3d;font-size:11px;font-weight:900;text-transform:uppercase}.previous-values-header h2{margin-top:2px}.deviation-comment-modal>p,.previous-values-modal p{margin:0;color:var(--muted);font-size:12px;font-weight:800}.previous-values-modal .modal-list{max-height:520px;overflow-y:auto;padding-right:4px}.line-history-modal{width:min(1240px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 40px));display:grid;grid-gap:14px;gap:14px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f8f8f8;padding:18px}.line-history-modal p{margin:0;color:var(--muted);font-size:12px;font-weight:800}.deviation-comment-modal{width:min(560px,100%)}.latest-comment-preview{display:grid;grid-gap:7px;gap:7px;border:1px solid #d5eadc;border-radius:8px;background:#fff;padding:10px}.deviation-comment-field,.latest-comment-preview span{color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase}.latest-comment-preview p{margin:0;color:var(--ink);font-size:14px;font-weight:700;line-height:1.45;white-space:pre-wrap}.latest-comment-preview small{color:var(--muted);font-size:12px;font-weight:800}.deviation-comment-field{display:grid;grid-gap:8px;gap:8px}.deviation-comment-field textarea{min-height:130px;resize:vertical;border:1px solid var(--line);border-radius:8px;color:var(--ink);font:inherit;line-height:1.45;padding:10px;text-transform:none}.deviation-comment-field textarea:focus{border-color:#0f4f4f;outline:2px solid rgba(15,79,79,.16)}.history-line-summary{display:grid;grid-template-columns:minmax(260px,2fr) repeat(5,minmax(120px,1fr));grid-gap:10px 12px;gap:10px 12px;margin:0;border:1px solid var(--line);border-radius:8px;background:#fff;padding:12px}.history-line-summary dt{color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase}.history-line-summary dd{margin:2px 0 0;overflow:hidden;color:var(--ink);font-size:12px;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.history-table-wrap{max-height:430px;overflow-y:auto;border:1px solid var(--line);border-radius:8px;background:#fff}.history-table{width:100%;border-collapse:collapse;table-layout:fixed}.history-table td,.history-table th{padding:10px 12px;text-align:center}.history-table th{position:-webkit-sticky;position:sticky;top:0;z-index:1;font-size:11px}.history-table td{font-size:12px;font-weight:800}.history-table td:nth-child(2){color:var(--muted)}.history-action{display:inline-flex;min-width:102px;justify-content:center;border-radius:999px;background:var(--soft);color:var(--accent);font-size:11px;font-weight:900;padding:5px 8px}.history-action.created{background:#dcf4d2;color:#185f25}.history-action.updated{background:#e8eef7;color:var(--muted)}.history-action.deleted{background:#fff1f1;color:#b42318}.history-empty{border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:13px;font-weight:800;padding:18px;text-align:center}@media (max-width:1100px){.table-wrap{overflow-x:auto}.control-table{min-width:1440px}}@media (max-width:980px){.preview-block table{min-width:1104px}.login-page{grid-template-columns:1fr}.login-hero{min-height:42vh}.login-panel{min-height:58vh;padding:28px 20px}.login-card{grid-template-columns:1fr}.login-visual{min-height:220px}.app-shell{padding:18px}.date-actions,.topbar{align-items:stretch;flex-direction:column}.date-actions-stack{justify-items:stretch}.date-range-control{align-items:stretch;flex-direction:column}.date-range-picker,.range-trigger{width:100%}.range-calendar{left:0;right:auto}.manual-grid,.summary-strip{grid-template-columns:1fr}.manual-form{position:static;max-height:min(720px,calc(100vh - 36px))}.preview-header{align-items:stretch;flex-direction:column}.preview-filters{grid-template-columns:1fr}.tabs{display:grid;grid-template-columns:1fr 1fr;width:100%}.history-line-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}.custom-select{position:relative;width:100%}.custom-select-menu{position:absolute;top:calc(100% + 4px);left:0;z-index:9999;width:max-content;min-width:100%;max-height:240px;overflow-y:auto;background:#fff;border:1px solid #ddd;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.12)}.cell-select .custom-select-menu{min-width:180px}.cell-native-select{padding:0 8px;width:100%;min-height:32px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);cursor:pointer;font-size:12px;font-weight:700;padding:0 28px 0 8px;appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--accent) 50%),linear-gradient(135deg,var(--accent) 50%,transparent 50%);background-position:calc(100% - 14px) 50%,calc(100% - 9px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}.cell-native-select:focus{outline:2px solid rgba(24,68,71,.12)}.cell-native-select:focus,.cell-native-select:hover{border-color:var(--accent)}.cell-native-select option{background:#f1efef;color:var(--ink);font-size:13px;font-weight:700;padding:8px}