/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */
@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.visible{visibility:visible}.relative{position:relative}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.table{display:table}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}}:root{--navy:#071a33;--navy-soft:#0b2548;--ink:#0d1d38;--muted:#667085;--canvas:#f7f5f1;--panel:#fff;--line:#e3e0da;--red:#ed1a4c;--red-soft:#fff0f4;--green:#25844f;--green-soft:#edf8f1;--amber:#b86412;--amber-soft:#fff5e8}*{box-sizing:border-box}html{background:var(--canvas)}body{background:var(--canvas);color:var(--ink);font-family:var(--font-geist-sans), Inter, Arial, sans-serif;margin:0}button,select,input{font:inherit}button{color:inherit}.auth-shell{background:radial-gradient(circle at 12% 8%,#ed1a4c38,#0000 28rem),radial-gradient(circle at 88% 92%,#225d9b38,#0000 30rem),linear-gradient(145deg,#06162b 0%,#0a2445 55%,#071a33 100%);place-items:center;min-height:100vh;padding:28px;display:grid;overflow:hidden}.auth-card{background:#fffffff9;border:1px solid #ffffff29;border-radius:22px;width:min(440px,100%);padding:34px;box-shadow:0 28px 80px #020c196b}.auth-brand{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;padding-bottom:22px;display:flex}.auth-brand img{width:170px;height:auto}.auth-brand>span{color:var(--navy);letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;background:#f5f7fa;border:1px solid #d9dee7;border-radius:999px;padding:7px 10px;font-size:9px;font-weight:850}.auth-heading{grid-template-columns:46px minmax(0,1fr);align-items:center;gap:14px;margin:26px 0 22px;display:grid}.auth-lock{background:var(--red-soft);width:46px;height:46px;color:var(--red);border-radius:13px;place-items:center;display:grid}.auth-heading h1{color:var(--navy);letter-spacing:-.035em;margin:0;font-size:23px}.auth-heading p{color:var(--muted);margin:5px 0 0;font-size:11px;line-height:1.55}.auth-form{gap:15px;display:grid}.auth-form label{gap:7px;display:grid}.auth-form label>span{color:#4f5d73;font-size:10px;font-weight:800}.auth-form input{width:100%;height:48px;color:var(--ink);background:#fff;border:1px solid #d8dde5;border-radius:11px;outline:none;padding:0 14px;font-size:12px;transition:all .15s ease-out}.auth-form input:focus{border-color:#dc7890;box-shadow:0 0 0 4px #ed1a4c17}.auth-form>button{cursor:pointer;background:linear-gradient(110deg, var(--red), #ff315f);color:#fff;border:0;border-radius:11px;justify-content:center;align-items:center;gap:9px;height:49px;font-size:11px;font-weight:850;display:inline-flex;box-shadow:0 12px 28px #ed1a4c3d}.auth-form>button:disabled{cursor:wait;opacity:.72}.auth-error{background:var(--red-soft);color:#ba1239;border:1px solid #f1b7c5;border-radius:9px;align-items:center;gap:8px;padding:10px 11px;font-size:10px;font-weight:700;display:flex}.auth-security-note{color:#7a8495;justify-content:center;align-items:center;gap:7px;margin-top:18px;font-size:9px;display:flex}.auth-loading{color:#fff;justify-items:center;gap:13px;font-size:11px;font-weight:700;display:grid}.crm-shell{background:radial-gradient(circle at 94% -12%, #ed1a4c0e, transparent 30rem), var(--canvas);min-height:100vh}.sidebar{z-index:20;color:#f8fbff;background:radial-gradient(circle at 0 0,#ed1a4c1f,#0000 19rem),linear-gradient(#071a33 0%,#06162b 100%);flex-direction:column;width:248px;display:flex;position:fixed;inset:0 auto 0 0;overflow-y:auto;box-shadow:10px 0 34px #071a3314}.brand{border-bottom:1px solid #ffffff14;flex-direction:column;justify-content:center;min-height:106px;padding:22px 22px 18px;display:flex}.brand img{filter:invert()brightness(1.5);width:170px;height:auto}.brand a{color:#ffffff8f;letter-spacing:.12em;text-transform:uppercase;align-self:flex-start;margin-top:8px;font-size:11px;font-weight:600;text-decoration:none}.sidebar nav{flex-direction:column;flex:1;gap:4px;padding:18px 12px;display:flex}.nav-item{cursor:pointer;color:#ffffffd1;text-align:left;background:0 0;border:1px solid #0000;border-radius:9px;align-items:center;gap:13px;min-height:46px;padding:0 13px;font-size:13px;font-weight:500;transition:all .16s ease-out;display:flex}.nav-item:hover,.nav-item:focus-visible{color:#fff;background:#fff1;outline:none}.nav-item.active{background:linear-gradient(110deg, var(--red), #ff315f);color:#fff;border-color:#ffffff24;box-shadow:0 8px 24px #ed1a4c45}.sidebar-account{position:relative}.sidebar-user{cursor:pointer;width:calc(100% - 26px);color:inherit;text-align:left;background:0 0;border:0;border-top:1px solid #ffffff1a;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;margin:0 13px;padding:17px 8px 20px;display:grid}.sidebar-user:hover,.sidebar-user:focus-visible{background:#ffffff0e;outline:none}.sidebar-user .avatar{width:38px;height:38px;color:var(--navy);background:#f4f1ec;border-radius:999px;place-items:center;font-size:12px;font-weight:800;display:grid}.sidebar-user strong,.sidebar-user small{display:block}.sidebar-user strong{font-size:12px}.sidebar-user small{color:#ffffff80;margin-top:2px;font-size:10px}.workspace{min-height:100vh;margin-left:248px;padding:24px}.topbar{justify-content:space-between;align-items:flex-start;gap:24px;padding:0 0 20px;display:flex}.title-row{align-items:center;gap:14px;display:flex}.release-pill{color:#fff;letter-spacing:.035em;white-space:nowrap;background:#0b1f39;border:1px solid #172d4b;border-radius:999px;align-items:center;height:27px;padding:0 10px;font-size:10px;font-weight:850;display:inline-flex}.topbar h1{letter-spacing:-.045em;margin:0;font-size:clamp(26px,2.2vw,34px)}.topbar p{color:var(--muted);margin:6px 0 0;font-size:13px}.sync-pill{color:#9c570d;background:#fff8eb;border:1px solid #f4c784;border-radius:8px;align-items:center;gap:8px;height:34px;padding:0 12px;font-size:12px;font-weight:600;display:inline-flex}.sync-pill i{background:#f59e0b;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #f59e0b1f}.sync-pill.connected{background:var(--green-soft);color:var(--green);border-color:#a7dfc7}.sync-pill.connected i{background:var(--green);box-shadow:0 0 0 4px #148f5c1f}.top-actions{align-items:center;gap:10px;display:flex}.refresh-data-button{cursor:pointer;border:1px solid var(--line);height:42px;color:var(--navy);background:#fff;border-radius:9px;align-items:center;gap:7px;padding:0 12px;font-size:10px;font-weight:800;display:inline-flex}.refresh-data-button:hover{background:var(--red-soft);color:var(--red);border-color:#f0a8b9}.refresh-data-button:disabled{cursor:wait;opacity:.7}.period-select{border:1px solid var(--line);background:#fff;border-radius:9px;align-items:center;gap:8px;height:42px;padding:0 12px;font-size:12px;display:flex}.period-select span{color:var(--muted)}.period-select select{cursor:pointer;color:var(--ink);background:0 0;border:0;outline:0;font-weight:650}.icon-button,.profile-button{cursor:pointer;border:1px solid var(--line);background:#fff;border-radius:9px;justify-content:center;align-items:center;height:42px;transition:all .16s ease-out;display:flex;position:relative}.icon-button{width:42px}.profile-button{gap:8px;padding:0 12px}.profile-menu-wrap{position:relative}.profile-menu{z-index:60;min-width:218px;color:var(--ink);background:#fff;border:1px solid #dfe3ea;border-radius:12px;display:grid;position:absolute;overflow:hidden;box-shadow:0 18px 48px #071a332e}.profile-menu>div{border-bottom:1px solid #ece9e4;gap:3px;padding:13px 14px;display:grid}.profile-menu strong{color:var(--navy);font-size:11px}.profile-menu small{color:var(--muted);font-size:9px}.profile-menu>button{cursor:pointer;color:#bd123a;text-align:left;background:#fff;border:0;align-items:center;gap:9px;min-height:42px;padding:0 14px;font-size:10px;font-weight:800;display:flex}.profile-menu>button:hover,.profile-menu>button:focus-visible{background:var(--red-soft);outline:none}.top-profile-menu{top:calc(100% + 9px);right:0}.sidebar-profile-menu{bottom:calc(100% + 9px);left:13px;right:13px}.icon-button:hover,.profile-button:hover{border-color:#c9c4bc;transform:translateY(-1px)}.notification b{border:2px solid var(--canvas);background:var(--red);color:#fff;border-radius:999px;place-items:center;min-width:19px;height:19px;font-size:9px;display:grid;position:absolute;top:-7px;right:-6px}.demo-notice{color:#72562a;background:#fffaf0;border:1px solid #efdfb9;border-radius:10px;align-items:center;gap:10px;margin-bottom:16px;padding:10px 13px;font-size:11px;line-height:1.55;display:flex}.demo-notice span{color:#664a19;background:#f3ddab;border-radius:6px;flex:none;padding:4px 7px;font-weight:700}.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;display:grid}.dashboard-period-panel{padding:16px 18px 6px}.dashboard-period-panel+.kpi-grid{margin-top:14px}.dashboard-period-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.dashboard-period-head h2{letter-spacing:-.02em;margin:0;font-size:15px}.dashboard-period-head p{color:var(--muted);margin:4px 0 0;font-size:10px}.dashboard-period-head>strong{background:var(--red-soft);color:var(--red);border:1px solid #ffc8d4;border-radius:999px;flex:none;padding:7px 10px;font-size:10px}.dashboard-period-panel .page-toolbar{margin:12px 0 4px}.kpi-card{border:1px solid var(--line);background:var(--panel);border-radius:12px;align-items:flex-start;gap:14px;min-height:136px;padding:20px 18px;transition:all .18s ease-out;display:flex;box-shadow:0 8px 28px #231e1706}.kpi-card:hover{border-color:#d5cfc6;transform:translateY(-2px);box-shadow:0 12px 32px #231e170f}.kpi-icon{background:var(--red-soft);width:44px;height:44px;color:var(--red);border:1px solid #ffc3d1;border-radius:10px;flex:0 0 44px;place-items:center;display:grid}.kpi-copy{min-width:0}.kpi-copy>*{display:flex}.kpi-label{color:#354056;font-size:12px;font-weight:600}.kpi-copy strong{letter-spacing:-.04em;white-space:nowrap;margin-top:7px;font-size:clamp(23px,2vw,30px)}.kpi-delta{color:var(--green);align-items:center;gap:5px;margin-top:10px;font-size:10px;font-weight:650}.kpi-delta.warning{color:var(--amber)}.panel{border:1px solid var(--line);background:var(--panel);border-radius:12px;box-shadow:0 8px 28px #231e1706}.sales-panel{margin-top:14px;padding:18px 18px 10px}.panel-head{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.panel-head h2{letter-spacing:-.025em;margin:0;font-size:17px}.panel-head p{color:var(--muted);margin:5px 0 0;font-size:10px}.chart-legend{color:var(--muted);align-items:center;gap:8px;font-size:10px;display:flex}.chart-legend span{background:var(--red);border-radius:999px;width:19px;height:3px}.chart-wrap{width:100%;margin-top:6px;overflow:hidden}.chart-wrap svg{width:100%;min-width:680px;height:238px;display:block}.chart-grid-line{stroke:#e7e5e1;stroke-dasharray:4 5;stroke-width:1px}.chart-line{fill:none;stroke:var(--red);stroke-linecap:round;stroke-linejoin:round;stroke-width:3px}.chart-point{fill:#fff;stroke:var(--red);stroke-width:3px}.chart-label{fill:#7b8495;font-family:var(--font-geist-sans), sans-serif;font-size:11px}.chart-empty-label{fill:#8a93a1;font-family:var(--font-geist-sans), sans-serif;font-size:13px;font-weight:650}.dashboard-tables{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:14px;margin-top:14px;display:grid}.table-panel{min-width:0;padding:18px}.table-panel .panel-head button{cursor:pointer;color:var(--red);background:0 0;border:0;font-size:10px;font-weight:700}.table-scroll{margin-top:14px;overflow-x:auto}.table-empty-cell{color:var(--muted);text-align:center;padding:30px 12px!important}table{border-collapse:collapse;white-space:nowrap;width:100%;font-size:10px}th{color:#7a8495;text-align:left;font-size:9px;font-weight:650}th,td{border-bottom:1px solid #eceae6;padding:10px 8px}.sortable-header{cursor:pointer;max-width:100%;color:inherit;font:inherit;letter-spacing:inherit;text-align:left;text-transform:inherit;white-space:nowrap;background:0 0;border:0;align-items:center;gap:6px;padding:7px 0;font-weight:750;display:inline-flex}.sortable-header svg{color:#a3aab5;flex:none;transition:all .14s ease-out}.sortable-header:hover,.sortable-header.active,.sortable-header:hover svg,.sortable-header.active svg{color:var(--red)}.sortable-header:focus-visible{outline-offset:3px;border-radius:4px;outline:2px solid #ed1a4c47}tbody tr{transition:all .14s ease-out}tbody tr:hover{background:#fbfaf8}.ref-cell{color:#42506a;font-weight:700}.status{border:1px solid;border-radius:6px;align-items:center;min-height:22px;padding:0 8px;font-size:9px;font-weight:650;display:inline-flex}.status.ok{background:var(--green-soft);color:var(--green);border-color:#b8dfc6}.status.low,.status.waiting{background:var(--amber-soft);color:var(--amber);border-color:#f1c993}@media (width<=1180px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-tables{grid-template-columns:1fr}}@media (width<=820px){.sidebar{width:100%;min-height:auto;position:static}.brand{min-height:auto}.brand img{width:150px}.sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.sidebar-user{display:none}.workspace{margin-left:0;padding:18px}.topbar{flex-direction:column}.top-actions{flex-wrap:wrap;width:100%}.period-select{margin-right:auto}}@media (width<=580px){.workspace{padding:14px}.sidebar nav{grid-template-columns:1fr}.nav-item:not(.active){display:none}.title-row{flex-direction:column;align-items:flex-start;gap:8px}.topbar p{max-width:280px}.top-actions .profile-button{display:flex}.demo-notice{flex-direction:column;align-items:flex-start}.kpi-grid{grid-template-columns:1fr}.kpi-card{min-height:118px}.dashboard-period-head{flex-direction:column;align-items:flex-start}.dashboard-period-head>strong{white-space:normal}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}.view-content{animation:.22s ease-out both view-enter}@keyframes view-enter{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.page-toolbar{align-items:center;gap:10px;margin:14px 0;display:flex}.search-field{border:1px solid var(--line);color:#8992a2;background:#fff;border-radius:9px;flex:1;align-items:center;gap:10px;min-width:280px;height:42px;padding:0 12px;transition:all .16s ease-out;display:flex}.search-field:focus-within{border-color:#e299ab;box-shadow:0 0 0 3px #ed1a4c14}.search-field input{min-width:0;color:var(--ink);background:0 0;border:0;outline:none;flex:1;font-size:12px}.search-field button{cursor:pointer;color:#7c8492;background:#f4f2ef;border:0;border-radius:6px;place-items:center;width:27px;height:27px;display:grid}.segmented{border:1px solid var(--line);background:#fff;border-radius:9px;align-items:center;gap:2px;height:42px;padding:3px;display:inline-flex}.segmented button{cursor:pointer;color:#7b8494;background:0 0;border:0;border-radius:6px;height:34px;padding:0 13px;font-size:10px;font-weight:650;transition:all .15s ease-out}.segmented button:hover{color:var(--ink)}.segmented button.active{background:var(--red-soft);color:var(--red);box-shadow:inset 0 0 0 1px #ffc8d4}.outline-button,.primary-button{cursor:pointer;white-space:nowrap;border-radius:9px;justify-content:center;align-items:center;gap:8px;height:42px;padding:0 14px;font-size:10px;font-weight:700;transition:all .16s ease-out;display:inline-flex}.outline-button{border:1px solid var(--line);background:#fff}.outline-button:hover{background:#fcfbf9;border-color:#cfc9c0}.primary-button{border:1px solid var(--red);background:var(--red);color:#fff;box-shadow:0 7px 18px #ed1a4c2e}.primary-button:hover{background:#d91545;transform:translateY(-1px)}.primary-button:disabled{cursor:wait;opacity:.74}.primary-button.wide{width:100%}.summary-strip{border:1px solid var(--line);background:var(--line);border-radius:11px;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;display:grid;overflow:hidden}.summary-strip>div{min-height:86px;color:var(--red);background:#fff;align-items:center;gap:12px;padding:16px 18px;display:flex}.summary-strip span{color:#7b8494;min-width:0;font-size:10px}.summary-strip strong{color:var(--ink);letter-spacing:-.03em;text-overflow:ellipsis;white-space:nowrap;margin-bottom:3px;font-size:18px;display:block;overflow:hidden}.data-panel{min-height:430px;padding:8px 16px 16px}.data-panel table{font-size:11px}.data-panel th{letter-spacing:.02em;text-transform:uppercase;background:#fbfaf8;font-size:9px}.data-panel th,.data-panel td{height:54px;padding-left:12px;padding-right:12px}.data-panel tbody tr:hover{background:#fffbfc}.table-link{cursor:pointer;color:var(--ink);text-align:left;background:0 0;border:0;padding:0;font-size:11px;font-weight:700}.table-link:hover{color:var(--red);text-underline-offset:3px;text-decoration:underline}.row-action{cursor:pointer;border:1px solid var(--line);color:#667085;background:#fff;border-radius:7px;place-items:center;width:30px;height:30px;transition:all .15s ease-out;display:grid}.row-action:hover{background:var(--red-soft);color:var(--red);border-color:#ffc1d0}.status.danger{color:#c5284e;background:#fff0f3;border-color:#f3b9c7}.status.partial{color:#5f61ac;background:#f2f2ff;border-color:#c7c8ee}.amount-due{color:#b65b15;font-weight:700}.amount-clear{color:var(--green);font-weight:700}.source-badge{color:#59657b;background:#f7f8fa;border:1px solid #d5dae3;border-radius:6px;align-items:center;height:22px;padding:0 7px;font-size:9px;font-weight:700;display:inline-flex}.ref-source-cell{min-width:128px}.ref-source-cell>span{margin-bottom:5px;display:block}.empty-state{color:#9aa2af;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;min-height:340px;display:flex}.empty-state strong{color:#4a5568;font-size:13px}.empty-state span{font-size:11px}.detail-topline{justify-content:space-between;align-items:center;gap:20px;margin-bottom:12px;display:flex}.detail-topline>span{color:#7a8495;font-size:10px}.back-button{cursor:pointer;color:var(--red);background:0 0;border:0;align-items:center;gap:8px;padding:0;font-size:11px;font-weight:700;display:inline-flex}.product-identity{align-items:center;gap:16px;padding:20px;display:flex}.product-mark{background:var(--red-soft);width:58px;height:58px;color:var(--red);border:1px solid #ffc4d2;border-radius:13px;flex:0 0 58px;place-items:center;display:grid}.eyebrow{color:var(--red);letter-spacing:.1em;text-transform:uppercase;font-size:9px;font-weight:800}.product-identity h2{letter-spacing:-.03em;margin:4px 0 2px;font-size:21px}.product-identity p{color:var(--muted);margin:0;font-size:10px}.product-price{text-align:right;margin-left:auto}.product-price>*{display:block}.product-price span,.product-price small{color:var(--muted);font-size:9px}.product-price strong{margin:5px 0 3px;font-size:19px}.detail-period{justify-content:flex-end;align-items:center;gap:12px;margin:12px 0;display:flex}.detail-period>span{color:var(--muted);font-size:10px;font-weight:650}.product-kpis .kpi-card{min-height:126px}.detail-grid{grid-template-columns:minmax(0,1.45fr) minmax(280px,.55fr);gap:14px;margin-top:14px;display:grid}.mini-chart-panel,.stock-card{min-height:280px;padding:18px}.bar-chart{background:repeating-linear-gradient(#0000 0 46px,#e3e0dab3 47px);border-bottom:1px solid #e7e3dd;justify-content:space-between;align-items:flex-end;gap:7px;height:190px;margin-top:18px;padding:0 8px;display:flex}.bar-chart>div{flex-direction:column;justify-content:flex-end;align-items:center;width:100%;height:100%;display:flex}.bar-chart span{background:linear-gradient(180deg, #f54b73, var(--red));border-radius:6px 6px 0 0;width:min(27px,66%);min-height:8px;transition:height .32s ease-out;box-shadow:0 7px 18px #ed1a4c21}.bar-chart small{color:#8b93a0;margin:7px 0 -22px;font-size:8px}.stock-card .panel-head>svg{color:var(--red)}.stock-meter{margin-top:36px}.stock-meter>div:first-child{align-items:baseline;gap:8px;display:flex}.stock-meter strong{letter-spacing:-.06em;font-size:40px}.stock-meter span{color:var(--muted);font-size:10px}.meter-track{background:#eeeae4;border-radius:999px;height:10px;margin-top:22px;overflow:hidden}.meter-track span{border-radius:inherit;background:linear-gradient(90deg, var(--red), #ff7191);height:100%;display:block}.meter-labels{justify-content:space-between;margin-top:9px;display:flex}.buyers-panel,.sales-panel.compact{margin-top:14px}.sales-breakdown{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;display:grid}.ranking-panel{padding:18px}.ranking-row{border-bottom:1px solid #ece9e4;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:56px;display:grid}.ranking-row>span{color:#7d8491;background:#f5f3f0;border-radius:7px;place-items:center;width:25px;height:25px;font-size:9px;font-weight:800;display:grid}.ranking-row strong,.ranking-row small{display:block}.ranking-row strong{font-size:10px}.ranking-row small{color:var(--muted);margin-top:3px;font-size:8px}.ranking-row b{font-size:10px}.report-topbar{justify-content:space-between;align-items:center;gap:20px;padding:16px 18px;display:flex}.report-topbar>div:first-child{color:var(--red);align-items:center;gap:11px;display:flex}.report-topbar strong,.report-topbar span span{display:block}.report-topbar strong{color:var(--ink);font-size:11px}.report-topbar span span{color:var(--muted);margin-top:3px;font-size:9px}.report-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:14px;display:grid}.report-card{grid-template-columns:46px minmax(0,1fr);gap:14px;min-height:200px;padding:19px;display:grid}.report-icon{background:var(--red-soft);width:46px;height:46px;color:var(--red);border:1px solid #ffc7d4;border-radius:11px;place-items:center;display:grid}.report-card h2{margin:3px 0 7px;font-size:14px}.report-card p{color:var(--muted);margin:0;font-size:10px;line-height:1.6}.report-card button{cursor:pointer;border:1px solid var(--line);height:38px;color:var(--red);background:#fff;border-radius:8px;grid-column:1/-1;justify-content:center;align-self:end;align-items:center;gap:8px;font-size:10px;font-weight:700;display:inline-flex}.report-card button:hover{background:var(--red-soft);border-color:#ffc1d0}.sync-hero{grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:18px;padding:22px;display:grid}.sync-hero-icon{background:var(--navy);color:#fff;border-radius:15px;place-items:center;width:62px;height:62px;display:grid;box-shadow:0 10px 25px #071a332b}.sync-hero h2{letter-spacing:-.03em;margin:4px 0 6px;font-size:21px}.sync-hero p{max-width:700px;color:var(--muted);margin:0;font-size:10px;line-height:1.6}.connection-state{background:#fff9ee;border:1px solid #f1d09d;border-radius:10px;min-width:180px;padding:12px 14px}.connection-state>span{color:#99570e;align-items:center;gap:8px;font-size:11px;font-weight:750;display:flex}.connection-state i{background:#f59e0b;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #f59e0b1f}.connection-state small{color:#9a784d;margin-top:5px;font-size:8px;display:block}.sync-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px;display:grid}.sync-card{grid-template-columns:34px minmax(0,1fr);gap:11px;min-height:156px;padding:17px 17px 38px;display:grid;position:relative}.step-number{background:var(--navy);color:#fff;border-radius:9px;place-items:center;width:34px;height:34px;font-size:12px;font-weight:800;display:grid}.sync-card h3{margin:3px 0 6px;font-size:12px}.sync-card p{color:var(--muted);margin:0;font-size:9px;line-height:1.55}.sync-card small{color:#667085;margin-top:7px;font-size:8px;line-height:1.45;display:block}.step-state{color:#a46a20;align-items:center;gap:5px;font-size:8px;font-weight:700;display:inline-flex;position:absolute;bottom:14px;left:62px}.step-state.completed{color:var(--green)}.step-state.ready{color:#2563eb}.sync-lower-grid{grid-template-columns:minmax(0,1.25fr) minmax(310px,.75fr);gap:14px;margin-top:14px;display:grid}.mapped-data,.connector-card{padding:20px}.mapped-data .panel-head>svg{color:var(--green)}.mapping-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:17px;display:grid}.mapping-list>div{background:#fcfbf9;border:1px solid #e8e5df;border-radius:9px;grid-template-columns:27px minmax(0,1fr);align-content:center;gap:2px 9px;min-height:62px;padding:9px;display:grid}.mapping-list>div>span{background:var(--green-soft);width:27px;height:27px;color:var(--green);border-radius:7px;grid-row:1/3;place-items:center;display:grid}.mapping-list strong{font-size:9px}.mapping-list small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:8px;overflow:hidden}.connector-card{text-align:center}.connector-visual{justify-content:center;align-items:center;gap:13px;margin:4px 0 18px;display:flex}.connector-visual>span{border:1px solid var(--line);background:#fff;border-radius:10px;place-items:center;width:88px;height:58px;display:grid}.connector-visual img{width:70px;height:auto}.connector-visual>div{gap:4px;display:flex}.connector-visual>div i{background:var(--red);border-radius:50%;width:5px;height:5px}.connector-visual .sage-box{color:#fff;background:#0d6b4d;font-size:13px;font-weight:800}.connector-card h2{margin:0;font-size:15px}.connector-card>p{color:var(--muted);margin:7px 0 17px;font-size:9px;line-height:1.55}.test-message{background:var(--amber-soft);color:var(--amber);border-radius:7px;justify-content:center;align-items:center;gap:7px;margin-top:10px;padding:8px;font-size:8px;font-weight:700;display:flex}.test-message.success{background:var(--green-soft);color:var(--green)}.spin{animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.architecture-card{justify-content:space-between;align-items:center;gap:20px;margin-top:14px;padding:16px 18px;display:flex}.architecture-card>div{color:var(--green);align-items:center;gap:11px;display:flex}.architecture-card strong,.architecture-card span span{display:block}.architecture-card strong{color:var(--ink);font-size:10px}.architecture-card span span{color:var(--muted);margin-top:3px;font-size:8px;line-height:1.45}.architecture-card a{color:var(--red);white-space:nowrap;align-items:center;gap:7px;font-size:9px;font-weight:700;text-decoration:none;display:inline-flex}.modal-backdrop{z-index:100;-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px);background:#030f1e94;place-items:start center;padding:13vh 18px;display:grid;position:fixed;inset:0}.search-modal{background:#fff;border:1px solid #ffffff59;border-radius:14px;width:min(620px,100%);animation:.18s ease-out both modal-enter;overflow:hidden;box-shadow:0 30px 90px #030f1e59}@keyframes modal-enter{0%{opacity:0;transform:translateY(-10px)scale(.985)}}.search-modal-field{border-bottom:1px solid var(--line);color:#8e96a4;align-items:center;gap:11px;height:62px;padding:0 17px;display:flex}.search-modal-field input{min-width:0;color:var(--ink);background:0 0;border:0;outline:none;flex:1;font-size:13px}.search-modal-field button{cursor:pointer;background:#f4f2ef;border:0;border-radius:7px;place-items:center;width:32px;height:32px;display:grid}.search-suggestions{padding:14px}.global-machine-results{border-bottom:1px solid var(--line);max-height:340px;padding:14px;overflow-y:auto}.global-machine-results>span{color:#9299a5;letter-spacing:.1em;text-transform:uppercase;margin:0 5px 8px;font-size:8px;font-weight:800;display:block}.global-machine-results>button{cursor:pointer;width:100%;color:var(--ink);text-align:left;background:0 0;border:1px solid #0000;border-radius:9px;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;gap:11px;padding:10px;display:grid}.global-machine-results>button:hover{background:var(--red-soft);border-color:#f4cad5}.global-machine-results>button>svg:first-child{color:var(--red)}.global-machine-results strong,.global-machine-results small{display:block}.global-machine-results strong{color:var(--navy);letter-spacing:.03em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:10px}.global-machine-results small{color:var(--muted);margin-top:3px;font-size:8px}.global-search-empty{color:var(--muted);text-align:center;background:#f7f6f3;border-radius:8px;padding:16px;font-size:9px}.search-suggestions>span{color:#9299a5;letter-spacing:.1em;text-transform:uppercase;margin:0 5px 8px;font-size:8px;font-weight:800;display:block}.search-suggestions>button{cursor:pointer;text-align:left;background:0 0;border:0;border-radius:9px;grid-template-columns:35px minmax(0,1fr) auto;align-items:center;gap:10px;width:100%;padding:10px;display:grid}.search-suggestions>button:hover{background:#f8f6f2}.search-suggestions>button>svg:first-child{color:var(--red)}.search-suggestions strong,.search-suggestions small{display:block}.search-suggestions strong{font-size:10px}.search-suggestions small{color:var(--muted);margin-top:3px;font-size:8px}@media (width<=1180px){.summary-strip,.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sync-grid{grid-template-columns:1fr}.sync-card{min-height:115px}}@media (width<=940px){.page-toolbar{flex-wrap:wrap;align-items:stretch}.search-field{flex-basis:100%;min-width:100%}.detail-grid,.sync-lower-grid,.sales-breakdown{grid-template-columns:1fr}.sync-hero{grid-template-columns:62px minmax(0,1fr)}.connection-state{grid-column:1/-1}}@media (width<=680px){.summary-strip,.report-grid,.mapping-list{grid-template-columns:1fr}.page-toolbar .segmented{order:2;width:100%}.page-toolbar .segmented button{flex:1}.product-identity{flex-wrap:wrap;align-items:flex-start}.product-price{text-align:left;width:100%;margin-left:74px}.detail-topline{flex-direction:column;align-items:flex-start}.detail-period{flex-direction:column;align-items:stretch}.detail-period .segmented{width:100%}.detail-period .segmented button{flex:1}.sync-hero{grid-template-columns:1fr}.architecture-card,.report-topbar{flex-direction:column;align-items:flex-start}}.detail-period>div:first-child{gap:3px;margin-right:auto;display:grid}.detail-period>div:first-child strong{color:var(--ink);font-size:11px}.detail-period>div:first-child small{color:var(--muted);font-size:9px}.detail-period .page-toolbar{margin:0}.serial-cell{color:var(--navy);letter-spacing:.035em;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:10px;font-weight:850}.serial-chips{white-space:normal;flex-wrap:wrap;gap:5px;max-width:310px;display:flex}.serial-sync-alert{color:#94560d;background:#fff8eb;border:1px solid #f2c27d;border-radius:11px;align-items:flex-start;gap:13px;margin-top:14px;padding:15px 17px;display:flex}.serial-sync-alert>span{background:#ffedcc;border-radius:9px;flex:0 0 36px;place-items:center;width:36px;height:36px;display:grid}.serial-sync-alert strong{color:#6f3d05;font-size:11px}.serial-sync-alert p{margin:4px 0 0;font-size:9px;line-height:1.55}.serial-sync-alert code{color:#7d4200;background:#fff;border-radius:4px;margin:0 4px;padding:2px 5px;font-size:9px;font-weight:850}.serial-chips button,.serial-chips>span{min-height:24px;color:var(--navy);letter-spacing:.025em;white-space:nowrap;background:#f7f9fb;border:1px solid #dbe2ea;border-radius:6px;align-items:center;gap:5px;padding:4px 7px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:8px;font-weight:800;display:inline-flex}.serial-chips button{cursor:pointer;transition:all .14s ease-out}.serial-chips button:hover{background:var(--red-soft);color:var(--red);border-color:#ef9fb4}.serial-empty{color:#a3aab4}.cell-subtitle{color:var(--muted);margin-top:3px;font-size:8px;font-weight:500;display:block}.maintenance-count{min-width:28px;height:28px;color:var(--navy);background:#eef2f7;border-radius:8px;place-items:center;font-weight:900;display:inline-grid}.machine-drawer{width:min(900px,94vw)}.machine-hero{border:1px solid var(--line);background:#fff;border-radius:12px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;padding:18px;display:grid}.machine-icon{background:linear-gradient(145deg, var(--navy), #173456);color:#fff;border-radius:13px;place-items:center;width:58px;height:58px;display:grid}.machine-hero>div:nth-child(2){gap:3px;display:grid}.machine-hero>div:nth-child(2) span,.machine-maintenance-summary span{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-size:8px;font-weight:850}.machine-hero>div:nth-child(2) strong{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:18px}.machine-hero>div:nth-child(2) small,.machine-maintenance-summary small{color:var(--muted);font-size:9px}.machine-maintenance-summary{background:linear-gradient(135deg,#fff,#fff4f7);border:1px solid #f2c1ce;border-radius:12px;justify-content:space-between;align-items:center;gap:20px;padding:17px 18px;display:flex}.machine-maintenance-summary>div{gap:4px;display:grid}.machine-maintenance-summary strong{color:var(--red);font-size:25px}.ticket-history{padding:0;overflow:hidden}.ticket-history .panel-head{padding:18px}.ticket-history-item{border-top:1px solid var(--line);justify-content:space-between;align-items:flex-start;gap:20px;padding:17px 18px;display:flex}.ticket-history-item>div{gap:5px;display:grid}.ticket-history-item>div:last-child{justify-items:end}.ticket-history-item span,.ticket-history-item small{color:var(--muted);font-size:9px}.ticket-history-item strong{font-size:12px}.ticket-history-item p{color:var(--ink);margin:0;font-size:10px}.ticket-form-drawer{width:min(680px,94vw)}.ticket-form label{gap:7px;display:grid}.ticket-form label>span,.status-select>span{color:#687386;letter-spacing:.06em;text-transform:uppercase;font-size:9px;font-weight:850}.ticket-form input,.ticket-form select,.ticket-form textarea,.status-select select{border:1px solid var(--line);width:100%;color:var(--ink);font:inherit;background:#fff;border-radius:9px;outline:none;padding:11px 12px;font-size:11px;transition:all .15s ease-out}.ticket-form input:focus,.ticket-form select:focus,.ticket-form textarea:focus,.status-select select:focus{border-color:#e299ab;box-shadow:0 0 0 3px #ed1a4c14}.ticket-form textarea{resize:vertical}.ticket-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.selected-machine-card{color:var(--navy);background:#f5f8fb;border:1px solid #dfe5ec;border-radius:10px;align-items:center;gap:12px;padding:13px 14px;display:flex}.selected-machine-card>div{gap:3px;display:grid}.selected-machine-card strong{font-size:11px}.selected-machine-card span{color:var(--muted);font-size:9px}.form-error{background:var(--red-soft);color:var(--red);border:1px solid #f3bac7;border-radius:9px;align-items:center;gap:8px;padding:11px 12px;font-size:10px;font-weight:700;display:flex}.ticket-form-actions{border-top:1px solid var(--line);justify-content:flex-end;gap:9px;padding-top:16px;display:flex}.secondary-button{cursor:pointer;border:1px solid var(--line);height:42px;color:var(--ink);background:#fff;border-radius:9px;justify-content:center;align-items:center;padding:0 15px;font-size:10px;font-weight:750;display:inline-flex}.maintenance-toolbar{align-items:center;gap:10px;margin:14px 0;display:flex}.maintenance-toolbar .page-toolbar{flex:1;min-width:0;margin:0}.status-select{gap:3px;min-width:130px;display:grid}.status-select select{height:42px;padding:0 10px}@media (width<=1120px){.detail-period{flex-direction:column;align-items:stretch}.detail-period .page-toolbar,.maintenance-toolbar{flex-wrap:wrap;align-items:stretch}.maintenance-toolbar .page-toolbar{min-width:100%}}@media (width<=680px){.machine-hero{grid-template-columns:auto minmax(0,1fr)}.machine-hero>.status{grid-column:1/-1;justify-self:start}.machine-maintenance-summary,.ticket-history-item,.ticket-form-actions{flex-direction:column;align-items:stretch}.ticket-history-item>div:last-child{justify-items:start}.ticket-form-grid{grid-template-columns:1fr}.maintenance-toolbar .primary-button,.status-select{width:100%}}.amount-mode-switch{background:#eef1f5;border:1px solid #d9dfe7;border-radius:9px;gap:3px;padding:3px;display:inline-flex}.amount-mode-switch button{cursor:pointer;color:#657084;background:0 0;border:0;border-radius:6px;min-width:47px;height:32px;font-size:11px;font-weight:800}.amount-mode-switch button.active{background:var(--navy);color:#fff;box-shadow:0 3px 10px #071a3333}.date-range-filter{border:1px solid var(--line);background:#fff;border-radius:9px;align-items:center;gap:7px;min-height:42px;padding:4px 7px;display:flex}.date-range-label{color:var(--navy);align-items:center;gap:6px;padding:0 5px;font-size:10px;font-weight:800;display:inline-flex}.date-range-filter label{border-left:1px solid #ece9e3;grid-template-columns:auto minmax(112px,1fr);align-items:center;gap:5px;padding-left:8px;display:grid}.date-range-filter small{color:#8a93a1;text-transform:uppercase;font-size:8px;font-weight:800}.date-range-filter input{min-width:112px;color:var(--ink);background:0 0;border:0;outline:none;font-size:10px;font-weight:700}.date-range-filter.compact{flex-wrap:wrap}.date-reset{cursor:pointer;background:var(--red-soft);width:28px;height:28px;color:var(--red);border:0;border-radius:6px;place-items:center;display:grid}.clickable-row{cursor:pointer}.clickable-row:hover td{background:#fff8fa}.detail-backdrop{z-index:120;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:#030f1e94;justify-content:flex-end;display:flex;position:fixed;inset:0}.detail-drawer{background:#f7f5f1;width:min(960px,92vw);height:100%;animation:.21s ease-out both drawer-enter;overflow-y:auto;box-shadow:-24px 0 70px #030f1e4d}.client-drawer{width:min(1120px,94vw)}@keyframes drawer-enter{0%{opacity:0;transform:translate(28px)}}.drawer-head{z-index:4;background:radial-gradient(circle at 95% 0, #ed1a4c3d, transparent 20rem), var(--navy);color:#fff;border-bottom:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:20px;padding:24px 28px;display:flex;position:sticky;top:0}.drawer-head span{color:#ff8ca8;letter-spacing:.13em;font-size:9px;font-weight:900}.drawer-head h2{margin:5px 0 2px;font-size:25px}.drawer-head p{color:#ffffffa6;margin:0;font-size:11px}.drawer-head button{cursor:pointer;color:#fff;background:#ffffff14;border:1px solid #ffffff26;border-radius:9px;place-items:center;width:38px;height:38px;display:grid}.drawer-body{gap:18px;padding:24px 28px 42px;display:grid}.invoice-meta,.client-contact-strip{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.invoice-meta.machine-trace-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.invoice-meta>div,.client-contact-strip>div{border:1px solid var(--line);background:#fff;border-radius:10px;gap:4px;padding:14px 16px;display:grid}.invoice-meta span,.client-contact-strip span,.invoice-summary-grid span{color:#8a93a1;letter-spacing:.08em;text-transform:uppercase;font-size:8px;font-weight:900}.invoice-meta strong,.client-contact-strip strong{font-size:12px}.invoice-meta small{color:var(--muted);font-size:9px}.invoice-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.invoice-summary-grid>div{border:1px solid var(--line);background:#fff;border-radius:10px;gap:7px;padding:15px 16px;display:grid}.invoice-summary-grid>div.highlight{background:linear-gradient(140deg, #fff, var(--red-soft));border-color:#f5abc0}.invoice-summary-grid strong{font-size:16px}.invoice-products,.client-invoice-card,.period-invoices-panel{border:1px solid var(--line);background:#fff;border-radius:12px;overflow:hidden}.invoice-serial-summary{background:linear-gradient(135deg,#fff,#f7f9fb);border:1px solid #dbe2ea;border-radius:11px;justify-content:space-between;align-items:center;gap:18px;min-height:72px;padding:14px 16px;display:flex}.invoice-serial-summary>div:first-child{flex:none;gap:4px;display:grid}.invoice-serial-summary>div:first-child span{color:var(--muted);letter-spacing:.08em;text-transform:uppercase;font-size:8px;font-weight:850}.invoice-serial-summary>div:first-child strong{color:var(--navy);font-size:12px}.invoice-serial-summary .serial-chips{justify-content:flex-end;max-width:none}.section-title-row,.client-invoice-card-head,.drawer-filter-block{justify-content:space-between;align-items:center;gap:18px;padding:17px 19px;display:flex}.section-title-row{border-bottom:1px solid var(--line)}.section-title-row h3,.client-invoice-card h3,.drawer-filter-block h3{margin:0;font-size:13px}.section-title-row p,.drawer-filter-block p{color:var(--muted);margin:4px 0 0;font-size:9px}.ttc-badge,.mode-chip{background:var(--red-soft);color:var(--red);border-radius:999px;padding:7px 10px;font-size:8px;font-weight:900}.invoice-lines-table table{min-width:930px}.invoice-lines-empty{color:var(--muted);text-align:center;padding:28px 18px;font-size:10px}.drawer-filter-block{border:1px solid var(--line);background:#fff;border-radius:11px}.client-invoice-list{gap:14px;display:grid}.client-invoice-card-head{border-bottom:1px solid var(--line)}.client-invoice-card-head span{color:var(--muted);font-size:9px}.client-invoice-total{justify-items:end;gap:3px;display:grid}.client-invoice-total small{color:var(--muted);font-size:8px;font-weight:800}.client-invoice-total strong{font-size:17px}.client-invoice-card .invoice-summary-grid{padding:12px}.open-full-invoice{cursor:pointer;border:0;border-top:1px solid var(--line);width:100%;min-height:40px;color:var(--red);background:#fbfaf8;justify-content:center;align-items:center;gap:7px;font-size:9px;font-weight:900;display:flex}.period-invoices-panel{margin-top:16px}@media (width<=1040px){.date-range-filter{flex-wrap:wrap;width:100%}.date-range-filter label{flex:1}.invoice-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=680px){.top-actions{flex-wrap:wrap;justify-content:flex-end}.amount-mode-switch{order:2}.detail-drawer,.client-drawer{width:100vw}.drawer-head,.drawer-body{padding-left:16px;padding-right:16px}.invoice-meta,.client-contact-strip,.invoice-summary-grid,.invoice-meta.machine-trace-grid{grid-template-columns:1fr}.invoice-serial-summary{flex-direction:column;align-items:flex-start}.invoice-serial-summary .serial-chips{justify-content:flex-start}.section-title-row,.drawer-filter-block{flex-direction:column;align-items:flex-start}.date-range-filter label{grid-template-columns:1fr;width:calc(50% - 6px)}}.client-analysis-builder{gap:18px;padding:21px;display:grid}.analysis-builder-head,.analysis-result-title{align-items:center;gap:13px;display:flex}.analysis-builder-head h2,.analysis-result-title h2,.analysis-product-result-head h3{color:var(--ink);margin:0}.analysis-builder-head h2{font-size:15px}.analysis-builder-head p,.analysis-result-title p{color:var(--muted);margin:4px 0 0;font-size:9px;line-height:1.55}.analysis-builder-icon{background:linear-gradient(145deg, var(--navy), #173456);color:#fff;border-radius:11px;flex:0 0 43px;place-items:center;width:43px;height:43px;display:grid}.analysis-config-grid{grid-template-columns:minmax(280px,.75fr) minmax(500px,1.4fr);gap:14px;display:grid}.analysis-field,.analysis-period{border:1px solid var(--line);background:#fbfaf8;border-radius:11px;align-content:start;gap:8px;padding:14px;display:grid}.analysis-field>span,.analysis-step-label,.analysis-product-picker-head>div>span,.ticket-issue-card>span,.ticket-status-editor>div:first-child>span,.previous-intervention-note>span{color:#687386;letter-spacing:.08em;text-transform:uppercase;font-size:8px;font-weight:900}.analysis-field select,.analysis-client-input{border:1px solid var(--line);width:100%;min-height:42px;color:var(--ink);font:inherit;background:#fff;border-radius:9px;outline:none;padding:0 12px;font-size:10px}.analysis-field select:focus,.analysis-client-input:focus-within{border-color:#e299ab;box-shadow:0 0 0 3px #ed1a4c14}.analysis-client-field,.analysis-client-picker{position:relative}.analysis-client-input{color:var(--muted);align-items:center;gap:8px;padding:0 10px;transition:all .15s ease-out;display:flex}.analysis-client-input input{min-width:0;min-height:40px;color:var(--ink);font:inherit;background:0 0;border:0;outline:none;flex:1;font-size:10px}.analysis-client-input button{cursor:pointer;width:28px;height:28px;color:var(--muted);background:#f0f3f6;border:0;border-radius:7px;place-items:center;display:grid}.analysis-client-results{z-index:25;background:#fff;border:1px solid #dce2e9;border-radius:10px;max-height:310px;padding:6px;display:grid;position:absolute;top:calc(100% + 7px);left:0;right:0;overflow-y:auto;box-shadow:0 18px 42px #03142629}.analysis-client-results>button{cursor:pointer;min-height:51px;color:var(--ink);text-align:left;background:0 0;border:0;border-radius:8px;justify-content:space-between;align-items:center;gap:12px;padding:9px 10px;display:flex}.analysis-client-results>button:hover,.analysis-client-results>button.selected{background:var(--red-soft);color:var(--red)}.analysis-client-results>button>span{gap:3px;min-width:0;display:grid}.analysis-client-results strong{color:var(--ink);text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.analysis-client-results small{color:var(--muted);font-size:8px}.analysis-client-empty{color:var(--muted);text-align:center;padding:18px 12px;font-size:9px}.analysis-client-selected{color:#28794e;background:#eef8f2;border-radius:8px;align-items:center;gap:7px;min-height:32px;padding:7px 9px;font-size:8px;display:flex}.analysis-client-selected span{flex:1;min-width:0}.analysis-client-selected small{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:8px;font-weight:800}.analysis-period-row{align-items:center;gap:10px;display:flex}.analysis-period-row .date-range-filter{flex:1;margin:0}.analysis-product-picker{border:1px solid var(--line);background:#fff;border-radius:11px;overflow:hidden}.analysis-product-picker-head{border-bottom:1px solid var(--line);background:#fbfaf8;grid-template-columns:minmax(190px,.65fr) minmax(260px,1fr) auto;align-items:center;gap:12px;padding:13px 14px;display:grid}.analysis-product-picker-head>div{gap:4px;display:grid}.analysis-product-picker-head>div>strong{color:var(--navy);font-size:11px}.analysis-product-search{border:1px solid var(--line);height:40px;color:var(--muted);background:#fff;border-radius:9px;align-items:center;gap:8px;padding:0 11px;display:flex}.analysis-product-search input{min-width:0;color:var(--ink);font:inherit;background:0 0;border:0;outline:none;flex:1;font-size:10px}.analysis-product-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:330px;padding:12px;display:grid;overflow-y:auto}.analysis-product-option{cursor:pointer;background:#fff;border:1px solid #e0e5eb;border-radius:9px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:10px 11px;transition:all .14s ease-out;display:grid}.analysis-product-option:hover{background:#fff9fa;border-color:#efa5b7}.analysis-product-option.selected{background:var(--red-soft);border-color:#ed7894}.analysis-product-option input{width:15px;height:15px;accent-color:var(--red)}.analysis-product-option>span{gap:3px;min-width:0;display:grid}.analysis-product-option strong{text-overflow:ellipsis;white-space:nowrap;font-size:10px;overflow:hidden}.analysis-product-option small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;font-size:8px;overflow:hidden}.analysis-product-option>svg{opacity:0;color:var(--red)}.analysis-product-option.selected>svg{opacity:1}.analysis-picker-empty{color:var(--muted);text-align:center;grid-column:1/-1;padding:24px;font-size:10px}.analysis-actions{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:15px;padding-top:16px;display:flex}.analysis-actions>span{color:var(--muted);font-size:9px}.analysis-actions strong{color:var(--ink)}.client-analysis-results{gap:15px;margin-top:16px;display:grid}.analysis-result-title{background:radial-gradient(circle at 95% 0, #ed1a4c33, transparent 24rem), var(--navy);color:#fff;border-radius:12px;justify-content:space-between;padding:18px 20px}.analysis-result-title>div{gap:2px;display:grid}.analysis-result-title>div>span{color:#ff8ca8;letter-spacing:.12em;font-size:8px;font-weight:900}.analysis-result-title h2{color:#fff;font-size:19px}.analysis-result-title p{color:#ffffffa8}.analysis-result-actions{align-items:center;gap:9px;display:flex}.analysis-family-summary{gap:11px;display:grid}.analysis-family-cards{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:10px;display:grid}.analysis-family-card{border:1px solid #dce3ea;border-left:4px solid var(--red);background:#fff;border-radius:11px;grid-template-columns:minmax(120px,1fr) auto auto;align-items:center;gap:16px;padding:15px 16px;display:grid;box-shadow:0 8px 25px #0314260a}.analysis-family-card>div{gap:3px;display:grid}.analysis-family-card>div:not(:first-child){border-left:1px solid var(--line);justify-items:end;padding-left:15px}.analysis-family-card span,.analysis-family-card small{color:var(--muted);font-size:8px}.analysis-family-card>div:first-child>span{color:var(--red);letter-spacing:.09em;font-weight:900}.analysis-family-card h3{color:var(--navy);margin:0;font-size:14px}.analysis-family-card strong{color:var(--navy);font-size:15px}.analysis-product-results{gap:18px;display:grid}.analysis-family-group{gap:10px;display:grid}.analysis-family-group-head{border-bottom:2px solid var(--navy);justify-content:space-between;align-items:flex-end;gap:15px;padding:4px 2px 10px;display:flex}.analysis-family-group-head>div:first-child{gap:2px;display:grid}.analysis-family-group-head>div:first-child span{color:var(--red);letter-spacing:.1em;font-size:8px;font-weight:900}.analysis-family-group-head h2{color:var(--navy);margin:0;font-size:17px}.analysis-family-group-head>div:last-child{gap:9px;display:flex}.analysis-family-group-head>div:last-child>span{color:var(--muted);background:#eef2f6;border-radius:8px;align-items:baseline;gap:7px;padding:8px 11px;font-size:8px;display:flex}.analysis-family-group-head strong{color:var(--navy);font-size:12px}.analysis-family-products{gap:11px;display:grid}.analysis-product-result{overflow:hidden}.analysis-product-result-head{border-bottom:1px solid var(--line);grid-template-columns:minmax(220px,.8fr) minmax(560px,1.5fr);align-items:center;gap:18px;padding:16px 18px;display:grid}.analysis-product-result-head>div:first-child{gap:5px;display:grid}.analysis-product-result-head>div:first-child>span{color:var(--red);letter-spacing:.06em;font-size:8px;font-weight:900}.analysis-product-result-head h3{font-size:13px}.analysis-product-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.analysis-product-metrics>span{border-left:1px solid var(--line);gap:4px;padding-left:12px;display:grid}.analysis-product-metrics small{color:var(--muted);font-size:8px}.analysis-product-metrics strong{color:var(--navy);font-size:14px}.analysis-invoice-table table{min-width:900px}.analysis-no-purchase{color:var(--muted);text-align:center;justify-items:center;gap:5px;padding:27px 18px;display:grid}.analysis-no-purchase strong{color:var(--ink);font-size:11px}.analysis-no-purchase span{font-size:9px}.ticket-open-button{cursor:pointer;color:var(--red);background:0 0;border:0;align-items:center;gap:5px;padding:2px 0;font-size:8px;font-weight:900;display:inline-flex}.ticket-detail-drawer{width:min(800px,94vw)}.ticket-detail-machine{border:1px solid var(--line);background:#fff;border-radius:11px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:13px;padding:15px;display:grid}.ticket-detail-machine>div:nth-child(2){gap:3px;display:grid}.ticket-detail-machine>div:nth-child(2)>span{color:var(--muted);letter-spacing:.07em;text-transform:uppercase;font-size:8px;font-weight:900}.ticket-detail-machine>div:nth-child(2)>strong{font-size:12px}.ticket-detail-machine>div:nth-child(2)>small{color:var(--navy);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:9px;font-weight:800}.ticket-detail-meta{grid-template-columns:repeat(4,minmax(0,1fr))}.ticket-issue-card,.previous-intervention-note{border:1px solid var(--line);background:#fff;border-radius:11px;gap:7px;padding:15px 16px;display:grid}.ticket-issue-card p,.previous-intervention-note p{color:var(--ink);margin:0;font-size:10px;line-height:1.6}.previous-intervention-note{background:#f4fbf7;border-color:#bfe1cf}.previous-intervention-note>span{color:#28794e}.ticket-service-fields{border:1px solid var(--line);background:#fff;border-radius:11px;gap:12px;padding:15px 16px;display:grid}.warranty-active{color:#28794e!important}.warranty-expired{color:#c33b3b!important}.selected-machine-card small{font-size:8px;font-weight:800}.drawer-head-actions{align-items:center;gap:8px;display:flex}.drawer-head .drawer-print-button{gap:7px;width:auto;min-width:104px;padding:0 12px;display:inline-flex}.drawer-head .drawer-print-button span{color:#fff;letter-spacing:0;font-size:9px}.maintenance-print-sheet{display:none}.ticket-status-editor{border:1px solid var(--line);background:#fbfaf8;border-radius:11px;grid-template-columns:minmax(210px,.7fr) minmax(380px,1.3fr);align-items:center;gap:18px;padding:15px 16px;display:grid}.ticket-status-editor>div:first-child{gap:5px;display:grid}.ticket-status-editor p{color:var(--muted);margin:0;font-size:9px;line-height:1.5}.ticket-status-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;display:grid}.ticket-status-options button{cursor:pointer;min-height:43px;color:var(--muted);background:#fff;border:1px solid #dce2e9;border-radius:9px;justify-content:center;align-items:center;gap:6px;font-size:9px;font-weight:850;transition:all .14s ease-out;display:inline-flex}.ticket-status-options button:hover{color:var(--red);border-color:#e7a2b2}.ticket-status-options button.active{border-color:var(--red);background:var(--red-soft);color:var(--red);box-shadow:0 0 0 3px #ed1a4c12}.intervention-note-field small{color:var(--muted);font-size:8px;line-height:1.5}@media (width<=1180px){.analysis-config-grid,.analysis-product-result-head{grid-template-columns:1fr}.analysis-period-row{flex-direction:column;align-items:stretch}}@media (width<=760px){.analysis-product-picker-head,.analysis-product-list,.analysis-product-metrics,.ticket-detail-meta,.ticket-status-editor{grid-template-columns:1fr}.analysis-actions,.analysis-result-title{flex-direction:column;align-items:stretch}.analysis-actions .primary-button,.analysis-result-title .secondary-button,.analysis-result-actions{width:100%}.analysis-result-actions{flex-direction:column;align-items:stretch}.analysis-family-card{grid-template-columns:1fr 1fr}.analysis-family-card>div:first-child{grid-column:1/-1}.analysis-family-card>div:nth-child(2){border-left:0;padding-left:0}.analysis-family-group-head{flex-direction:column;align-items:stretch}.analysis-family-group-head>div:last-child{flex-wrap:wrap}.ticket-detail-machine{grid-template-columns:auto minmax(0,1fr)}.ticket-detail-machine>.secondary-button{grid-column:1/-1}.ticket-status-options{grid-template-columns:1fr}}@media print{@page{size:A4 portrait;margin:0}html,body{background:#fff!important;width:210mm!important;height:297mm!important;margin:0!important;overflow:hidden!important}.crm-shell{width:210mm!important;height:297mm!important;display:block!important;overflow:hidden!important}.crm-shell>*{display:none!important}.crm-shell>.ticket-print-backdrop{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:0 0!important;width:210mm!important;height:297mm!important;display:block!important;position:static!important}.ticket-print-backdrop>*{display:none!important}.ticket-print-backdrop>.maintenance-print-sheet{display:flex!important}.maintenance-print-sheet{box-sizing:border-box;color:#07172b;break-after:avoid;break-inside:avoid;page-break-after:avoid;page-break-inside:avoid;-webkit-print-color-adjust:exact;print-color-adjust:exact;background:#fff;flex-direction:column;width:210mm;height:297mm;padding:9mm 11mm 8mm;font-family:Arial,Helvetica,sans-serif;position:fixed;inset:0;overflow:hidden}.maintenance-print-head{border-bottom:1.2mm solid #07172b;justify-content:space-between;align-items:flex-start;gap:10mm;padding-bottom:3.5mm;display:flex}.maintenance-print-brand{display:block}.maintenance-print-brand img{object-fit:contain;object-position:left center;filter:none;opacity:1;width:64mm;height:auto;max-height:23mm;display:block!important}.maintenance-print-number span,.maintenance-print-meta span,.maintenance-print-content span,.maintenance-print-signatures span{color:#647083;letter-spacing:.07em;text-transform:uppercase;font-size:7pt;font-weight:700}.maintenance-print-number{border:.4mm solid #cdd3dc;border-radius:2mm;justify-items:end;gap:1mm;min-width:54mm;padding:3mm;display:grid}.maintenance-print-number strong{color:#e51d49;font-size:13pt}.maintenance-print-number small{font-size:7.5pt}.maintenance-print-title{gap:1mm;padding:4mm 0 3mm;display:grid}.maintenance-print-title>span{color:#e51d49;letter-spacing:.1em;font-size:7.5pt;font-weight:800}.maintenance-print-title h1{margin:0;font-size:16pt}.maintenance-print-title p{color:#647083;margin:0;font-size:8pt}.maintenance-print-meta{border-top:.4mm solid #cdd3dc;border-left:.4mm solid #cdd3dc;grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.maintenance-print-meta>div{border-bottom:.4mm solid #cdd3dc;border-right:.4mm solid #cdd3dc;align-content:start;gap:1mm;min-height:16mm;padding:2.5mm;display:grid}.maintenance-print-meta strong{font-size:8.5pt}.maintenance-print-meta small{color:#647083;font-size:7pt}.maintenance-print-serial{font-family:Courier New,monospace;font-size:9pt!important}.maintenance-print-content{border-top:.4mm solid #cdd3dc;border-left:.4mm solid #cdd3dc;grid-template-columns:1fr 1fr;margin-top:3.5mm;display:grid}.maintenance-print-content>div{border-bottom:.4mm solid #cdd3dc;border-right:.4mm solid #cdd3dc;align-content:start;gap:1.5mm;min-height:24mm;padding:3mm;display:grid}.maintenance-print-content p{overflow-wrap:anywhere;white-space:pre-wrap;margin:0;font-size:8pt;line-height:1.35}.maintenance-print-comment{grid-column:1/-1;min-height:18mm!important}.maintenance-print-signatures{grid-template-columns:1fr 1fr;gap:7mm;margin-top:4mm;display:grid}.maintenance-print-signatures>div{border:.4mm solid #9ba5b4;border-radius:2mm;align-content:start;gap:2mm;min-height:23mm;padding:2.5mm;display:grid}.maintenance-print-signatures small{font-size:7pt}.maintenance-print-footer{text-align:center;border-top:.7mm solid #07172b;gap:.8mm;margin-top:auto;padding-top:2.5mm;display:grid}.maintenance-print-footer p{margin:0;font-size:6.4pt;line-height:1.3}}
