/* Billing QArchiv Modern UI v1 | presentation only; all backend actions remain untouched */
:root{--bm-navy:#151c32;--bm-navy2:#1e2942;--bm-accent:#6659e8;--bm-stroke:#e4e9f2;--bm-ink:#1c2b45;--bm-muted:#77869b;--bm-bg:#f5f7fc;--bm-teal:#12856b;--bm-red:#b93f5a;--bm-shadow:0 8px 25px rgba(22,38,70,.055)}
body.billing-modern{background:var(--bm-bg);color:var(--bm-ink);font-family:'Segoe UI',Inter,Arial,sans-serif;font-size:14px;line-height:1.5}
body.billing-modern header{background:#fff!important;color:var(--bm-ink)!important;box-shadow:none!important;border-bottom:1px solid var(--bm-stroke);height:76px;min-height:76px;padding:13px 34px!important;position:sticky!important;top:0;z-index:103!important;display:flex;align-items:center;gap:16px;flex-wrap:nowrap}
body.billing-modern header h1{font-size:19px!important;font-weight:750!important;color:var(--bm-ink)!important;letter-spacing:-.65px;line-height:1.25}
body.billing-modern header>div{font-size:13px!important;color:var(--bm-muted);margin-left:auto;min-width:0;text-align:right}
body.billing-modern nav{position:fixed!important;z-index:110!important;inset:0 auto 0 0!important;width:249px!important;min-width:249px!important;height:100vh!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;flex-wrap:nowrap!important;justify-content:flex-start!important;padding:18px 12px 21px!important;margin:0!important;border:0!important;border-radius:0!important;background:var(--bm-navy)!important;box-shadow:none!important;overflow-y:auto!important;overflow-x:hidden!important;white-space:normal!important;overscroll-behavior:contain}
body.billing-modern nav::before{content:'◆   QArchiv';display:block;font-size:19px;font-weight:800;letter-spacing:-.6px;color:#fff;padding:12px 14px 19px;margin-bottom:12px;border-bottom:1px solid #2d3952}
body.billing-modern nav::after{content:'BILLING  ·  VERWALTUNG';display:block;order:99;font-size:10px;color:#7586a5;letter-spacing:1.5px;padding:23px 14px 6px}
body.billing-modern nav .billing-nav-heading{display:block;font-size:10px!important;font-weight:800;letter-spacing:1.5px;text-transform:uppercase;color:#798aa7;padding:17px 12px 6px;white-space:nowrap}
body.billing-modern nav .billing-nav-heading:first-of-type{padding-top:6px}
body.billing-modern nav a{display:block!important;flex:none!important;text-decoration:none!important;text-align:left!important;background:transparent!important;color:#b6c2d4!important;border:0!important;border-radius:9px!important;box-shadow:none!important;padding:10px 12px!important;margin:2px 0!important;min-width:0!important;width:100%!important;min-height:39px!important;line-height:1.45!important;font-size:13px!important;font-weight:550!important;white-space:normal!important;transition:background .15s,color .15s!important;transform:none!important}
body.billing-modern nav a:hover,body.billing-modern nav a:focus-visible{background:#2b3650!important;color:#fff!important;transform:none!important}
body.billing-modern nav a.active,body.billing-modern nav a[aria-current="page"]{background:linear-gradient(105deg,#6760cf,#554db7)!important;color:#fff!important;box-shadow:0 4px 14px #080c1a33!important}
body.billing-modern nav a.logout{margin-top:auto!important;background:#32283f!important;color:#f5c0ce!important}
body.billing-modern nav a.logout:hover{background:#533044!important;color:white!important}
body.billing-modern header,body.billing-modern>.container{margin-left:249px!important;width:calc(100% - 249px)!important}
body.billing-modern>.container{max-width:none!important;margin-top:0!important;margin-right:0!important;margin-bottom:0!important;padding:29px 35px 50px!important;min-height:calc(100vh - 76px)}
body.billing-modern .container>.content{background:#fff!important;border:1px solid var(--bm-stroke)!important;border-radius:15px!important;box-shadow:var(--bm-shadow)!important;padding:27px 28px!important;min-width:0}
body.billing-modern .content h2{font-size:25px!important;line-height:1.2!important;font-weight:770!important;color:var(--bm-ink)!important;letter-spacing:-.7px;margin-bottom:20px}
body.billing-modern .content h3{color:var(--bm-ink)!important;letter-spacing:-.25px}
body.billing-modern .stats-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:15px!important;margin:23px 0!important}
body.billing-modern .stat-card{border:1px solid var(--bm-stroke)!important;border-radius:14px!important;box-shadow:none!important;padding:21px 17px!important;background:linear-gradient(180deg,#fff,#fcfdff)!important;text-align:left!important;min-width:0}
body.billing-modern .stat-label{color:var(--bm-muted)!important;font-weight:650!important;font-size:12px!important}
body.billing-modern .stat-value{color:var(--bm-ink)!important;font-weight:760!important;letter-spacing:-1px!important;font-size:29px!important;overflow-wrap:anywhere}
body.billing-modern table{border-collapse:separate!important;border-spacing:0!important;width:100%;margin-top:18px!important;font-size:13px!important}
body.billing-modern table th{background:#f7f9fd!important;color:#75849a!important;text-transform:uppercase!important;font-weight:750!important;letter-spacing:.65px!important;font-size:11px!important;padding:13px 14px!important;border-bottom:1px solid var(--bm-stroke)!important;white-space:nowrap!important}
body.billing-modern table td{padding:13px 14px!important;border-bottom:1px solid #ecf0f7!important;vertical-align:middle!important;color:var(--bm-ink);line-height:1.45!important;min-width:0}
body.billing-modern table tr:hover td{background:#fafbff!important}
body.billing-modern table td:last-child{display:table-cell!important;min-width:175px!important;white-space:normal!important;vertical-align:middle!important}
body.billing-modern table th:last-child{min-width:175px!important}
body.billing-modern table .action-btn{display:inline-block!important;margin:3px 3px 3px 0!important;padding:6px 9px!important;min-width:0!important;max-width:none!important;white-space:nowrap!important}
body.billing-modern a.btn{text-decoration:none}
body.billing-modern .btn,body.billing-modern button:not(.billing-mobile-toggle){border-radius:9px!important;font-size:12px!important;font-weight:680!important;line-height:1.35!important;box-shadow:none!important;transition:background .15s,box-shadow .15s,transform .15s}
body.billing-modern .btn.primary,body.billing-modern .btn-primary,body.billing-modern button.primary,body.billing-modern .primary{background:var(--bm-accent)!important;color:#fff!important}
body.billing-modern .btn.primary:hover,body.billing-modern .primary:hover{background:#5449d1!important;box-shadow:0 6px 16px #6659e826!important}
body.billing-modern .btn.success,body.billing-modern button.success{background:#158873!important;color:#fff!important}
body.billing-modern .btn.danger,body.billing-modern button.danger{background:#cf4f66!important;color:#fff!important}
body.billing-modern .btn.warning,body.billing-modern button.warning{background:#dc972b!important;color:#fff!important}
body.billing-modern .form-group label{color:#475770!important;font-size:12px!important;font-weight:720!important;margin-bottom:7px!important}
body.billing-modern .form-group input,body.billing-modern .form-group select,body.billing-modern .form-group textarea{background:#fff!important;border:1px solid #dce3ee!important;border-radius:9px!important;color:var(--bm-ink)!important;box-shadow:none!important;padding:11px 12px!important;font-size:14px!important;min-height:41px;max-width:100%}
body.billing-modern .form-group input:focus,body.billing-modern .form-group select:focus,body.billing-modern .form-group textarea:focus{outline:2px solid #c5c0fb!important;outline-offset:1px}
body.billing-modern .form-grid{gap:17px!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr))!important}
body.billing-modern .msg{border-radius:10px!important;padding:13px 16px!important;font-size:13px!important;border-width:1px!important}
body.billing-modern .msg.success{background:#eaf8f2!important;color:#237758!important;border-color:#bce8d5!important}
body.billing-modern .msg.error{background:#fff0f2!important;color:#af3449!important;border-color:#efbdc7!important}
body.billing-modern .no-data{background:#f8faff!important;border:1px dashed #dce5f0!important;color:#7c8da2!important;border-radius:12px!important}
body.billing-modern .status-badge{border-radius:99px!important;padding:5px 10px!important;font-size:11px!important;letter-spacing:0!important}
body.billing-modern .status-offen{background:#fff1d9!important;color:#9b641a!important}
body.billing-modern .status-bezahlt,body.billing-modern .status-abgeschlossen{background:#e6f6ee!important;color:#147956!important}
body.billing-modern .status-storniert{background:#fde8ec!important;color:#ae4053!important}
body.billing-modern .status-in_bearbeitung{background:#e9f2ff!important;color:#376cad!important}
body.billing-modern #bericht-ergebnis{border-radius:12px!important;border:1px solid var(--bm-stroke)}
body.billing-modern .billing-mobile-toggle{display:none;flex:0 0 auto;border:1px solid #e0e6f1;border-radius:9px;background:#f6f7fc;color:#293a5a;width:39px;height:38px;font-size:22px;align-items:center;justify-content:center;cursor:pointer}
body.billing-modern .billing-backdrop{display:none}
@media(max-width:1320px){
body.billing-modern nav{width:220px!important;min-width:220px!important}
body.billing-modern header,body.billing-modern>.container{margin-left:220px!important;width:calc(100% - 220px)!important}
body.billing-modern>.container{padding:25px 23px 45px!important}
body.billing-modern .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:950px){
body.billing-modern nav{width:min(275px,85vw)!important;min-width:0!important;transform:translateX(-110%)!important;box-shadow:8px 0 28px #0c152b3b!important;transition:transform .22s ease!important}
body.billing-modern.billing-menu-open nav{transform:translateX(0)!important}
body.billing-modern header,body.billing-modern>.container{margin-left:0!important;width:100%!important}
body.billing-modern header{height:68px;min-height:68px;padding:11px 18px!important}
body.billing-modern>.container{padding:20px 18px 35px!important}
body.billing-modern .billing-mobile-toggle{display:inline-flex!important}
body.billing-modern.billing-menu-open .billing-backdrop{display:block!important;position:fixed;inset:0;background:rgba(12,22,44,.58);z-index:108}
body.billing-modern.billing-menu-open{overflow:hidden}
}
@media(max-width:600px){
body.billing-modern header{padding:11px 13px!important;gap:10px!important;flex-direction:row!important;text-align:left!important}
body.billing-modern header h1{font-size:16px!important}
body.billing-modern header>div{font-size:11px!important}
body.billing-modern>.container{padding:15px 11px 28px!important}
body.billing-modern .container>.content{padding:17px 13px!important;border-radius:12px!important}
body.billing-modern .content h2{font-size:21px!important}
body.billing-modern .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
body.billing-modern .stat-card{padding:14px 12px!important}
body.billing-modern .stat-value{font-size:22px!important}
body.billing-modern table{display:block!important;overflow-x:auto!important;max-width:100%;-webkit-overflow-scrolling:touch}
body.billing-modern table th,body.billing-modern table td{padding:9px 10px!important;white-space:nowrap}
body.billing-modern table td:last-child{min-width:145px!important}
body.billing-modern table .action-btn{margin:3px 2px!important;padding:6px 7px!important}
body.billing-modern .btn{width:auto!important;margin-bottom:0!important}
body.billing-modern .form-grid{grid-template-columns:1fr!important}
}
@media print{
body.billing-modern{background:white!important}
body.billing-modern nav,body.billing-modern .billing-mobile-toggle,body.billing-modern .billing-backdrop{display:none!important}
body.billing-modern header,body.billing-modern>.container{margin:0!important;width:100%!important}
body.billing-modern>.container{padding:15px!important}
body.billing-modern .container>.content{border:0!important;box-shadow:none!important}
}