/* TWC ERP V367.46.7.44 - Non-Laravel UI Build 02
   Purpose: final current-app UI polish only. No calculation, DB, auth, PDF data, or workflow logic changes. */
:root{
  --ui44-bg:#edf3f8;
  --ui44-panel:#ffffff;
  --ui44-ink:#0b1728;
  --ui44-muted:#52647a;
  --ui44-line:#d8e4f1;
  --ui44-brand:#0a2b4f;
  --ui44-brand2:#0f4373;
  --ui44-blue:#0478b8;
  --ui44-blue2:#075f94;
  --ui44-gold:#d7ad32;
  --ui44-green:#12834b;
  --ui44-red:#dc2626;
  --ui44-soft:0 8px 28px rgba(15,41,69,.08);
  --ui44-card:0 2px 12px rgba(15,41,69,.06);
}
html,body{background:var(--ui44-bg)!important;color:var(--ui44-ink)!important}
body.ui44-final{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important}
.app{background:linear-gradient(135deg,#eaf2f9 0%,#f6f9fc 52%,#e9f2f9 100%)!important}
.content{background:transparent!important;padding:18px 20px 96px!important}

/* compact dark ERP menu, not fat button list */
.sidebar{background:linear-gradient(180deg,#07162a 0%,#0a213d 56%,#061427 100%)!important;border-right:1px solid rgba(255,255,255,.08)!important;box-shadow:8px 0 24px rgba(4,16,30,.18)!important;padding:14px 10px!important}
.side-title{font-size:22px!important;letter-spacing:.04em!important;margin:3px 9px 3px!important;color:#fff!important;line-height:1.05!important}.side-sub{color:#9fc7e8!important;margin:0 9px 12px!important;font-size:10px!important;letter-spacing:.18em!important}.side-badge{background:rgba(255,255,255,.08)!important;border:1px solid rgba(255,255,255,.16)!important;color:#d8efff!important;border-radius:999px!important;padding:8px 11px!important;margin:0 9px 14px!important;width:auto!important;display:inline-flex!important;font-size:12px!important;box-shadow:none!important}
.menu-section{margin:12px 8px 6px!important;color:#8fb7dc!important;font-size:10px!important;letter-spacing:.12em!important;font-weight:950!important;border:0!important;padding:0!important;text-transform:uppercase!important}
.menu-btn{background:transparent!important;color:#d9e8f6!important;border:1px solid transparent!important;border-radius:10px!important;box-shadow:none!important;margin:2px 4px!important;padding:8px 10px!important;min-height:36px!important;line-height:1.18!important;font-size:14px!important;font-weight:850!important;text-align:left!important;display:flex!important;align-items:center!important;gap:8px!important;position:relative!important;white-space:normal!important}
.menu-btn:hover{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.10)!important;color:#fff!important;transform:none!important}.menu-btn.active{background:linear-gradient(90deg,rgba(4,120,184,.95),rgba(4,120,184,.35))!important;color:#fff!important;border-color:rgba(255,255,255,.12)!important}.menu-btn.active:before{content:"";position:absolute;left:-5px;top:8px;bottom:8px;width:3px;border-radius:5px;background:var(--ui44-gold)}

/* topbar / page identity */
.topbar{background:rgba(255,255,255,.92)!important;border:1px solid rgba(216,228,241,.85)!important;border-radius:18px!important;box-shadow:var(--ui44-soft)!important;margin:0 0 12px!important;padding:12px 14px!important;backdrop-filter:blur(10px)!important}.brand-mini b,.brand-mini small{color:var(--ui44-ink)!important}.page-head{background:transparent!important;border:0!important;box-shadow:none!important;margin:6px 0 14px!important;padding:0!important}.page-head h1{color:var(--ui44-ink)!important;font-size:26px!important;letter-spacing:-.02em!important}.page-head h1:after{background:linear-gradient(90deg,var(--ui44-blue),transparent)!important;height:2px!important;opacity:.8!important}

/* professional panels: not plain paper, not heavy boxes */
.card,.panel,.hero,.bill-top,.form-card,.summary-card,.register-card,.customer-card,.purchase-card,.stock-card,.report-card,.crm-card,.twc98-fast-panel,.twc98-ai-chart,.twc98-action-card{background:var(--ui44-panel)!important;border:1px solid var(--ui44-line)!important;border-radius:18px!important;box-shadow:var(--ui44-card)!important;color:var(--ui44-ink)!important}.card:hover,.panel:hover,.register-card:hover,.crm-card:hover{box-shadow:0 10px 32px rgba(15,41,69,.10)!important}.card h2,.card h3,.panel h2,.panel h3,.register-card h2,.crm-card h2{color:var(--ui44-ink)!important}.card p,.card small,.panel p,.panel small,.register-card small,.crm-card small,.muted{color:var(--ui44-muted)!important}.kpi,.stat,.metric,.summary-box{background:linear-gradient(180deg,#fff,#f8fbfe)!important;border:1px solid var(--ui44-line)!important;border-radius:16px!important;box-shadow:none!important;color:var(--ui44-ink)!important}.kpi b,.stat b,.metric b,.summary-box b{color:var(--ui44-ink)!important}.kpi span,.stat span,.metric span,.summary-box span{color:var(--ui44-muted)!important}

/* fix invisible text anywhere in light cards */
.card *:not(button):not(.btn):not(.badge):not(.menu-btn),.panel *:not(button):not(.btn):not(.badge):not(.menu-btn),.register-card *:not(button):not(.btn):not(.badge):not(.menu-btn),.crm-card *:not(button):not(.btn):not(.badge):not(.menu-btn){text-shadow:none!important}.card [style*="color:#fff"],.card [style*="color: white"],.panel [style*="color:#fff"],.panel [style*="color: white"],.register-card [style*="color:#fff"],.crm-card [style*="color:#fff"]{color:var(--ui44-ink)!important}.hero[style*="background:#06172b"] *,.dark-card *,.twc90-ai-hero *{color:inherit!important}

/* buttons: one current ERP standard */
button,.btn,.top-new{border-radius:11px!important;box-shadow:none!important;font-weight:850!important;border:1px solid transparent!important;letter-spacing:.005em!important;min-height:38px!important;padding:9px 13px!important;transition:background .15s ease,border-color .15s ease,transform .1s ease!important}button:hover,.btn:hover{transform:translateY(-1px)!important}.btn-dark,.top-new,button:not(.menu-btn):not(.logout):not(.delete-row):not(.hamb):not(.shortcut-fab):not(.shortcut-close):not(.btn-ghost):not(.btn-red):not(.danger){background:linear-gradient(180deg,var(--ui44-blue),var(--ui44-blue2))!important;color:#fff!important;border-color:#08699c!important}.btn-ghost,button.secondary,button.light{background:#fff!important;color:var(--ui44-brand)!important;border-color:var(--ui44-line)!important}.btn-green{background:linear-gradient(180deg,#16a34a,#12834b)!important;color:#fff!important}.btn-red,.danger,.delete-row{background:linear-gradient(180deg,#ef4444,#dc2626)!important;color:#fff!important}.actions button,.row-actions button,.reg-actions button{padding:8px 11px!important;font-size:12px!important;border-radius:10px!important}.savebar button{min-width:0!important}

/* forms */
input,select,textarea{background:#fff!important;border:1px solid #c9d8e8!important;border-radius:11px!important;color:var(--ui44-ink)!important;box-shadow:none!important;min-height:40px!important;font-size:14px!important}input:focus,select:focus,textarea:focus{border-color:var(--ui44-blue)!important;box-shadow:0 0 0 3px rgba(4,120,184,.14)!important}label{color:#24364a!important;font-weight:850!important;font-size:12px!important}textarea{line-height:1.42!important}

/* billing and purchase item grids: real columns, no hiding */
.item-scroll{overflow-x:auto!important;overflow-y:hidden!important;border:1px solid var(--ui44-line)!important;border-radius:16px!important;background:#fff!important;box-shadow:var(--ui44-card)!important}.item-head,.item-row{display:grid!important;grid-template-columns:44px minmax(420px,1.6fr) 90px 88px 120px 124px 58px!important;min-width:944px!important;width:100%!important}.item-head{background:#0b1728!important;color:#fff!important;border-radius:0!important}.item-head>div{padding:10px 10px!important;font-size:12px!important;white-space:nowrap!important;color:#fff!important}.item-row{align-items:center!important;background:#fff!important;border-bottom:1px solid #edf3f9!important}.item-row>*{min-width:0!important;padding:6px 7px!important}.item-row input,.item-row select{height:38px!important;min-height:38px!important;width:100%!important;padding:7px 9px!important;border-radius:10px!important}.item-row input[type="number"]{font-variant-numeric:tabular-nums!important}.delete-row{width:40px!important;height:36px!important;min-width:40px!important;padding:0!important;display:grid!important;place-items:center!important}.private-adminbar,.private-profit-note{background:#fff7e8!important;border:1px solid #f5c66f!important;border-radius:0 0 14px 14px!important;color:#78350f!important;box-shadow:none!important;margin:0!important}.private-adminbar button,.private-profit-note button{background:linear-gradient(180deg,#0e7bb6,#075f94)!important;color:#fff!important}.private-adminbar button:first-child,.private-profit-note button:first-child{background:linear-gradient(180deg,#f1c84e,#d7ad32)!important;color:#1f2937!important}

/* billing form layout */
.bill-command,.billing-command,.billing-desk,.page-ribbon{background:linear-gradient(135deg,#fff,#f8fbfe)!important;border:1px solid var(--ui44-line)!important;color:var(--ui44-ink)!important}.step-pill,.workflow-step{background:#fff!important;border:1px solid #cfe0f2!important;color:#0a2b4f!important;border-radius:999px!important;box-shadow:none!important}.step-pill.done,.workflow-step.done{background:#e9f9ef!important;border-color:#a7e5be!important;color:#125b34!important}.fast-billing-search,.terms-helper,.totals-panel{background:#fff!important;border:1px solid var(--ui44-line)!important;border-radius:18px!important;box-shadow:var(--ui44-card)!important}.totals-panel .total,.total-big{color:var(--ui44-brand)!important}.savebar{background:rgba(255,255,255,.96)!important;border:1px solid var(--ui44-line)!important;border-radius:16px!important;box-shadow:0 10px 30px rgba(15,41,69,.14)!important;gap:8px!important;padding:9px!important}.savebar button{border-radius:11px!important;padding:10px 13px!important}.shortcut-fab{right:12px!important;bottom:12px!important;opacity:.32!important;transform:scale(.9)!important}.shortcut-fab:hover{opacity:.9!important}

/* registers/payment pages */
.filterbar,.searchbar,.register-filter,.pay-filter,.crm-filter{background:#fff!important;border:1px solid var(--ui44-line)!important;border-radius:16px!important;box-shadow:var(--ui44-card)!important;padding:12px!important}.payment-history th,.table th,table th{background:#0b1728!important;color:#fff!important}.payment-history td,.table td,table td{color:var(--ui44-ink)!important}.register-list .card,.quote-card,.invoice-card{background:#fff!important;border-left:4px solid #d8e4f1!important}.quote-card.due,.invoice-card.pending{border-left-color:#ef4444!important}.quote-card.won,.invoice-card.paid{border-left-color:#22c55e!important}

/* report/chart pages: readable with actual chart feeling */
.twc98-ai-chart svg,.twc87-report-chart svg{background:#fff!important;border-radius:14px!important}.twc98-ai-chart svg text,.twc87-report-chart svg text{fill:#334155!important;font-weight:800!important}.twc98-ai-chart .bar,.twc87-report-chart .bar{rx:5!important}.twc98-fast-panel{min-height:auto!important}.twc98-fast-panel .row,.twc98-action-card{background:#f8fbfe!important;border:1px solid #e2edf7!important;border-radius:14px!important;color:var(--ui44-ink)!important}.twc98-fast-panel .row *,.twc98-action-card *{color:var(--ui44-ink)!important}.twc98-fast-panel .row small,.twc98-action-card small{color:var(--ui44-muted)!important}

/* mobile */
@media(max-width:1000px){
  .content{padding:12px 10px 92px!important}.topbar{border-radius:15px!important;margin-bottom:10px!important}.sidebar{width:min(84vw,286px)!important}.menu-btn{min-height:40px!important;font-size:14px!important}.card,.panel,.register-card,.crm-card{border-radius:16px!important;padding:13px!important}.grid2,.grid3,.grid4,.bill-top{grid-template-columns:1fr!important}.item-scroll{border-radius:14px!important;-webkit-overflow-scrolling:touch!important}.item-head,.item-row{min-width:944px!important}.savebar{position:sticky!important;bottom:8px!important;display:grid!important;grid-template-columns:1fr 1fr!important}.savebar button{width:100%!important;font-size:13px!important}.table-wrap{overflow-x:auto!important}.table,table{min-width:780px!important}.shortcut-fab{bottom:76px!important;right:10px!important}.private-adminbar{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}.private-adminbar button{width:100%!important}
}
@media(max-width:560px){.content{padding-left:8px!important;padding-right:8px!important}.savebar{grid-template-columns:1fr!important}.page-head h1{font-size:21px!important}.item-head,.item-row{min-width:900px!important;grid-template-columns:40px minmax(330px,1fr) 80px 82px 108px 112px 52px!important}.shortcut-fab span{display:none!important}.shortcut-fab{width:42px!important;height:42px!important;padding:0!important;place-content:center!important}.top-new{width:100%!important}.actions,.row-actions{display:grid!important;grid-template-columns:1fr 1fr!important}}
@media print{.shortcut-fab,.sidebar,.topbar,.savebar{display:none!important}.content{background:#fff!important;padding:0!important}.card,.panel{box-shadow:none!important}}

/* V367.46.7.46: Payment + quotation CRM state clarity */
.payment-after-box{margin:12px 0 8px;padding:12px 14px;border-radius:14px;border:1px solid #cfe8ff;background:#f7fbff;display:flex;align-items:center;justify-content:space-between;gap:12px;box-shadow:none}.payment-after-box span{font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:900;color:#536173}.payment-after-box b{font-size:20px;color:#0b1628}.payment-after-box small{font-weight:800;color:#536173}.payment-after-box.good{border-color:#b8ebce;background:#f0fff6}.payment-after-box.warn{border-color:#f4d889;background:#fffaf0}.quote-pro-card.quote-is-converted{border-left:5px solid #22c55e;background:linear-gradient(90deg,#f2fff7,#fff)}.quote-pro-card.quote-is-closed{border-left:5px solid #94a3b8;background:#fafafa}.quote-is-converted .quote-actions .btn-red,.quote-is-converted .quote-actions button[disabled]{opacity:.95}.quote-actions button[disabled]{cursor:not-allowed;filter:none;box-shadow:none;background:#e8eef6;color:#334155}.quote-actions{gap:8px;flex-wrap:wrap}.quote-actions button{min-height:36px}
