/* Shared screen theme. Business rules, table status colors and print styles stay with each module. */
#ts-authenticated-shell.ts-design183 { --ts183-blue:#2563eb; --ts183-ink:#172b4d; --ts183-muted:#64748b; --ts183-line:#dce5f1; background:#f6f8fc; color:var(--ts183-ink); font-family:system-ui,-apple-system,"Segoe UI",sans-serif; font-size:.9rem; line-height:1.5; }
#ts-authenticated-shell.ts-design183 .ts-topbar183 {position:sticky;top:0;z-index:1020;min-height:66px;padding:12px 24px;border-color:var(--ts183-line)!important;background:#fff!important;}
#ts-authenticated-shell.ts-design183 .navbar-brand {color:var(--ts183-ink);font-size:1.08rem;letter-spacing:-.025em;}
#ts-authenticated-shell.ts-design183 .ts-frame183 {padding:0;}
#ts-authenticated-shell.ts-design183 .ts-columns183 {margin:0;}
#ts-authenticated-shell.ts-design183 .ts-main183 {min-width:0;padding:0;}
#ts-authenticated-shell.ts-design183 .ts-content183 {padding:28px!important;}
#ts-authenticated-shell.ts-design183 .ts-sidebar {background:#101c33!important;border-color:#23334c!important;padding:0!important;}
#ts-authenticated-shell.ts-design183 .ts-sidebar>.p-3 {padding:22px 14px!important;}
#ts-authenticated-shell.ts-design183 .ts-brand183 {display:flex;align-items:center;gap:10px;padding:0 10px 24px;color:#f8fafc;text-decoration:none;font-weight:700;font-size:1rem;}
#ts-authenticated-shell.ts-design183 .ts-brand183 img {border-radius:10px;}
#ts-authenticated-shell.ts-design183 .ts-brand183 small {display:block;color:#a6b7ce;font-size:.68rem;font-weight:400;margin-top:2px;}
#ts-authenticated-shell.ts-design183 .ts-sidebar .menu-title {padding:0 12px;color:#8ea2bf!important;font-size:.65rem;font-weight:700;letter-spacing:.12em;}
#ts-authenticated-shell.ts-design183 .ts-sidebar .nav-link {color:#c6d3e7!important;border:1px solid transparent!important;border-radius:9px;padding:10px 13px;margin:2px 0;font-size:.84rem;line-height:1.4;transition:background .15s;}
#ts-authenticated-shell.ts-design183 .ts-sidebar .nav-link:hover {background:#1c2e4c!important;color:#fff!important;}
#ts-authenticated-shell.ts-design183 .ts-sidebar .nav-link.active {color:#fff!important;background:#2563eb!important;border-color:#2563eb!important;box-shadow:0 4px 12px #030d2426;}
#ts-authenticated-shell.ts-design183 .ts-sidebar-footer {border-color:#2a3b55!important;color:#8ea2bf!important;font-size:.68rem;padding:18px 10px!important;overflow-wrap:anywhere;}
#ts-authenticated-shell.ts-design183 main h1 {font-size:1.7rem;font-weight:700;letter-spacing:-.035em;}
#ts-authenticated-shell.ts-design183 main h3 {font-size:1.4rem;font-weight:650;letter-spacing:-.025em;}
#ts-authenticated-shell.ts-design183 main h4 {font-size:1.2rem;}
#ts-authenticated-shell.ts-design183 main h5 {font-size:1.02rem;font-weight:650;}
#ts-authenticated-shell.ts-design183 .card {border:1px solid var(--ts183-line);border-radius:12px;box-shadow:0 2px 6px #172b4d03;}
#ts-authenticated-shell.ts-design183 .card-header {border-color:var(--ts183-line);background:#f9fbfe;}
#ts-authenticated-shell.ts-design183 .card-header:first-child {border-radius:11px 11px 0 0;}
#ts-authenticated-shell.ts-design183 .btn {border-radius:7px;font-weight:550;font-size:.85rem;padding:.53rem .85rem;}
#ts-authenticated-shell.ts-design183 .btn-sm {font-size:.76rem;padding:.35rem .65rem;}
#ts-authenticated-shell.ts-design183 .btn-primary {--bs-btn-bg:#2563eb;--bs-btn-border-color:#2563eb;--bs-btn-hover-bg:#1d4ed8;--bs-btn-hover-border-color:#1d4ed8;--bs-btn-active-bg:#1e40af;--bs-btn-active-border-color:#1e40af;}
#ts-authenticated-shell.ts-design183 .btn-outline-primary {--bs-btn-color:#2563eb;--bs-btn-border-color:#b6c9f4;--bs-btn-hover-bg:#2563eb;--bs-btn-hover-border-color:#2563eb;--bs-btn-active-bg:#1d4ed8;}
#ts-authenticated-shell.ts-design183 .btn-outline-secondary {--bs-btn-color:#526580;--bs-btn-border-color:#cbd5e1;}
#ts-authenticated-shell.ts-design183 .form-label {font-size:.78rem;font-weight:550;color:#435775;margin-bottom:6px;}
#ts-authenticated-shell.ts-design183 :is(.form-control,.form-select) {border-radius:7px;font-size:.87rem;padding-top:.56rem;padding-bottom:.56rem;}
#ts-authenticated-shell.ts-design183 :is(.form-control,.form-select):not(.is-invalid):not(.is-valid) {border-color:#d5dfed;}
#ts-authenticated-shell.ts-design183 :is(.form-control,.form-select):focus {box-shadow:0 0 0 3px #2563eb20;}
#ts-authenticated-shell.ts-design183 .table {font-size:.84rem;color:var(--ts183-ink);--bs-table-border-color:var(--ts183-line);}
#ts-authenticated-shell.ts-design183 .table thead th {background:#f4f7fc;color:#5b6d88;font-size:.71rem;font-weight:650;padding:12px 14px;vertical-align:middle;}
#ts-authenticated-shell.ts-design183 .table td {padding:12px 14px;vertical-align:middle;}
#ts-authenticated-shell.ts-design183 .alert {border-radius:9px;font-size:.83rem;}
#ts-authenticated-shell.ts-design183 .alert-info {--bs-alert-bg:#edf5ff;--bs-alert-border-color:#d2e5ff;--bs-alert-color:#2e5684;}
#ts-authenticated-shell.ts-design183 :is(.modal-content,.offcanvas) {border-color:var(--ts183-line);border-radius:14px;}
#ts-authenticated-shell.ts-design183 :is(.modal-header,.modal-footer) {border-color:var(--ts183-line);padding:16px 22px;}
#ts-authenticated-shell.ts-design183 .modal-title {font-size:1.12rem;font-weight:650;}
#ts-authenticated-shell.ts-design183 .modal-body {padding:22px;}
#ts-authenticated-shell.ts-design183 :is(.nav-tabs,.nav-pills) {gap:4px;}
#ts-authenticated-shell.ts-design183 .nav-tabs .nav-link {color:#526580;font-size:.82rem;}
#ts-authenticated-shell.ts-design183 .nav-tabs .nav-link.active {color:#2563eb;font-weight:650;}
#ts-authenticated-shell.ts-design183 a:focus-visible,#ts-authenticated-shell.ts-design183 summary:focus-visible {outline:3px solid #8db5ff;outline-offset:3px;}
#ts-authenticated-shell.ts-design183 .ts-purchases183 {max-width:1600px;margin:auto;}
.ts-pagehead183 {display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px;}
.ts-pagehead183 h1 {margin:0 0 6px;}.ts-pagehead183 p {color:#64748b;margin:0;}.ts-pagehead183 .ts-eyebrow183 {font-size:.65rem;letter-spacing:.12em;font-weight:650;color:#69809f;margin-bottom:8px;}
.ts-stats183 {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin-bottom:24px;}
.ts-stat183 {border:1px solid #dce5f1;background:white;border-radius:11px;padding:17px 20px;display:flex;flex-direction:column;gap:8px;}
.ts-stat183 span {font-size:.74rem;color:#64748b;}.ts-stat183 strong {font-size:1.65rem;line-height:1.2;color:#19345c;}
.ts-import183,.ts-panel183 {border:1px solid #dce5f1;border-radius:12px;background:white;margin-bottom:22px;}
.ts-import183 {padding:18px 20px;scroll-margin-top:90px;}.ts-import183 summary {font-weight:650;cursor:pointer;}.ts-import183 summary span {font-size:.74rem;font-weight:400;color:#64748b;margin-left:10px;}
.ts-panel183 {overflow:hidden;}.ts-panelhead183 {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 6px;}.ts-panelhead183 h2 {font-size:1.05rem;font-weight:650;margin:0;}.ts-panelhead183>span {font-size:.72rem;color:#64748b;}
.ts-filters183 {padding:18px 22px 22px;display:grid;grid-template-columns:minmax(200px,2fr) minmax(140px,1fr) minmax(170px,1fr) auto;gap:14px;align-items:end;}
.ts-filters183>div {min-width:0;}.ts-filteractions183 {display:flex;gap:8px;}
.ts-purchasetable183 {margin:0;}.ts-purchasetable183 td:first-child {min-width:260px;max-width:420px;}.ts-purchasetable183 small {display:block;margin-top:6px;color:#64748b;font-size:.72rem;}
.ts-state183,.ts-environment183 {display:inline-flex;padding:5px 9px;border-radius:6px;font-size:.7rem;white-space:nowrap;font-weight:550;}
.ts-environment183 {background:#f1f5f9;color:#526580;}.ts-state183-review {background:#edf2fc;color:#4565a0;}.ts-state183-checked {background:#eaf3ff;color:#2463b5;}.ts-state183-posted {background:#e9f8ee;color:#247246;}.ts-state183-reversed {background:#fff5e3;color:#936124;}
.ts-empty183 {text-align:center;padding:48px 20px!important;}.ts-empty183 strong,.ts-empty183 span {display:block;}.ts-empty183 span {color:#64748b;margin-top:7px;}
.ts-listfooter183 {padding:14px 22px;font-size:.72rem;color:#64748b;border-top:1px solid #dce5f1;}.ts-listhelp183 {color:#64748b;font-size:.77rem;text-align:center;margin:22px 0;}
.ts-login183 {margin-top:min(10vh,100px);color:#172b4d;}.ts-login183 .card {border:1px solid #dce5f1!important;box-shadow:0 14px 45px #172b4d0c!important;}.ts-login183 h3 {font-weight:700;letter-spacing:-.03em;}.ts-login183 .form-control {padding:.7rem;border-color:#d5dfed;}.ts-login183 .btn {padding:.65rem;background:#2563eb;border-color:#2563eb;}
@media(min-width:768px){#ts-authenticated-shell.ts-design183 .ts-columns183{display:grid;grid-template-columns:240px minmax(0,1fr);}#ts-authenticated-shell.ts-design183 .ts-sidebar{position:sticky;top:66px;height:calc(100vh - 66px);min-height:0!important;overflow:auto;width:auto;align-self:start;}#ts-authenticated-shell.ts-design183 .ts-main183{width:auto;}}
@media(min-width:768px) and (max-width:1100px){#ts-authenticated-shell.ts-design183 .ts-columns183{grid-template-columns:210px minmax(0,1fr);}#ts-authenticated-shell.ts-design183 .ts-content183{padding:22px!important;}.ts-stats183{gap:10px;}.ts-stat183{padding:14px 12px;}.ts-filters183{grid-template-columns:1fr 1fr;}}
@media(max-width:767px){#ts-authenticated-shell.ts-design183 .ts-topbar183{padding:10px 12px;min-height:64px;}#ts-authenticated-shell.ts-design183 .ts-content183{padding:18px 12px!important;}#ts-authenticated-shell.ts-design183 .ts-sidebar{min-height:0!important;}#ts-authenticated-shell.ts-design183 .ts-brand183{display:none;}#ts-authenticated-shell.ts-design183 .btn{min-height:40px;}#ts-authenticated-shell.ts-design183 :is(.form-control,.form-select){font-size:16px;}#ts-authenticated-shell.ts-design183 .modal-body{padding:16px;}.ts-pagehead183{align-items:flex-start;flex-wrap:wrap;gap:14px;margin-bottom:18px;}.ts-pagehead183 p{font-size:.81rem;}.ts-stats183{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:18px;}.ts-stat183{padding:13px 14px;}.ts-stat183:first-child{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:space-between;}.ts-stat183 strong{font-size:1.35rem;}.ts-panelhead183{align-items:flex-start;flex-direction:column;gap:5px;padding:18px 16px 0;}.ts-filters183{grid-template-columns:1fr;padding:16px;gap:12px;}.ts-filteractions183>.btn{flex:1;}.ts-import183{padding:16px;}.ts-import183 summary span{display:block;margin:5px 0 0;}.ts-login183{margin-top:0;}}
@media(prefers-reduced-motion:reduce){#ts-authenticated-shell.ts-design183 *{transition:none!important;scroll-behavior:auto!important;}}
/* Bootstrap may mount dialogs directly under body (updates and product editors). */
body:has(#ts-authenticated-shell.ts-design183)>.modal {color:#172b4d;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;}
body:has(#ts-authenticated-shell.ts-design183)>.modal .modal-content {border:1px solid #dce5f1;border-radius:14px;}
body:has(#ts-authenticated-shell.ts-design183)>.modal :is(.modal-header,.modal-footer) {border-color:#dce5f1;padding:16px 22px;}
body:has(#ts-authenticated-shell.ts-design183)>.modal .modal-body {padding:22px;}
body:has(#ts-authenticated-shell.ts-design183)>.modal .btn {border-radius:7px;font-weight:550;}
