*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.\!container{width:100%!important}.container{width:100%}@media (min-width: 640px){.\!container{max-width:640px!important}.container{max-width:640px}}@media (min-width: 768px){.\!container{max-width:768px!important}.container{max-width:768px}}@media (min-width: 1024px){.\!container{max-width:1024px!important}.container{max-width:1024px}}@media (min-width: 1280px){.\!container{max-width:1280px!important}.container{max-width:1280px}}@media (min-width: 1536px){.\!container{max-width:1536px!important}.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.h-11{height:2.75rem}.w-11{width:2.75rem}.min-w-0{min-width:0px}.border-collapse{border-collapse:collapse}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.rounded-2xl{border-radius:1rem}.rounded-\[24px\]{border-radius:24px}.border{border-width:1px}.bg-slate-950{--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.p-0{padding:0}.px-4{padding-left:1rem;padding-right:1rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-left{text-align:left}.text-\[11px\]{font-size:11px}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-medium{font-weight:500}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.tracking-\[0\.22em\]{letter-spacing:.22em}.tracking-\[0\.28em\]{letter-spacing:.28em}.text-sky-600{--tw-text-opacity: 1;color:rgb(2 132 199 / var(--tw-text-opacity, 1))}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-slate-900{--tw-text-opacity: 1;color:rgb(15 23 42 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.shadow-shell{--tw-shadow: 0 24px 70px rgba(15, 23, 42, .12);--tw-shadow-colored: 0 24px 70px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}*{box-sizing:border-box}html,body{margin:0;min-height:100%}body{font-family:Inter,Arial,Helvetica,sans-serif;background:#f4f7fb;color:#122033;transition:background .18s ease,color .18s ease}h1,h2,h3,p{margin:0}button,input,select,a,textarea{font:inherit}button,a{border:0;border-radius:14px;padding:10px 15px;text-decoration:none;cursor:pointer;font-weight:700;background:linear-gradient(135deg,#163b75,#2563eb);color:#fff;box-shadow:0 12px 24px #2563eb29;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease,color .16s ease}button.ghost{background:#eef3fbeb;color:#163b75;border:1px solid rgba(191,219,254,.9);box-shadow:0 10px 20px #94a3b81f}button:hover,a:hover{transform:translateY(-1px);box-shadow:0 16px 28px #2563eb33}button:focus-visible,a:focus-visible{outline:none;box-shadow:0 0 0 4px #2563eb24}button.danger{background:linear-gradient(135deg,#991b1b,#dc2626)}button[disabled]{opacity:.6;cursor:wait}input,select,textarea{width:100%;border:1px solid #d7e0ef;border-radius:14px;padding:12px 14px;background:linear-gradient(180deg,#fff,#f8fbff);color:#122033;box-shadow:inset 0 1px #ffffffe0;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease,color .16s ease,transform .16s ease}.invoice-payment-select{text-align:center;text-align-last:center}input:hover,select:hover,textarea:hover{border-color:#b8c7dc}input:focus,select:focus,textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 4px #3b82f624}textarea{resize:vertical;min-height:108px;line-height:1.55}.page{max-width:1440px;margin:0 auto;padding:24px 20px 48px}.hero,.actions,.tabs,.cards,.toolbar,.row-actions,.detail-grid{display:flex;gap:12px}.hero{position:relative;overflow:hidden;isolation:isolate;align-items:stretch;justify-content:space-between;padding:24px 28px;border-radius:28px;margin-bottom:22px;background:radial-gradient(circle at 82% 18%,rgba(196,181,253,.24),transparent 26%),radial-gradient(circle at 16% 12%,rgba(125,211,252,.26),transparent 30%),linear-gradient(135deg,#1b2559,#3b2f80 46%,#635bff);color:#fff;border:1px solid rgba(199,210,254,.22);box-shadow:0 26px 56px #3429783d}.hero:before,.hero:after{content:"";position:absolute;inset:auto;pointer-events:none;z-index:-1}.hero:before{top:-72px;right:-48px;width:220px;height:220px;border-radius:999px;background:radial-gradient(circle,rgba(255,255,255,.14) 0%,transparent 68%)}.hero:after{left:28px;right:28px;bottom:0;height:1px;background:linear-gradient(90deg,#ffffff14,#ffffff5c,#ffffff14)}.hero-copy,.hero-side{display:grid;gap:14px}.hero-copy{align-content:start;max-width:680px}.hero-copy h1,.hero-copy .muted,.hero-summary-card strong,.hero-summary-card small{color:#fff}.hero-copy h1{letter-spacing:-.035em;text-wrap:balance}.hero-subtitle{max-width:62ch;color:#fffc}.hero-badges,.hero-actions{display:flex;flex-wrap:wrap;gap:10px}.theme-toggle{min-width:152px;justify-content:center;gap:8px}.hero .eyebrow{color:#ffffffb3}.hero .badge{background:linear-gradient(135deg,#fff3,#ffffff1a);color:#fff;border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(10px)}.hero .badge.ok{background:#22c55e33}.hero .actions{justify-content:flex-end}.hero button{box-shadow:0 10px 24px #0f172a2e}.hero button.ghost{background:#ffffff24;color:#fff;border:1px solid rgba(255,255,255,.16)}.hero button.ghost:hover{background:#fff3;border-color:#ffffff42}.hero-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:12px}.hero-summary-card{display:grid;gap:.35rem;padding:.95rem 1rem;border-radius:20px;border:1px solid rgba(255,255,255,.14);background:linear-gradient(180deg,#ffffff29,#ffffff14);backdrop-filter:blur(10px);box-shadow:inset 0 1px #ffffff2e}.hero-summary-card span{color:#ffffffad;text-transform:uppercase;letter-spacing:.06em;font-size:.72rem;font-weight:700}.hero-summary-card strong{font-size:1.05rem}.hero-summary-card small{color:#ffffffc7;line-height:1.35}.actions,.toolbar,.row-actions{align-items:center;flex-wrap:wrap}.toolbar{width:min(360px,100%);padding:.45rem;border:1px solid rgba(191,219,254,.82);border-radius:18px;background:linear-gradient(180deg,#fffffff0,#eff6ffdb);box-shadow:0 14px 28px #94a3b81f}.toolbar>*{flex:1 1 160px;min-width:0}.toolbar input,.toolbar select{border-color:transparent;background:#fffffff0;box-shadow:inset 0 1px #ffffffd1}.toolbar input:focus,.toolbar select:focus{border-color:#3b82f647}.module-toolbar{justify-content:flex-end}.row-actions{gap:10px}.row-actions>*{min-height:40px}.tabs{flex-wrap:wrap;margin:20px 0}.tab-shell{position:sticky;top:10px;z-index:5;overflow:hidden;padding:8px;border-radius:22px;background:#ffffffe6;border:1px solid rgba(226,232,240,.92);box-shadow:0 20px 34px #635bff14;backdrop-filter:blur(10px)}.tab-shell:before{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.7),transparent 28%,transparent 72%,rgba(196,181,253,.18));pointer-events:none}.tabs button{position:relative;background:transparent;color:#4a5568;font-weight:700;border-radius:14px;padding:11px 16px;min-height:46px;letter-spacing:-.01em;transition:background .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}.tabs button:hover{background:#eef2ffeb;color:#4338ca}.tabs button.active{background:linear-gradient(135deg,#4338ca,#635bff);color:#fff;box-shadow:0 14px 26px #635bff38}.tabs button.active:after{content:"";position:absolute;inset:1px;border-radius:inherit;border:1px solid rgba(255,255,255,.18);pointer-events:none}.eyebrow{margin-bottom:8px;text-transform:uppercase;letter-spacing:.08em;color:#6f7b90;font-size:12px}.subtitle,.muted{color:#596982}.badge,.stock-badge{display:inline-flex;align-items:center;justify-content:center;padding:7px 11px;border-radius:999px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.badge{background:linear-gradient(180deg,#eef4ff,#e2ebfb);color:#1e3557;border:1px solid rgba(191,219,254,.75)}.badge.ok,.badge.role-admin{background:#dbf5e8;color:#11633f}.badge.role-caissier{background:#dbeafe;color:#1d4ed8}.badge.role-vendeur{background:#fff1d6;color:#9a5800}.badge.role-comptabilite{background:#eef2f7;color:#475569}.role-access-badge{min-width:fit-content}.stock-badge{background:#e4f0ff;color:#234770}.stock-badge.low{background:#ffe5d9;color:#8c3a10}.cards{margin:24px 0;flex-wrap:wrap}.card,.panel{background:linear-gradient(180deg,#fffffffa,#f8fbfffa);border-radius:22px;box-shadow:0 18px 48px #12203314;border:1px solid rgba(219,229,242,.88);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.card{min-width:160px;padding:20px;display:grid;gap:8px;position:relative;overflow:hidden}.card:before{content:"";position:absolute;inset:0 auto auto 0;width:100%;height:4px;background:linear-gradient(90deg,#93c5fd,#2563eb);opacity:.9}.card:hover,.panel:hover{transform:translateY(-3px);box-shadow:0 24px 48px #0f172a1c}.card span{color:#6f7b90;font-size:14px;line-height:1.4}.card strong{font-size:24px}.dashboard-card.tone-accent:before,.hero-summary-card.tone-accent{background:linear-gradient(90deg,#7dd3fc,#0ea5e9)}.dashboard-card.tone-success:before,.hero-summary-card.tone-success{background:linear-gradient(90deg,#86efac,#22c55e)}.dashboard-card.tone-warning:before,.hero-summary-card.tone-warning{background:linear-gradient(90deg,#fdba74,#f97316)}.dashboard-card.tone-default:before,.hero-summary-card.tone-default{background:linear-gradient(90deg,#cbd5e1,#64748b)}.panel{padding:22px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}.split{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:18px;align-items:start}.stock-layout,.invoices-layout{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)}.stack{display:grid;gap:16px}.panel form.stack,.invoice-form,.invoice-settings-form,.invoice-edit-panel{gap:18px}.panel form.stack>label,.invoice-settings-row label,.invoice-client-picker,.invoice-customer-grid label,.invoice-edit-panel>label{display:grid;gap:7px}.panel form.stack>label,.invoice-settings-row label,.invoice-edit-panel>label{padding:12px 14px;border:1px solid #e2e8f0;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:inset 0 1px #fffc}.panel form.stack>label>span,.invoice-settings-row label>span,.invoice-client-picker>span,.invoice-customer-grid label>span,.invoice-edit-panel>label>span{font-size:.76rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#64748b}.panel form.stack .actions,.invoice-form-actions,.invoice-draft-actions,.hero-actions{gap:10px}.panel form.stack .actions>*,.invoice-form-actions>*{min-height:42px}.section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid rgba(226,232,240,.9)}.section-head h2,.section-head h3{letter-spacing:-.01em}.section-head>div:first-child{min-width:0}.section-head.compact{margin-bottom:0;padding-bottom:0;border-bottom:0}.module-panel{position:relative;overflow:hidden}.module-panel:after{content:"";position:absolute;inset:auto -56px -56px auto;width:160px;height:160px;border-radius:999px;background:radial-gradient(circle,rgba(191,219,254,.2) 0%,transparent 70%);pointer-events:none}.module-panel-form>.section-head{margin:-4px -4px 18px;padding:16px 16px 14px;border:1px solid rgba(219,234,254,.92);border-radius:20px;background:linear-gradient(180deg,#f8fafcf5,#eff6ffeb);box-shadow:inset 0 1px #ffffffdb}.module-panel-table>.section-head{margin:-4px -4px 18px;padding:16px 16px 14px;border-bottom:1px solid rgba(219,229,242,.92);background:linear-gradient(180deg,#ffffffd6,#f8fafceb);border-radius:20px}.module-panel .section-head h2{font-size:clamp(1.1rem,1rem + .3vw,1.35rem)}.module-panel .section-head .muted{margin-top:.28rem}.form-panel,.table-panel,.detail-panel{display:grid;gap:16px}.form-panel label{display:grid;gap:6px}.simple-list,.detail-list{margin:0;padding-left:18px;display:grid;gap:8px}.detail-list.compact{padding-left:0;list-style:none}.accounting-summary-grid .detail-list.compact li,.accounting-alert-grid .detail-list.compact li{padding:12px 14px;border:1px solid rgba(226,232,240,.92);border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:inset 0 1px #ffffffd1}.accounting-alert-grid .detail-list.compact li{border-color:#fed7aadb;background:linear-gradient(180deg,#fffaf5,#fff7ed)}.detail-grid{flex-wrap:wrap}.detail-grid>div{flex:1 1 140px;border:1px solid #e6edf8;border-radius:14px;padding:12px;background:#f9fbff}.totals-list{margin-top:16px}.table-wrap{overflow:auto;scrollbar-width:thin;border-radius:22px}.module-panel-table .table-wrap{margin-top:2px}.accounting-filter-panel{position:relative;overflow:hidden;border-radius:26px;background:radial-gradient(circle at top right,rgba(14,165,233,.14),transparent 28%),radial-gradient(circle at 16% 18%,rgba(99,102,241,.1),transparent 24%),linear-gradient(180deg,#fffffffa,#f8fafcfa)}.accounting-filter-panel:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0ea5e9,#2563eb 48%,#8b5cf6)}.accounting-filter-grid,.accounting-export-columns-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.accounting-filter-panel .actions{gap:10px}.accounting-filter-panel .actions>*{border-radius:16px}.accounting-export-config{margin-top:4px;padding:14px;border:1px solid rgba(219,234,254,.92);border-radius:20px;background:linear-gradient(180deg,#f8fafcf5,#eff6ffeb)}.accounting-export-config summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;cursor:pointer;list-style:none;font-weight:800;color:#0f172a}.accounting-export-config summary::-webkit-details-marker{display:none}.accounting-export-config summary:after{content:"\25be";color:#475569;transition:transform .16s ease}.accounting-export-config[open] summary:after{transform:rotate(180deg)}.accounting-export-columns-grid{margin-top:14px}.checkbox-line{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:14px;background:#ffffffdb}.checkbox-line input{width:auto;margin:0}.accounting-cards{gap:16px}.accounting-cards .card{flex:1 1 220px;min-height:138px;background:radial-gradient(circle at top right,rgba(191,219,254,.2),transparent 30%),linear-gradient(180deg,#fff,#f8fbff)}.accounting-cards .card strong{font-size:clamp(1.45rem,1.15rem + .5vw,1.8rem)}.accounting-summary-grid>.panel,.accounting-details-grid>.panel,.accounting-alert-grid>.panel{border-color:#dbeafeeb;box-shadow:0 20px 44px #2563eb14}.accounting-details-grid .table-shell{box-shadow:inset 0 1px #ffffffc7,0 20px 40px #2563eb0f}.document-workspace-shell .invoice-list-table tbody tr{transition:background .16s ease,box-shadow .16s ease,transform .16s ease}.document-workspace-shell .invoice-list-table tbody tr:hover{transform:translate(2px);box-shadow:inset 3px 0 #635bff61}.invoice-list-table .table-actions-cell{min-width:240px}.table-shell{border:1px solid #e6edf8;border-radius:22px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:inset 0 1px #ffffffb3,0 18px 40px #0f172a0d}.compact-table{margin-top:0;min-width:100%}table{width:100%;border-collapse:separate;border-spacing:0}th,td{padding:13px 12px;border-bottom:1px solid #e8edf5;text-align:left;vertical-align:top}th{color:#6f7b90;font-size:13px;text-transform:uppercase;letter-spacing:.04em;position:sticky;top:0;z-index:1;background:linear-gradient(180deg,#f8fbff,#eff6ff)}tbody tr{transition:background .16s ease,transform .16s ease}tbody tr:nth-child(2n){background:#f8fbffb8}tbody tr:hover{background:#eef5ff;box-shadow:inset 0 1px #fff9}td strong{color:#0f172a}.table-actions-cell{min-width:190px}.table-empty{text-align:center;padding:18px 12px}.invoice-ref-cell{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.invoice-ref-main{font-family:Consolas,Courier New,monospace;font-size:.92rem;color:#0f172a;word-break:break-all}.invoice-ref-hint{display:inline-block;margin-top:3px;font-size:.72rem;color:#64748b}.invoice-creator-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:4px}.invoice-status-line{margin-top:6px}.invoice-creator-name{font-size:.78rem;color:#64748b}.copy-inline,.open-inline,.delivery-inline,.quote-inline,.pdf-inline,.release-inline{white-space:nowrap}.document-workspace-shell{gap:20px}.document-workspace-shell.workspace-creation-only,.document-workspace-shell.workspace-facture-management{grid-template-columns:minmax(0,1fr)}.document-workspace-shell.workspace-facture-management .invoice-workspace{order:1}.document-workspace-shell.workspace-facture-management .invoice-list-panel{order:2}.document-workspace-shell .invoice-list-panel,.document-workspace-shell .invoice-workspace{position:relative;overflow:hidden;border-radius:24px;border-color:#e0e7fff2;background:radial-gradient(circle at top right,rgba(196,181,253,.18),transparent 32%),linear-gradient(180deg,#fff,#fbfcff);box-shadow:0 22px 42px #635bff12}.document-workspace-shell .invoice-list-panel:after,.document-workspace-shell .invoice-workspace:after{content:"";position:absolute;inset:auto -12% -45% auto;width:220px;height:220px;border-radius:999px;background:radial-gradient(circle,rgba(255,255,255,.55) 0%,transparent 68%);opacity:.55;pointer-events:none}.document-workspace-shell .invoice-list-panel:before,.document-workspace-shell .invoice-workspace:before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#0ea5e9,#635bff 58%,#7c3aed);opacity:.95}.document-workspace-shell.workspace-tikdbs .invoice-list-panel,.document-workspace-shell.workspace-tikdbs .invoice-workspace{border-color:#ddd6feeb;background:radial-gradient(circle at top right,rgba(129,140,248,.16),transparent 32%),linear-gradient(180deg,#fff,#fbf9ff)}.document-workspace-shell.workspace-tikdbs .invoice-list-panel:before,.document-workspace-shell.workspace-tikdbs .invoice-workspace:before{background:linear-gradient(90deg,#635bff,#7c3aed 52%,#0ea5e9)}.invoice-head{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid #e6edf8}.invoice-head h2,.invoice-head h3{margin:0}.invoice-head .muted{max-width:56ch}.invoice-head-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}.workspace-mode-badge,.workspace-counter-badge{border:1px solid rgba(148,163,184,.18);box-shadow:inset 0 1px #ffffffad;backdrop-filter:blur(10px);font-weight:800;letter-spacing:.01em}.workspace-mode-badge{background:linear-gradient(135deg,#eef2fff5,#e0e7ffe6);color:#4338ca}.document-workspace-shell.workspace-tikdbs .workspace-mode-badge{background:linear-gradient(135deg,#f3e8fff0,#e0e7ffe0);color:#5b21b6}.invoice-number-badge{background:#eef2ff;color:#4f46e5}.document-type-badge{background:#eef2ff;color:#4338ca}.invoice-status-confirmed{background:#dcfce7;color:#166534}.invoice-status-pending{background:#fff7d6;color:#9a6700}.invoice-toolbar{width:min(320px,100%)}.invoice-search{background:linear-gradient(180deg,#fff,#fbfcff);border-color:#e2e8f0;box-shadow:inset 0 1px #ffffffd9,0 10px 22px #635bff0f}.invoice-form{gap:18px}.invoice-settings-form,.invoice-edit-panel{padding:18px;border:1px solid #e6edf8;border-radius:20px;background:linear-gradient(180deg,#f8fbff,#f1f5f9);box-shadow:inset 0 1px #ffffffbf,0 12px 26px #94a3b814}.invoice-settings-row{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.invoice-settings-row label{display:grid;gap:6px;flex:1 1 220px}.invoice-settings-row button{min-width:220px}.invoice-client-picker,.invoice-customer-grid label,.invoice-detail-list li,.invoice-table-wrap{border:1px solid #e6edf8;border-radius:16px;background:linear-gradient(180deg,#f8fbff,#f1f5f9)}.invoice-client-picker{display:grid;gap:6px;padding:14px}.invoice-confirm-toggle{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid #e6edf8;border-radius:16px;background:linear-gradient(180deg,#fff,#f8fbff)}.invoice-confirm-toggle input{width:auto;margin:0}.invoice-customer-grid{margin-bottom:0}.invoice-customer-grid label,.invoice-detail-list li{padding:12px}.invoice-customer-grid label{background:#fff;border-color:#edf2f7}.invoice-table-wrap{border-radius:20px;background:linear-gradient(180deg,#fff,#fbfcff);box-shadow:inset 0 1px #ffffffd9,0 12px 26px #635bff0f}.invoice-list-table th{background:#fbfcfff2;backdrop-filter:blur(10px)}.invoice-list-table tbody tr{position:relative}.invoice-lines-table tbody tr:hover,.invoice-list-table tbody tr:hover,.invoice-detail-table tbody tr:hover{background:#f8fbff}.invoice-status-line{display:flex;flex-wrap:wrap;gap:6px}.invoice-payment-chip{display:inline-flex;align-items:center;padding:7px 12px;border-radius:999px;border:1px solid rgba(199,210,254,.92);background:linear-gradient(135deg,#eef2ff,#e0e7ff);color:#4338ca;font-size:.82rem;font-weight:800;box-shadow:inset 0 1px #ffffffe0}.product-pricing-grid,.invoice-draft-summary-grid,.invoice-total-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.75rem}.mini-insight-card{padding:1rem 1.05rem;border-radius:18px;border:1px solid #e0e7ff;background:radial-gradient(circle at top right,rgba(196,181,253,.18),transparent 36%),linear-gradient(180deg,#fff,#fbfcff);display:grid;gap:.3rem;min-width:0;box-shadow:0 14px 28px #94a3b814}.mini-insight-card span,.invoice-draft-kicker{font-size:.74rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#64748b}.mini-insight-card strong,.invoice-draft-heading h3{color:#0f172a}.mini-insight-card strong{font-size:1rem}.mini-insight-card small{color:#64748b;line-height:1.4}.invoice-draft-panel{padding:1.15rem;border:1px solid #e0e7ff;border-radius:22px;background:radial-gradient(circle at top right,rgba(196,181,253,.2),transparent 35%),linear-gradient(180deg,#fcfcff,#f3f4ff);box-shadow:inset 0 1px #ffffffd1,0 20px 36px #635bff14}.invoice-draft-heading{display:flex;justify-content:space-between;align-items:center;gap:.75rem}.invoice-draft-heading h3{margin:.15rem 0 0;font-size:1.22rem}.invoice-draft-actions{display:flex;flex-wrap:wrap;gap:.65rem;padding:.45rem;border:1px solid rgba(224,231,255,.96);border-radius:20px;background:#ffffffe0;backdrop-filter:blur(10px)}.invoice-draft-actions .document-switch{border-radius:999px;border:1px solid transparent;background:transparent;color:#4f46e5;font-weight:700;padding-inline:1rem}.invoice-draft-actions .document-switch:hover{border-color:#c7d2fe;background:#fffffff5;box-shadow:0 10px 20px #635bff1a}.invoice-draft-actions .ghost.active{background:linear-gradient(135deg,#4338ca,#635bff);color:#fff;border-color:#635bff73;box-shadow:0 12px 24px #635bff38}.invoice-draft-note{display:flex;align-items:start;justify-content:space-between;gap:1rem;padding:.95rem 1rem;border-radius:16px;border:1px solid #e6edf8;background:#f8fbff}.invoice-draft-note p{margin:.35rem 0 0}.invoice-total-card.total{background:linear-gradient(180deg,#eff6ff,#dbeafe);border-color:#bfdbfe}.invoice-price-readonly{background:#f8fafc;color:#0f172a;font-weight:600}.invoice-amount{color:#0f172a;font-size:.95rem}.invoice-form-actions{justify-content:flex-start;flex-wrap:wrap;align-items:center}.invoice-total-badge{min-width:fit-content}.invoice-detail-list{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.invoice-detail-heading-block{display:grid;gap:.2rem}.invoice-detail-title-row{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem}.invoice-detail-title-row h2{margin:0}.invoice-detail-subtitle{margin:0;line-height:1.3}.invoice-detail-head{margin-bottom:12px;padding-bottom:10px}.invoice-detail-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.65rem;margin:0 0 .75rem}.invoice-detail-summary-card{min-height:88px;padding:.8rem .9rem;gap:.2rem}.invoice-detail-actions{gap:.45rem;flex-wrap:wrap}.invoice-detail-actions .badge{align-self:center}.invoice-detail-actions>*:not(.invoice-detail-more-menu){min-height:2.15rem;padding:.58rem .9rem}.invoice-detail-list li{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #e2e8f0;border-radius:14px;padding:.8rem .9rem;box-shadow:0 10px 24px #0f172a0a}.invoice-detail-list strong{display:inline-block;margin-bottom:.18rem}.open-inline,.delivery-inline,.quote-inline,.pdf-inline,.release-inline,.invoice-actions>*,.invoice-detail-actions>*:not(.invoice-detail-more-menu){display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.45rem;font-weight:700;letter-spacing:-.01em}.invoice-actions>*,.invoice-detail-actions>*:not(.invoice-detail-more-menu){box-shadow:0 10px 22px #94a3b81f}.invoice-detail-more-menu{position:relative}.invoice-detail-more-menu summary{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:2.15rem;padding:.52rem .82rem;border-radius:14px;border:1px solid rgba(191,219,254,.9);background:linear-gradient(180deg,#f8fbff,#eef4fb);color:#163b75;cursor:pointer;font-weight:700;letter-spacing:-.01em;list-style:none;box-shadow:0 10px 22px #94a3b81f;white-space:nowrap;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease,transform .14s ease}.invoice-detail-more-menu summary:hover{background:linear-gradient(180deg,#fff,#f1f5f9);border-color:#93c5fd;box-shadow:0 12px 24px #3b82f624;transform:translateY(-1px)}.invoice-detail-more-menu summary:focus-visible{outline:2px solid rgba(59,130,246,.35);outline-offset:2px}.invoice-detail-more-menu summary::-webkit-details-marker{display:none}.invoice-detail-more-menu .more-menu-icon{display:inline-flex;align-items:center;justify-content:center;width:1.1rem;height:1.1rem;border-radius:999px;background:#163b751a;font-size:.95rem;line-height:1}.invoice-detail-more-menu summary:after{content:"\25be";font-size:.85rem;transition:transform .14s ease}.invoice-detail-more-menu[open] summary:after{transform:rotate(180deg)}.invoice-detail-more-menu[open] summary{background:linear-gradient(180deg,#fff,#eff6ff);border-color:#93c5fd;box-shadow:0 14px 28px #3b82f62e}.invoice-detail-more-panel{position:absolute;top:calc(100% + .35rem);right:0;z-index:6;min-width:230px;padding:.45rem;border-radius:18px;border:1px solid rgba(219,234,254,.98);background:linear-gradient(180deg,#fffffffc,#f8fafcfa);box-shadow:0 22px 40px #0f172a29;display:grid;gap:.4rem}.invoice-detail-more-panel>*{width:100%;justify-content:flex-start;border-radius:12px;box-shadow:none}.open-inline,.delivery-inline,.quote-inline,.pdf-inline,.release-inline{transition:background .14s ease,transform .14s ease,box-shadow .14s ease,border-color .14s ease,filter .14s ease}.open-icon,.delivery-icon,.quote-icon,.pdf-icon{display:inline-flex;align-items:center;justify-content:center;width:1.15rem;height:1.15rem;border-radius:999px;line-height:1;box-shadow:inset 0 1px #ffffff42}.open-inline{background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid #cbd5e1;box-shadow:0 4px 12px #94a3b824}.open-inline:hover{border-color:#94a3b8;box-shadow:0 8px 18px #94a3b833;transform:translateY(-1px)}.open-icon{background:#163b751f;font-size:.85rem}.delivery-icon,.quote-icon,.pdf-icon{background:#ffffff29;font-size:.9rem}.delivery-inline{background:linear-gradient(135deg,#0f766e,#0d9488);color:#fff;border:1px solid #115e59;box-shadow:0 6px 16px #0f766e33}.delivery-inline:hover{background:linear-gradient(135deg,#115e59,#0f766e);border-color:#134e4a;box-shadow:0 10px 22px #0f766e3d;transform:translateY(-1px)}.quote-inline{background:linear-gradient(135deg,#7c3aed,#8b5cf6);color:#fff;border:1px solid #6d28d9;box-shadow:0 6px 16px #7c3aed33}.quote-inline:hover{background:linear-gradient(135deg,#6d28d9,#7c3aed);border-color:#5b21b6;box-shadow:0 10px 22px #7c3aed3d;transform:translateY(-1px)}.pdf-inline{background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;border:1px solid #1e293b;box-shadow:0 6px 16px #0f172a2e}.pdf-inline:hover{background:linear-gradient(135deg,#1e293b,#334155);border-color:#334155;box-shadow:0 10px 22px #0f172a3d;transform:translateY(-1px)}.release-inline{background:linear-gradient(135deg,#7c2d12,#ea580c);color:#fff;border:1px solid #9a3412;box-shadow:0 6px 16px #ea580c33}.release-inline:hover{background:linear-gradient(135deg,#9a3412,#f97316);border-color:#7c2d12;box-shadow:0 10px 22px #ea580c3d;transform:translateY(-1px)}.invoice-actions,.invoice-detail-actions{align-items:stretch;gap:.5rem;flex-wrap:wrap}.invoice-actions>*{border-radius:14px}.error{background:#ffe4e4;color:#8b1e1e}.success{background:#e5f8ec;color:#12613b}html[data-theme=dark] body,body[data-theme=dark]{background:#020617;color:#e2e8f0}[data-theme=dark] .page{color:#e2e8f0}[data-theme=dark] .panel,[data-theme=dark] .card,[data-theme=dark] .tab-shell,[data-theme=dark] .table-shell,[data-theme=dark] .invoice-client-picker,[data-theme=dark] .invoice-draft-panel,[data-theme=dark] .invoice-settings-form,[data-theme=dark] .invoice-edit-panel,[data-theme=dark] .invoice-confirm-toggle,[data-theme=dark] .mini-insight-card,[data-theme=dark] .detail-grid>div,[data-theme=dark] .invoice-detail-list li,[data-theme=dark] .invoice-table-wrap,[data-theme=dark] .invoice-customer-grid label{background:#0f172a;color:#e2e8f0;border-color:#334155;box-shadow:0 18px 40px #02061747}[data-theme=dark] .document-workspace-shell .invoice-list-panel,[data-theme=dark] .document-workspace-shell .invoice-workspace{border-color:#475569e6;background:radial-gradient(circle at top right,rgba(59,130,246,.16),transparent 34%),linear-gradient(180deg,#0f172a,#0b1220);box-shadow:0 26px 52px #0206175c}[data-theme=dark] .document-workspace-shell .invoice-list-panel:after,[data-theme=dark] .document-workspace-shell .invoice-workspace:after{background:radial-gradient(circle,rgba(59,130,246,.16) 0%,transparent 72%);opacity:.8}[data-theme=dark] .document-workspace-shell.workspace-tikdbs .invoice-list-panel,[data-theme=dark] .document-workspace-shell.workspace-tikdbs .invoice-workspace{background:radial-gradient(circle at top right,rgba(168,85,247,.16),transparent 34%),linear-gradient(180deg,#0f172a,#0b1220)}[data-theme=dark] .hero{background:radial-gradient(circle at 78% 18%,rgba(16,185,129,.16),transparent 26%),radial-gradient(circle at top left,rgba(14,165,233,.18),transparent 28%),linear-gradient(135deg,#020617,#0f172a 52%,#1e293b);border-color:#47556980;box-shadow:0 24px 50px #02061780}[data-theme=dark] .hero-summary-card{background:linear-gradient(180deg,#0f172ad1,#1e293bb8);border-color:#94a3b82e}[data-theme=dark] .hero button.ghost,[data-theme=dark] button.ghost,[data-theme=dark] .copy-inline{background:#1e293b;color:#e2e8f0;border:1px solid #334155}[data-theme=dark] .invoice-detail-more-menu summary{background:#1e293b;color:#e2e8f0;border-color:#334155}[data-theme=dark] .invoice-detail-more-menu .more-menu-icon{background:#94a3b82e}[data-theme=dark] .invoice-detail-more-menu summary:hover,[data-theme=dark] .invoice-detail-more-menu[open] summary{background:linear-gradient(180deg,#0f172a,#1e293b);border-color:#475569}[data-theme=dark] .invoice-detail-more-panel{background:#0f172afa;border-color:#334155;box-shadow:0 20px 40px #0206176b}[data-theme=dark] button,[data-theme=dark] a{box-shadow:0 12px 24px #02061752}[data-theme=dark] button:hover,[data-theme=dark] a:hover{box-shadow:0 16px 30px #02061766}[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:linear-gradient(180deg,#020617,#0b1220);color:#e2e8f0;border-color:#334155;box-shadow:inset 0 1px #94a3b80f}[data-theme=dark] input:hover,[data-theme=dark] select:hover,[data-theme=dark] textarea:hover{border-color:#475569}[data-theme=dark] input:focus,[data-theme=dark] select:focus,[data-theme=dark] textarea:focus{border-color:#38bdf8;box-shadow:0 0 0 4px #38bdf82e}[data-theme=dark] .toolbar{border-color:#475569eb;background:linear-gradient(180deg,#0f172adb,#1e293bd1);box-shadow:0 16px 32px #0206173d}[data-theme=dark] .toolbar input,[data-theme=dark] .toolbar select{background:linear-gradient(180deg,#020617eb,#0f172ae6);border-color:transparent}[data-theme=dark] .accounting-filter-panel{border-color:#475569f0;background:radial-gradient(circle at top right,rgba(14,165,233,.14),transparent 28%),radial-gradient(circle at 16% 18%,rgba(99,102,241,.12),transparent 24%),linear-gradient(180deg,#0f172afa,#020617fa)}[data-theme=dark] .accounting-export-config,[data-theme=dark] .accounting-summary-grid .detail-list.compact li,[data-theme=dark] .accounting-alert-grid .detail-list.compact li,[data-theme=dark] .checkbox-line{border-color:#334155}[data-theme=dark] .accounting-export-config{background:linear-gradient(180deg,#0f172aeb,#1e293be0)}[data-theme=dark] .accounting-export-config summary{color:#f8fafc}[data-theme=dark] .accounting-export-config summary:after{color:#94a3b8}[data-theme=dark] .checkbox-line{background:#0f172ad1}[data-theme=dark] .accounting-cards .card,[data-theme=dark] .accounting-summary-grid>.panel,[data-theme=dark] .accounting-details-grid>.panel,[data-theme=dark] .accounting-alert-grid>.panel{border-color:#334155f0;box-shadow:0 20px 44px #02061757}[data-theme=dark] .accounting-cards .card{background:radial-gradient(circle at top right,rgba(59,130,246,.18),transparent 30%),linear-gradient(180deg,#0f172a,#0b1220)}[data-theme=dark] .accounting-summary-grid .detail-list.compact li{background:linear-gradient(180deg,#0f172aeb,#1e293bd6)}[data-theme=dark] .accounting-alert-grid .detail-list.compact li{background:linear-gradient(180deg,#43140780,#1e293bd6)}[data-theme=dark] .tabs button{color:#cbd5e1}[data-theme=dark] .tab-shell{background:#0f172ac2;border-color:#334155eb;box-shadow:0 18px 34px #02061757}[data-theme=dark] .tab-shell:before{background:linear-gradient(120deg,rgba(255,255,255,.08),transparent 32%,transparent 72%,rgba(255,255,255,.04))}[data-theme=dark] .tabs button:hover{background:#1e293beb;color:#eff6ff}[data-theme=dark] .tabs button.active{background:linear-gradient(135deg,#2563eb,#0ea5e9);box-shadow:0 16px 30px #0ea5e938}[data-theme=dark] .badge,[data-theme=dark] .stock-badge,[data-theme=dark] .invoice-payment-chip{background:#1e293b;color:#cbd5e1;border-color:#334155}[data-theme=dark] .workspace-mode-badge,[data-theme=dark] .workspace-counter-badge{background:#1e293be6;border-color:#475569cc;color:#cbd5e1}[data-theme=dark] .document-workspace-shell.workspace-tikdbs .workspace-mode-badge{background:linear-gradient(135deg,#581c8780,#312e8185);color:#ddd6fe}[data-theme=dark] .open-inline{background:linear-gradient(180deg,#111827,#1e293b);border-color:#334155}[data-theme=dark] .delivery-inline{background:linear-gradient(135deg,#0f766e,#14b8a6)}[data-theme=dark] .quote-inline{background:linear-gradient(135deg,#7c3aed,#a855f7)}[data-theme=dark] .pdf-inline{background:linear-gradient(135deg,#0f172a,#334155)}[data-theme=dark] .release-inline{background:linear-gradient(135deg,#9a3412,#f97316);border-color:#c2410c}[data-theme=dark] .badge.ok,[data-theme=dark] .badge.role-admin,[data-theme=dark] .invoice-status-confirmed{background:#22c55e29;color:#86efac}[data-theme=dark] .badge.role-caissier,[data-theme=dark] .document-type-badge,[data-theme=dark] .invoice-number-badge{background:#3b82f629;color:#93c5fd}[data-theme=dark] .invoice-head{border-bottom-color:#334155}[data-theme=dark] .module-panel:after{background:radial-gradient(circle,rgba(56,189,248,.12) 0%,transparent 70%)}[data-theme=dark] .module-panel-form>.section-head,[data-theme=dark] .module-panel-table>.section-head{border-color:#334155f0;background:linear-gradient(180deg,#0f172aeb,#1e293be0)}[data-theme=dark] .invoice-search{background:linear-gradient(180deg,#020617f5,#0f172aeb);border-color:#334155;box-shadow:inset 0 1px #94a3b80f,0 12px 26px #0206173d}[data-theme=dark] .invoice-list-table th{background:#0f172aeb}[data-theme=dark] .invoice-payment-chip{background:linear-gradient(135deg,#1e293bf5,#0f172af5);color:#dbeafe}[data-theme=dark] .invoice-draft-actions{background:#0206177a;border-color:#334155}[data-theme=dark] .invoice-draft-actions .document-switch{color:#cbd5e1}[data-theme=dark] .invoice-draft-actions .document-switch:hover{background:#0f172aeb;border-color:#475569;box-shadow:0 12px 24px #0206173d}[data-theme=dark] .invoice-draft-actions .ghost.active{background:linear-gradient(135deg,#2563eb,#0ea5e9);border-color:#38bdf875;color:#eff6ff}[data-theme=dark] .badge.role-vendeur,[data-theme=dark] .invoice-status-pending,[data-theme=dark] .stock-badge.low,[data-theme=dark] .invoice-status-alert{background:#f9731629;color:#fdba74}[data-theme=dark] .badge.role-comptabilite{background:#94a3b82e;color:#cbd5e1}[data-theme=dark] .muted,[data-theme=dark] .subtitle,[data-theme=dark] .eyebrow,[data-theme=dark] th,[data-theme=dark] .card span,[data-theme=dark] .invoice-ref-hint,[data-theme=dark] .invoice-creator-name,[data-theme=dark] .mini-insight-card span,[data-theme=dark] .mini-insight-card small,[data-theme=dark] .invoice-draft-kicker{color:#94a3b8}[data-theme=dark] .hero .eyebrow,[data-theme=dark] .hero-subtitle,[data-theme=dark] .hero-summary-card span,[data-theme=dark] .hero-summary-card small{color:#e2e8f0c7}[data-theme=dark] .invoice-ref-main,[data-theme=dark] .mini-insight-card strong,[data-theme=dark] .invoice-draft-heading h3,[data-theme=dark] td strong,[data-theme=dark] .card strong,[data-theme=dark] h1,[data-theme=dark] h2,[data-theme=dark] h3{color:#f8fafc}[data-theme=dark] th,[data-theme=dark] td,[data-theme=dark] .table-shell,[data-theme=dark] .invoice-client-picker,[data-theme=dark] .invoice-confirm-toggle{border-color:#334155}[data-theme=dark] th{background:#111827}[data-theme=dark] tbody tr:nth-child(2n){background:#0f172ab8}[data-theme=dark] tbody tr:hover,[data-theme=dark] .invoice-lines-table tbody tr:hover,[data-theme=dark] .invoice-list-table tbody tr:hover,[data-theme=dark] .invoice-detail-table tbody tr:hover{background:#1e293be6}[data-theme=dark] .error{background:#7f1d1d3d;color:#fecaca}[data-theme=dark] .success{background:#14532d3d;color:#bbf7d0}[data-theme=dark] .panel form.stack>label,[data-theme=dark] .invoice-settings-row label,[data-theme=dark] .invoice-edit-panel>label{background:linear-gradient(180deg,#0b1220,#0f172a);border-color:#334155;box-shadow:inset 0 1px #94a3b80d}[data-theme=dark] .panel form.stack>label>span,[data-theme=dark] .invoice-settings-row label>span,[data-theme=dark] .invoice-client-picker>span,[data-theme=dark] .invoice-customer-grid label>span,[data-theme=dark] .invoice-edit-panel>label>span{color:#94a3b8}@media (max-width: 1180px){.split{grid-template-columns:minmax(280px,340px) minmax(0,1fr)}.hero{gap:18px}.hero-summary-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}.grid.accounting-details-grid,.grid.accounting-summary-grid,.grid.accounting-alert-grid,.accounting-filter-grid,.accounting-export-columns-grid,.invoice-total-grid,.invoice-draft-summary-grid,.product-pricing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-workspace,.invoice-list-panel{min-width:0}.invoice-settings-row{align-items:stretch}.invoice-settings-row button{min-width:0}}@media (max-width: 980px){.hero,.section-head{flex-direction:column;align-items:flex-start}.hero{padding:20px}.hero-side,.hero-summary-grid{width:100%}.hero-summary-grid{grid-template-columns:1fr}.hero .actions{justify-content:flex-start}.panel form.stack>label,.invoice-settings-row label,.invoice-edit-panel>label{padding:11px 12px}.grid,.split,.stock-layout,.invoices-layout{grid-template-columns:1fr}.invoice-toolbar,.toolbar,.module-toolbar{width:100%}.invoice-search{min-width:0}.tab-shell{position:static}.invoice-head-badges{justify-content:flex-start}.invoice-draft-actions{width:100%}.invoice-draft-actions .document-switch{flex:1 1 calc(50% - .65rem);justify-content:center}}@media (max-width: 760px){.table-shell{border-radius:16px}.mobile-cards{min-width:0}.mobile-cards thead{display:none}.mobile-cards,.mobile-cards tbody,.mobile-cards tr,.mobile-cards td{display:block;width:100%}.mobile-cards tbody{display:grid;gap:12px}.mobile-cards tr{padding:12px 14px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 12px 28px #0f172a0f}.mobile-cards td{padding:8px 0;border-bottom:1px dashed #dbe5f2;display:grid;grid-template-columns:minmax(108px,124px) minmax(0,1fr);gap:10px;align-items:start}.mobile-cards td:last-child{border-bottom:0}.mobile-cards td:before{content:attr(data-label);font-size:.72rem;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#64748b}.mobile-cards td.table-empty{display:block;text-align:left}.mobile-cards td.table-empty:before{content:none}.mobile-cards td.table-actions-cell{grid-template-columns:1fr}.mobile-cards .row-actions,.mobile-cards .invoice-actions{width:100%}.mobile-cards .row-actions>*,.mobile-cards .invoice-actions>*{flex:1 1 calc(50% - 6px)}.mobile-cards .invoice-ref-cell{align-items:flex-start}.document-workspace-shell .invoice-list-table tbody tr:hover{transform:none}[data-theme=dark] .mobile-cards tr{background:#0f172a;border-color:#334155;box-shadow:0 12px 28px #02061747}[data-theme=dark] .mobile-cards td{border-bottom-color:#334155}[data-theme=dark] .mobile-cards td:before{color:#94a3b8}.invoice-list-panel,.invoice-workspace{padding:16px}.module-panel-form>.section-head,.module-panel-table>.section-head{margin:-2px -2px 14px;padding:14px 14px 12px}.invoice-head,.invoice-detail-head{gap:10px;margin-bottom:14px}.grid.accounting-details-grid,.grid.accounting-summary-grid,.grid.accounting-alert-grid,.accounting-filter-grid,.accounting-export-columns-grid,.invoice-total-grid,.invoice-draft-summary-grid,.product-pricing-grid{grid-template-columns:1fr}.invoice-detail-title-row{align-items:flex-start}.invoice-settings-row{flex-direction:column;align-items:stretch}.invoice-settings-row button{min-width:0;width:100%}.invoice-ref-cell{align-items:flex-start}.invoice-list-table:not(.mobile-cards){min-width:760px}.invoice-lines-table,.invoice-detail-table{min-width:620px}.invoice-table-wrap{-webkit-overflow-scrolling:touch}.invoice-actions,.invoice-detail-actions,.invoice-form-actions{flex-direction:column;align-items:stretch}.invoice-actions>*,.invoice-detail-actions>*:not(.invoice-detail-more-menu),.invoice-form-actions>*{width:100%}.invoice-detail-more-menu{width:100%}.invoice-detail-more-menu summary{width:100%;justify-content:space-between}.invoice-detail-more-panel{position:static;min-width:0;margin-top:.45rem}.invoice-total-badge,.invoice-payment-chip{justify-content:center}.invoice-draft-heading,.invoice-draft-note{flex-direction:column}.invoice-draft-actions .document-switch{flex-basis:100%}.invoice-draft-note .badge{align-self:flex-start}.invoice-detail-list,.invoice-detail-summary-grid{grid-template-columns:1fr}}@media (max-width: 520px){.hero{padding:18px;border-radius:22px}.tabs button{width:100%;justify-content:center}.mobile-cards tr{padding:12px}.mobile-cards td{grid-template-columns:1fr;gap:6px}.invoice-client-picker,.invoice-customer-grid label,.invoice-detail-list li{padding:10px}.invoice-ref-main{font-size:.86rem}.copy-inline,.open-inline,.delivery-inline,.quote-inline,.pdf-inline,.release-inline{width:100%}.tab-shell{padding:6px}}@media (min-width: 1024px){.lg\:hidden{display:none}}
