:root{--navy:#092448;--blue:#0767ae;--orange:#ff7b12}body{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;background:#f3f6fa;color:#1c304b}.brand-nav{background:linear-gradient(95deg,#03162f,#075897);border-bottom:4px solid var(--orange)}.navbar-brand small{font-size:10px;font-weight:400;letter-spacing:2px}.stat-card{background:white;border-radius:12px;padding:20px;border-left:5px solid var(--orange);box-shadow:0 3px 14px #1c304b0a}.stat-card small{color:#63758b}.stat-card h3{margin:6px 0 0;font-weight:750}.card{border-radius:12px}.table thead th{background:#eaf2fa;color:#183d64}.btn-primary{background:#075c9e;border-color:#075c9e}.btn-warning{background:#ff861b;border-color:#ff861b;color:#102438}.login-bg{background:linear-gradient(135deg,#082b53,#046fba)}.login-card{width:100%;max-width:430px}.line-price,.line-qty{min-width:100px}.line-desc{min-width:220px}.line-sac{min-width:95px}

/* V8 premium workspace: no changes to invoice data model */
:root{--ae-ink:#15253e;--ae-navy:#0b2345;--ae-blue:#1666ad;--ae-orange:#f58a22;--ae-edge:#e5eaf1;--ae-bg:#f5f7fb}
body:not(.login-bg){background:var(--ae-bg);font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ae-ink)}
.ae-sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;z-index:1041;background:#0d203a;color:#dbe6f5;display:flex;flex-direction:column;padding:22px 14px;box-shadow:10px 0 32px #0b203013}
.ae-brand{display:flex;gap:10px;align-items:center;padding:8px 8px 24px;color:#fff;text-decoration:none}.ae-brand img{height:52px;width:52px;object-fit:contain;border-radius:10px;background:#fff;padding:3px}.ae-brand strong{font-size:13px;letter-spacing:.015em}.ae-brand small{font-size:9px;letter-spacing:1.5px;display:block;color:#8fb1d3;margin-top:4px}
.ae-navgroup{font-size:10px;color:#7f9cbd;font-weight:800;letter-spacing:1.45px;padding:20px 12px 10px}.ae-side-link{border-radius:11px;color:#bfd0e5;text-decoration:none;display:flex;align-items:center;gap:13px;padding:11px 12px;font-weight:600;font-size:13px;transition:.15s}.ae-side-link span{font-size:18px;min-width:21px;text-align:center}.ae-side-link:hover,.ae-side-link.active{color:#fff;background:#203b5c}.ae-side-link.active{box-shadow:inset 3px 0 #f58a22}.ae-sidebar-footer{border-top:1px solid #2b435e;margin-top:auto;padding:20px 10px 4px;font-size:11px;color:#a7bad1}.ae-status-dot{display:inline-block;width:7px;height:7px;background:#31c48d;border-radius:50%;margin-right:6px}
.ae-shell{margin-left:260px;min-height:100vh}.ae-topbar{min-height:113px;background:white;border-bottom:1px solid var(--ae-edge);display:flex;justify-content:space-between;align-items:center;gap:18px;padding:22px 32px}.ae-top-eyebrow{color:#6b7e98;font-weight:750;font-size:10px;letter-spacing:1.6px}.ae-topbar h1{font-size:25px;letter-spacing:-.6px;font-weight:800;margin:5px 0 0}.ae-header-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ae-date{color:#7a8ba2;font-size:13px;margin-right:10px}.ae-main{padding-left:32px!important;padding-right:32px!important;max-width:1700px}.ae-main>.d-flex:first-child{margin-bottom:22px!important}.ae-main>.d-flex:first-child h3{font-size:18px}.ae-main>.d-flex:first-child .btn{font-size:12px}.ae-main>.d-flex:first-child .d-flex.gap-2{flex-wrap:wrap}.stat-card{border:1px solid var(--ae-edge);border-left:0;min-height:119px;border-radius:17px;padding:24px;background:#fff;box-shadow:0 8px 25px #132d4e09;position:relative;overflow:hidden}.stat-card:after{content:"";position:absolute;right:-20px;top:-20px;height:100px;width:100px;border-radius:30px;background:#eaf4ff55;transform:rotate(20deg)}.stat-card small{font-size:12px;letter-spacing:.3px;font-weight:700;color:#657992}.stat-card h3{font-size:30px;letter-spacing:-1px;color:#132b4e}.ae-main .card{border-radius:17px!important;border:1px solid var(--ae-edge)!important;box-shadow:0 10px 30px #112c4908!important}.ae-main .card-header{border-radius:17px 17px 0 0!important;border-bottom:1px solid #eef1f5}.ae-main .table thead th{background:#f0f5fa;color:#58718e;text-transform:uppercase;letter-spacing:.5px;font-size:11px;padding:14px 12px}.ae-main .table td{padding:12px;font-size:13px}.btn-primary{background:#1764a8;border-color:#1764a8}.btn-warning{background:#ff912b;border-color:#ff912b;color:#10243c}.btn{font-weight:650;border-radius:9px}.form-control,.form-select{border-color:#dce4ed;border-radius:9px}.modal-content{border:0;border-radius:18px;box-shadow:0 25px 90px #082d4b35}.modal-header{background:#f5f8fc;border-bottom:1px solid #e5edf6}.ae-mobile-top,.ae-sidebar-shade{display:none}.ae-internal-note{font-size:12px;color:#66788d}
@media(max-width:1080px){.ae-sidebar{width:230px}.ae-shell{margin-left:230px}.ae-topbar{padding:20px}.ae-main{padding-left:20px!important;padding-right:20px!important}}
@media(max-width:800px){.ae-sidebar{transform:translateX(-105%);transition:.22s;box-shadow:10px 0 30px #081c3440}.ae-sidebar.open{transform:translateX(0)}.ae-sidebar-shade.open{display:block;background:#0b183799;position:fixed;inset:0;z-index:1040}.ae-mobile-top{height:58px;display:flex;gap:10px;align-items:center;padding:0 16px;background:#fff;border-bottom:1px solid #e5edf5}.ae-mobile-top img{width:35px;height:35px;object-fit:contain}.ae-mobile-top strong{font-size:13px}.ae-shell{margin-left:0}.ae-topbar{padding:17px;align-items:flex-start}.ae-topbar h1{font-size:21px}.ae-topbar .ae-date{display:none}.ae-main{padding:16px!important}.ae-header-actions .btn-outline-secondary{display:none}.stat-card{padding:18px;min-height:100px}.stat-card h3{font-size:22px}}
@media print{.ae-sidebar,.ae-mobile-top,.ae-topbar,.ae-sidebar-shade{display:none!important}.ae-shell{margin:0!important}}

.ae-communication{max-width:1180px}.ae-communication>.card{border:1px solid #e5eaf1;border-radius:18px;box-shadow:0 12px 40px #14283f0c}.ae-communication .table{background:#fff}.ae-communication>h4{font-weight:800;color:#142b4b;margin-top:30px!important}
