.rdp-root{--rdp-accent-color: blue;--rdp-accent-background-color: #f0f0ff;--rdp-day-height: 44px;--rdp-day-width: 44px;--rdp-day_button-border-radius: 100%;--rdp-day_button-border: 2px solid transparent;--rdp-day_button-height: 42px;--rdp-day_button-width: 42px;--rdp-selected-border: 2px solid var(--rdp-accent-color);--rdp-disabled-opacity: .5;--rdp-outside-opacity: .75;--rdp-today-color: var(--rdp-accent-color);--rdp-dropdown-gap: .5rem;--rdp-months-gap: 2rem;--rdp-nav_button-disabled-opacity: .5;--rdp-nav_button-height: 2.25rem;--rdp-nav_button-width: 2.25rem;--rdp-nav-height: 2.75rem;--rdp-range_middle-background-color: var(--rdp-accent-background-color);--rdp-range_middle-color: inherit;--rdp-range_start-color: white;--rdp-range_start-background: linear-gradient( var(--rdp-gradient-direction), transparent 50%, var(--rdp-range_middle-background-color) 50% );--rdp-range_start-date-background-color: var(--rdp-accent-color);--rdp-range_end-background: linear-gradient( var(--rdp-gradient-direction), var(--rdp-range_middle-background-color) 50%, transparent 50% );--rdp-range_end-color: white;--rdp-range_end-date-background-color: var(--rdp-accent-color);--rdp-week_number-border-radius: 100%;--rdp-week_number-border: 2px solid transparent;--rdp-week_number-height: var(--rdp-day-height);--rdp-week_number-opacity: .75;--rdp-week_number-width: var(--rdp-day-width);--rdp-weeknumber-text-align: center;--rdp-weekday-opacity: .75;--rdp-weekday-padding: .5rem 0rem;--rdp-weekday-text-align: center;--rdp-gradient-direction: 90deg;--rdp-animation_duration: .3s;--rdp-animation_timing: cubic-bezier(.4, 0, .2, 1)}.rdp-root[dir=rtl]{--rdp-gradient-direction: -90deg}.rdp-root[data-broadcast-calendar=true]{--rdp-outside-opacity: unset}.rdp-root{position:relative;box-sizing:border-box}.rdp-root *{box-sizing:border-box}.rdp-day{width:var(--rdp-day-width);height:var(--rdp-day-height);text-align:center}.rdp-day_button{background:none;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;justify-content:center;align-items:center;display:flex;width:var(--rdp-day_button-width);height:var(--rdp-day_button-height);border:var(--rdp-day_button-border);border-radius:var(--rdp-day_button-border-radius)}.rdp-day_button:disabled{cursor:revert}.rdp-caption_label{z-index:1;position:relative;display:inline-flex;align-items:center;white-space:nowrap;border:0}.rdp-dropdown:focus-visible~.rdp-caption_label{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color}.rdp-button_next,.rdp-button_previous{border:none;background:none;padding:0;margin:0;cursor:pointer;font:inherit;color:inherit;-moz-appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;position:relative;appearance:none;width:var(--rdp-nav_button-width);height:var(--rdp-nav_button-height)}.rdp-button_next:disabled,.rdp-button_next[aria-disabled=true],.rdp-button_previous:disabled,.rdp-button_previous[aria-disabled=true]{cursor:revert;opacity:var(--rdp-nav_button-disabled-opacity)}.rdp-chevron{display:inline-block;fill:var(--rdp-accent-color)}.rdp-root[dir=rtl] .rdp-nav .rdp-chevron{transform:rotate(180deg);transform-origin:50%}.rdp-dropdowns{position:relative;display:inline-flex;align-items:center;gap:var(--rdp-dropdown-gap)}.rdp-dropdown{z-index:2;opacity:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;inset-block-start:0;inset-block-end:0;inset-inline-start:0;width:100%;margin:0;padding:0;cursor:inherit;border:none;line-height:inherit}.rdp-dropdown_root{position:relative;display:inline-flex;align-items:center}.rdp-dropdown_root[data-disabled=true] .rdp-chevron{opacity:var(--rdp-disabled-opacity)}.rdp-month_caption{display:flex;align-content:center;height:var(--rdp-nav-height);font-weight:700;font-size:large}.rdp-root[data-nav-layout=around] .rdp-month,.rdp-root[data-nav-layout=after] .rdp-month{position:relative}.rdp-root[data-nav-layout=around] .rdp-month_caption{justify-content:center;margin-inline-start:var(--rdp-nav_button-width);margin-inline-end:var(--rdp-nav_button-width);position:relative}.rdp-root[data-nav-layout=around] .rdp-button_previous{position:absolute;inset-inline-start:0;top:0;height:var(--rdp-nav-height);display:inline-flex}.rdp-root[data-nav-layout=around] .rdp-button_next{position:absolute;inset-inline-end:0;top:0;height:var(--rdp-nav-height);display:inline-flex;justify-content:center}.rdp-months{position:relative;display:flex;flex-wrap:wrap;gap:var(--rdp-months-gap);max-width:fit-content}.rdp-month_grid{border-collapse:collapse}.rdp-nav{position:absolute;inset-block-start:0;inset-inline-end:0;display:flex;align-items:center;height:var(--rdp-nav-height)}.rdp-weekday{opacity:var(--rdp-weekday-opacity);padding:var(--rdp-weekday-padding);font-weight:500;font-size:smaller;text-align:var(--rdp-weekday-text-align);text-transform:var(--rdp-weekday-text-transform)}.rdp-week_number{opacity:var(--rdp-week_number-opacity);font-weight:400;font-size:small;height:var(--rdp-week_number-height);width:var(--rdp-week_number-width);border:var(--rdp-week_number-border);border-radius:var(--rdp-week_number-border-radius);text-align:var(--rdp-weeknumber-text-align)}.rdp-today:not(.rdp-outside){color:var(--rdp-today-color)}.rdp-selected{font-weight:700;font-size:large}.rdp-selected .rdp-day_button{border:var(--rdp-selected-border)}.rdp-outside{opacity:var(--rdp-outside-opacity)}.rdp-disabled:not(.rdp-selected){opacity:var(--rdp-disabled-opacity)}.rdp-hidden{visibility:hidden;color:var(--rdp-range_start-color)}.rdp-range_start{background:var(--rdp-range_start-background)}.rdp-range_start .rdp-day_button{background-color:var(--rdp-range_start-date-background-color);color:var(--rdp-range_start-color)}.rdp-range_middle{background-color:var(--rdp-range_middle-background-color)}.rdp-range_middle .rdp-day_button{border:unset;border-radius:unset;color:var(--rdp-range_middle-color)}.rdp-range_end{background:var(--rdp-range_end-background);color:var(--rdp-range_end-color)}.rdp-range_end .rdp-day_button{color:var(--rdp-range_start-color);background-color:var(--rdp-range_end-date-background-color)}.rdp-range_start.rdp-range_end{background:revert}.rdp-focusable{cursor:pointer}@keyframes rdp-slide_in_left{0%{transform:translate(-100%)}to{transform:translate(0)}}@keyframes rdp-slide_in_right{0%{transform:translate(100%)}to{transform:translate(0)}}@keyframes rdp-slide_out_left{0%{transform:translate(0)}to{transform:translate(-100%)}}@keyframes rdp-slide_out_right{0%{transform:translate(0)}to{transform:translate(100%)}}.rdp-weeks_before_enter{animation:rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_before_exit{animation:rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_after_enter{animation:rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-weeks_after_exit{animation:rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_after_enter{animation:rdp-slide_in_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_before_exit{animation:rdp-slide_out_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_before_enter{animation:rdp-slide_in_right var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-root[dir=rtl] .rdp-weeks_after_exit{animation:rdp-slide_out_left var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}@keyframes rdp-fade_in{0%{opacity:0}to{opacity:1}}@keyframes rdp-fade_out{0%{opacity:1}to{opacity:0}}.rdp-caption_after_enter{animation:rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_after_exit{animation:rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_before_enter{animation:rdp-fade_in var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}.rdp-caption_before_exit{animation:rdp-fade_out var(--rdp-animation_duration) var(--rdp-animation_timing) forwards}:root{--bg: #f5f6f8;--surface: #ffffff;--border: #e2e5ea;--ink: #1c2430;--muted: #6b7686;--brand: #b5174a;--brand-soft: #fbe9ef;--control-h: 36px;--control-radius: 8px;--control-font: 14px;--focus-ring: 0 0 0 3px var(--brand-soft);font-family:Segoe UI,system-ui,-apple-system,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--bg)}a{color:inherit;text-decoration:none}.app{display:grid;grid-template-columns:220px minmax(0,1fr);height:100vh;overflow:hidden}.app.has-revenue-sidebar{grid-template-columns:220px auto minmax(0,1fr)}.sidebar{display:flex;flex-direction:column;gap:6px;overflow-y:auto;padding:20px 14px;background:var(--ink);color:#cdd4de}.brand{margin:4px 8px 20px;color:#fff;font-size:20px;font-weight:700;letter-spacing:.5px}.brand span{color:var(--brand)}.nav-link{padding:10px 12px;border-radius:8px;color:#cdd4de;font-size:14px}.nav-link:hover{background:#ffffff12}.nav-link.active{background:var(--brand);color:#fff}.nav-group{display:flex;flex-direction:column;gap:4px}.nav-group-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.nav-submenu{display:flex;flex-direction:column;gap:4px;padding-left:12px}.nav-sub-link{font-size:13.5px}.main{display:flex;min-width:0;min-height:0;flex-direction:column}.topbar{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:24px;min-height:64px;padding:14px 28px;border-bottom:1px solid var(--border);background:var(--surface)}.row{display:flex;align-items:center;gap:10px}label{color:var(--muted);font-size:13px;font-weight:600}.required-mark{margin-left:2px;color:#c22;font-weight:700}.required-fields-note{margin:0;color:var(--muted);font-size:12px}select{min-width:180px;padding:8px 10px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--ink)}.muted{color:var(--muted);font-size:13px}.content{flex:1;min-height:0;overflow:auto;padding:28px}.onboarding-page{display:grid;min-height:100vh;place-items:center;padding:24px}.onboarding-card{width:min(100%,480px);padding:32px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 16px 48px #1c24301f}.onboarding-brand{margin:0 0 24px;color:var(--ink)}.btn-small{min-height:32px;padding:6px 10px;white-space:nowrap}.page-fill{height:100%}h1{margin:0;font-size:22px}.revenue-scope-sidebar{display:flex;width:260px;min-width:0;min-height:0;flex-direction:column;overflow:hidden;border-right:1px solid var(--border);background:var(--surface);transition:width .16s ease}.revenue-scope-sidebar.is-collapsed{width:52px}.scope-sidebar-header{display:flex;min-height:64px;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 14px 20px;border-bottom:1px solid var(--border)}.scope-sidebar-header>span{color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.is-collapsed .scope-sidebar-header{justify-content:center;padding:14px 8px}.scope-collapse-button{display:inline-grid;width:30px;height:30px;flex:0 0 auto;place-items:center;padding:0;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--muted);font:inherit;font-size:18px;line-height:1;cursor:pointer}.scope-collapse-button:hover{border-color:var(--brand);color:var(--brand)}.scope-collapse-button:focus-visible,.scope-department-toggle:focus-visible,.scope-option:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.scope-sidebar-body{flex:1;overflow-y:auto;padding:14px 10px 24px}.scope-sidebar-message{margin:8px 10px;color:var(--muted);font-size:13px}.scope-sidebar-message.is-error{color:#a61b1b}.scope-department+.scope-department{margin-top:8px}.scope-department-toggle{display:flex;width:100%;align-items:center;gap:8px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:inherit;font-size:13px;font-weight:700;text-align:left;cursor:pointer}.scope-department-toggle:hover{background:var(--bg)}.scope-chevron{display:inline-block;color:var(--muted);font-size:12px;transition:transform .12s ease}.scope-chevron.is-expanded{transform:rotate(90deg)}.scope-options{display:flex;flex-direction:column;gap:3px;padding:2px 0 5px 17px}.scope-option{display:flex;width:100%;min-width:0;align-items:center;gap:9px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--muted);font:inherit;font-size:13px;text-align:left;cursor:pointer}.scope-option:hover{background:var(--bg);color:var(--ink)}.scope-option.is-selected{background:var(--brand-soft);color:var(--brand);font-weight:600}.scope-dot{width:6px;height:6px;flex:0 0 auto;border-radius:50%;background:currentColor;opacity:.55}.scope-option.is-selected .scope-dot{opacity:1}.scope-department-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.scope-department-label small{color:inherit;font-size:11px;font-weight:500;opacity:.72}.production-heading{display:flex;flex-direction:column;gap:6px}.invoice-view-selector{display:flex;align-items:center;justify-content:flex-start}.invoice-view-selector-control{display:flex;align-items:center;width:min(100%,320px);min-height:38px;border:1px solid var(--border);border-radius:7px;background:var(--bg)}.invoice-view-selector-control .status-dot{flex:0 0 auto;margin-left:11px}.status-dot.status-all{background:#6b7686}.invoice-view-selector-control select{width:100%;min-width:0;min-height:36px;flex:1;padding:7px 34px 7px 8px;border:0;outline:none;background-color:transparent;color:var(--ink);font:inherit;font-size:13px;font-weight:600;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%236b7686' stroke-width='1.8'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;background-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer}.invoice-view-selector-control:focus-within{border-color:var(--brand);box-shadow:var(--focus-ring)}.produzione{display:flex;flex-direction:column;gap:14px}.production-context{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--muted);font-size:14px}.production-context strong{color:var(--ink)}.production-context-status{padding:3px 9px;border-radius:999px;font-size:12px;font-weight:700}.production-context-status.is-editable{background:#eef8f1;color:#1e6b38}.production-context-status.is-read-only{background:#fdf7e7;color:#8a6410}.production-gran-chip{background:var(--bg);border:1px solid var(--border);color:var(--ink)}.production-convert-trigger{padding:4px 10px;font-size:12px}.actual-empty-state{align-items:flex-start;gap:16px}.back-link{display:inline-block;margin-bottom:4px;color:var(--muted);font-size:13px}.annual-spread-panel{gap:16px;max-width:520px}.annual-spread-locked{margin:0}.annual-spread-modes{display:flex;flex-direction:column;gap:8px;margin:0;padding:12px;border:1px solid var(--border);border-radius:8px}.annual-spread-modes legend{padding:0 6px;color:var(--muted);font-size:12px}.annual-spread-modes label{display:flex;align-items:baseline;gap:8px;cursor:pointer}.annual-spread-modes label.is-disabled{color:var(--muted);cursor:not-allowed}.annual-spread-modes small{color:var(--muted)}.annual-spread-preview{display:grid;grid-template-columns:repeat(2,1fr);gap:2px 16px;max-height:240px;margin:0;padding:0;overflow-y:auto;list-style:none;font-size:13px}.annual-spread-preview li{display:flex;justify-content:space-between;gap:12px;padding:3px 0;border-bottom:1px solid var(--border);font-variant-numeric:tabular-nums}.annual-spread-preview li.is-locked{color:var(--muted)}.page-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:20px;padding:12px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.toolbar-group{display:flex;align-items:center;gap:8px}.toolbar-group select{min-width:220px}.localized-picker{position:relative;min-width:0}.toolbar-group .localized-picker{width:160px}.localized-picker-trigger{display:flex;width:100%;min-height:var(--control-h);align-items:center;justify-content:space-between;gap:12px;padding:7px 10px;border:1px solid var(--border);border-radius:var(--control-radius);background:var(--surface);color:var(--ink);font:inherit;font-size:13px;text-align:left;cursor:pointer;transition:border-color .14s ease,box-shadow .14s ease}.localized-picker-trigger:hover:not(:disabled){border-color:#c8ccd3}.localized-picker-trigger:focus-visible{border-color:var(--brand);outline:none;box-shadow:var(--focus-ring)}.localized-picker-trigger:disabled{background:var(--bg);color:var(--muted);cursor:default;opacity:.75}.localized-picker-placeholder,.localized-picker-icon{color:var(--muted)}.localized-picker-popover{position:absolute;z-index:50;top:calc(100% + 6px);left:0;width:max-content;max-width:calc(100vw - 32px);padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 14px 40px #1c24302e}.localized-picker-popover.align-end{right:0;left:auto}.localized-picker-popover.align-above{top:auto;bottom:calc(100% + 6px)}.localized-picker-popover .rdp-root{--rdp-accent-color: var(--brand);--rdp-accent-background-color: var(--brand-soft);--rdp-day-height: 38px;--rdp-day-width: 38px;--rdp-day_button-height: 36px;--rdp-day_button-width: 36px;margin:0;color:var(--ink);font-size:13px}.localized-picker-popover .rdp-caption_label{font-size:14px;font-weight:700;text-transform:capitalize}.localized-picker-popover .rdp-weekday{color:var(--muted);font-size:12px;font-weight:600;text-transform:capitalize}.localized-picker-popover .rdp-day_button:hover:not(:disabled){background:var(--brand-soft)}.localized-picker-popover .rdp-selected .rdp-day_button{border-color:var(--brand);background:var(--brand);color:#fff}.localized-picker-popover .rdp-chevron{fill:var(--brand)}.localized-picker-actions{display:flex;justify-content:flex-end;margin-top:8px;padding-top:8px;border-top:1px solid var(--border)}.month-picker-panel{width:304px;max-width:100%}.month-picker-navigation{display:grid;grid-template-columns:36px 1fr 36px;align-items:center;margin-bottom:10px;text-align:center}.month-picker-nav{display:inline-flex;width:34px;height:34px;align-items:center;justify-content:center;padding:0;border:0;border-radius:7px;background:transparent;color:var(--brand);font:inherit;font-size:24px;cursor:pointer}.month-picker-nav:hover:not(:disabled){background:var(--brand-soft)}.month-picker-nav:disabled{color:var(--muted);cursor:default;opacity:.45}.month-picker-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.month-picker-grid button{padding:9px 6px;border:1px solid transparent;border-radius:7px;background:transparent;color:var(--ink);font:inherit;font-size:13px;text-transform:capitalize;cursor:pointer}.month-picker-grid button:hover:not(:disabled){border-color:var(--border);background:var(--brand-soft)}.month-picker-grid button.is-selected{border-color:var(--brand);background:var(--brand);color:#fff;font-weight:700}.month-picker-grid button:disabled{color:var(--muted);cursor:default;opacity:.42}.btn{padding:8px 14px;border:1px solid var(--border);border-radius:7px;background:var(--surface);color:var(--ink);font:inherit;font-size:13px;cursor:pointer}.btn:disabled{opacity:.5;cursor:default}.btn-ghost{padding:7px 10px}.btn:not(:disabled):hover{border-color:var(--muted)}.btn-primary{border-color:var(--brand);background:var(--brand);color:#fff;font-weight:600}.btn-primary:not(:disabled):hover{filter:brightness(1.08)}.view-toggle{gap:0;border:1px solid var(--border);border-radius:7px;overflow:hidden}.view-toggle button{padding:8px 16px;border:none;background:var(--surface);color:var(--muted);font:inherit;font-size:13px;cursor:pointer}.view-toggle button.active{background:var(--brand);color:#fff;font-weight:600}.banner{padding:10px 14px;border:1px solid var(--border);border-radius:8px;background:var(--surface);font-size:13px}.banner-ok{border-color:#b7dcc2;background:#eef8f1;color:#1e6b38}.banner-error{border-color:#e8b7bf;background:#fdeef0;color:#9c1f33}.banner-warn{border-color:#ecd9a8;background:#fdf7e7;color:#8a6410}.configurazione{display:flex;width:100%;flex-direction:column;gap:18px}.settings-stack{display:flex;flex-direction:column;gap:18px}.settings-card{display:flex;flex-direction:column;gap:20px;padding:22px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.settings-heading h2{margin:0 0 6px;font-size:18px}.settings-heading p{margin:0}.settings-form,.form-field{display:flex;flex-direction:column}.settings-form{gap:20px}.form-field{align-items:flex-start;gap:7px}.form-field input:not([type=checkbox]):not([type=radio]),.form-field select,.form-field .localized-picker-trigger,.form-field .cost-account-trigger{min-height:var(--control-h);padding:7px 10px;border:1px solid var(--border);border-radius:var(--control-radius);background-color:var(--surface);color:var(--ink);font:inherit;font-size:var(--control-font);transition:border-color .14s ease,box-shadow .14s ease}.form-field input:not([type=checkbox]):not([type=radio]){width:180px}.form-field select{width:180px;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:30px;background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m5 7.5 5 5 5-5' fill='none' stroke='%236b7686' stroke-width='1.8'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 9px center;background-size:16px}.form-field input::placeholder{color:var(--muted)}.form-field input:not([type=checkbox]):not([type=radio]):hover:not(:disabled):not([readonly]),.form-field select:hover:not(:disabled){border-color:#c8ccd3}.form-field input:not([type=checkbox]):not([type=radio]):focus,.form-field select:focus,.form-field .localized-picker-trigger:focus-visible,.form-field .cost-account-trigger:focus-visible{border-color:var(--brand);outline:none;box-shadow:var(--focus-ring)}.form-field input:not([type=radio])[readonly]{background-color:var(--bg);color:var(--muted)}.form-field input:not([type=radio])[aria-invalid=true],.form-field select[aria-invalid=true],.form-field .localized-picker-trigger[aria-invalid=true]{border-color:#c22}.form-field input:not([type=radio])[aria-invalid=true]:focus,.form-field select[aria-invalid=true]:focus,.form-field .localized-picker-trigger[aria-invalid=true]:focus-visible{border-color:#c22;box-shadow:0 0 0 3px #cc222224}.field-error{color:#9c1f33;font-size:13px}.config-actions{display:flex;justify-content:flex-end}.department-settings{gap:18px}.department-heading,.department-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.department-heading .btn{flex:0 0 auto}.department-empty{margin:0;padding:20px;border:1px dashed var(--border);border-radius:8px;text-align:center}.department-table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.department-table{width:100%;border-collapse:collapse;font-size:13px}.department-table th,.department-table td{padding:11px 12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:middle}.department-table th{background:#f2f4f7;color:#475467;font-weight:600;white-space:nowrap}.department-table tbody tr:last-child td{border-bottom:none}.department-table .is-archived td{background:#fafafa;color:var(--muted)}.department-code{font-family:ui-monospace,Cascadia Code,monospace;font-size:12px}.department-name-content{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}.status-badge{display:inline-flex;padding:3px 8px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}.status-active{background:#e8f5ec;color:#1e6b38}.status-archived{background:#eceef1;color:#667080}.status-system{background:#e8eefb;color:#315aa8}.department-actions-heading{text-align:right!important}.department-row-actions{text-align:right!important;white-space:nowrap}.department-row-actions .btn{padding:6px 9px}.department-row-actions .btn+.btn{margin-left:6px}.department-editor{display:flex;flex-direction:column;gap:18px;padding:18px;border:1px solid var(--border);border-radius:8px;background:var(--bg)}.department-editor-heading{display:block}.department-editor-heading h3{margin:0 0 5px;font-size:16px}.department-editor-heading p{margin:0}.department-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.department-form-grid .form-field{align-items:stretch}.department-form-grid .form-field input,.department-form-grid .form-field select,.department-form-grid .form-field .localized-picker{width:100%}.department-name-field{grid-column:1 / -1}.department-editor-actions{gap:8px}.modal-backdrop{position:fixed;z-index:1000;top:0;right:0;bottom:0;left:0;display:grid;overflow:auto;place-items:center;padding:24px;background:#141b2694;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.modal-dialog{width:min(920px,calc(100vw - 48px));max-height:calc(100vh - 48px);outline:none}.create-property-modal .modal-dialog{width:min(520px,calc(100vw - 48px))}.supplier-create-modal .modal-dialog{width:min(760px,calc(100vw - 48px))}.supplier-create-panel{gap:0;overflow:hidden;padding:0;border-color:#e2e6ed;box-shadow:0 18px 50px #16203329}.supplier-create-header{padding:22px 24px 18px;border-bottom:1px solid #edf0f4}.supplier-create-body{display:flex;flex-direction:column;gap:20px;padding:20px 24px 24px}.supplier-create-section>h3{margin:0 0 12px;color:var(--ink);font-size:12px;font-weight:700;letter-spacing:.045em;text-transform:uppercase}.supplier-create-section-content{padding:16px;border:1px solid #edf0f4;border-radius:8px;background:#fafbfc}.supplier-create-grid{display:grid;gap:14px 16px}.supplier-create-grid-details{grid-template-columns:repeat(2,minmax(0,1fr))}.supplier-create-grid-address{grid-template-columns:1.4fr .7fr .9fr}.supplier-create-grid .form-field{min-width:0;align-items:stretch}.supplier-create-grid .form-field input:not([type=checkbox]):not([type=radio]),.supplier-create-grid .form-field select{width:100%;min-width:0}.supplier-create-address-field{grid-column:1 / -1}.supplier-create-footer{gap:8px;padding:16px 24px;border-top:1px solid #edf0f4}.create-property-panel{gap:18px;border:none;border-radius:12px;box-shadow:0 24px 70px #141b2647}.modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.production-export-modal .modal-dialog{width:min(520px,calc(100vw - 48px))}.unsaved-changes-modal .modal-dialog{width:min(580px,calc(100vw - 48px))}.unsaved-changes-panel{gap:18px;border:none;border-radius:12px;box-shadow:0 24px 70px #141b2647}.unsaved-changes-actions{flex-wrap:wrap;gap:8px}.unsaved-changes-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.production-export-panel{gap:16px;border:none;border-radius:12px;box-shadow:0 24px 70px #141b2647}.production-export-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.production-export-copy,.production-export-scope{margin:0}.production-export-actions{gap:8px;padding-top:4px}.department-create-modal .department-create-panel{max-height:calc(100vh - 48px);overflow-y:auto;border:none;border-radius:12px;box-shadow:0 24px 70px #141b2647}.department-create-modal .department-editor-heading{position:sticky;z-index:3;top:-18px;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:-18px -18px 0;padding:18px;border-bottom:1px solid var(--border);background:#fffafb}.modal-close-button{display:inline-grid;width:34px;height:34px;flex:0 0 auto;place-items:center;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--muted);font:inherit;font-size:24px;line-height:1;cursor:pointer}.modal-close-button:not(:disabled):hover,.modal-close-button:focus-visible{border-color:var(--border);background:var(--surface);color:var(--ink)}.modal-close-button:disabled{opacity:.5;cursor:default}.department-create-modal .department-editor-actions{position:sticky;z-index:3;bottom:-18px;margin:0 -18px -18px;padding:16px 18px;border-top:1px solid var(--border);background:#fffafb}.department-create-panel{gap:22px;border-color:#d8c2ca;background:#fffafb}.department-create-section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.department-name-section{grid-template-columns:1fr}.department-create-section .form-field,.department-create-section .form-field input,.department-create-section .form-field select{width:100%}.department-account-preview,.department-create-summary{padding:16px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.department-preview-heading,.department-preview-error,.department-code-editor{display:flex;align-items:center;justify-content:space-between;gap:12px}.department-preview-heading h4,.department-create-summary h4{margin:0 0 4px;font-size:14px}.department-preview-heading p{margin:0}.department-account-list{display:flex;flex-direction:column;gap:0;margin:12px 0 0;padding:0;list-style:none}.department-account-list li{display:flex;min-height:38px;align-items:center;justify-content:space-between;gap:16px;padding:7px 0;border-bottom:1px solid var(--border);font-size:13px}.department-account-list li:last-child{border-bottom:none}.department-account-tags{display:inline-flex;flex:0 0 auto;gap:6px}.status-neutral{background:#f0f1f4;color:#505b6b;font-weight:500}.department-preview-toggle{margin-top:10px;padding-left:0;border-color:transparent;background:transparent;color:var(--brand)}.department-advanced-options,.cost-filter-panel{border:1px solid var(--border);border-radius:8px;background:var(--surface)}.department-advanced-options>summary,.cost-filter-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;font-size:13px;font-weight:600;cursor:pointer}.department-advanced-options>summary:before,.cost-filter-panel>summary:before{content:"›";color:var(--muted);font-size:20px;line-height:1;transform:rotate(0);transition:transform .12s ease}.department-advanced-options[open]>summary:before,.cost-filter-panel[open]>summary:before{transform:rotate(90deg)}.cost-filter-panel>summary>span:first-of-type{margin-right:auto}.department-advanced-options[open]>summary,.cost-filter-panel[open]>summary{border-bottom:1px solid var(--border)}.department-advanced-options .form-field{padding:16px}.department-code-editor{width:100%;justify-content:flex-start}.department-code-editor input{max-width:340px}.department-create-summary dl{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:14px 0}.department-create-summary dl>div{min-width:0}.department-create-summary dt{margin-bottom:4px;color:var(--muted);font-size:12px;font-weight:600}.department-create-summary dd{margin:0;overflow-wrap:anywhere;font-size:13px}.department-immutable-note{margin:0;padding:10px 12px;border-radius:7px;background:#fdf7e7;color:#76570f;font-size:12px}.invoices-page,.invoice-work{display:flex;flex-direction:column;gap:18px}.upload-area{display:flex;flex-direction:column;gap:10px}.upload-area>.form-field{max-width:360px}.dropzone{display:flex;flex-direction:column;align-items:center;gap:6px;padding:30px 20px;border:2px dashed var(--border);border-radius:10px;background:var(--surface);text-align:center;cursor:pointer;transition:border-color .12s ease,background .12s ease}.dropzone:hover,.dropzone:focus-visible{border-color:var(--brand);outline:none}.dropzone-active{border-color:var(--brand);background:var(--brand-soft)}.dropzone[aria-disabled=true]{cursor:not-allowed;opacity:.68}.upload-results{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}.invoice-tabs{display:inline-flex;align-self:flex-start}.invoice-table .num-col,.line-table .num-col{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.invoice-row{cursor:pointer}.invoice-row:hover td{background:var(--brand-soft)}.invoice-row:focus-visible td{background:var(--brand-soft)}.status-to-process{background:#fdecea;color:#b3261e}.status-processing{background:#fff3e0;color:#b25e00}.status-completed{background:#e8f5ec;color:#1e6b38}.status-mixed{background:#eee8f8;color:#5b3ea8}.status-dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:6px;vertical-align:-1px}.status-dot.status-to-process{background:#b3261e}.status-dot.status-processing{background:#b25e00}.status-dot.status-completed{background:#1e6b38}.invoice-work-header,.supplier-work-header{position:sticky;z-index:5;top:-28px;display:flex;flex-direction:column;padding:28px 28px 14px;border-bottom:1px solid var(--border);margin:-28px -28px 0;background:var(--bg);gap:12px}.back-link{color:var(--muted);font-size:13px}.back-link:hover{color:var(--brand)}.invoice-workspace{display:flex;flex-direction:column}.invoice-doc-panel{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.invoice-doc-panel-header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border);font-size:13px;font-weight:600}.doc-panel-title{flex:1 1 120px;overflow:hidden;min-width:0;text-overflow:ellipsis;white-space:nowrap}.doc-toolbar{display:flex;flex:0 1 auto;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px 12px}.doc-pager{display:flex;flex:0 0 auto;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}.doc-page-field input{width:42px;height:32px;padding:0 4px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--ink);font:inherit;font-variant-numeric:tabular-nums;text-align:center}.doc-page-field input:focus{border-color:var(--brand);outline:2px solid var(--brand-soft)}.doc-page-field input::-webkit-inner-spin-button,.doc-page-field input::-webkit-outer-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.doc-zoom{display:flex;flex:0 0 auto;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}.doc-toolbar-btn,.doc-fit-btn{display:inline-flex;height:32px;align-items:center;justify-content:center;padding:0;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--ink);font-size:14px;line-height:1;cursor:pointer}.doc-toolbar-btn{width:32px;font-size:17px}.doc-fit-btn{padding:0 9px;font-size:12px;font-weight:600}.doc-toolbar-btn:hover:not(:disabled),.doc-fit-btn:hover:not(:disabled){border-color:var(--brand);color:var(--brand)}.doc-toolbar-btn:focus-visible,.doc-fit-btn:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.doc-toolbar-btn:disabled,.doc-fit-btn:disabled{color:var(--muted);cursor:default;opacity:.5}.doc-zoom-value{min-width:36px;color:var(--muted);text-align:center}.doc-preview{overflow:hidden;background:var(--surface)}.doc-preview iframe{display:block;width:100%;height:calc(100vh - 200px);min-height:420px;border:none;background:#fff}.doc-preview-pdf{box-sizing:border-box;height:calc(100vh - 200px);min-height:420px;overflow:auto;padding:16px;background:#eeece9}.doc-preview-pdf:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.doc-preview-pdf canvas{display:block;box-shadow:0 2px 10px #1c243024}.doc-canvas-stage{display:grid;width:max-content;min-width:100%;height:max-content;min-height:100%;place-items:center}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;padding:0;border:0;margin:-1px;clip:rect(0,0,0,0);white-space:nowrap}.invoice-panel{display:flex;min-width:0;flex-direction:column;overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.invoice-header-view{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 20px;margin:0}.invoice-header-view dt{color:var(--muted);font-size:11px}.invoice-header-view dd{margin:4px 0 0;color:var(--ink);font-size:13px;font-weight:600}.invoice-header-view dd.is-missing{color:#9c1f33}.invoice-panel-notice{margin:0}.invoice-confirm-issues{margin:0 0 16px}.invoice-confirm-issues ul{margin:6px 0;padding-left:20px}.invoice-required-note{margin-top:8px}.invoice-stat{display:flex;min-width:0;flex-direction:column;gap:4px;padding:14px 16px;background:var(--surface)}.invoice-stat-label{overflow:hidden;color:var(--muted);font-size:10.5px;letter-spacing:.02em;text-transform:uppercase;text-overflow:ellipsis;white-space:nowrap}.invoice-money-label{display:inline-flex;align-items:center;gap:3px}.invoice-money-label svg{flex:0 0 auto;width:13px;height:13px}.invoice-stat-value{color:var(--ink);font-size:17px;font-weight:700;white-space:nowrap}.invoice-stat-value.is-ok{color:#1e6b38}.invoice-stat-value.is-warn{color:#9c1f33}.invoice-panel-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0;padding:0 18px;border-bottom:1px solid var(--border)}.invoice-tab{padding:14px 4px;margin-right:20px;border:none;border-bottom:2px solid transparent;background:none;color:var(--muted);font:inherit;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer}.invoice-tab.is-active{color:var(--ink);border-bottom-color:var(--brand)}.invoice-tab-badge{align-self:center;margin-left:auto}.invoice-panel-body{flex:1;padding:18px;overflow:auto}.invoice-panel-issues{border-width:1px 0 0;border-radius:0}.invoice-work-header-top{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:16px}.header-status{display:flex;align-items:center;min-height:36px}.saved-state{font-size:12px;font-weight:650;color:#8a6410;white-space:nowrap}.toast{position:fixed;z-index:50;right:22px;bottom:22px;padding:11px 16px;border-radius:9px;background:#1e6b38;color:#fff;font-size:13px;font-weight:600;box-shadow:0 12px 30px #10182833;animation:toast-fade 2.6s ease forwards;pointer-events:none}@keyframes toast-fade{0%{opacity:0;transform:translateY(8px)}10%,80%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(8px)}}@media (prefers-reduced-motion: reduce){.toast{animation-duration:2.6s;animation-timing-function:steps(2,jump-none)}}.command-ribbon{display:flex;align-items:stretch;gap:0;min-height:74px;padding:7px 10px 5px;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 1px 2px #1018280a,0 1px 3px #1018280f;overflow-x:auto}.command-group{display:flex;flex-direction:column;justify-content:space-between;min-width:max-content;padding:0 6px}.command-group-actions{display:flex;align-items:flex-start;gap:2px;min-height:46px}.command-group-label{padding-top:4px;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.07em;line-height:1;text-align:center;text-transform:uppercase}.ribbon-year{display:flex;align-items:center;margin:0 6px;padding:0 12px;border-left:1px solid var(--border)}.ribbon-year .year-field.is-compact{flex-direction:row;align-items:center;gap:8px;min-width:0;white-space:nowrap}@media (max-width: 860px){.ribbon-year{padding:0 6px}}.command-separator{flex:0 0 1px;align-self:stretch;width:1px;margin:2px 6px 12px;background:var(--border)}.command-button{display:flex;min-width:80px;min-height:46px;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 8px 4px;border:1px solid transparent;border-radius:7px;background:transparent;color:#344054;font:inherit;font-size:10px;font-weight:650;white-space:nowrap;cursor:pointer}.command-button:hover:not(:disabled){border-color:var(--border);background:var(--bg)}.command-button:disabled{border-color:transparent;background:transparent;opacity:.42;cursor:default}.command-icon{display:grid;width:20px;height:20px;place-items:center;color:#5d6678}.command-icon svg{width:19px;height:19px;fill:currentColor}.command-primary,.command-primary .command-icon{color:var(--brand)}.command-primary:hover:not(:disabled){border-color:#f0c2d1;background:var(--brand-soft)}.command-danger,.command-danger .command-icon{color:#9c1f33}.command-danger:hover:not(:disabled){border-color:#e8b7bf;background:#fdeef0}.invoice-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));overflow:hidden;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 1px 2px #1018280a,0 1px 3px #1018280f}.invoice-overview .invoice-stat{border-right:1px solid var(--border)}.invoice-overview .invoice-stat:last-of-type{border-right:0}.invoice-progress-wrap{grid-column:1 / -1;padding:10px 18px 12px;border-top:1px solid var(--border)}.invoice-progress-label{display:flex;justify-content:space-between;margin-bottom:6px;color:var(--muted);font-size:11px}.invoice-progress{height:6px;overflow:hidden;border-radius:999px;background:#eef1f5}.invoice-progress>span{display:block;height:100%;background:var(--brand);transition:width .2s ease}.invoice-work .settings-card,.invoice-work .invoice-panel,.invoice-work .invoice-doc-panel,.supplier-work .settings-card{border-radius:12px;box-shadow:0 1px 2px #1018280a,0 1px 3px #1018280f}.invoice-work .department-table-wrap,.supplier-work .department-table-wrap{border-radius:9px}.invoice-work .department-table th,.supplier-work .department-table th{color:#667085;font-size:10px;font-weight:750;letter-spacing:.04em;text-transform:uppercase}.invoice-subhead{padding:0;margin:0 0 2px;color:#74809a;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.invoice-divider{height:1px;margin:2px 0;background:var(--border)}.scope-block{display:flex;flex-direction:column;gap:8px}.seg-hint{margin:0;font-size:12px}.line-toolbar-residual{font-size:13px;color:var(--muted)}.line-toolbar-residual strong{font-variant-numeric:tabular-nums}.line-toolbar-residual .is-ok{color:#1e6b38}.line-toolbar-residual .is-warn{color:#9c1f33}.line-toolbar-create{margin-left:auto}.scope-choice--pill{display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:640px;gap:3px;padding:3px;border:1px solid var(--border);border-radius:9px;background:var(--bg)}.scope-choice--pill .scope-option{position:relative;padding:9px 12px;border:0;border-radius:7px;background:transparent}.scope-choice--pill .scope-option:has(input:checked){background:var(--surface);box-shadow:0 1px 2px #10182814}.scope-choice--pill .scope-option:has(input:checked) strong{color:var(--brand)}.scope-choice--pill .scope-option:has(input:focus-visible){outline:2px solid var(--brand);outline-offset:2px}.scope-choice--pill .scope-option input[type=radio]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (max-width: 720px){.scope-choice--pill{grid-template-columns:1fr}}.line-table .check-col{width:34px}.line-table .col-desc{min-width:220px;max-width:340px;white-space:normal}.line-expand-row td{padding:0;border-top:1px solid var(--border);background:var(--bg)}.line-expand-row .department-editor,.line-expand-row .line-form{border:none;border-radius:0}.line-form-actions{justify-content:space-between}.btn-danger{color:#9c1f33}.schedule-preview{display:flex;flex-direction:column;gap:8px;padding:12px 14px;border:1px solid var(--border);border-radius:8px;background:var(--surface)}.schedule-preview ul{display:flex;flex-wrap:wrap;gap:8px 18px;margin:0;padding:0;list-style:none}.schedule-preview li{display:flex;gap:8px;align-items:baseline;font-size:13px}.schedule-preview li span:first-letter{text-transform:uppercase}@media (max-width: 1100px){.doc-preview iframe,.doc-preview-pdf{height:480px}}@media (max-width: 520px){.doc-panel-title,.doc-toolbar{flex-basis:100%}.doc-toolbar{justify-content:space-between}}.rev-grid-wrap{flex:1;min-height:240px;overflow:auto;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.cash-register-page{min-width:0}.cash-tabs{display:flex;overflow-x:auto;gap:2px;margin:18px 0 0;padding:0 4px;border-bottom:2px solid #b8c2cc}.cash-tabs button{flex:0 0 auto;border:1px solid #b8c2cc;border-bottom:0;border-radius:5px 5px 0 0;padding:8px 13px;color:#374151;background:#edf1f4;cursor:pointer;font:inherit;font-size:13px}.cash-tabs button.is-active{color:#111827;background:#fff;font-weight:700;box-shadow:inset 0 3px #2f6f6b}.cash-sheet-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 12px;border:1px solid #cbd5df;border-top:0;background:#f8fafb}.cash-sheet-toolbar label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700}.cash-sheet-toolbar select{min-width:150px}.cash-grid-wrap{max-height:calc(100vh - 285px);overflow:auto;border:1px solid #8c9aa7;border-top:0;background:#fff}.cash-grid{width:max-content;min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:11px;font-variant-numeric:tabular-nums}.cash-grid th,.cash-grid td{height:28px;padding:0;border-right:1px solid #aeb8c1;border-bottom:1px solid #c5cdd4;white-space:nowrap}.cash-grid thead th{position:sticky;z-index:4;top:0;padding:6px 4px;color:#15212c;background:#c7d4df;text-align:center;white-space:normal;line-height:1.12}.cash-grid thead tr:nth-child(2) th{top:29px;background:#dce5ec}.cash-grid .cash-grid-groups th{border-bottom:1px solid #738391;font-weight:800}.cash-grid .cash-date-col{position:sticky;z-index:3;left:0;width:82px;min-width:82px;padding:0 7px;border-right:2px solid #667582;background:#eef2f5;text-align:left;font-weight:700}.cash-grid thead .cash-date-col{z-index:7;top:0;text-align:center;background:#c7d4df}.cash-grid td.cash-input{background:#fff}.cash-grid td.cash-computed{padding:0 6px;color:#1f2937;background:#edf1f4;text-align:right;font-weight:650}.cash-grid td.cash-tone-sequence{background:#f2dfca}.cash-grid td.cash-tone-suspended,.cash-grid td.cash-tone-opening{background:#fff59c}.cash-grid td.cash-tone-outflow{background:#c8dce9}.cash-grid td.cash-warning{background:#ffeb3b;color:#8b1a1a;font-weight:800}.cash-grid input{width:100%;height:27px;box-sizing:border-box;border:0;border-radius:0;padding:2px 5px;color:#006100;background:transparent;text-align:right;font:inherit;font-weight:650;outline:0}.cash-grid input[type=text]{text-align:left}.cash-grid input:focus{box-shadow:inset 0 0 0 2px #217346;background:#fff}.cash-grid input.is-dirty{background:#fff2b8;box-shadow:inset 0 -2px #d97706}.cash-grid input::-webkit-inner-spin-button,.cash-grid input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.cash-grid tfoot th,.cash-grid tfoot td{position:sticky;z-index:2;bottom:0;height:32px;border-top:2px solid #516170;background:#d7e1e8;font-weight:800}.cash-grid tfoot .cash-date-col{z-index:5}.cash-ledger-layout{display:grid;grid-template-columns:minmax(330px,.8fr) minmax(520px,1.4fr);gap:18px;padding-top:18px}.cash-ledger-form,.cash-ledger-table-wrap{border:1px solid #d6dde3;border-radius:8px;padding:18px;background:#fff}.cash-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cash-form-grid label{display:grid;gap:5px;color:#374151;font-size:12px;font-weight:700}.cash-form-grid input,.cash-form-grid textarea{width:100%;box-sizing:border-box;border:1px solid #b9c4ce;border-radius:5px;padding:8px;font:inherit}.cash-form-grid textarea{min-height:68px;resize:vertical}.cash-form-wide{grid-column:1 / -1}.cash-ledger-table-wrap{overflow-x:auto}.cash-ledger-table{min-width:760px}.cash-ledger-table .num,.department-table .num{text-align:right;font-variant-numeric:tabular-nums}.cash-ledger-actions{display:flex;justify-content:flex-end;gap:5px}.cash-ledger-actions .btn{padding:5px 8px;font-size:12px}.cash-guide{margin-top:18px}.cash-guide dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cash-guide dl>div{padding:12px;border:1px solid #dbe2e8;border-radius:6px}.cash-guide dt{font-weight:800}.cash-guide dd{margin:4px 0 0;color:#5c6773}@media (max-width: 1050px){.cash-ledger-layout{grid-template-columns:1fr}}.import-page-copy{max-width:940px;margin:2px 0 0}.import-mensile .command-status,.production-command-status{display:flex;align-items:center;margin-left:auto;padding:0 12px}.year-field{display:flex;min-width:240px;flex-direction:column;gap:6px;text-align:left}.year-field.is-compact{min-width:190px}.year-field label{color:var(--muted);font-size:12px;letter-spacing:.2px}.year-select-wrap{position:relative;display:flex}.year-select-icon{position:absolute;top:50%;left:11px;display:inline-flex;color:var(--muted);font-size:18px;pointer-events:none;transform:translateY(-50%)}.year-select{width:100%;padding-left:36px}.year-helper{margin:0;color:var(--muted);font-size:11px}.import-year-bar{display:flex}.import-empty{display:flex;align-items:center;justify-content:center;padding:42px 24px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 1px 2px #1018280a,0 1px 3px #1018280f}.import-empty-inner{width:min(600px,100%);text-align:center}.import-empty-icon{display:grid;width:58px;height:58px;border-radius:14px;margin:0 auto 16px;background:var(--brand-soft);color:var(--brand);font-size:30px;place-items:center}.import-empty-title{margin:0;font-size:18px}.import-empty-copy{max-width:480px;margin:8px auto 0;color:var(--muted);font-size:13px;line-height:1.55}.import-year-card{width:min(360px,100%);padding:16px;border:1px solid var(--border);border-radius:10px;margin:22px auto 0;background:var(--bg)}.import-features{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:24px;text-align:left}.import-feature{padding:12px;border:1px solid var(--border);border-radius:9px;background:var(--bg)}.import-feature-top{display:flex;align-items:center;gap:7px;margin-bottom:4px;font-size:12px;font-weight:700}.import-feature-top span{display:inline-flex;color:var(--muted);font-size:17px}.import-feature-copy{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.sheet-card{display:flex;flex:1;min-height:240px;flex-direction:column;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 1px 2px #1018280a,0 1px 3px #1018280f;overflow:hidden}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 16px;border-bottom:1px solid var(--border)}.sheet-title{font-size:15px;font-weight:700}.sheet-sub{margin:2px 0 0;color:var(--muted);font-size:12px}.sheet-card .rev-grid-wrap{min-height:0;border:0;border-radius:0}@media (max-width: 860px){.import-features{grid-template-columns:1fr}.sheet-head{flex-direction:column;align-items:stretch}}.rev-grid{border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px}.rev-grid th,.rev-grid td{border-right:1px solid var(--border);border-bottom:1px solid var(--border);padding:0}.rev-grid thead th{position:sticky;top:0;z-index:2;width:76px;padding:6px 4px;background:var(--surface);color:var(--muted);font-weight:600;text-align:center}.rev-grid thead th .day-weekday{display:block;font-size:11px;font-weight:400;text-transform:lowercase}.rev-grid thead th .day-number{display:block;color:var(--ink)}.rev-grid thead th .day-month{display:block;color:var(--ink);font-weight:600;text-transform:capitalize}.rev-grid .col-label{position:sticky;left:0;z-index:1;width:280px;padding:5px 12px;background:var(--surface);font-weight:400;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rev-grid thead .col-label{z-index:3}.rev-grid .col-total,.rev-grid .col-context{width:110px;font-weight:600}.rev-grid .cell{background:var(--surface)}.rev-grid .cell.num{padding:5px 8px;text-align:right;font-variant-numeric:tabular-nums;color:var(--muted)}.rev-grid .cell.is-weekend,.rev-grid thead th.is-weekend{background:var(--bg)}.rev-grid .cell.is-locked{background:repeating-linear-gradient(135deg,var(--bg),var(--bg) 6px,#eceef2 6px,#eceef2 12px);cursor:not-allowed}.rev-grid thead th .day-month.is-locked{color:var(--brand);text-decoration:underline dotted}.rev-grid .cell-input input{width:100%;padding:5px 8px;border:none;background:transparent;color:var(--ink);font:inherit;font-variant-numeric:tabular-nums;text-align:right}.rev-grid .cell-input input:focus{outline:2px solid var(--brand);outline-offset:-2px}.rev-grid .cell-input input:disabled{color:var(--muted)}.rev-grid .cell-input input.is-dirty{background:var(--brand-soft)}.rev-grid .cell-input input.is-invalid{outline:2px solid #c22;outline-offset:-2px}.rev-grid .row-dept .col-label,.rev-grid .row-dept .cell{background:var(--brand-soft);color:var(--ink);font-weight:700}.rev-grid .row-scope .col-label,.rev-grid .row-scope .cell{border-top:3px solid var(--brand);background:var(--brand);color:#fff;font-weight:700}.rev-grid .row-scope .col-label{padding-top:8px;padding-bottom:8px}.scope-row-toggle{width:100%;padding:0;border:none;background:transparent;color:inherit;font:inherit;font-weight:700;text-align:left;cursor:pointer}.scope-row-toggle:focus-visible{outline:2px solid #ffffff;outline-offset:-2px}.rev-grid .row-channel .col-label,.rev-grid .row-channel .cell{border-top:2px solid var(--border);background:#eef1f5;color:var(--ink);font-weight:600}.rev-grid .row-channel .col-label{padding-top:6px;padding-bottom:6px}.rev-grid .row-section .col-label,.rev-grid .row-section .cell{border-top:2px solid var(--border);background:#f5f7fa}.rev-grid .row-section .col-label{color:var(--ink);font-weight:700}.rev-grid .row-group .col-label{color:var(--muted);font-weight:600}.rev-grid .row-summary .col-label{font-style:italic;color:var(--muted)}.rev-grid .row-summary .cell.num{font-style:italic}.rev-grid .row-derived .col-label,.rev-grid .row-derived .cell{background:#fafbfc}.rev-grid .row-derived .cell.is-weekend{background:#f2f4f7}.rev-grid .row-derived .col-label,.rev-grid .row-derived .cell.num{color:var(--muted);font-style:italic}.rev-grid .row-derived .col-label{font-weight:600}.rev-grid tfoot{position:sticky;bottom:0;z-index:2}.rev-grid tfoot .col-label,.rev-grid tfoot .cell.num{border-top:1px solid var(--border);background:var(--ink);color:#fff;font-weight:700}.rev-grid tfoot .row-capacity-footer .col-label,.rev-grid tfoot .row-capacity-footer .cell.num{border-top-color:#ffffff29;font-weight:600}.rev-grid tfoot .col-label{z-index:3}.dept-toggle,.channel-toggle{width:100%;padding:0;border:none;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.dept-toggle{font-weight:700}.channel-toggle{font-weight:600}.dept-toggle:focus-visible,.channel-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}@media (max-width: 720px){.app{width:100%;height:auto;min-width:0;grid-template-columns:1fr;overflow:visible}.content{overflow:visible}.invoice-work-header,.supplier-work-header{position:static;padding:0;border-bottom:0;margin:0}.page-fill{height:auto}.rev-grid-wrap{max-height:70vh;flex:none}.sheet-card{flex:none}.app.has-revenue-sidebar{grid-template-columns:1fr}.sidebar{position:static;width:100%;max-width:100vw}.revenue-scope-sidebar,.revenue-scope-sidebar.is-collapsed{width:100vw;max-width:100vw;border-right:0;border-bottom:1px solid var(--border)}.scope-sidebar-header{min-height:52px;padding:10px 16px}.is-collapsed .scope-sidebar-header{justify-content:flex-end;padding:10px 16px}.scope-sidebar-body{max-height:320px;flex:none;padding:10px 10px 16px}.topbar{align-items:flex-start;flex-direction:column}.main{width:100%;max-width:100vw}.content{padding:20px 16px}.settings-card{padding:18px 16px}.department-heading{align-items:stretch;flex-direction:column}.department-heading .btn{align-self:flex-start}.department-table-wrap{overflow:visible;border:none}.department-table,.department-table tbody,.department-table tr,.department-table td{display:block;width:100%}.department-table thead{display:none}.department-table tr{margin-bottom:10px;padding:6px 12px;border:1px solid var(--border);border-radius:8px}.department-table tbody tr:last-child{margin-bottom:0}.department-table th,.department-table td,.department-table tbody tr:last-child td{border-bottom:1px solid var(--border)}.department-table td{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:9px 0;text-align:right}.department-table td:before{content:attr(data-label);color:var(--muted);font-weight:600;text-align:left}.department-table td:last-child{border-bottom:none}.department-table .is-archived td{background:transparent}.department-row-actions{display:flex;flex-wrap:wrap;justify-content:flex-end}.department-row-actions .btn+.btn{margin-left:0}.department-form-grid,.supplier-create-grid-details,.supplier-create-grid-address{grid-template-columns:1fr}.supplier-create-address-field{grid-column:auto}.supplier-create-header,.supplier-create-body,.supplier-create-footer{padding-right:18px;padding-left:18px}.department-name-field{grid-column:auto}.department-create-section,.department-create-summary dl{grid-template-columns:1fr}.department-account-list li,.department-preview-error,.department-code-editor{align-items:flex-start;flex-direction:column}.department-account-tags{flex-wrap:wrap}.department-code-editor input{max-width:none}.modal-backdrop{place-items:stretch;padding:0}.modal-dialog,.department-create-modal .department-create-panel{width:100%;height:100dvh;max-height:none}.production-export-modal .modal-dialog{width:100%}.production-export-modal .production-export-panel{min-height:100%;border-radius:0}.department-create-modal .department-create-panel{border-radius:0}.localized-picker-popover,.localized-picker-popover.align-end,.localized-picker-popover.align-above{position:fixed;top:50%;right:16px;bottom:auto;left:16px;width:auto;max-width:none;transform:translateY(-50%)}.localized-picker-popover .rdp-root,.localized-picker-popover .rdp-months,.localized-picker-popover .rdp-month,.localized-picker-popover .rdp-month_grid,.month-picker-panel{width:100%}}.kpi-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px}.kpi-card{display:flex;flex-direction:column;gap:4px;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface);text-align:left;font:inherit;color:inherit}.kpi-card.is-clickable{cursor:pointer}.kpi-card.is-clickable:hover{border-color:var(--brand)}.kpi-card.is-active{border-color:var(--brand);background:var(--brand-soft)}.kpi-card.kpi-warn .kpi-value{color:var(--brand)}.kpi-label{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)}.kpi-value{font-size:22px;line-height:1.2}.kpi-hint{font-size:12px;color:var(--muted)}.supplier-work{display:flex;flex-direction:column;gap:18px}.supplier-work .supplier-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:stretch;gap:14px 16px}.supplier-work .supplier-grid>.form-field{grid-column:span var(--span, 12);align-items:stretch;gap:6px}.supplier-work .supplier-grid .span-4{--span: 4}.supplier-work .supplier-grid .span-6{--span: 6}.supplier-work .supplier-grid .form-field>.cost-account-picker{display:flex;width:100%;flex:1 1 auto;flex-direction:column}.supplier-work .supplier-grid .form-field input,.supplier-work .supplier-grid .form-field select,.supplier-work .supplier-grid .form-field .cost-account-trigger{width:100%;flex:1 1 auto}.supplier-work .supplier-grid .form-field label{color:var(--muted);font-size:12px;letter-spacing:.2px}.classification-hint{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #f2c4d5;border-radius:8px;margin:0;background:var(--brand-soft);color:var(--text);font-size:13px}.classification-hint-icon{display:inline-flex;color:var(--brand);font-size:18px}@media (max-width: 780px){.supplier-work .supplier-grid>.form-field{--span: 12}}.supplier-overview .kpi-row{grid-template-columns:minmax(190px,260px)}.supplier-list-controls{display:flex;align-items:flex-end;justify-content:space-between;gap:28px}.supplier-search{display:grid;width:min(100%,640px);grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:7px 12px}.supplier-search>label{grid-column:1 / -1;color:var(--ink);font-size:12px;letter-spacing:.01em}.supplier-search-field{position:relative;display:flex;min-width:0;align-items:center}.supplier-search-field>svg{position:absolute;left:14px;z-index:1;color:var(--muted);pointer-events:none}.supplier-search-field input{width:100%;min-height:44px;padding:10px 42px;border:1px solid var(--border);border-radius:12px;background:var(--surface);box-shadow:0 3px 12px #1c24300d;color:var(--ink);font:inherit;transition:border-color .14s ease,box-shadow .14s ease}.supplier-search-field input::placeholder{color:#8b94a2}.supplier-search-field input:focus{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--brand-soft),0 5px 16px #1c243012}.supplier-search-field input::-webkit-search-cancel-button{-webkit-appearance:none;-moz-appearance:none;appearance:none}.supplier-search-clear{position:absolute;right:10px;display:grid;width:26px;height:26px;place-items:center;padding:0;border:0;border-radius:50%;background:var(--bg);color:var(--muted);font:inherit;font-size:18px;line-height:1;cursor:pointer}.supplier-search-clear:hover{background:var(--brand-soft);color:var(--brand)}.supplier-search-clear:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.supplier-search-count{color:var(--muted);font-size:12px;white-space:nowrap}.supplier-create-action{display:flex;min-height:44px;align-items:center;padding-left:28px;border-left:1px solid var(--border)}.supplier-create-action .btn{min-height:42px;padding-inline:18px;white-space:nowrap}.cost-filter-panel>summary{list-style:none}.cost-filter-panel>summary::-webkit-details-marker{display:none}.cost-filter-panel>summary:focus-visible{outline:2px solid var(--brand);outline-offset:-2px;border-radius:7px}.cost-filter-panel>summary .status-badge{flex:0 0 auto}.cost-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));align-items:end;gap:14px 20px;padding:16px}.cost-filters .toolbar-group{flex-direction:column;align-items:stretch;gap:6px}.cost-filters .toolbar-group>label{font-size:12px;color:var(--muted)}.cost-filters .toolbar-group select,.cost-filters .toolbar-group input{min-width:0;width:100%}.cost-filters .toolbar-group-wide{grid-column:1 / -1}.cost-filters .view-toggle{flex-wrap:wrap}.cost-filter-actions{display:flex;justify-content:flex-end;padding:0 16px 16px}.period-bar{display:flex;flex-direction:column;gap:12px;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.period-bar-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.period-bar-range{color:var(--brand);font-size:15px;font-weight:600}.period-presets{display:flex;flex-wrap:wrap;align-self:flex-start;max-width:100%}.period-bar-custom{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.period-bar-custom>label{color:var(--muted);font-size:12px}.period-bar-custom .localized-picker{flex:0 1 180px}.date-range{display:flex;align-items:center;gap:8px}.date-range .localized-picker{flex:1;width:auto}@media (max-width: 640px){.invoice-view-selector-control{width:100%}.supplier-overview .kpi-row{grid-template-columns:minmax(0,1fr)}.supplier-list-controls{align-items:stretch;flex-direction:column;gap:16px}.supplier-search{width:100%;grid-template-columns:minmax(0,1fr) auto}.supplier-create-action{min-height:0;justify-content:flex-end;padding-top:16px;padding-left:0;border-top:1px solid var(--border);border-left:0}.cost-filter-panel>summary{padding:12px}.cost-filters{grid-template-columns:minmax(0,1fr);padding:12px}.cost-filter-actions{padding:0 12px 12px}}.pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px}.cost-account-picker{position:relative;min-width:0}.cost-account-trigger{display:flex;width:100%;min-height:var(--control-h);align-items:center;justify-content:space-between;gap:12px;padding:6px 10px 6px 12px;border:1px solid var(--border);border-radius:var(--control-radius);background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .14s ease,box-shadow .14s ease,background .14s ease}.cost-account-trigger:hover:not(:disabled){border-color:#c8ccd3;background:#fffafb}.cost-account-trigger:focus-visible,.cost-account-picker.is-open .cost-account-trigger{border-color:var(--brand);outline:none;box-shadow:0 0 0 3px var(--brand-soft)}.cost-account-trigger:disabled{background:var(--bg);color:var(--muted);cursor:default}.cost-account-trigger-copy{display:flex;min-width:0;flex:1;flex-direction:column;gap:2px}.cost-account-value,.cost-account-placeholder,.cost-account-meta{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cost-account-value{font-weight:600}.cost-account-placeholder,.cost-account-meta{color:var(--muted)}.cost-account-meta{font-size:12px}.cost-account-chevron{flex:0 0 auto;color:var(--muted);transition:transform .15s ease}.cost-account-picker.is-open .cost-account-chevron{transform:rotate(180deg)}.cost-account-popover{position:absolute;z-index:50;top:calc(100% + 7px);left:0;width:max(100%,340px);max-width:min(560px,calc(100vw - 40px));overflow:hidden;border:1px solid var(--border);border-radius:10px;background:var(--surface);box-shadow:0 14px 40px #1c24302e}.cost-account-search{position:relative;display:flex;align-items:center;padding:10px;border-bottom:1px solid var(--border)}.cost-account-search>svg{position:absolute;left:21px;color:var(--muted);pointer-events:none}.cost-account-popover .cost-account-search input[type=search]{width:100%;padding:9px 12px 9px 36px;border:1px solid var(--border);border-radius:var(--control-radius);background-color:var(--bg);color:var(--ink);font:inherit;font-size:var(--control-font)}.cost-account-popover .cost-account-search input[type=search]:focus{border-color:var(--brand);outline:none;background-color:var(--surface);box-shadow:var(--focus-ring)}.cost-account-clear{display:flex;width:100%;align-items:center;gap:8px;padding:9px 12px;border:0;border-bottom:1px solid var(--border);background:transparent;color:var(--muted);font:inherit;font-size:13px;text-align:left;cursor:pointer}.cost-account-clear span{font-size:18px;line-height:1}.cost-account-clear:hover,.cost-account-clear:focus-visible{outline:none;background:var(--brand-soft);color:var(--brand)}.cost-account-results{padding:7px 12px;border-bottom:1px solid var(--border);color:var(--muted);font-size:12px}.cost-account-results strong{color:var(--ink)}.cost-account-options{max-height:300px;overflow-y:auto;padding:6px}.cost-account-group+.cost-account-group{margin-top:5px;padding-top:5px;border-top:1px solid var(--border)}.cost-account-group-heading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding:7px 8px 5px;color:var(--muted);font-size:11px;letter-spacing:.03em;text-transform:uppercase}.cost-account-group-heading strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.cost-account-group-heading span{flex:0 0 auto}.cost-account-option{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:inherit;font-size:13.5px;text-align:left;cursor:pointer}.cost-account-option-copy{display:flex;min-width:0;flex-direction:column;gap:2px}.cost-account-option-copy strong,.cost-account-option-copy small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cost-account-option-copy small{color:var(--muted);font-size:11.5px;font-weight:400}.cost-catalog-card{margin-top:20px}.cost-catalog-stats{display:flex;flex-direction:column;align-items:flex-end;gap:2px;color:var(--muted);font-size:12px;white-space:nowrap}.cost-catalog-stats strong{color:var(--ink);font-size:18px}.cost-catalog-filters{display:grid;grid-template-columns:minmax(260px,2fr) repeat(2,minmax(190px,1fr));gap:12px;margin-bottom:12px}.cost-catalog-result-count{margin:0 0 8px;color:var(--muted);font-size:13px}.cost-catalog-table-wrap{max-height:560px;overflow:auto}.cost-catalog-table thead{position:sticky;z-index:1;top:0;background:var(--surface)}.cost-catalog-table .is-grouping{color:var(--muted);background:var(--bg)}.cost-catalog-table td:first-child,.cost-catalog-table th:first-child{width:92px;text-align:center}@media (max-width: 800px){.cost-catalog-filters{grid-template-columns:1fr}.cost-catalog-stats{align-items:flex-start}}.cost-account-option:hover,.cost-account-option.is-active{background:var(--bg)}.cost-account-option.is-selected{background:var(--brand-soft);color:var(--brand);font-weight:600}.cost-account-option:focus-visible{outline:2px solid var(--brand);outline-offset:-2px}.cost-account-check{flex:0 0 auto;font-size:15px}.cost-account-empty{margin:0;padding:18px 12px;color:var(--muted);font-size:13px;text-align:center}@media (max-width: 640px){.cost-account-popover{width:100%;max-width:none}}.line-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.bulk-bar{flex:1 1 100%;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));align-items:end;gap:12px 16px}.bulk-bar>strong,.bulk-bar .config-actions{grid-column:1 / -1}.bulk-bar{border-color:var(--brand);background:var(--surface);box-shadow:inset 3px 0 0 var(--brand)}.bulk-bar .form-field input:not([type=checkbox]):not([type=radio]),.bulk-bar .form-field select,.bulk-bar .form-field .localized-picker,.bulk-bar .form-field .cost-account-picker{width:100%}.line-table td .status-badge{margin-left:6px}.line-table td .muted,.line-table td .field-error{display:block;font-size:12px}.invoice-table{min-width:1180px}.line-table{min-width:820px}.invoice-table td,.line-table td{white-space:nowrap}.invoice-table td:nth-child(5),.invoice-table td:nth-child(7){white-space:normal;min-width:180px;max-width:280px}.line-table tr.line-has-issue td:first-child{box-shadow:inset 3px 0 0 var(--brand)}.line-form{container-type:inline-size;gap:20px;padding:22px 20px}.line-form-header{display:flex;align-items:center;gap:10px}.line-form-header h3,.line-form>h3{margin:0;font-size:15px;letter-spacing:.2px}.line-form>p.muted{margin:-8px 0 0}.line-form-header .muted{margin:0}.line-form-section{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid var(--border);border-radius:10px;background:var(--surface)}.line-form-section>h4{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.9px;text-transform:uppercase}.line-form-section>h4:after{content:"";flex:1;height:1px;background:var(--border)}.line-form-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-items:stretch;gap:14px 16px}.invoice-header-card .line-form-grid{align-items:start}.line-form-grid>.form-field{grid-column:span var(--span, 12);align-items:stretch;gap:6px}.line-form-grid .span-2{--span: 2}.line-form-grid .span-3{--span: 3}.line-form-grid .span-4{--span: 4}.line-form-grid .span-6{--span: 6}.line-form-grid .span-8{--span: 8}.line-form-grid .form-field>.localized-picker,.line-form-grid .form-field>.cost-account-picker{display:flex;width:100%;flex:1 1 auto;flex-direction:column}.line-form-grid .form-field input:not([type=checkbox]):not([type=radio]),.line-form-grid .form-field select,.line-form-grid .form-field .localized-picker-trigger,.line-form-grid .form-field .cost-account-trigger{width:100%;flex:1 1 auto}.line-form-grid .form-field label{color:var(--muted);font-size:12px;letter-spacing:.2px}.line-form-grid .is-num input{font-variant-numeric:tabular-nums;text-align:right}.line-form-grid .is-amount input{font-weight:600}@container (max-width: 980px){.line-form-grid>.span-2{--span: 3}}@container (max-width: 780px){.line-form-grid>.form-field{--span: 6}.line-form-grid>.span-full{--span: 12}}@container (max-width: 460px){.line-form-grid>.form-field{--span: 12}}.line-form .schedule-preview{flex-flow:row wrap;gap:8px 10px;margin:0;padding:12px 14px;list-style:none;background:var(--bg)}.line-form .schedule-preview li{padding:4px 10px;border:1px solid var(--border);border-radius:999px;background:var(--surface)}.schedule-preview--grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;margin:0;padding:12px;border:1px solid var(--border);border-radius:8px;background:var(--bg);list-style:none}.schedule-preview--grid li{display:flex;justify-content:space-between;gap:14px;padding:8px 10px;border:1px solid var(--border);border-radius:7px;background:var(--surface);font-size:12px}.schedule-preview--grid li strong{font-variant-numeric:tabular-nums}.scope-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0;border:0;margin:0;gap:10px}.scope-choice legend{padding:0;margin-bottom:8px;color:var(--muted);font-size:12px}.scope-choice .scope-option{display:flex;align-items:flex-start;padding:12px 14px;border:1px solid var(--border);border-radius:8px;cursor:pointer;gap:10px}.scope-choice .scope-option:has(input:checked){border-color:var(--brand);background:var(--bg)}.scope-choice .scope-option:has(input:disabled){cursor:default}.scope-choice .scope-option>span{display:flex;flex-direction:column;gap:2px;font-size:13px}@media (max-width: 720px){.scope-choice{grid-template-columns:1fr}}.line-form-actions{flex-wrap:wrap;padding-top:16px;border-top:1px solid var(--border);gap:12px}.line-form-actions .row{flex-wrap:wrap}.invoice-lines-card{display:flex;flex-direction:column;gap:14px}.balance-indicator ul,.banner ul{margin:6px 0 0;padding-left:18px}
