:root{
  --brand-accent:#0d6efd;
  --admin-sidebar:#343a40;
  --admin-sidebar-hover:#495057;
  --admin-border:#dee2e6;
  --admin-bg:#f4f6f9;
  --admin-card:#ffffff;
  --admin-text:#212529;
  --admin-muted:#6c757d;
  --admin-shadow:0 1px 3px rgba(0,0,0,.10);
}
html,body{min-height:100%}
body.adminlte-classic{background:var(--admin-bg);color:var(--admin-text);font-family:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif}
.app-wrapper{min-height:100vh}
.app-main{min-height:calc(100vh - 114px);background:var(--admin-bg);display:flex;flex-direction:column}
.app-content{flex:1;padding:1rem 0 1.25rem}.app-page-body{min-width:0}
.app-footer{margin:0!important;border-top:1px solid var(--admin-border);background:var(--admin-card);padding:.8rem 1rem;color:var(--admin-muted)}
.app-header{background:var(--admin-card)!important;border-bottom:1px solid var(--admin-border);box-shadow:0 1px 2px rgba(0,0,0,.04)!important;min-height:57px}
.header-icon-btn{width:40px;height:40px;display:grid;place-items:center;border-radius:.25rem;color:var(--admin-text)!important}
.header-icon-btn:hover{background:rgba(13,110,253,.10);color:var(--brand-accent)!important}
.page-title-wrap{display:flex;flex-direction:column;line-height:1.15}.page-title-wrap strong{font-size:.96rem}.page-eyebrow{text-transform:uppercase;letter-spacing:.06em;font-size:.65rem;color:var(--admin-muted);font-weight:700}
.user-menu-link{display:flex!important;align-items:center;gap:.5rem;color:var(--admin-text)!important}.user-avatar,.sidebar-avatar{display:grid;place-items:center;border-radius:50%;font-weight:700;color:#fff;background:var(--brand-accent)}.user-avatar{width:32px;height:32px}.sidebar-avatar{width:38px;height:38px;flex:0 0 38px}
.credit-pill{display:flex;align-items:center;gap:.55rem;padding:.4rem .7rem;border:1px solid #badbcc;background:#d1e7dd;color:#0f5132;border-radius:.25rem}.credit-pill span{font-size:.7rem}.credit-pill strong{font-size:.86rem}
.modern-dropdown{border:1px solid var(--admin-border);border-radius:.35rem;box-shadow:0 .5rem 1rem rgba(0,0,0,.15);padding:.35rem}.modern-dropdown .dropdown-item{border-radius:.2rem}
.app-sidebar{background:var(--admin-sidebar)!important;border-right:0!important}
.sidebar-brand{border-bottom:1px solid rgba(255,255,255,.10)!important}.brand-link{min-height:57px;display:flex!important;align-items:center;gap:.65rem;padding:.65rem .8rem!important}.brand-image{width:34px;height:34px;object-fit:contain;border-radius:.2rem}.brand-placeholder{display:grid!important;place-items:center;background:var(--brand-accent);color:#fff}.brand-text{display:flex;flex-direction:column;min-width:0}.brand-text strong{font-size:1rem;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:165px}.brand-text small{font-size:.68rem;color:#adb5bd}
.sidebar-account-card{display:flex;align-items:center;gap:.65rem;margin:.65rem .55rem .3rem;padding:.65rem;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.04);color:#fff;border-radius:.25rem}.sidebar-account-card small{color:#adb5bd}.min-w-0{min-width:0}
.sidebar-menu{padding:.25rem .4rem 1rem}.sidebar-menu .nav-link{border-radius:.2rem;margin:1px 0;color:#c2c7d0!important;min-height:40px}.sidebar-menu .nav-link:hover{background:var(--admin-sidebar-hover);color:#fff!important}.sidebar-menu .nav-link.active{background:var(--brand-accent)!important;color:#fff!important;box-shadow:none}.sidebar-menu .nav-treeview .nav-link{padding-left:2rem;font-size:.9rem}.sidebar-menu .nav-treeview .nav-icon{font-size:.8rem}.sidebar-menu>.nav-item>.nav-treeview{display:none}.sidebar-menu>.nav-item.menu-open>.nav-treeview{display:block!important}.sidebar-menu>.nav-item.menu-open>.nav-link .nav-arrow{transform:rotate(90deg)}.sidebar-menu .nav-arrow{transition:transform .15s ease}
.app-content-header{padding:1rem 0 .7rem}.page-heading{font-weight:600;font-size:1.45rem}.breadcrumb{font-size:.82rem}.breadcrumb a{text-decoration:none}
.card,.modern-card{border:1px solid var(--admin-border);border-radius:.25rem;box-shadow:var(--admin-shadow)!important;background:var(--admin-card);overflow:hidden}.card-header{background:rgba(0,0,0,.015);border-bottom:1px solid var(--admin-border);padding:.75rem 1rem}.card-title{font-size:1rem;font-weight:600}.card-body{padding:1rem}.card-footer{background:rgba(0,0,0,.015);border-top:1px solid var(--admin-border)}
.dashboard-stat{position:relative;overflow:hidden;border:0!important;color:#fff;min-height:132px}.dashboard-stat .card-body{position:relative;z-index:2;padding:1rem 1.1rem}.dashboard-stat .stat-title{font-size:.86rem;font-weight:600;opacity:.95}.dashboard-stat .metric{font-size:1.9rem;line-height:1.15;font-weight:700;margin:.35rem 0}.dashboard-stat .metric-sub{font-size:.75rem;opacity:.92}.dashboard-stat .icon{position:absolute;right:16px;top:17px;font-size:3.4rem;opacity:.22;z-index:1}.dashboard-stat:after{content:"";position:absolute;width:130px;height:130px;border-radius:50%;right:-55px;bottom:-70px;background:rgba(255,255,255,.14)}
.stat-blue{background:#3c8dbc}.stat-red{background:#dd4b39}.stat-orange{background:#f39c12}.stat-green{background:#00a65a}.stat-aqua{background:#00c0ef}.stat-purple{background:#605ca8}.stat-teal{background:#008d8d}.stat-maroon{background:#d81b60}
.metric{font-size:1.6rem;font-weight:700}.metric-sub{font-size:.8rem;color:var(--admin-muted)}
.form-control,.form-select{border-radius:.25rem;border-color:#ced4da;min-height:39px}.form-control:focus,.form-select:focus{border-color:#86b7fe;box-shadow:0 0 0 .2rem rgba(13,110,253,.20)}.btn{border-radius:.25rem;font-weight:500}.btn-primary{background:var(--brand-accent);border-color:var(--brand-accent)}
.table{--bs-table-bg:transparent}.table thead th{font-size:.74rem;text-transform:uppercase;letter-spacing:.025em;color:var(--admin-muted);background:rgba(0,0,0,.025);border-bottom-width:1px}.table td,.table th{vertical-align:middle}.table-hover tbody tr:hover{--bs-table-hover-bg:rgba(13,110,253,.045)}
.status-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.status-online{background:#198754}.status-offline{background:#dc3545}.action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:.5rem}.action-grid .btn{min-height:52px;display:flex;align-items:center;justify-content:center;gap:.4rem;white-space:normal}.info-list dt{color:var(--admin-muted);font-weight:500}.info-list dd{font-weight:600}.customer-hero{background:#3c8dbc;color:#fff;border:0}.balance-positive{color:#198754}.balance-negative{color:#dc3545}.map-box{height:68vh;min-height:480px}.modal-content{border:1px solid var(--admin-border);border-radius:.35rem;box-shadow:0 1rem 3rem rgba(0,0,0,.22)}.receipt{max-width:850px;margin:auto;background:#fff}.pos-receipt{width:80mm;margin:auto;font-family:monospace}.form-hint{font-size:.78rem;color:var(--admin-muted)}.required:after{content:' *';color:#dc3545}.mobile-sidebar-overlay{display:none}.uploaded-logo-preview{max-width:180px;max-height:90px;object-fit:contain;border:1px solid var(--admin-border);padding:.35rem;background:#fff}.nowrap{white-space:nowrap}.permission-scroll{max-height:270px;overflow:auto}.modern-alert{border-radius:.25rem}.brand-preview-card{border:1px solid var(--admin-border);background:var(--admin-card)}.brand-preview-top{height:90px;background:var(--preview-accent)}.brand-preview-body{padding:0 1.25rem 1.25rem;margin-top:-38px}.brand-preview-logo,.brand-preview-placeholder{width:76px;height:76px;background:#fff;border:4px solid #fff;object-fit:contain}.brand-preview-placeholder{display:grid;place-items:center;font-size:1.7rem;color:var(--preview-accent)}.olt-output{max-height:420px;overflow:auto;white-space:pre-wrap;background:var(--bs-tertiary-bg);padding:1rem}.users-cell{min-width:180px;max-width:360px;white-space:normal}.font-monospace{font-family:var(--bs-font-monospace)!important}
.portal-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.setting-switch{display:flex;align-items:flex-start;gap:.65rem;padding:.85rem;border:1px solid var(--admin-border);background:var(--admin-card);cursor:pointer}.setting-switch input{width:1.1rem;height:1.1rem;margin-top:.15rem}.setting-switch span{display:flex;flex-direction:column}.setting-switch small{color:var(--admin-muted)}.workspace-banner{border:1px solid #ffecb5;background:#fff3cd;color:#664d03}
[data-bs-theme="dark"]{--admin-bg:#1f232a;--admin-card:#2b3035;--admin-text:#dee2e6;--admin-muted:#adb5bd;--admin-border:#495057;--admin-shadow:0 1px 3px rgba(0,0,0,.35)}
[data-bs-theme="dark"] body.adminlte-classic{background:var(--admin-bg);color:var(--admin-text)}
[data-bs-theme="dark"] .app-header,[data-bs-theme="dark"] .app-footer,[data-bs-theme="dark"] .card,[data-bs-theme="dark"] .modern-card{background:var(--admin-card)}
[data-bs-theme="dark"] .table thead th,[data-bs-theme="dark"] .card-header,[data-bs-theme="dark"] .card-footer{background:rgba(255,255,255,.035)}
[data-bs-theme="dark"] .form-control,[data-bs-theme="dark"] .form-select{background:#212529;color:#f8f9fa;border-color:#495057}
[data-bs-theme="dark"] .form-control::placeholder{color:#adb5bd}
[data-bs-theme="dark"] .text-secondary{color:#adb5bd!important}
[data-bs-theme="dark"] .setting-switch{background:#2b3035}
@media(max-width:991.98px){.app-content{padding-top:.75rem}body .app-sidebar{z-index:1055!important;visibility:hidden!important;transform:translateX(-100%)!important;transition:transform .2s ease,visibility .2s ease!important}body.sidebar-mobile-open .app-sidebar,body.sidebar-open .app-sidebar{visibility:visible!important;transform:translateX(0)!important}.mobile-sidebar-overlay{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:1050;display:block;opacity:0;visibility:hidden;pointer-events:none;transition:.2s}body.sidebar-mobile-open .mobile-sidebar-overlay{opacity:1;visibility:visible;pointer-events:auto}body.sidebar-mobile-open{overflow:hidden}.app-sidebar{width:min(285px,88vw)!important}.app-sidebar .sidebar-wrapper{overflow-y:auto!important}.app-header{z-index:1040}}
@media(max-width:576px){.dashboard-stat{min-height:118px}.dashboard-stat .metric{font-size:1.55rem}.action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{font-size:1.25rem}.card-body{padding:.85rem}.portal-toggle-grid{grid-template-columns:1fr}}
@media print{.no-print,.app-header,.app-sidebar,.app-footer,.app-content-header,.mobile-sidebar-overlay{display:none!important}.app-main{margin:0!important}.app-content{padding:0!important}.container-fluid{padding:0!important}}


/* v0.9.7 fixed sidebar search, notifications and usage report */
.header-icon-btn{position:relative}.header-mini-plus{position:absolute;right:3px;bottom:1px;display:grid;place-items:center;width:14px;height:14px;border-radius:50%;background:#198754;color:#fff;font-size:11px;font-weight:800;line-height:1}.notification-count{position:absolute;right:-2px;top:1px;min-width:18px;height:18px;padding:0 4px;border-radius:999px;background:#dc3545;color:#fff;border:2px solid var(--admin-card,#fff);font-size:10px;font-weight:700;line-height:14px;text-align:center}
.sidebar-live-search{position:relative;padding:.25rem .75rem .75rem;border-bottom:1px solid rgba(255,255,255,.09);z-index:30}.sidebar-live-search .input-group-text,.sidebar-live-search .form-control,.sidebar-live-search .btn{border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff}.sidebar-live-search .form-control::placeholder{color:rgba(255,255,255,.55)}.sidebar-live-search .form-control:focus{background:rgba(255,255,255,.12);color:#fff;box-shadow:0 0 0 .15rem rgba(13,110,253,.3)}.sidebar-search-hint{padding:.3rem .1rem 0;color:rgba(255,255,255,.48);font-size:.7rem}.sidebar-search-results{position:absolute;left:.75rem;right:.75rem;top:48px;max-height:320px;overflow:auto;background:#fff;color:#1f2937;border-radius:.45rem;border:1px solid #d8dee8;box-shadow:0 .8rem 2rem rgba(0,0,0,.3);z-index:1090}.sidebar-search-item{display:flex;gap:.65rem;align-items:flex-start;padding:.68rem .75rem;color:#172033;text-decoration:none;border-bottom:1px solid #edf0f5}.sidebar-search-item:last-child{border-bottom:0}.sidebar-search-item:hover{background:#f2f6ff;color:#0d6efd}.sidebar-search-item strong,.sidebar-search-item small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sidebar-search-item small{font-size:.72rem;color:#6c757d;margin-top:.12rem}.sidebar-search-status{width:9px;height:9px;flex:0 0 9px;border-radius:50%;margin-top:.35rem}.sidebar-search-status.online{background:#198754;box-shadow:0 0 0 3px rgba(25,135,84,.15)}.sidebar-search-status.offline{background:#dc3545;box-shadow:0 0 0 3px rgba(220,53,69,.12)}.sidebar-search-empty{padding:.85rem;color:#6c757d;text-align:center;font-size:.82rem}
.usage-report-card .card-header{background:linear-gradient(135deg,rgba(13,110,253,.12),rgba(13,202,240,.08))}.usage-summary-card{height:100%;padding:1rem 1.1rem;border:1px solid var(--admin-border);border-radius:.55rem;background:var(--admin-card);box-shadow:var(--admin-shadow)}.usage-summary-card span{display:block;color:var(--admin-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.04em}.usage-summary-card strong{display:block;margin-top:.25rem;font-size:1.35rem}.usage-report-card+.row .usage-summary-card:nth-child(1){border-left:4px solid #0d6efd}.usage-report-card+.row>div:nth-child(2) .usage-summary-card{border-left:4px solid #6f42c1}.usage-report-card+.row>div:nth-child(3) .usage-summary-card{border-left:4px solid #fd7e14}.usage-report-card+.row>div:nth-child(4) .usage-summary-card{border-left:4px solid #198754}
[data-bs-theme="dark"] .sidebar-search-results{background:#252a30;color:#f8f9fa;border-color:#495057}[data-bs-theme="dark"] .sidebar-search-item{color:#f8f9fa;border-color:#343a40}[data-bs-theme="dark"] .sidebar-search-item:hover{background:#303844}[data-bs-theme="dark"] .sidebar-search-item small,[data-bs-theme="dark"] .sidebar-search-empty{color:#adb5bd}

/* v1.1.8 mobile navigation and branding */
.uploaded-favicon-preview{width:64px;height:64px;object-fit:contain;border:1px solid var(--admin-border);border-radius:.65rem;padding:.45rem;background:#fff}
.branding-preview-box{display:flex;align-items:center;gap:1rem;padding:.85rem;border:1px dashed var(--admin-border);border-radius:.65rem;background:var(--bs-tertiary-bg)}
@media(max-width:991.98px){
  body.adminlte-classic .app-sidebar{z-index:1070!important;pointer-events:auto!important}
  body.adminlte-classic .app-sidebar *{pointer-events:auto}
  .mobile-sidebar-overlay{z-index:1060!important}
  body.sidebar-mobile-open .app-sidebar,body.sidebar-open .app-sidebar{visibility:visible!important;transform:translateX(0)!important}
}

/* v1.2.0 cron scheduler and automatic logo-only branding */
.brand-link.logo-only{justify-content:center!important;padding-left:.65rem!important;padding-right:.65rem!important}
.brand-link.logo-only .brand-image{width:min(210px,100%)!important;height:42px!important;max-width:100%;object-fit:contain;border-radius:0}
.cron-scheduler-table .cron-field{display:none}
.cron-last-message{max-width:290px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cron-output-summary{cursor:pointer;color:var(--brand-accent);font-weight:600}
.cron-output{max-width:640px;max-height:260px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:var(--bs-tertiary-bg);border:1px solid var(--bs-border-color);border-radius:.4rem;padding:.75rem;font-size:.75rem}
@media(max-width:991.98px){.brand-link.logo-only .brand-image{width:min(230px,90%)!important;height:46px!important}}
@media(min-width:992px){body.adminlte-classic.sidebar-collapse .app-sidebar .brand-link.logo-only .brand-image{width:42px!important;height:42px!important}}

/* BS-V1281-EMERGENCY-START */
@import url('bs-v1281-emergency.css?v=1.2.81');
/* BS-V1281-EMERGENCY-END */
