@font-face{font-family:"TEE IOS";src:url("../fonts/TEE-IOS.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Lao Sans Pro";src:url("../fonts/LaoSansPro-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
.startup-loader{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;background:linear-gradient(135deg,#0f172a,#1e3a8a);color:#fff;opacity:1;transition:opacity .2s ease}.startup-loader.d-none{display:none!important}.startup-loader-card{display:flex;align-items:center;gap:10px;padding:16px 20px;border:1px solid rgba(255,255,255,.22);border-radius:16px;background:rgba(255,255,255,.1);box-shadow:0 14px 35px rgba(2,6,23,.24);font-size:14px;font-weight:750}.startup-loader-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dbeafe;color:#2563eb;font-size:18px;animation:startupPulse 1.15s ease-in-out infinite}.startup-loader-card>span:last-child{animation:startupTextPulse 1.15s ease-in-out infinite}@keyframes startupPulse{0%,100%{transform:scale(.92);opacity:.72}50%{transform:scale(1);opacity:1}}@keyframes startupTextPulse{0%,100%{opacity:.58}50%{opacity:1}}
html.lang-lo #settlementPrintArea,html.lang-lo #settlementPrintArea *{font-family:"Lao Sans Pro","Noto Sans Lao","Lao UI","Phetsarath OT","Leelawadee UI",sans-serif!important;line-height:1.55!important}html.lang-lo #settlementPrintArea .settlement-summary>div{align-items:center;min-height:48px}html.lang-lo #settlementPrintArea .settlement-summary .settlement-balance{min-height:64px}html.lang-lo #settlementPrintArea .settlement-summary strong{line-height:1.45!important}
.settlement-watermark-toggle,.settlement-logo-toggle{display:inline-flex!important;align-items:center;gap:5px;color:var(--primary,#145c96)!important;font-size:13px;font-weight:750;white-space:nowrap}.settlement-watermark-toggle{color:#15803d!important}.settlement-watermark-toggle input{accent-color:#16a34a}.settlement-logo-toggle input{accent-color:var(--primary,#145c96)}.settlement-watermark-toggle i,.settlement-logo-toggle i{font-size:14px}

html.lang-th #appShell .page-heading>div>.eyebrow,
html.lang-lo #appShell .page-heading>div>.eyebrow,
html.lang-th #appShell .section-heading .eyebrow,
html.lang-lo #appShell .section-heading .eyebrow{display:none}

@media(min-width:577px){
  #dashboardFilterActions{align-items:stretch!important}
  #dashboardFilterActions .dashboard-date-filter,
  #dashboardFilterActions .dashboard-date-filter .input-group,
  #dashboardFilterActions>#filterDashboard,
  #dashboardFilterActions>#setDashboardToday,
  #dashboardFilterActions>#clearDashboardDate{height:44px;min-height:44px}
  #dashboardFilterActions .dashboard-date-filter .form-control,
  #dashboardFilterActions .dashboard-date-filter .btn{height:44px;min-height:44px}
}

.bulk-import-bill-fields .form-label{margin-bottom:5px;font-size:.78rem;white-space:nowrap}.bulk-reference-input{display:flex;align-items:center;min-width:0}.bulk-reference-prefix{padding:0 5px;color:var(--primary-dark);font-weight:700;white-space:nowrap}.bulk-reference-input .form-control{min-width:0}.bulk-import-bill-fields .form-hint{display:block;margin-top:3px;font-size:.68rem;line-height:1.2}.bulk-import-items-wrap{-webkit-overflow-scrolling:touch}.bulk-import-items-table{min-width:650px}.bulk-item-type-select{width:92px;min-width:92px;min-height:38px;height:38px;padding:5px 25px 5px 7px;border-color:var(--primary);border-radius:10px;background-color:var(--surface,#fff);color:var(--primary-dark);font-weight:800}.bulk-item-number-cell{width:78px;max-width:78px}.bulk-item-number-cell .form-control{width:74px}.bulk-import-items-table td:nth-child(3),.bulk-import-items-table td:nth-child(4){width:100px}.bulk-import-items-table td:nth-child(3) .form-control,.bulk-import-items-table td:nth-child(4) .form-control{width:96px}

html[data-market-theme="teex7x-dark"] .admin-session-monitor-card,
html[data-market-theme="teex7x-dark"] .admin-session-user-card{background:#15171c!important;border-color:#3b4350!important;box-shadow:0 12px 28px rgba(0,0,0,.24)}
html[data-market-theme="teex7x-dark"] .admin-session-monitor-header,
html[data-market-theme="teex7x-dark"] .admin-session-user-head,
html[data-market-theme="teex7x-dark"] .admin-session-row{border-color:#3b4350!important}
html[data-market-theme="teex7x-dark"] .admin-session-monitor-note{background:#1a2a40!important;color:#b8d7ff!important;border-color:#385a82!important}
html[data-market-theme="teex7x-dark"] .admin-session-current-legend{background:#163a2c!important;color:#b6f4d4!important}
html[data-market-theme="teex7x-dark"] .admin-session-badge.is-active{background:#163a2c!important;color:#b6f4d4!important}
html[data-market-theme="teex7x-dark"] .admin-session-badge.is-idle{background:#3a2e18!important;color:#ffd99a!important}
html[data-market-theme="teex7x-dark"] .admin-session-badge.is-stale{background:#3b2028!important;color:#ffb9c3!important}
html[data-market-theme="teex7x-dark"] .admin-session-badge.is-current{background:#1e2f4a!important;color:#b8d7ff!important}
html[data-market-theme="teex7x-dark"] .admin-session-monitor-header strong,
html[data-market-theme="teex7x-dark"] .admin-session-user-identity strong,
html[data-market-theme="teex7x-dark"] .admin-session-device strong,
html[data-market-theme="teex7x-dark"] .admin-session-times strong{color:#edf3ff!important}
html[data-market-theme="teex7x-dark"] .admin-session-monitor-header span,
html[data-market-theme="teex7x-dark"] .admin-session-user-identity span,
html[data-market-theme="teex7x-dark"] .admin-session-device span,
html[data-market-theme="teex7x-dark"] .admin-session-times span{color:#b8c7db!important}

@media(max-width:576px){
  #ticket .entry-tabbed .ticket-type-tabs{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px;padding:8px;border-radius:15px 15px 0 0}
  #ticket .entry-tabbed .ticket-type-tabs button{min-width:0!important;min-height:48px;height:48px;padding:7px 4px!important;border:1px solid var(--primary)!important;border-radius:12px!important;background:var(--surface,#fff)!important;color:var(--primary-dark)!important;font-size:clamp(11px,3.1vw,14px)!important;line-height:1.1;white-space:nowrap;box-shadow:none!important;transform:none!important}
  #ticket .entry-tabbed .ticket-type-tabs button.active{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)))!important;color:#fff!important;box-shadow:0 4px 12px color-mix(in srgb,var(--primary) 26%,transparent)!important}
  .bulk-import-modal-dialog{width:calc(100% - 1rem);max-width:none;margin:.5rem auto}
  #bulkImportModal .modal-content{width:100%;min-width:0;overflow:hidden}
  #bulkImportModal .modal-body{padding:10px;overflow-x:hidden}
  #bulkImportModal .bulk-import-toolbar{grid-template-columns:1fr;padding:10px;gap:10px}
  #bulkImportModal .bulk-import-bill{padding:10px;border-radius:13px;overflow:hidden}
  #bulkImportModal .bulk-import-bill-fields{margin-inline:-3px}
  #bulkImportModal .bulk-import-bill-fields>[class*="col-"]{padding-inline:3px;min-width:0}
  #bulkImportModal .bulk-import-bill-fields .form-label{font-size:clamp(10px,2.7vw,12px);overflow:hidden;text-overflow:ellipsis}
  #bulkImportModal .bulk-import-bill-fields .form-control{min-width:0;padding-inline:6px;font-size:clamp(11px,3vw,14px)}
  #bulkImportModal .bulk-reference-prefix{padding-inline:2px;font-size:clamp(10px,2.7vw,12px)}
  #bulkImportModal .bulk-import-items-wrap{max-width:100%;overflow-x:auto}
  #bulkImportModal .bulk-import-items-table{min-width:560px}
  #bulkImportModal .bulk-import-items-table{width:100%;min-width:0!important;table-layout:fixed}
  #bulkImportModal .bulk-import-items-table th:nth-child(1),#bulkImportModal .bulk-import-items-table td:nth-child(1){width:23%}
  #bulkImportModal .bulk-import-items-table th:nth-child(2),#bulkImportModal .bulk-import-items-table td:nth-child(2){width:17%}
  #bulkImportModal .bulk-import-items-table th:nth-child(3),#bulkImportModal .bulk-import-items-table td:nth-child(3){width:23%}
  #bulkImportModal .bulk-import-items-table th:nth-child(4),#bulkImportModal .bulk-import-items-table td:nth-child(4){width:23%}
  #bulkImportModal .bulk-import-items-table th:nth-child(5),#bulkImportModal .bulk-import-items-table td:nth-child(5){width:14%}
  #bulkImportModal .bulk-import-items-table td{padding-inline:3px;vertical-align:middle}
  #bulkImportModal .bulk-import-items-table th{padding-inline:3px;overflow:hidden;text-overflow:ellipsis}
  #bulkImportModal .bulk-item-type-select{width:100%;min-width:0}
  #bulkImportModal .bulk-item-number-cell{width:auto;max-width:none}
  #bulkImportModal .bulk-item-number-cell .form-control,#bulkImportModal .bulk-import-items-table td:nth-child(3) .form-control,#bulkImportModal .bulk-import-items-table td:nth-child(4) .form-control{width:100%;min-width:0}
  #bulkImportModal .modal-dialog{width:calc(100% - .5rem);max-width:none;margin:.25rem auto}
  #bulkImportModal .modal-content{height:calc(100dvh - .5rem);max-height:calc(100dvh - .5rem);border-radius:14px}
  #bulkImportModal .modal-header{padding:12px 14px}
  #bulkImportModal .modal-body{padding:8px}
  #bulkImportModal .modal-footer{padding:8px;gap:6px}
  #bulkImportModal .modal-footer .btn{min-height:46px;border-radius:12px}
  #bulkImportModal .bulk-item-type-select{width:88px;min-width:88px;height:38px;min-height:38px;padding-inline:5px 20px;font-size:12px}
  #bulkImportModal .bulk-item-number-cell{width:72px;max-width:72px}
  #bulkImportModal .bulk-item-number-cell .form-control{width:68px}
  #bulkImportModal .bulk-import-items-table td:nth-child(3),#bulkImportModal .bulk-import-items-table td:nth-child(4){width:94px}
  #bulkImportModal .bulk-import-items-table td:nth-child(3) .form-control,#bulkImportModal .bulk-import-items-table td:nth-child(4) .form-control{width:90px}
  #bulkImportModal .bulk-import-items-wrap{overflow-x:hidden}
  #bulkImportModal .bulk-import-items-table{display:block;width:100%;min-width:0!important;table-layout:auto;border-collapse:separate}
  #bulkImportModal .bulk-import-items-table thead,#bulkImportModal .bulk-import-items-table tbody{display:block;width:100%}
  #bulkImportModal .bulk-import-items-table tr{display:grid;grid-template-columns:86px 72px minmax(0,1fr) minmax(0,1fr) 34px;column-gap:4px;align-items:center;width:100%}
  #bulkImportModal .bulk-import-items-table th,#bulkImportModal .bulk-import-items-table td{display:block;width:auto!important;min-width:0!important;max-width:none!important;padding:5px 2px;overflow:hidden;vertical-align:middle}
  #bulkImportModal .bulk-import-items-table th{font-size:11px;line-height:1.1;white-space:normal;word-break:break-word}
  #bulkImportModal .bulk-import-items-table td{height:48px}
  #bulkImportModal .bulk-item-type-select{width:86px;min-width:86px;height:40px;padding-inline:4px 16px;font-size:11px}
  #bulkImportModal .bulk-item-number-cell .form-control,#bulkImportModal .bulk-import-items-table td:nth-child(3) .form-control,#bulkImportModal .bulk-import-items-table td:nth-child(4) .form-control{height:40px;min-height:40px;width:100%;padding-inline:5px;font-size:14px}
  #bulkImportModal .bulk-import-items-table td:nth-child(5) .btn{width:32px;height:40px;padding:0}
  #bulkImportModal .bulk-import-items-table,#bulkImportModal .bulk-import-items-table thead,#bulkImportModal .bulk-import-items-table tbody{display:block!important;width:100%!important;min-width:0!important}
  #bulkImportModal .bulk-import-items-table tr{display:flex!important;width:100%!important;gap:4px}
  #bulkImportModal .bulk-import-items-table th,#bulkImportModal .bulk-import-items-table td{flex:0 0 auto!important}
  #bulkImportModal .bulk-import-items-table th:nth-child(1),#bulkImportModal .bulk-import-items-table td:nth-child(1){width:86px!important}
  #bulkImportModal .bulk-import-items-table th:nth-child(2),#bulkImportModal .bulk-import-items-table td:nth-child(2){width:72px!important}
  #bulkImportModal .bulk-import-items-table th:nth-child(3),#bulkImportModal .bulk-import-items-table td:nth-child(3),#bulkImportModal .bulk-import-items-table th:nth-child(4),#bulkImportModal .bulk-import-items-table td:nth-child(4){width:auto!important;flex:1 1 0!important}
  #bulkImportModal .bulk-import-items-table th:nth-child(5),#bulkImportModal .bulk-import-items-table td:nth-child(5){width:34px!important}
  #bulkImportModal .bulk-import-items-wrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  #bulkImportModal .bulk-import-items-table{display:table!important;width:560px!important;min-width:560px!important;table-layout:fixed!important}
  #bulkImportModal .bulk-import-items-table thead{display:table-header-group!important;width:auto!important}
  #bulkImportModal .bulk-import-items-table tbody{display:table-row-group!important;width:auto!important}
  #bulkImportModal .bulk-import-items-table tr{display:table-row!important;width:auto!important}
  #bulkImportModal .bulk-import-items-table th,#bulkImportModal .bulk-import-items-table td{display:table-cell!important;width:auto!important;min-width:0!important;max-width:none!important;flex:none!important;padding:5px 5px;overflow:visible}
  #bulkImportModal .bulk-import-items-table th:nth-child(1),#bulkImportModal .bulk-import-items-table td:nth-child(1){width:112px!important}
  #bulkImportModal .bulk-import-items-table th:nth-child(2),#bulkImportModal .bulk-import-items-table td:nth-child(2){width:82px!important}
  #bulkImportModal .bulk-import-items-table th:nth-child(3),#bulkImportModal .bulk-import-items-table td:nth-child(3),#bulkImportModal .bulk-import-items-table th:nth-child(4),#bulkImportModal .bulk-import-items-table td:nth-child(4){width:110px!important}
  #bulkImportModal .bulk-import-items-table th:nth-child(5),#bulkImportModal .bulk-import-items-table td:nth-child(5){width:46px!important}
  #bulkImportModal .bulk-item-type-select{width:102px!important;min-width:102px!important}
  #bulkImportModal .bulk-item-number-cell .form-control{width:72px!important}
  #bulkImportModal .bulk-import-items-table td:nth-child(3) .form-control,#bulkImportModal .bulk-import-items-table td:nth-child(4) .form-control{width:100px!important}
  #bulkImportModal .bulk-import-items-table{display:block!important;width:470px!important;min-width:470px!important;table-layout:auto!important}
  #bulkImportModal .bulk-import-items-table thead,#bulkImportModal .bulk-import-items-table tbody{display:block!important;width:470px!important}
  #bulkImportModal .bulk-import-items-table tr{display:grid!important;grid-template-columns:116px 82px 108px 108px 42px!important;gap:4px!important;width:470px!important}
  #bulkImportModal .bulk-import-items-table th,#bulkImportModal .bulk-import-items-table td{display:block!important;width:auto!important;min-width:0!important;max-width:none!important;padding:5px 2px!important;overflow:hidden!important}
  #bulkImportModal .bulk-import-items-table th:nth-child(1),#bulkImportModal .bulk-import-items-table td:nth-child(1),#bulkImportModal .bulk-import-items-table th:nth-child(2),#bulkImportModal .bulk-import-items-table td:nth-child(2),#bulkImportModal .bulk-import-items-table th:nth-child(3),#bulkImportModal .bulk-import-items-table td:nth-child(3),#bulkImportModal .bulk-import-items-table th:nth-child(4),#bulkImportModal .bulk-import-items-table td:nth-child(4),#bulkImportModal .bulk-import-items-table th:nth-child(5),#bulkImportModal .bulk-import-items-table td:nth-child(5){width:auto!important}
  #bulkImportModal .bulk-item-type-select{width:110px!important;min-width:110px!important}
  #bulkImportModal .bulk-item-number-cell .form-control{width:78px!important}
  #bulkImportModal .bulk-import-items-table td:nth-child(3) .form-control,#bulkImportModal .bulk-import-items-table td:nth-child(4) .form-control{width:100px!important}
}
html[data-market-theme="teex7x-dark"] .admin-session-device span,
html[data-market-theme="teex7x-dark"] .admin-session-device small,
html[data-market-theme="teex7x-dark"] .admin-session-times span,
html[data-market-theme="teex7x-dark"] .admin-session-protected,
html[data-market-theme="teex7x-dark"] .admin-session-empty{color:#aebed2!important}
html[data-market-theme="teex7x-dark"] .admin-session-avatar,
html[data-market-theme="teex7x-dark"] .admin-session-device-icon,
html[data-market-theme="teex7x-dark"] .admin-session-chevron{background:#1e2a3c!important;color:#9cc1ff!important;border-color:#49698f!important}

/* TEEX7X midnight: dark surfaces for the pre-workspace chooser and profile
   menu. Export/print actions are deliberately kept as light paper controls. */
html[data-market-theme="teex7x-dark"] #marketScreen{
  color:var(--text);
  background:radial-gradient(circle at 18% 12%,rgba(21,159,157,.22),transparent 34%),linear-gradient(135deg,#070b12 0%,#0d1b2d 54%,#102f3f 100%);
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-card{
  background:#17191e!important;color:var(--text);border-color:#465262!important;box-shadow:0 28px 70px rgba(0,0,0,.45);
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-card .text-secondary,
html[data-market-theme="teex7x-dark"] #marketScreen .market-card small{color:var(--muted)!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice{
  background:#111318!important;color:var(--text)!important;border-color:#465262!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice:hover,
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice:focus-visible{
  background:#1d3047!important;color:#fff!important;border-color:#159f9d!important;box-shadow:0 0 0 .22rem rgba(21,159,157,.18);
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice strong{color:inherit!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice>i{color:#9fb2cb!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice-icon{background:#1c2d43!important;color:#a9c9ff!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-lao .market-choice-icon{background:#173b3a!important;color:#70ded1!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-hanoi .market-choice-icon{background:#3a2f1b!important;color:#f3c56d!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer{border-color:#3b424e!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions,
html[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker{color:var(--text)}
html[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker,
html[data-market-theme="teex7x-dark"] #marketScreen .market-switch,
html[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker select{
  background:#111318!important;color:#dceaff!important;border-color:#465262!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-context-badge{background:#1b2a3a!important;color:#b8d7ff!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-primary{
  background:linear-gradient(135deg,#2867b4,#159f9d)!important;border-color:#159f9d!important;color:#fff!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-outline-primary,
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-outline-secondary{
  background:#17191e!important;color:#a9c9ff!important;border-color:#668bc1!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-outline-primary:hover,
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-outline-secondary:hover{
  background:#19354f!important;color:#fff!important;border-color:#159f9d!important;
}

html[data-market-theme="teex7x-dark"] .profile-dropdown,
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-dropdown-head,
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-language-section{
  background:#17191e!important;color:var(--text)!important;border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-dropdown-head span,
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-language-title{color:var(--muted)!important}
html[data-market-theme="teex7x-dark"] .profile-switch-section{
  background:#1c2938!important;color:var(--text)!important;border-color:#3d5875!important;
}
html[data-market-theme="teex7x-dark"] .profile-switch-section>label,
html[data-market-theme="teex7x-dark"] .profile-impersonation-mode>label{color:#dceaff!important}
html[data-market-theme="teex7x-dark"] .profile-switch-control .form-select,
html[data-market-theme="teex7x-dark"] .profile-switch-control select{
  background:#111318!important;color:var(--text)!important;border-color:#556274!important;
}
html[data-market-theme="teex7x-dark"] .profile-switch-control .btn-primary{
  background:linear-gradient(135deg,#2867b4,#159f9d)!important;border-color:#159f9d!important;color:#fff!important;
}
html[data-market-theme="teex7x-dark"] .profile-impersonation-mode{background:#2b2418!important;border-color:#8c622e!important}
html[data-market-theme="teex7x-dark"] .profile-mode-buttons button{background:#17191e!important;color:#c7d7ed!important;border-color:#556274!important}
html[data-market-theme="teex7x-dark"] .profile-mode-buttons button.is-active[data-impersonation-mode="read"]{background:#26303d!important;color:#fff!important;border-color:#8b9bb0!important}
html[data-market-theme="teex7x-dark"] .profile-mode-buttons button.is-active[data-impersonation-mode="write"]{background:#3a2a1a!important;color:#ffd6a0!important;border-color:#f3a446!important}
html[data-market-theme="teex7x-dark"] .profile-impersonation-mode small{color:#b6c6da!important}
html[data-market-theme="teex7x-dark"] .profile-dropdown .dropdown-divider{border-color:var(--border)!important}
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-logout{color:#ff8a96!important}
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-logout:hover{background:#3b2028!important;color:#ffd0d7!important}

/* The live settlement action bar follows the active theme. Generated
   PNG/PDF export clones are styled separately as light paper below. */
html[data-market-theme="teex7x-dark"] #settlement .page-heading-actions{background:rgba(23,25,30,.96)!important;border-color:#3b424e!important}
html[data-market-theme="teex7x-dark"] #settlement .page-heading-actions .btn-primary{background:linear-gradient(135deg,#2867b4,#159f9d)!important;color:#fff!important;border-color:#159f9d!important}
html[data-market-theme="teex7x-dark"] #settlement .page-heading-actions .btn-outline-primary{background:#17191e!important;color:#a9c9ff!important;border-color:#668bc1!important}

/* Admin Center: read-only cross-workspace overview, follows the active theme. */
.admin-center-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;padding:14px 16px;border:1px solid var(--border,#dbe4ef);border-radius:18px;background:var(--surface,#fff);box-shadow:0 8px 24px rgba(15,23,42,.05)}
.admin-center-toolbar strong{display:block;margin-top:2px;color:var(--text,#0f172a);font-size:1.05rem}
.admin-center-scope-label{display:block;color:var(--muted,#64748b);font-size:.82rem}
.admin-center-scope-select{width:min(220px,42%);margin:0}
.admin-center-scope-select .form-select{border-color:var(--primary,#2563eb);font-weight:600}
.admin-center-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.admin-center-kpi{min-height:108px;padding:16px;border:1px solid var(--border,#dbe4ef);border-left:4px solid var(--primary,#2563eb);border-radius:18px;background:var(--surface,#fff);box-shadow:0 8px 24px rgba(15,23,42,.05)}
.admin-center-kpi span{display:block;color:var(--muted,#64748b);font-size:.9rem}
.admin-center-kpi strong{display:block;margin-top:7px;color:var(--text,#0f172a);font-size:1.45rem;line-height:1.15}
.admin-center-kpi small{display:block;margin-top:6px;color:var(--muted,#64748b)}
.admin-center-kpi-green{border-left-color:#16a34a}.admin-center-kpi-red{border-left-color:#ef4444}.admin-center-kpi-orange{border-left-color:#f59e0b}.admin-center-kpi-violet{border-left-color:#8b5cf6}.admin-center-kpi-blue{border-left-color:#2563eb}
.admin-center-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
.admin-center-card{overflow:hidden;border:1px solid var(--border,#dbe4ef);border-radius:20px;background:var(--surface,#fff);box-shadow:0 10px 28px rgba(15,23,42,.05)}
.admin-center-card .card-header{display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--border,#dbe4ef);background:color-mix(in srgb,var(--primary,#2563eb) 6%,var(--surface,#fff));font-weight:700}
.admin-center-table{font-size:.92rem}.admin-center-table th{white-space:nowrap;color:var(--muted,#64748b);font-weight:700}.admin-center-table td{vertical-align:middle}
.admin-center-market{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}.admin-center-market img{width:22px;height:15px;object-fit:cover;border-radius:3px}
.admin-center-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--primary,#2563eb) 10%,var(--surface,#fff));color:var(--primary-dark,#1d4ed8);font-weight:700;white-space:nowrap}
.admin-center-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px}.admin-center-actions .btn{min-height:42px;border-color:var(--primary,#2563eb);color:var(--primary-dark,#1d4ed8)}
.admin-center-readonly{margin:0;padding:0 16px 16px;color:var(--muted,#64748b);font-size:.9rem}.admin-center-readonly i{margin-right:6px;color:var(--accent,#119f9a)}
.admin-center-finance-type{font-weight:700}.admin-center-finance-type.is-income{color:#159447}.admin-center-finance-type.is-expense{color:#dc2626}
@media (max-width:900px){.admin-center-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-center-grid{grid-template-columns:1fr}}
@media (max-width:560px){.admin-center-toolbar{align-items:stretch;flex-direction:column}.admin-center-scope-select{width:100%}.admin-center-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.admin-center-kpi{min-height:94px;padding:12px;border-radius:15px}.admin-center-kpi strong{font-size:1.15rem}.admin-center-kpi small{font-size:.78rem}.admin-center-card{border-radius:16px}.admin-center-table{font-size:.84rem}.admin-center-actions{grid-template-columns:1fr}.admin-center-card .table-responsive{overflow-x:auto}}

/* Active-session monitor: compact iOS-style cards for admin device review. */
.admin-session-monitor-card{grid-column:1/-1;margin-top:18px}
.admin-session-monitor-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 20px}
.admin-session-monitor-header>div:first-child{display:grid;gap:4px}.admin-session-monitor-header strong{color:var(--text,#0f172a);font-size:1.05rem}.admin-session-monitor-header strong i{margin-right:6px;color:var(--primary,#2563eb)}.admin-session-monitor-header span{color:var(--muted,#64748b);font-size:.82rem;font-weight:500}
.admin-session-monitor-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.admin-session-total,.admin-session-count{display:inline-flex;align-items:center;gap:5px;color:var(--primary-dark,#1d4ed8);font-size:.8rem;font-weight:750;white-space:nowrap}.admin-session-monitor-actions .btn{border-radius:12px}
.admin-session-monitor-note{display:flex;align-items:center;gap:7px;padding:10px 20px;border-bottom:1px solid var(--border,#dbe4ef);background:color-mix(in srgb,var(--primary,#2563eb) 4%,var(--surface,#fff));color:var(--muted,#64748b);font-size:.8rem}.admin-session-monitor-note i{color:var(--primary,#2563eb)}
.admin-session-status-legend{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}.admin-session-threshold-note{width:100%;color:var(--muted,#64748b);font-size:.72rem}.admin-session-current-legend{display:inline-flex;align-items:center;gap:5px;margin-left:auto;padding:4px 8px;border-radius:999px;background:#dcfce7;color:#166534;font-size:.72rem;font-weight:750;white-space:nowrap}.admin-session-current-legend i{color:#16a34a}.admin-session-monitor-body{padding:14px}.admin-session-groups{display:grid;gap:12px}.admin-session-user-card{overflow:hidden;border:1px solid var(--border,#dbe4ef);border-radius:17px;background:color-mix(in srgb,var(--surface,#fff) 96%,var(--primary,#2563eb));box-shadow:0 7px 20px rgba(15,23,42,.045)}
.admin-session-user-card>summary{list-style:none;cursor:pointer}.admin-session-user-card>summary::-webkit-details-marker{display:none}.admin-session-chevron{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;margin-left:8px;border:1px solid color-mix(in srgb,var(--primary,#2563eb) 28%,var(--border,#dbe4ef));border-radius:9px;background:color-mix(in srgb,var(--primary,#2563eb) 7%,var(--surface,#fff));color:var(--primary,#2563eb);font-size:.9rem;line-height:1;transition:transform .18s ease}.admin-session-user-card[open]>summary .admin-session-chevron{transform:rotate(180deg)}
.admin-session-user-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid var(--border,#dbe4ef)}.admin-session-user-identity{display:flex;align-items:center;gap:10px;min-width:0}.admin-session-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:13px;background:color-mix(in srgb,var(--primary,#2563eb) 12%,var(--surface,#fff));color:var(--primary,#2563eb)}.admin-session-user-identity>div:last-child{display:grid;gap:2px;min-width:0}.admin-session-user-identity strong{overflow:hidden;color:var(--text,#0f172a);font-size:.94rem;text-overflow:ellipsis;white-space:nowrap}.admin-session-user-identity span{overflow:hidden;color:var(--muted,#64748b);font-size:.78rem;text-overflow:ellipsis;white-space:nowrap}.admin-session-user-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.admin-session-user-actions .btn{border-radius:11px}
.admin-session-select-all{display:inline-flex;align-items:center;gap:6px;color:var(--primary-dark,#1d4ed8);font-size:.78rem;font-weight:750;white-space:nowrap;cursor:pointer}.admin-session-select-all input,.admin-session-select input{width:18px;height:18px;accent-color:var(--primary,#2563eb);cursor:pointer}.admin-session-select{display:grid;place-items:center;margin:0;cursor:pointer}.admin-session-list{display:grid}.admin-session-row{display:grid;grid-template-columns:28px minmax(190px,1.25fr) minmax(230px,1fr) minmax(180px,.8fr);align-items:center;gap:16px;padding:14px 16px;border-bottom:1px solid color-mix(in srgb,var(--border,#dbe4ef) 75%,transparent)}.admin-session-row:last-child{border-bottom:0}.admin-session-device{display:flex;align-items:center;gap:10px;min-width:0}.admin-session-device-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:color-mix(in srgb,var(--primary,#2563eb) 9%,var(--surface,#fff));color:var(--primary,#2563eb)}.admin-session-device>div:last-child{display:grid;gap:2px;min-width:0}.admin-session-device strong,.admin-session-device span,.admin-session-device small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-session-device strong{color:var(--text,#0f172a);font-size:.86rem}.admin-session-device span,.admin-session-device small{color:var(--muted,#64748b);font-size:.76rem}.admin-session-device small{font-size:.7rem}.admin-session-times{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.admin-session-times div{display:grid;gap:3px;min-width:0}.admin-session-times span{color:var(--muted,#64748b);font-size:.7rem}.admin-session-times strong{color:var(--text,#0f172a);font-size:.77rem;font-weight:700;white-space:nowrap}.admin-session-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.admin-session-row-actions .btn{border-radius:11px}.admin-session-badges{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.admin-session-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 7px;border-radius:999px;font-size:.68rem;font-weight:750;white-space:nowrap}.admin-session-badge.is-active{background:#dcfce7;color:#166534}.admin-session-badge.is-idle{background:#fef3c7;color:#92400e}.admin-session-badge.is-stale{background:#fee2e2;color:#b91c1c}.admin-session-badge.is-expired{background:#e2e8f0;color:#475569}.admin-session-badge.is-current{background:#dbeafe;color:#1d4ed8}.admin-session-badge.is-impersonated{background:#fef3c7;color:#92400e}.admin-session-protected{display:inline-flex;align-items:center;gap:5px;color:var(--muted,#64748b);font-size:.72rem;text-align:right}.admin-session-empty{display:grid;place-items:center;gap:8px;min-height:150px;padding:20px;text-align:center;color:var(--muted,#64748b)}.admin-session-empty i{font-size:29px;color:var(--primary,#2563eb)}.admin-session-empty p{margin:0;font-size:.86rem}
@media(max-width:900px){.admin-session-row{grid-template-columns:28px minmax(190px,1fr) minmax(210px,1fr)}.admin-session-row-actions{grid-column:2/-1;justify-content:flex-start}.admin-session-badges{margin-right:auto}}
@media(max-width:560px){.admin-session-monitor-header{align-items:flex-start;flex-direction:column;padding:15px}.admin-session-monitor-actions{width:100%;justify-content:space-between}.admin-session-monitor-note{align-items:flex-start;flex-wrap:wrap;padding:10px 15px}.admin-session-status-legend{width:100%}.admin-session-current-legend{margin-left:0}.admin-session-monitor-body{padding:10px}.admin-session-user-head{align-items:flex-start;flex-direction:column;padding:13px}.admin-session-user-actions{width:100%;justify-content:space-between}.admin-session-row{grid-template-columns:28px 1fr;gap:11px;padding:13px}.admin-session-device,.admin-session-times,.admin-session-row-actions{grid-column:2}.admin-session-times{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.admin-session-row-actions{justify-content:space-between}.admin-session-protected{text-align:left}}


.settlement-footer{display:flex;justify-content:space-between;align-items:flex-end;gap:28px;margin-top:14px}.settlement-remark{width:430px;min-height:170px;border:2px solid #60a5fa;border-radius:15px;background:#eff6ff;padding:20px 22px;color:#1e3a5f;box-shadow:0 6px 16px rgba(37,99,235,.12)}.settlement-remark-title{display:flex;align-items:center;gap:8px;margin:0 0 13px;color:#1d4ed8;font-size:18px;font-weight:900;letter-spacing:0}.settlement-remark-title i{font-size:17px}.settlement-remark>div{display:flex;align-items:baseline;gap:12px;padding:9px 0;border-top:1px solid #bfdbfe;font-size:16px;line-height:1.6}.settlement-remark>div strong{color:#172033;white-space:nowrap;font-weight:900}.settlement-remark>div span{color:#294f76;font-weight:650}.settlement-remark>div strong,.settlement-remark>div span{display:inline-flex;align-items:center;gap:6px}.settlement-remark>div strong i{color:#1d4ed8;font-size:.95em}.settlement-remark-action>span,.settlement-remark-payment>strong,.settlement-remark-payment>span{color:#b91c1c;font-weight:900}.settlement-remark-payment{gap:8px;white-space:nowrap}.settlement-remark-payment>span{white-space:nowrap}.settlement-remark-action>span i{color:#dc2626;font-size:1em}.settlement-commission-breakdown .settlement-breakdown-title{font-size:14px}.settlement-commission-breakdown .table th{font-size:13px}.settlement-commission-breakdown .table td{font-size:13.5px;line-height:1.45}.settlement-commission-breakdown .table tfoot th{font-size:13.5px}@media(max-width:576px){#settlementPrintArea .settlement-footer{flex-direction:column;align-items:stretch;gap:14px}#settlementPrintArea .settlement-remark{width:100%;min-width:0;max-width:none;min-height:0;padding:17px 18px}#settlementPrintArea .settlement-remark-title{font-size:16px}#settlementPrintArea .settlement-remark>div{align-items:flex-start;flex-direction:column;gap:1px;font-size:15px}#settlementPrintArea .settlement-summary{margin-left:0}}@media print{#settlementPrintArea .settlement-footer{margin:14px 16px 16px;align-items:flex-end}#settlementPrintArea .settlement-remark{width:400px;max-width:400px;min-height:155px;padding:18px 20px}#settlementPrintArea .settlement-remark-title{font-size:17px}#settlementPrintArea .settlement-remark>div{font-size:15px;line-height:1.55}#settlementPrintArea .settlement-summary{margin:0;width:280px}}
body{font-family:"TEE IOS","Segoe UI",Tahoma,sans-serif!important}
html.lang-lo body{font-family:"Noto Sans Lao UI","Lao Sans Pro","Noto Sans Lao","Lao UI","Phetsarath OT","Leelawadee UI",sans-serif!important}
:root{--primary:#2563eb;--primary-dark:#1d4ed8;--primary-soft:#dbeafe;--sidebar:#0f172a;--background:#f1f5f9;--white:#fff;--border:#e2e8f0;--text:#172033;--muted:#4d5f73;--success:#16a34a;--danger:#dc2626;--warning:#d97706}
*{box-sizing:border-box} body{margin:0;background:var(--background);font-family:"Segoe UI",Tahoma,sans-serif;color:var(--text)} button,input,select{font:inherit}.wrapper{display:flex;min-height:100vh}#sidebar{width:250px;background:var(--sidebar);color:#fff;position:fixed;inset:0 auto 0 0;z-index:1035;display:flex;flex-direction:column;transition:width .25s,left .25s;overflow:auto}.logo{height:70px;display:flex;align-items:center;justify-content:center;gap:12px;border-bottom:1px solid rgba(255,255,255,.09);font-size:21px;font-weight:700;white-space:nowrap}.logo i{color:#60a5fa}#sidebar ul{padding:16px 14px;margin:0;list-style:none}#sidebar li{display:flex;align-items:center;gap:14px;padding:13px 15px;margin-bottom:5px;border-radius:10px;cursor:pointer;transition:background .2s;white-space:nowrap}#sidebar li:hover{background:rgba(255,255,255,.08)}#sidebar li.active{background:var(--primary)}#sidebar li i{font-size:19px}.sidebar-note{display:flex;gap:8px;margin:auto 18px 20px;padding-top:16px;border-top:1px solid rgba(255,255,255,.1);color:#94a3b8;font-size:12px;line-height:1.35}#sidebar.hide{width:70px}#sidebar.hide span{display:none}#sidebar.hide .sidebar-note{justify-content:center;margin-inline:10px}main{width:100%;margin-left:250px;transition:margin-left .25s}#sidebar.hide+main{margin-left:70px}.navbar{height:70px;background:var(--white);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 26px}.navbar button{border:0;background:transparent;font-size:25px;color:var(--text);line-height:1}.title{font-weight:700;font-size:20px}.user{font-weight:700;color:var(--primary);font-size:14px}#content{padding:28px;max-width:1500px;margin:0 auto}.hero,.page-heading{margin-bottom:21px}.hero h1,.page-heading h1{font-size:clamp(25px,3vw,32px);font-weight:750;margin:0 0 7px}.page-heading p{color:var(--muted);margin:0}.eyebrow{color:var(--primary);font-size:12px;letter-spacing:.11em;font-weight:800;margin:0 0 6px}.card{border:0;border-radius:15px;box-shadow:0 8px 25px rgba(15,23,42,.055);overflow:hidden}.card-header{background:#fff;border-bottom:1px solid var(--border);font-weight:700;padding:15px 20px}.card-body{padding:21px}.card-footer{background:#fff;border-top:1px solid var(--border);padding:15px 20px}.dashboard-card{height:100%;border-left:4px solid var(--primary)}.dashboard-card.customers{border-left-color:#8b5cf6}.dashboard-card.tickets{border-left-color:#f59e0b}.dashboard-card.payout{border-left-color:#16a34a}.dashboard-card .card-body{position:relative;padding:21px 20px}.dashboard-card p,.report-stat p{color:var(--muted);font-size:14px;margin:0 0 9px}.dashboard-card h2{margin:0;font-size:31px;font-weight:750;letter-spacing:-.04em}.dashboard-card small{color:var(--muted)}.stat-icon{position:absolute;right:17px;top:18px;width:38px;height:38px;display:grid;place-items:center;background:#eff6ff;color:var(--primary);border-radius:11px;font-size:18px}.customers .stat-icon{background:#f5f3ff;color:#7c3aed}.tickets .stat-icon{background:#fffbeb;color:#d97706}.payout .stat-icon{background:#f0fdf4;color:#16a34a}.form-label{font-weight:650;font-size:14px}.form-control,.form-select{border:1px solid var(--border);border-radius:10px;min-height:44px}.form-control:focus,.form-select:focus{border-color:var(--primary);box-shadow:0 0 0 .22rem rgba(37,99,235,.14)}.form-hint{font-size:12px;color:var(--muted)}.type-select{width:auto;min-width:140px}.btn{border-radius:9px;font-weight:650}.btn-primary{background:var(--primary);border-color:var(--primary)}.btn-primary:hover,.btn-primary:focus{background:var(--primary-dark);border-color:var(--primary-dark)}.table{margin-bottom:0}.table thead th{background:#f8fafc;color:#475569;border-bottom-width:1px;font-size:12px;text-transform:uppercase;letter-spacing:.035em;white-space:nowrap}.table td,.table th{padding:13px 20px;vertical-align:middle}.table-hover tbody tr{cursor:default}.ticket-info-card{top:18px}.total-display{display:block;color:var(--primary);font-size:22px;line-height:1.1}.badge-status{font-size:11px;padding:6px 8px;border-radius:99px;font-weight:700}.badge-active{background:#dcfce7;color:#166534}.badge-checked{background:#dbeafe;color:#1d4ed8}.badge-cancel{background:#fee2e2;color:#b91c1c}.empty-state{min-height:140px;display:grid;place-content:center;text-align:center;color:var(--muted);gap:8px}.empty-state i{font-size:34px;color:#94a3b8}.empty-state p{margin:0}.customer-list{display:flex;flex-wrap:wrap;gap:8px}.customer-chip{display:inline-flex;align-items:center;gap:7px;padding:6px 8px 6px 11px;border-radius:20px;background:#eff6ff;color:#1e40af;font-size:14px}.customer-chip button{border:0;background:transparent;color:#64748b;padding:0;line-height:1}.customer-chip button:hover{color:var(--danger)}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.app-toast{position:fixed;right:22px;bottom:22px;z-index:2000;max-width:360px;padding:13px 17px;border-radius:10px;background:#172033;color:#fff;box-shadow:0 12px 28px rgba(15,23,42,.26);transform:translateY(90px);opacity:0;transition:.25s;pointer-events:none}.app-toast.show{transform:translateY(0);opacity:1}.app-toast.success{background:#166534}.app-toast.danger{background:#b91c1c}.modal-ticket-item{padding:12px 0;border-bottom:1px solid var(--border)}.modal-ticket-item:last-child{border-bottom:0}.modal-summary{background:#eff6ff;border-radius:10px;padding:13px 15px}.result-line{padding:9px 0;border-bottom:1px solid var(--border)}.result-line:last-child{border-bottom:0}.report-stat h3{margin:0;font-size:24px;font-weight:750}.link-button{padding:0;border:0;background:transparent;color:var(--primary);font-weight:700;text-decoration:none}.link-button:hover{text-decoration:underline}.hidden{display:none!important}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:16px}.section-heading h2{margin:0 0 5px;font-size:22px;font-weight:750}.section-heading p{margin:0;color:var(--muted);font-size:14px}.ranking-controls{display:flex;flex-wrap:wrap;gap:10px}.ranking-controls>div{min-width:146px}.ranking-controls .form-label{margin-bottom:4px}.ranking-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.ranking-header>span:first-child{display:flex;align-items:center;gap:8px}.ranking-header i{color:var(--primary)}.ranking-table .table td,.ranking-table .table th{padding-block:11px}.ranking-table .rank-group-heading{background:#eff6ff;color:#1d4ed8}.rank-order{display:inline-grid;place-items:center;min-width:27px;height:27px;border-radius:50%;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:800}.rank-number{font-family:Consolas,"Courier New",monospace;font-size:16px;letter-spacing:.08em;font-weight:800}.ranking-table tbody tr:nth-child(-n+3) .rank-order{background:#fef3c7;color:#a16207}.reference-prefix{min-width:82px;justify-content:center;background:#eff6ff;color:#1d4ed8;border-color:var(--border);font-family:Consolas,"Courier New",monospace;font-weight:800;letter-spacing:.03em}.ticket-detail-section{margin-top:20px}.ticket-detail-section h6{margin:0;padding:10px 14px;background:#eff6ff;border-radius:9px 9px 0 0;color:#1d4ed8;font-weight:800}.ticket-detail-table{border:1px solid var(--border);border-top:0;border-radius:0 0 9px 9px;overflow:hidden}.ticket-detail-table .table th,.ticket-detail-table .table td{padding:10px 12px}.ticket-detail-table .table thead th{font-size:11px}.ticket-detail-table .table tbody td{font-size:14px}.ticket-detail-table .table tbody tr:last-child td{border-bottom:0}
#sidebar li.submenu-item{display:none;margin-left:13px;padding-block:9px;color:#cbd5e1;font-size:14px}#sidebar.report-expanded li.report-submenu,#sidebar.result-expanded li.result-submenu,#sidebar.settings-expanded li.settings-submenu{display:flex}#sidebar li.submenu-item i{font-size:16px}.coverage-card{border-top:4px solid var(--primary)}.coverage-card:nth-child(2){border-top-color:#8b5cf6}.coverage-header{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:16px;font-weight:750}.coverage-header i{color:var(--primary)}.coverage-header strong{color:var(--primary);font-size:20px}.coverage-value{display:flex;align-items:baseline;gap:6px;margin:16px 0 12px}.coverage-value strong{font-size:30px;line-height:1;color:var(--text)}.coverage-value span{color:var(--muted);font-size:14px}.coverage-progress{height:10px;margin-bottom:10px;background:#e2e8f0}.coverage-progress .progress-bar{background:linear-gradient(90deg,#2563eb,#60a5fa);transition:width .25s ease}.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 100%)}.login-card{width:min(100%,430px);padding:34px;background:#fff;border-radius:20px;box-shadow:0 24px 60px rgba(15,23,42,.3)}.login-brand{display:flex;align-items:center;gap:14px;margin-bottom:18px}.login-brand p{margin:0;color:var(--primary);font-size:12px;font-weight:800;letter-spacing:.12em}.login-brand h1{margin:2px 0 0;font-size:27px;font-weight:800}.login-icon{width:50px;height:50px;display:grid;place-items:center;border-radius:14px;background:#dbeafe;color:var(--primary);font-size:25px}.login-error{padding:9px 12px;border-radius:9px;background:#fee2e2;color:#b91c1c;font-size:14px}.login-note{margin:24px 0 0;color:var(--muted);font-size:12px;line-height:1.4}.user-session{display:flex;align-items:center;gap:12px}.user-session .btn{white-space:nowrap}#userTable code{color:#1e40af;font-size:13px}
.coverage-bottom{border-top-color:#8b5cf6}.coverage-three{border-top-color:#f59e0b}.coverage-bottom .coverage-header i,.coverage-bottom .coverage-header strong{color:#7c3aed}.coverage-three .coverage-header i,.coverage-three .coverage-header strong{color:#d97706}.coverage-bottom .progress-bar{background:linear-gradient(90deg,#8b5cf6,#c4b5fd)}.coverage-three .progress-bar{background:linear-gradient(90deg,#f59e0b,#fcd34d)}.range-native-picker{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.blocked-badge{display:inline-flex;align-items:center;gap:4px;margin-left:7px;padding:3px 6px;border-radius:99px;background:#fff7ed;color:#c2410c;font-size:11px;font-weight:800;letter-spacing:0;vertical-align:middle;white-space:nowrap}.blocked-badge i{font-size:10px}.blocked-badge-full{background:#eff6ff;color:#1d4ed8}.blocked-hint{display:flex;align-items:center;gap:7px;margin-top:14px;padding:10px 12px;border-radius:9px;background:#fff7ed;color:#c2410c;font-size:14px;font-weight:700}.blocked-hint i{font-size:16px}.blocked-full-option{margin-top:10px;padding:10px 12px 10px 34px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;color:#1e3a8a}.blocked-full-option .form-check-input{margin-left:-22px}.blocked-full-option .form-check-label{font-weight:800}.blocked-full-option .form-hint{color:#475569}.ticket-note{padding:11px 13px;border:1px solid #dbeafe;border-radius:9px;background:#eff6ff;color:#1e3a8a;font-size:14px;line-height:1.5}.ticket-note>span{display:block;margin-bottom:3px;font-weight:800}
.settlement-head{display:flex;justify-content:space-between;gap:20px;padding-bottom:18px;margin-bottom:16px;border-bottom:1px solid var(--border)}.settlement-head h2{margin:0;font-size:25px;font-weight:800}.settlement-customer{display:flex;gap:10px;align-items:center;margin-bottom:16px;color:var(--muted)}.settlement-customer strong{color:var(--text)}.settlement-table th,.settlement-table td{padding:11px 13px}.settlement-table tfoot td{background:#f8fafc;border-top:2px solid var(--border);font-weight:800}.settlement-summary{margin-left:auto;display:grid;grid-template-columns:minmax(160px,260px);gap:8px}.settlement-summary>div{display:flex;justify-content:space-between;gap:18px;padding:8px 12px;border-bottom:1px solid var(--border)}.settlement-summary>div>span{color:var(--muted)}.settlement-summary>div>strong{font-variant-numeric:tabular-nums}.settlement-summary .settlement-balance{margin-top:4px;border:1px solid #16a34a;border-radius:8px;background:#f0fdf4;color:#166534;font-size:18px;font-weight:800}.settlement-summary .settlement-balance>span{color:inherit}.settlement-summary .settlement-balance.negative{border-color:#dc2626;background:#fef2f2;color:#b91c1c}
.blocked-number-list{display:flex;flex-wrap:wrap;gap:9px;min-height:38px}.blocked-number-chip{display:inline-flex;align-items:center;gap:8px;padding:6px 8px 6px 11px;border:1px solid #fed7aa;border-radius:99px;background:#fff7ed;color:#9a3412;font-weight:800}.blocked-number-chip .rank-number{font-size:15px}.blocked-number-round{font-size:12px;font-weight:650;letter-spacing:0}.blocked-number-chip button{display:grid;place-items:center;width:23px;height:23px;padding:0;border:0;border-radius:50%;background:transparent;color:#c2410c}.blocked-number-chip button:hover{background:#fed7aa}.blocked-number-empty{display:flex;align-items:center;color:var(--muted);font-size:14px}
.market-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 100%)}.market-card{width:min(100%,620px);padding:34px;background:#fff;border-radius:20px;box-shadow:0 24px 60px rgba(15,23,42,.3)}.market-grid{display:grid;gap:12px}.market-choice{width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:15px 16px;border:1px solid var(--border);border-radius:13px;background:#fff;color:var(--text);text-align:left;transition:.2s}.market-choice:hover,.market-choice:focus{border-color:var(--primary);background:#eff6ff;box-shadow:0 0 0 .2rem rgba(37,99,235,.1)}.market-choice-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#dbeafe;color:#1d4ed8;font-size:20px}.market-lao .market-choice-icon{background:#dcfce7;color:#15803d}.market-hanoi .market-choice-icon{background:#fef3c7;color:#b45309}.market-choice strong,.market-choice small{display:block}.market-choice strong{font-size:18px}.market-choice small{margin-top:2px;color:var(--muted);font-size:12px}.market-choice>i{color:#94a3b8}.market-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;padding-top:17px;border-top:1px solid var(--border)}.market-switch{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:5px 10px;border:1px solid #bfdbfe;border-radius:9px;background:#eff6ff;color:#1d4ed8;font-size:13px}.market-switch strong{font-size:14px}.market-context-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;border-radius:99px;background:#dbeafe;color:#1d4ed8;font-size:12px;font-weight:800;white-space:nowrap}
.market-choice.active{border-color:var(--primary);background:#eff6ff;box-shadow:0 0 0 .2rem rgba(37,99,235,.1)}
textarea{font:inherit}
.result-derived{padding:10px 12px;border-radius:9px;background:#eff6ff;color:#1e40af;font-size:13px}.result-derived strong{font-family:Consolas,monospace;font-size:15px}
.settlement-sheet{border:1px solid #d9e2ee!important}.settlement-head{align-items:flex-start;padding-bottom:16px}.settlement-head .eyebrow{color:#2563eb;font-size:11px;letter-spacing:.12em}.settlement-head h2{font-size:28px;letter-spacing:-.02em;line-height:1.08}.settlement-head .text-secondary{font-size:14px}.settlement-head strong{font-size:15px;font-weight:750}.settlement-customer{padding:3px 0 14px;font-size:16px}.settlement-customer strong{font-size:18px}.settlement-table{font-size:14px}.settlement-table thead th{font-size:11px;color:#52647a;letter-spacing:.02em}.settlement-summary{grid-template-columns:minmax(220px,300px);gap:4px}.settlement-summary>div{padding:9px 12px;font-size:16px}.settlement-summary .settlement-balance{padding:12px 14px;font-size:19px;letter-spacing:-.01em}
.settlement-summary{grid-template-columns:minmax(210px,270px)}.settlement-summary>div{padding:7px 10px;font-size:15px}.settlement-summary .settlement-balance{padding:9px 12px;font-size:17px}.settlement-trim-note{margin:2px 4px 0 auto;width:270px;color:#dc2626;font-size:12px;font-style:italic;text-align:right}
.entry-card-header{display:flex;align-items:center;justify-content:space-between;gap:14px}.ticket-type-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid #bfdbfe;border-radius:10px;background:#f8fafc}.ticket-type-tabs button{min-width:65px;padding:7px 12px;border:0;border-right:1px solid #bfdbfe;background:transparent;color:#64748b;font-weight:800;transition:.18s}.ticket-type-tabs button:last-child{border-right:0}.ticket-type-tabs button.active{background:var(--primary);color:#fff;box-shadow:inset 0 -2px 0 rgba(15,23,42,.16)}.ticket-type-tabs button:focus-visible{position:relative;z-index:1;outline:3px solid rgba(37,99,235,.28);outline-offset:-3px}.entry-reference-row{display:grid;grid-template-columns:auto minmax(230px,1fr);align-items:center;gap:8px 12px;margin-bottom:18px}.entry-reference-row .form-hint{grid-column:2}.entry-unit{min-width:42px;justify-content:center;color:#64748b;background:#f8fafc;font-size:13px}.ticket-note-editor{border-top:1px solid var(--border);padding-top:12px}.ticket-note-editor summary{color:#475569;font-size:14px;font-weight:750;cursor:pointer}.ticket-note-editor summary span{color:#94a3b8;font-weight:500}.ticket-note-editor[open] summary{color:var(--primary)}
.ticket-info-card .card-header{padding:12px 18px}.ticket-info-card .card-body{padding:15px 18px}.entry-card .card-body{padding:18px}.entry-tabbed{margin-top:4px}.entry-tabbed .ticket-type-tabs{position:relative;z-index:1;width:max-content;overflow:visible;border:0;border-radius:0;background:transparent}.entry-tabbed .ticket-type-tabs button{min-width:78px;padding:9px 16px;border:0;border-radius:13px 13px 0 0;background:#eef2f7;color:#64748b}.entry-tabbed .ticket-type-tabs button.active{background:#dbeafe;color:#1d4ed8;box-shadow:none}.entry-workspace{padding:19px;border-radius:0 18px 18px 18px;background:#f8fafc}.entry-workspace .reverse-entry{background:#fff}.entry-workspace .ticket-note-editor{margin-top:16px!important}.entry-workspace .ticket-note-editor summary{padding-top:1px}
.entry-tabbed .ticket-type-tabs button.active{position:relative;background:#e0f2fe;color:#075985;font-weight:900;box-shadow:0 -2px 9px rgba(14,116,144,.14),inset 0 1px 0 rgba(255,255,255,.8)}.entry-tabbed .ticket-type-tabs button.active:after{content:"";position:absolute;right:12px;bottom:-4px;left:12px;height:4px;border-radius:99px;background:#0284c7}
.announcement-preview{max-width:610px;margin:0 auto;padding:0;border:0;background:transparent;white-space:normal}.announcement-poster{overflow:hidden;border:1px solid #bfdbfe;border-radius:18px;background:linear-gradient(145deg,#eff6ff,#fff 55%,#f8fafc);color:#0f172a;box-shadow:0 12px 24px rgba(30,64,175,.1)}.announcement-header{position:relative;display:block;padding:24px 72px 20px;background:linear-gradient(115deg,#0f3d93,#2563eb);color:#fff;text-align:center}.announcement-flag{position:absolute;top:50%;display:block;width:42px;height:28px;transform:translateY(-50%);border-radius:4px;box-shadow:0 3px 8px rgba(15,23,42,.32);overflow:hidden}.announcement-flag:first-child{left:20px}.announcement-flag:last-child{right:20px}.announcement-flag.flag-thai{background:linear-gradient(#d91c3c 0 16.66%,#fff 16.66% 33.33%,#2d3a96 33.33% 66.66%,#fff 66.66% 83.33%,#d91c3c 83.33%)}.announcement-flag.flag-lao{background:linear-gradient(#ce1126 0 25%,#002868 25% 75%,#ce1126 75%)}.announcement-flag.flag-lao:after{content:"";position:absolute;top:50%;left:50%;width:12px;height:12px;transform:translate(-50%,-50%);border-radius:50%;background:#fff}.announcement-flag.flag-hanoi{background:#da251d}.announcement-flag.flag-hanoi:after{content:"★";position:absolute;inset:0;display:grid;place-items:center;color:#ffdf00;font-size:18px;line-height:1}.announcement-kicker{display:block;font-size:10px;font-weight:800;letter-spacing:.14em;opacity:.85}.announcement-header h2{margin:3px 0 0;font-size:31px;font-weight:850;line-height:1.05}.announcement-header p{margin:6px 0 0;font-size:15px;opacity:.93}.announcement-rule{height:5px;background:linear-gradient(90deg,#f59e0b,#fbbf24,#f59e0b)}.announcement-panel{margin:16px;padding:17px;border:1px solid #dbeafe;border-radius:14px;background:#fff;text-align:center}.announcement-panel-title{display:flex;align-items:center;justify-content:center;gap:10px;margin-bottom:15px}.announcement-panel-title>span:first-child{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#dbeafe;color:#1d4ed8;font-family:Consolas,monospace;font-size:12px;font-weight:900}.announcement-panel-title strong{display:block;line-height:1.1;text-align:left;font-size:19px}.announcement-half{margin-left:7px;padding:5px 10px;border-radius:99px;background:#fff7ed;color:#c2410c;font-size:13px;font-weight:850}.announcement-numbers{display:grid;justify-items:center;gap:9px;color:#172554;font-family:Consolas,"Courier New",monospace;font-size:22px;font-weight:950;letter-spacing:.05em;line-height:1.55}.announcement-separator{color:#94a3b8;font-weight:600}.announcement-empty{color:#94a3b8;font-family:"TEE IOS","Segoe UI",sans-serif;font-size:14px;font-weight:650;letter-spacing:0}.announcement-note{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 16px 16px;padding:13px 14px;border-radius:12px;background:#fff7ed;color:#9a3412;font-size:15px;font-weight:750;text-align:center}.announcement-note i{font-size:18px}.announcement-close{display:flex;align-items:center;justify-content:center;gap:9px;padding:16px 20px;background:#fee2e2;color:#991b1b;text-align:center}.announcement-close i{font-size:20px}.announcement-close strong{font-size:18px}.announcement-close span{font-size:14px}.announcement-close strong:after{content:" · "}.announcement-print-area{display:none}
@media(max-width:992px){#sidebar{left:-250px}#sidebar.show{left:0}main,#sidebar.hide+main{margin-left:0}.ticket-info-card{position:static}.navbar{padding:0 18px}#content{padding:20px}.sidebar-note{display:none}}
@media(max-width:576px){#content{padding:16px}.user{font-size:0}.user i{font-size:20px}.card-body{padding:17px}.card-header,.card-footer{padding:13px 17px}.table td,.table th{padding:12px 14px}.settings-grid{grid-template-columns:1fr}.page-heading .btn{margin-top:12px}.type-select{max-width:145px}.filter-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.filter-actions .btn,#reportTwo .d-grid .btn,#reportThree .d-grid .btn{width:100%;min-height:44px}.filter-actions .filter-primary{grid-column:1/-1}}
@media(max-width:576px){.settlement-head{align-items:flex-start;flex-direction:column;gap:7px}.settlement-summary{margin-left:0;grid-template-columns:1fr}.settlement-table th,.settlement-table td{padding:10px 12px}.market-screen{padding:14px}.market-card{padding:23px 18px}.market-choice{padding:13px 12px}.market-choice small{font-size:11px}.market-footer{align-items:flex-start;flex-direction:column}.market-switch span,.market-switch>.bi-chevron-down{display:none}.market-switch{padding-inline:8px}.market-context-badge{font-size:11px}}

/* iOS/macOS account and workspace surfaces.  Keep the existing data form
   in the DOM, but present it as an on-demand editor from the account card. */
.admin-user-editor-card{border-radius:22px;border-color:color-mix(in srgb,var(--primary) 16%,var(--border));box-shadow:0 12px 30px rgba(15,23,42,.06)}
.admin-user-editor-card .card-header{font-weight:750;letter-spacing:-.01em}
.admin-user-accounts-full>.card{border-radius:22px;overflow:hidden;box-shadow:0 12px 30px rgba(15,23,42,.06)}
.admin-user-accounts-full>.card>.card-header{min-height:58px;padding:13px 18px;background:linear-gradient(135deg,color-mix(in srgb,var(--primary) 10%,var(--surface,#fff)),var(--surface,#fff));border-bottom:1px solid color-mix(in srgb,var(--primary) 14%,var(--border))}
.admin-user-accounts-full .admin-add-user-button{min-height:36px;padding:7px 13px;border-radius:12px;font-weight:700;box-shadow:0 5px 14px color-mix(in srgb,var(--primary) 18%,transparent)}
.admin-user-accounts-full .admin-add-user-button i{margin-right:4px}
.admin-user-accounts-full #userTable thead th{font-size:.78rem;font-weight:750;color:var(--muted);white-space:nowrap;background:color-mix(in srgb,var(--surface) 85%,var(--primary) 15%)}
.admin-user-accounts-full #userTable tbody tr{transition:background .18s ease}
.admin-user-accounts-full #userTable tbody tr:hover{background:color-mix(in srgb,var(--surface) 88%,var(--primary) 12%)}
.admin-user-accounts-full #userTable td{vertical-align:middle}
.admin-user-accounts-full .alert{border-radius:14px;border:1px solid color-mix(in srgb,var(--primary) 14%,var(--border));background:color-mix(in srgb,var(--surface) 88%,var(--primary) 12%);color:var(--text)}
.admin-add-user-button{border-radius:12px;white-space:nowrap;box-shadow:0 5px 14px rgba(37,99,235,.16)}
.user-market-access-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.user-market-access-options label{display:flex;align-items:center;gap:7px;min-height:42px;padding:9px 11px;border:1px solid var(--border);border-radius:13px;background:var(--surface,#fff);cursor:pointer;transition:.18s ease}
.user-market-access-options label:has(input:checked){border-color:var(--primary);background:color-mix(in srgb,var(--primary) 9%,#fff);box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 10%,transparent)}
.user-market-access-options input{accent-color:var(--primary)}
.user-market-access-options .market-inline-flag{width:20px;height:14px}
.admin-user-editor-column-hidden{display:none!important}
.admin-user-accounts-full{flex:0 0 100%;max-width:100%}
.admin-center-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.admin-center-toolbar-main{display:flex;align-items:baseline;gap:10px;min-width:0}
.admin-center-toolbar-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.admin-center-currency-toggle{border-radius:12px;white-space:nowrap}
.admin-center-currency-toggle.active{background:var(--primary);border-color:var(--primary);color:#fff;box-shadow:0 5px 14px color-mix(in srgb,var(--primary) 25%,transparent)}
.admin-center-scope-select{min-width:170px}
@media(max-width:767.98px){.user-market-access-options{grid-template-columns:1fr}.admin-center-toolbar-actions{width:100%}.admin-center-scope-select{flex:1}.admin-center-currency-toggle{flex:1}.admin-center-toolbar-main{width:100%;justify-content:space-between}}

/* Refined login/workspace entry surfaces. */
.login-screen,.market-screen{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Segoe UI",sans-serif}
.login-card,.market-card{border-radius:28px;box-shadow:0 24px 70px rgba(4,25,48,.22)}
.login-card .form-control,.market-card .form-control,.market-choice{border-radius:16px}
.login-card .btn-primary{border-radius:16px;min-height:48px}
.market-choice{min-height:72px}
.market-choice-icon{border-radius:16px}
.market-hanoi .market-choice-icon{background:#e8f7f5;color:#0f8f87}
@media(max-width:576px){.ticket-info-card .card-body{padding:13px 18px}.ticket-info-primary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.ticket-info-primary .form-label{font-size:13px}.ticket-info-primary .input-group{margin-bottom:0!important}.ticket-info-primary .form-hint{display:none}.ticket-info-primary .form-select{font-size:14px}.entry-card-header{align-items:flex-start;flex-direction:column}.ticket-type-tabs{width:100%}.ticket-type-tabs button{min-width:0;padding-block:9px}.entry-reference-row{grid-template-columns:1fr;gap:5px;margin-bottom:16px}.entry-reference-row .form-hint{grid-column:auto}.entry-tabbed .ticket-type-tabs{width:100%}.entry-tabbed .ticket-type-tabs button{min-width:0;padding:10px 8px}.entry-workspace{padding:16px 12px;border-radius:0 15px 15px 15px}.reverse-entry{padding:12px;border:1px dashed #93c5fd;border-radius:11px;background:#eff6ff}.reverse-entry .form-label{color:#1d4ed8}.entry-unit{min-width:34px;padding-inline:5px;font-size:12px}.ticket-detail-section{margin-top:14px}.ticket-detail-table{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.ticket-detail-table .table{min-width:590px}.modal-ticket-item{min-width:0}.modal-summary{font-size:16px}.modal-dialog.modal-dialog-scrollable{height:calc(100% - 1rem);max-height:none;margin:.5rem}.modal-dialog.modal-dialog-scrollable .modal-content{max-height:100%;height:100%}.modal-dialog.modal-dialog-scrollable .modal-body{overflow-y:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.modal-dialog.modal-dialog-scrollable .modal-footer{flex-wrap:wrap;position:relative;z-index:2}.modal-dialog.modal-dialog-scrollable .modal-footer .btn{flex:1 1 auto}.modal-dialog.modal-dialog-scrollable .modal-header{flex:0 0 auto}}
@media print{@page{margin:12mm}body{background:#fff}#sidebar,.navbar,#settlement>.page-heading,.settlement-controls{display:none!important}#appShell{display:block!important}main,#sidebar.hide+main{margin-left:0!important;width:100%!important}#content{max-width:none!important;padding:0!important}.page:not(#settlement){display:none!important}#settlement{display:block!important}.settlement-sheet{box-shadow:none!important;border:1px solid #94a3b8!important;border-radius:0!important}.settlement-sheet .card-body{padding:0!important}.settlement-head{padding:14px 16px 12px;margin-bottom:12px}.settlement-customer{padding:0 16px}.settlement-table{font-size:12px}.settlement-table th,.settlement-table td{padding:7px 8px!important}.settlement-summary{margin:14px 16px 16px auto;width:280px}.settlement-summary>div{padding:6px 9px}.blocked-hint,.app-toast{display:none!important}}
@media print{body.printing-announcement #loginScreen,body.printing-announcement #marketScreen,body.printing-announcement #appShell,body.printing-announcement .modal,body.printing-announcement .modal-backdrop{display:none!important}body.printing-announcement #blockedAnnouncementPrintArea{display:block!important;max-width:740px;margin:0 auto}.printing-announcement .announcement-poster{box-shadow:none}.printing-announcement .announcement-panel{break-inside:avoid}}

/* Compact two-card record entry layout */
#ticket .ticket-page-heading{margin-bottom:12px}
.ticket-quickbar{display:grid;grid-template-columns:minmax(190px,280px) minmax(180px,240px) max-content;align-items:end;gap:10px;margin-bottom:15px;padding-inline:2px}
.ticket-quick-field{min-width:0;position:relative}
.ticket-quick-field .form-label{margin:0 0 3px;font-size:12px;color:#475569}
.ticket-quickbar .form-control,.ticket-quickbar .form-select,.ticket-quickbar .btn{min-height:38px;height:38px;border-radius:9px;font-size:13px}
.ticket-quickbar .input-group>.form-control{border-radius:9px 0 0 9px}
.ticket-quickbar .input-group>.btn{border-radius:0 9px 9px 0;padding-inline:11px}
.ticket-new-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 13px;white-space:nowrap}
.bulk-import-modal-dialog{max-width:1180px}.bulk-import-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-bottom:16px;padding:14px;border:1px solid var(--border);border-radius:14px;background:#fff}.bulk-import-file-actions{display:flex;flex-direction:column;justify-content:flex-end}.bulk-import-bills{display:grid;gap:14px}.bulk-import-bill{padding:16px;border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.045)}.bulk-import-bill-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.bulk-import-bill-heading>div{display:flex;align-items:baseline;gap:9px;min-width:0}.bulk-import-bill-heading strong{color:var(--primary-dark);font-size:1rem;white-space:nowrap}.bulk-import-bill-heading span{overflow:hidden;color:var(--muted);font-size:.82rem;text-overflow:ellipsis;white-space:nowrap}.bulk-import-items-wrap{border:1px solid var(--border);border-radius:12px}.bulk-import-items-table{min-width:790px}.bulk-import-items-table th{padding:9px 10px;background:#f8fafc;color:var(--muted);font-size:.75rem;white-space:nowrap}.bulk-import-items-table td{padding:8px 10px}.bulk-import-items-table .form-control,.bulk-import-items-table .form-select{min-height:38px}.bulk-import-add-bill{margin-top:14px}.bulk-import-preview-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.bulk-import-preview-summary>div{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid var(--border);border-radius:14px;background:#fff}.bulk-import-preview-summary span{color:var(--muted);font-size:.8rem}.bulk-import-preview-summary strong{color:var(--primary-dark);font-size:1.2rem}.bulk-import-preview-view .table{border:1px solid var(--border);border-radius:12px;overflow:hidden}.bulk-import-preview-view .table th{background:#f8fafc;color:var(--muted);font-size:.78rem;white-space:nowrap}
.ticket-main-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:16px}
.ticket-main-grid>.card{min-width:0}
.ticket-main-grid .card-header{padding:12px 17px}
.entry-meta-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:12px;margin-bottom:14px}
.entry-reference-field .form-label{margin-bottom:4px}
.entry-reference-field .form-hint{display:block;margin-top:3px;line-height:1.2}
.entry-reference-field .form-control,.entry-reference-field .input-group-text,.entry-reference-field .btn{min-height:40px;height:40px}
.entry-meta-grid .ticket-note-editor{margin:0;padding:0;border:1px solid var(--border);border-radius:10px;background:#f8fafc;overflow:hidden}
.entry-meta-grid .ticket-note-editor summary{display:flex;align-items:center;gap:6px;min-height:40px;padding:8px 11px;list-style:none}
.entry-meta-grid .ticket-note-editor summary::-webkit-details-marker{display:none}
.entry-meta-grid .ticket-note-editor summary:after{content:"+";margin-left:auto;color:#2563eb;font-size:18px;font-weight:800}
.entry-meta-grid .ticket-note-editor[open] summary:after{content:"−"}
.entry-meta-grid .ticket-note-editor textarea{min-height:42px;margin:0!important;border:0;border-top:1px solid var(--border);border-radius:0;resize:vertical;font-size:13px}
.entry-tabbed .ticket-type-tabs button{transition:transform .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease}
.entry-tabbed .ticket-type-tabs button.active{color:#fff;background:linear-gradient(135deg,#22b8f0,#2563eb);box-shadow:0 -3px 12px rgba(37,99,235,.24);transform:translateY(-1px)}
.entry-tabbed .ticket-type-tabs button.active:after{background:#fbbf24;right:10px;left:10px}
.entry-workspace{border:1px solid #dbeafe;background:linear-gradient(145deg,#f8fbff,#f8fafc)}
#panel2.adaptive-three #numberLabel,#panel2.adaptive-three #topLabel,#panel2.adaptive-three #bottomLabel{color:#1d4ed8;font-weight:850}
.ticket-bill-card{display:flex;min-height:100%;flex-direction:column}
.ticket-bill-card>.table-responsive{flex:1}
.ticket-bill-card .card-footer{margin-top:auto}
.ticket-page-heading{display:flex!important;flex-wrap:wrap;align-items:center!important;justify-content:space-between;gap:8px 18px}
.ticket-heading-main{flex:1 1 240px;min-width:0}
.ticket-page-heading .entry-window-notice{display:inline-flex!important;flex:0 1 auto!important;align-items:center;align-self:center;width:auto!important;min-width:0!important;max-width:100%;height:auto!important;min-height:0!important;max-height:none!important;margin:0 0 0 auto!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;gap:8px;white-space:nowrap;font-size:clamp(1.2rem,2.1vw,1.5rem)!important;font-weight:800;line-height:1.15!important}
.ticket-page-heading .entry-window-notice>i{font-size:1.05em;line-height:1}
.ticket-page-heading .entry-window-notice>strong{font-weight:850}
.ticket-page-heading .entry-window-notice small{display:none!important}
.ticket-page-heading .entry-window-notice.is-open{color:#047857!important}
.ticket-page-heading .entry-window-notice.is-closed{color:#be123c!important}
.ticket-page-heading .entry-window-notice.is-unlimited{color:#6d28d9!important}
.ticket-page-heading .entry-window-countdown{font-size:1em;font-weight:900;letter-spacing:.02em;white-space:nowrap}
@media(max-width:767px){
  .ticket-page-heading{flex-direction:row!important;align-items:center!important;gap:6px 10px!important}
  .ticket-page-heading .ticket-heading-main{flex:1 1 210px}
  .ticket-page-heading .entry-window-notice{flex:0 1 auto!important;margin:0 0 0 auto!important;padding:2px 0!important;font-size:clamp(1.2rem,4.5vw,1.5rem)!important}
  #ticket .ticket-page-heading{margin-bottom:9px}
  #ticket .ticket-page-heading .eyebrow,#ticket .ticket-page-heading>div>p:last-child{display:none}
  #ticket .ticket-page-heading h1{font-size:24px}
  .ticket-quickbar{grid-template-columns:minmax(0,1.18fr) minmax(0,1fr) auto;gap:6px;margin-bottom:12px;padding:0}
  .ticket-quick-field .form-label{font-size:11px;white-space:nowrap}
  .ticket-quickbar .form-control,.ticket-quickbar .form-select,.ticket-quickbar .btn{min-height:36px;height:36px;padding-inline:7px;font-size:12px}
  .ticket-quickbar .input-group>.btn{padding-inline:8px}
  .ticket-new-button{padding-inline:8px!important;font-size:12px!important}
  .ticket-main-grid{grid-template-columns:minmax(0,1fr);gap:13px}
  .entry-meta-grid{gap:8px}
  .entry-reference-field .reference-prefix{min-width:70px;padding-inline:6px;font-size:12px}
  .entry-reference-field .form-hint{font-size:10px}
  .entry-meta-grid .ticket-note-editor summary{padding-inline:8px;font-size:12px}
  .entry-meta-grid .ticket-note-editor summary span{display:none}
}
@media(max-width:380px){
  .ticket-page-heading .ticket-heading-main{flex-basis:100%}
  .ticket-page-heading .entry-window-notice{margin-left:0!important}
}
@media(max-width:360px){
  .ticket-quickbar{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) 38px}
  .ticket-new-button{width:38px;padding:0!important}
  .ticket-new-button .new-ticket-label{display:none}
}

/* Account menu, compact reference field and account settings */
.profile-menu{margin-left:auto}
.navbar .profile-trigger{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 10px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--text);font-size:14px;line-height:1.2}
.navbar .profile-trigger:hover,.navbar .profile-trigger[aria-expanded="true"]{border-color:#dbeafe;background:#eff6ff;color:#1d4ed8}
.profile-trigger>.bi-person-circle{font-size:23px;color:#2563eb}
.profile-avatar-image{display:block;width:30px;height:30px;flex:0 0 auto;border-radius:50%;object-fit:cover}
.profile-market-flag{display:inline-flex;align-items:center;justify-content:center;width:36px;height:25px;flex:0 0 auto;overflow:hidden;border-radius:5px}
.profile-market-flag .market-flag-inline-image{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.profile-market-flag .market-flag-fallback{font-size:18px;color:#334155;line-height:1}
.profile-trigger .profile-name{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:750}
.profile-trigger .profile-chevron{font-size:12px;color:#64748b}
.profile-dropdown{width:250px;margin-top:8px;padding:8px;border:1px solid #e2e8f0;border-radius:13px;box-shadow:0 18px 45px rgba(15,23,42,.16)}
.profile-dropdown-head{display:flex;flex-direction:column;padding:8px 10px 10px;border-bottom:1px solid #eef2f7;margin-bottom:5px}
.profile-dropdown-head strong{font-size:15px}.profile-dropdown-head span{margin-top:2px;color:#64748b;font-size:12px}
.navbar .profile-dropdown .dropdown-item{display:grid;grid-template-columns:22px 1fr auto;align-items:center;gap:8px;min-height:40px;padding:8px 10px;border-radius:9px;background:transparent;color:#24324a;font-size:14px;line-height:1.2;text-align:left}
.navbar .profile-dropdown .dropdown-item:hover{background:#f1f5f9;color:#1d4ed8}
.navbar .profile-dropdown .dropdown-item i{font-size:16px}.navbar .profile-dropdown .dropdown-item strong{font-size:12px;color:#2563eb}
.navbar .profile-dropdown .profile-logout{color:#dc2626}.navbar .profile-dropdown .profile-logout:hover{background:#fef2f2;color:#b91c1c}
.entry-reference-field{min-width:0}
.entry-reference-field>.form-control{min-height:40px;height:40px;font-size:14px}
.entry-all-link{display:inline-flex;align-items:center;gap:5px;padding:3px 0;border:0;background:transparent;color:var(--primary);font-size:14px;font-weight:750;white-space:nowrap}
.entry-all-link:hover{color:var(--primary-dark);text-decoration:underline}
.ticket-quick-field .form-label{font-size:13px}
.ticket-quickbar .form-control,.ticket-quickbar .form-select,.ticket-quickbar .btn{font-size:14px}
.account-settings-summary{display:grid;grid-template-columns:auto minmax(180px,1fr) minmax(90px,auto) minmax(90px,auto) auto;align-items:center;gap:16px}
.account-settings-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#eff6ff;color:#2563eb;font-size:24px}
.account-settings-identity,.account-settings-meta{display:flex;flex-direction:column;min-width:0}.account-settings-identity strong{font-size:16px}.account-settings-identity span,.account-settings-meta span{color:#64748b;font-size:12px}.account-settings-meta strong{font-size:14px}
.field-help{position:relative;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-left:3px;padding:0;border:0;border-radius:50%;background:transparent;color:#64748b;font-size:13px;line-height:1;vertical-align:-2px;cursor:help}
.field-help:hover,.field-help:focus{background:#e8f1ff;color:var(--primary);outline:none}
.field-help-popover{position:absolute;top:calc(100% + 8px);left:50%;z-index:30;width:max-content;max-width:min(320px,70vw);padding:9px 11px;border:1px solid #dbe5f0;border-radius:9px;background:#172b4d;color:#fff;font-size:12px;font-weight:500;line-height:1.45;text-align:left;white-space:normal;box-shadow:0 10px 24px rgba(15,23,42,.18);opacity:0;visibility:hidden;pointer-events:none;transform:translate(-50%,-3px);transition:opacity .15s ease,transform .15s ease,visibility .15s ease}
.field-help-popover::before{content:"";position:absolute;top:-5px;left:50%;width:9px;height:9px;border-top:1px solid #dbe5f0;border-left:1px solid #dbe5f0;background:#172b4d;transform:translateX(-50%) rotate(45deg)}
.field-help:hover .field-help-popover,.field-help:focus .field-help-popover{opacity:1;visibility:visible;pointer-events:auto;transform:translate(-50%,0)}

@media(max-width:767px){
  .ticket-quick-field .form-label{font-size:12px}
  .ticket-quickbar .form-control,.ticket-quickbar .form-select,.ticket-quickbar .btn,.ticket-new-button{font-size:13px!important}
  .entry-meta-grid .ticket-note-editor summary{font-size:13px}
  .entry-all-link{font-size:13px}
  .account-settings-summary{grid-template-columns:auto 1fr auto;gap:11px}
  .account-settings-meta{display:none}
  .account-settings-summary .btn{grid-column:1/-1;width:100%}
}
@media(max-width:576px){
  .navbar{padding-inline:14px}
  .navbar .profile-trigger{width:44px;height:44px;padding:0;justify-content:center;gap:0;overflow:hidden}
  .profile-avatar-image{width:28px;height:28px}
  .navbar .profile-trigger .profile-avatar-image{display:none}
  .profile-market-flag{width:100%;height:100%;border-radius:inherit}
  .profile-name,.profile-chevron{display:none}
  .profile-dropdown{width:min(250px,calc(100vw - 28px))}
  .navbar .profile-dropdown .profile-dropdown-head{padding:10px 10px 12px}
  .navbar .profile-dropdown .profile-dropdown-head strong{font-size:17px}
  .navbar .profile-dropdown .profile-dropdown-head span{font-size:14px}
  .navbar .profile-dropdown .dropdown-item{min-height:46px;padding:10px 10px;font-size:16px}
  .navbar .profile-dropdown .dropdown-item i{font-size:19px}
  .navbar .profile-dropdown .dropdown-item strong{font-size:14px}
  .profile-mode-buttons button{min-height:42px;font-size:13px}
  .profile-impersonation-mode small{font-size:12px}
  .profile-language-options button.profile-language-option{min-height:42px;padding:8px 10px;font-size:16px}
  .profile-language-options .language-flag{width:27px;height:17px;font-size:18px}
}

/* Control Center identity: keep the header marker compact and touch-friendly. */
.control-center-inline-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:1.75rem;
  height:1.75rem;
  flex:0 0 auto;
  border-radius:.58rem;
  background:var(--primary,#2563eb);
  color:#fff;
  font-size:.95rem;
  line-height:1;
}
.control-center-inline-icon i{line-height:1}
.data-management-inline-scope{display:flex;align-items:center;gap:.45rem;min-width:0}
.data-management-inline-scope select{min-width:180px;max-width:240px}
@media(max-width:576px){
  .data-management-inline-scope{width:100%}
  .data-management-inline-scope select{width:100%;max-width:none;min-width:0}
}

/* Final iOS/macOS interaction pass: common switches, consistent filter controls
   and deterministic mobile statistic/settlement layouts. */
.ios-setting-toggle{
  display:inline-flex!important;
  align-items:center!important;
  gap:10px!important;
  min-height:36px!important;
  margin:0!important;
  color:var(--text,#172033)!important;
  font-size:15px!important;
  line-height:1.25!important;
  cursor:pointer!important;
  user-select:none!important;
}
.ios-setting-toggle>input[type="checkbox"]{
  position:absolute!important;
  inline-size:1px!important;
  block-size:1px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.ios-switch-control{
  position:relative!important;
  flex:0 0 44px!important;
  width:44px!important;
  height:26px!important;
  border-radius:999px!important;
  background:#cbd5e1!important;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.08)!important;
  transition:background .2s ease!important;
}
.ios-switch-control::after{
  content:""!important;
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:20px!important;
  height:20px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 6px rgba(15,23,42,.24)!important;
  transition:transform .2s ease!important;
}
.ios-setting-toggle>input[type="checkbox"]:checked + .ios-switch-control{background:var(--primary,#149e99)!important}
.ios-setting-toggle>input[type="checkbox"]:checked + .ios-switch-control::after{transform:translateX(18px)!important}
.ios-setting-toggle>input[type="checkbox"]:focus-visible + .ios-switch-control{outline:3px solid color-mix(in srgb,var(--primary,#149e99) 25%,transparent)!important;outline-offset:2px!important}
.blocked-full-option{padding:8px 0!important}
.blocked-full-option .form-hint{padding-left:54px!important}
.settlement-select-all{width:max-content!important}

.profile-dropdown .dropdown-item,
.profile-language-title.profile-language-toggle,
.profile-language-options button.profile-language-option{
  font-family:inherit!important;
  font-size:15px!important;
  font-weight:700!important;
  line-height:1.25!important;
  color:var(--text,#172033)!important;
}
html.lang-lo .profile-dropdown .dropdown-item,
html.lang-lo .profile-language-title.profile-language-toggle,
html.lang-lo .profile-language-options button.profile-language-option{font-size:16px!important}
.profile-language-title.profile-language-toggle i,
.profile-dropdown .dropdown-item i{font-size:19px!important;color:currentColor!important}

:is(#filterDashboard,#setDashboardToday,#clearDashboardDate,#searchTicket,#searchToday,#clearSearch,
#refreshReport,#reportToday,#clearReportDate,#filterReportTwo,#reportTwoToday,#clearReportTwoDate,
#filterReportThree,#reportThreeToday,#clearReportThreeDate,#filterSettlement,#settlementToday,#clearSettlement,
.monitor-currency-toggle,.monitor-currency-suffix-toggle){
  min-height:42px!important;
  padding:8px 12px!important;
  border-radius:11px!important;
  font-family:inherit!important;
  font-size:15px!important;
  font-weight:750!important;
  line-height:1.2!important;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
:is(#reportTwoToday,#clearReportTwoDate,#reportThreeToday,#clearReportThreeDate,#settlementToday,#clearSettlement){
  border:1px solid var(--border,#cbd5e1)!important;
}

/* Dashboard/statistics display-only currency switch. It never changes the
   account currency or any stored ticket/finance amount. */
.monitor-currency-toggle.active{
  background:var(--theme-accent,#0f9f98)!important;
  border-color:var(--theme-accent,#0f9f98)!important;
  color:#fff!important;
}
.monitor-currency-suffix-toggle.active{
  background:var(--theme-accent,#0f9f98)!important;
  border-color:var(--theme-accent,#0f9f98)!important;
  color:#fff!important;
}
.finance-auto-note{
  color:var(--text-secondary,#6b7280)!important;
  font-size:.92em!important;
  font-style:italic;
}
.finance-user-note{color:var(--text-primary,#172033)!important}
.finance-note-separator{color:var(--text-secondary,#94a3b8);padding:0 .15rem}
.finance-currency-control{display:flex;align-items:flex-end;gap:10px;min-width:190px}
.finance-currency-control .form-label{margin:0;white-space:nowrap}
.finance-currency-control .form-select{min-width:112px}
@media(max-width:767.98px){
  .finance-currency-control{width:100%;justify-content:space-between;align-items:center}
  .finance-currency-control .form-select{width:auto;min-width:120px}
}

@media(max-width:767.98px){
  #reportTwo>.page-heading + .card .card-body>.row,
  #reportThree>.page-heading + .card .card-body>.row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:end!important;
  }
  #reportTwo>.page-heading + .card .card-body>.row>*,
  #reportThree>.page-heading + .card .card-body>.row>*{grid-column:auto!important;min-width:0!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(1),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(1){grid-column:1!important;order:1!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(2),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(2){grid-column:2!important;order:1!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(4),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(4){grid-column:1!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(5),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(5){grid-column:2!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(3),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(3){grid-column:1!important;order:3!important}
  #reportTwo .detailed-report-show,#reportThree .detailed-report-show{grid-column:2!important;order:3!important}
  #reportTwo .detailed-report-relative,#reportThree .detailed-report-relative{grid-column:1!important;order:4!important}
  #reportTwo .detailed-report-latest,#reportThree .detailed-report-latest{grid-column:2!important;order:4!important}
  #reportTwo .detailed-report-action,#reportThree .detailed-report-action{width:100%!important;padding:0!important}
  #reportTwo .detailed-report-action .btn,#reportThree .detailed-report-action .btn{
    width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    text-overflow:clip!important;
    padding-inline:6px!important;
    font-size:14px!important;
  }

  #settlement .settlement-controls .row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  #settlement .settlement-controls .row>div:has(#settlementToday){grid-column:1!important;order:7!important;width:100%!important}
  #settlement .settlement-controls .row>div:has(#clearSettlement){grid-column:2!important;order:7!important;width:100%!important}
  #settlement #settlementToday,#settlement #clearSettlement{width:100%!important;min-width:0!important;padding-inline:6px!important;font-size:14px!important}
}

/* The customer-facing ticket image uses a compact, single metadata row. */
.ticket-export-card.ticket-export-compact .ticket-export-header{padding:14px 18px 12px!important;min-height:0!important;align-items:center!important}
.ticket-export-card.ticket-export-compact .ticket-export-header h2{font-size:17px!important;line-height:1.1!important}
.ticket-export-card.ticket-export-compact .ticket-export-header>strong{font-size:12px!important;line-height:1.1!important}
.ticket-export-card.ticket-export-compact .ticket-export-body{padding-top:9px!important}
.ticket-export-card.ticket-export-compact .ticket-export-meta{
  display:flex!important;
  align-items:baseline!important;
  justify-content:flex-start!important;
  flex-wrap:nowrap!important;
  gap:14px!important;
  padding:0 0 7px!important;
  margin:0 0 8px!important;
}
.ticket-export-card.ticket-export-compact .ticket-export-meta>div{
  display:flex!important;
  align-items:baseline!important;
  gap:4px!important;
  flex:0 1 auto!important;
  min-width:0!important;
}
.ticket-export-card.ticket-export-compact .ticket-export-meta span,
.ticket-export-card.ticket-export-compact .ticket-export-meta strong{
  display:inline!important;
  margin:0!important;
  font-size:11px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.ticket-export-card.ticket-export-compact .ticket-export-meta strong{font-weight:700!important;color:#123d69!important}

/* Compact filter controls across pages; record entry keeps its own layout */
:is(#search,#report,#reportTwo,#reportThree)>.card:first-of-type .form-control,
:is(#search,#report,#reportTwo,#reportThree)>.card:first-of-type .form-select,
#settlement .settlement-controls .form-control,
#settlement .settlement-controls .form-select,
#setting .card:has(#blockedRound) .form-control{
  min-height:40px;
  height:40px;
}

@media(max-width:767px){
  #dashboard .hero{align-items:stretch!important}
  #dashboard .hero>.d-flex:last-child{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-items:end!important;
    gap:9px!important;
    width:100%;
  }
  #dashboard .hero>.d-flex:last-child>*{min-width:0;width:100%;margin:0}
  #dashboard .hero>.d-flex:last-child .form-control,
  #dashboard .hero>.d-flex:last-child .btn{min-height:40px;height:40px;font-size:12.5px;padding-inline:8px}
  #dashboard .hero>.d-flex:last-child .input-group>.btn{width:auto}
  #dashboard .hero>.d-flex:last-child .form-label{font-size:12px;white-space:nowrap}

  :is(#search,#report,#reportTwo,#reportThree)>.card:first-of-type .card-body,
  #settlement .settlement-controls .card-body,
  #setting .card:has(#blockedRound) .card-body{padding:15px}

  :is(#search,#report,#reportTwo,#reportThree)>.card:first-of-type .card-body>.row,
  #settlement .settlement-controls .card-body>.row,
  #setting .card:has(#blockedRound) .card-body>.row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:0;
  }
  :is(#search,#report,#reportTwo,#reportThree)>.card:first-of-type .card-body>.row>[class*="col-"],
  #settlement .settlement-controls .card-body>.row>[class*="col-"],
  #setting .card:has(#blockedRound) .card-body>.row>[class*="col-"]{
    width:auto;
    max-width:none;
    padding:0;
    min-width:0;
  }
  :is(#search,#report,#reportTwo,#reportThree)>.card:first-of-type .form-label,
  #settlement .settlement-controls .form-label,
  #setting .card:has(#blockedRound) .form-label{margin-bottom:4px;font-size:12px;line-height:1.25}
  :is(#search,#report,#reportTwo,#reportThree)>.card:first-of-type .form-control,
  :is(#search,#report,#reportTwo,#reportThree)>.card:first-of-type .form-select,
  #settlement .settlement-controls .form-control,
  #settlement .settlement-controls .form-select,
  #setting .card:has(#blockedRound) .form-control{
    min-width:0;
    min-height:40px;
    height:40px;
    padding-inline:9px;
    font-size:12.5px;
  }
  :is(#search,#report,#reportTwo,#reportThree,#settlement,#setting) .input-group>.btn{min-height:40px;height:40px;padding-inline:9px}

  #search .filter-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px!important}
  #search .filter-actions .filter-primary{grid-column:1/-1}
  #search .filter-actions .btn{width:100%;min-height:40px;font-size:13px}

  #report .card-body>.row>div:has(#clearReportDate),
  #settlement .settlement-controls .row>div:has(#clearSettlement){grid-column:1/-1}

  #reportTwo .card-body>.row>div:has(#filterReportTwo),
  #reportThree .card-body>.row>div:has(#filterReportThree){grid-column:1/-1}
  #reportTwo .card-body>.row>div:has(#filterReportTwo)>div,
  #reportThree .card-body>.row>div:has(#filterReportThree)>div{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px!important;
  }
  #reportTwo .card-body>.row>div:has(#filterReportTwo) .btn:first-child,
  #reportThree .card-body>.row>div:has(#filterReportThree) .btn:first-child{grid-column:1/-1}
  #reportTwo .card-body>.row>div:has(#filterReportTwo) .btn,
  #reportThree .card-body>.row>div:has(#filterReportThree) .btn{min-height:40px;padding-inline:6px;font-size:12px}
}

@media(max-width:360px){
  #dashboard .hero>.d-flex:last-child .form-control,
  :is(#search,#report,#reportTwo,#reportThree)>.card:first-of-type .form-control,
  :is(#search,#report,#reportTwo,#reportThree)>.card:first-of-type .form-select,
  #settlement .settlement-controls .form-control,
  #settlement .settlement-controls .form-select{font-size:11.5px;padding-inline:6px}
}

/* Stronger blocked-number figures and a slimmer poster proportion */
.announcement-preview{max-width:560px}
.announcement-panel{margin:14px;padding:16px 12px}

/* NEXORA announcement artwork: match the Login visual language while keeping the
   existing number layout and export controls intact. */
.announcement-preview{max-width:640px;padding:12px;background:radial-gradient(circle at 10% 0%,rgba(29,108,155,.2),transparent 38%),linear-gradient(135deg,#071d38,#155995 58%,#13a99a);border-radius:26px}
.announcement-poster{border:1px solid rgba(255,255,255,.65);border-radius:24px;background:#fff;box-shadow:0 20px 48px rgba(2,20,45,.25)}
.announcement-header{position:relative;min-height:132px;padding:28px 84px 24px 132px;background:linear-gradient(135deg,#082746,#155c9a 58%,#19a99a);border-bottom:4px solid #f2c14e;text-align:left}
.announcement-header:before{content:"";position:absolute;left:28px;top:50%;width:66px;height:66px;transform:translateY(-50%);background:url('/assets/images/brand/nexora-icon2.png?v=20260811') center/contain no-repeat;filter:drop-shadow(0 5px 10px rgba(0,0,0,.2))}
.announcement-header:after{display:none!important}
.announcement-header:after{content:none!important}
.image-capture-source .announcement-header{padding-left:150px}
.image-capture-source .announcement-header:before{left:30px;width:52px;height:52px}
.image-capture-source .announcement-header:after{content:none!important;display:none!important}
.announcement-flag{top:31px;width:34px;height:23px;opacity:.9}
.announcement-header > .announcement-flag:first-child{left:auto!important;right:18px!important;top:31px!important}.announcement-header > .announcement-flag:last-child{display:none}
.announcement-kicker{font-size:10px;letter-spacing:.16em;color:rgba(255,255,255,.82)}
.announcement-header h2{font-size:29px;color:#fff;margin:4px 0 0}.announcement-header p{font-size:15px;color:rgba(255,255,255,.86);margin:7px 0 0}
.announcement-rule{height:4px;background:linear-gradient(90deg,#f2c14e,#f8d77e,#f2c14e)}
.announcement-panel{margin:14px;border-color:#d8e7f4;border-radius:14px;background:linear-gradient(145deg,#f5fbff,#fff);box-shadow:0 6px 18px rgba(7,52,94,.05)}
.announcement-panel-title>span:first-child{background:#dceeff;color:#1261a5}.announcement-panel-title strong{font-size:20px;color:#102f52}
.announcement-half{background:#eefaf6;color:#0f8979}.announcement-numbers{color:#123d69;font-family:Arial,sans-serif;font-size:22px;font-weight:800;letter-spacing:.07em}
.announcement-note{margin:0 16px 16px;background:#eefaf6;color:#126a68;border:1px solid #cceee5}.announcement-close{background:#fff0f0;color:#9b2c3b}
@media(max-width:640px){.announcement-preview{padding:8px;border-radius:22px}.announcement-header{min-height:118px;padding:23px 58px 19px 104px}.announcement-header:before{left:18px;width:54px;height:54px}.announcement-header h2{font-size:25px}.announcement-flag{top:29px;right:14px;width:30px;height:20px}.announcement-panel{margin:12px;padding:14px 10px}.announcement-numbers{font-size:22px}}
@media(max-width:640px){.image-capture-source .announcement-header{padding-left:122px}.image-capture-source .announcement-header:before{left:18px;width:44px;height:44px}}

/* Ticket detail: NEXORA/Login visual language for modal, image and PDF output. */
.ticket-modal-dialog .modal-content{overflow:hidden;border:1px solid rgba(20,92,150,.2);border-radius:22px;box-shadow:0 24px 60px rgba(2,20,45,.25)}
.ticket-modal-dialog .modal-header{background:linear-gradient(135deg,#082746,#155c9a 58%,#19a99a);border-bottom:4px solid #f2c14e;color:#fff}
.ticket-modal-dialog .modal-header .btn-close{filter:brightness(0) invert(1);opacity:1;width:2rem;height:2rem;padding:.5rem;border:2px solid rgba(255,255,255,.78);border-radius:50%;background-size:1rem;box-shadow:0 2px 8px rgba(0,0,0,.18);transition:transform .15s ease,background-color .15s ease}.ticket-modal-dialog .modal-header .btn-close:hover,.ticket-modal-dialog .modal-header .btn-close:focus-visible{background-color:rgba(255,255,255,.2);transform:scale(1.08)}
.ticket-modal-dialog .modal-body{background:#f7fbfe}
.ticket-modal-dialog .ticket-document-meta{padding:14px;border:1px solid #d8e7f4;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(7,52,94,.05)}
.ticket-modal-dialog .ticket-document-meta strong{color:#123d69}
.ticket-modal-dialog .ticket-detail-section h6{background:#eff6ff;color:#1d4ed8;border-radius:12px 12px 0 0}
.ticket-modal-dialog .ticket-detail-table{border-color:#d8e7f4;background:#fff;border-radius:0 0 12px 12px}
.ticket-modal-dialog .modal-summary{background:#eaf5fb;color:#123d69;border:1px solid #d5e8f4}
.ticket-export-card{border:1px solid rgba(20,92,150,.2);border-radius:24px;background:#fff;box-shadow:0 20px 50px rgba(2,20,45,.2)}
.ticket-export-header{padding:24px 28px 20px;background:linear-gradient(135deg,#082746,#155c9a 58%,#19a99a);border-bottom:4px solid #f2c14e}
.ticket-export-header>strong{color:#fff}
.ticket-export-body{background:#f7fbfe;padding:24px 28px 28px}
.ticket-export-body .ticket-detail-section h6{background:#eff6ff;color:#1d4ed8;border-radius:12px 12px 0 0}
.ticket-export-body .ticket-detail-table{border-color:#d8e7f4;background:#fff;border-radius:0 0 12px 12px}
.ticket-export-body .modal-summary{background:#eaf5fb;border-color:#d5e8f4;color:#123d69}
.ticket-export-brand img{width:52px;height:52px;object-fit:contain;border-radius:12px;background:transparent}
.announcement-numbers{
  font-family:"Arial Black","Segoe UI",Tahoma,sans-serif;
  font-size:29px;
  font-weight:900;
  font-variant-numeric:tabular-nums;
  line-height:1.48;
  letter-spacing:.025em;
}
@media print{
  body.printing-announcement #blockedAnnouncementPrintArea{max-width:620px}
  .printing-announcement .announcement-numbers{font-size:31px}
}

/* TEEX7X midnight finishing pass: keep every interactive surface on the
   same navy-to-teal theme and make export/print colors deterministic. */
[data-market-theme="teex7x-dark"] #sidebar li.active,
[data-market-theme="teex7x-dark"] #sidebar li:hover,
[data-market-theme="teex7x-dark"] #sidebar li:focus-within,
[data-market-theme="teex7x-dark"] .sidebar-nav li.active,
[data-market-theme="teex7x-dark"] .sidebar-nav li:hover,
[data-market-theme="teex7x-dark"] .sidebar-nav li:focus-within{
  background:linear-gradient(135deg,#2867b4,#159f9d)!important;
  color:#fff!important;
  border-color:#159f9d!important;
  box-shadow:0 8px 20px rgba(21,159,157,.22)!important;
}
[data-market-theme="teex7x-dark"] #sidebar li.active a,
[data-market-theme="teex7x-dark"] #sidebar li.active button,
[data-market-theme="teex7x-dark"] #sidebar li:hover a,
[data-market-theme="teex7x-dark"] #sidebar li:hover button,
[data-market-theme="teex7x-dark"] .sidebar-nav li.active a,
[data-market-theme="teex7x-dark"] .sidebar-nav li:hover a{
  color:#fff!important;
}
[data-market-theme="teex7x-dark"] .quick-nav-item.active,
[data-market-theme="teex7x-dark"] .navbar-page .quick-nav-item.active,
[data-market-theme="teex7x-dark"] .quick-nav-item[aria-current="page"]{
  background:linear-gradient(135deg,#2867b4,#159f9d)!important;
  color:#fff!important;
  border-color:#159f9d!important;
  box-shadow:0 6px 16px rgba(21,159,157,.2)!important;
}
[data-market-theme="teex7x-dark"] .settlement-export-card,
[data-market-theme="teex7x-dark"] .settlement-export-card::before,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot tr,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot td,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tbody tr,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tbody td,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary > div{
  background:#17191e!important;
  background-color:#17191e!important;
  background-image:none!important;
  color:#edf3ff!important;
  border-color:#3b424e!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
}
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot tr,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot td{
  background:#17191e!important;
  background-color:#17191e!important;
  background-image:none!important;
  color:#edf3ff!important;
  border-color:#3b424e!important;
}
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-issued-meta .text-secondary,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-issued-meta .text-secondary{
  color:#c4d8f2!important;
  font-size:16px!important;
  font-weight:700!important;
}
[data-market-theme="teex7x-dark"] #settlementPrintArea #settlementHeaderRecorder,
[data-market-theme="teex7x-dark"] .settlement-export-card #settlementHeaderRecorder,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-issued-meta strong,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-issued-meta b,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-issued-meta strong,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-issued-meta b{
  color:#fff!important;
  font-size:19px!important;
  font-weight:850!important;
}
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead tr,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead th,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table thead,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table thead tr,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table thead th{
  background:#1d2027!important;
  background-color:#1d2027!important;
  color:#d6e6ff!important;
  border-color:#3b424e!important;
  -webkit-print-color-adjust:exact!important;
  print-color-adjust:exact!important;
}
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark *{
  color:#d6e6ff!important;
}
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark-title,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark strong{
  color:#a9c9ff!important;
}

@media print{
  [data-market-theme="teex7x-dark"] #settlementPrintArea,
  [data-market-theme="teex7x-dark"] #settlementPrintArea *{
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
}

/* Final midnight export/readability pass.  Keep the settlement metadata and
   table content bright enough to read while preserving the compact layout. */
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-issued-meta,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-issued-meta{
  color:#edf3ff!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-issued-meta .text-secondary,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-issued-meta .text-secondary,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-customer>span,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-customer>span{
  color:#c4d8f2!important;
  font-size:16px!important;
  font-weight:650!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-issued-meta strong,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-issued-meta b,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-issued-meta strong,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-issued-meta b,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-customer>strong,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-customer>strong{
  color:#ffffff!important;
  font-size:19px!important;
  font-weight:800!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table{
  --bs-table-bg:#17191e;
  --bs-table-striped-bg:#1a1d24;
  --bs-table-hover-bg:#202631;
  --bs-table-color:#f2f6ff;
  --bs-table-border-color:#3b424e;
  font-size:17px!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead th,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table thead th{
  color:#d6e6ff!important;
  font-size:13px!important;
  font-weight:800!important;
  letter-spacing:.035em;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tbody td,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tbody td,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot td,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot td{
  color:#f2f6ff!important;
  font-size:17px!important;
  font-weight:650!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tbody td strong,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tbody td strong,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot td strong,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot td strong{
  color:#ffffff!important;
  font-weight:850!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary{
  font-size:16px!important;
  color:#edf3ff!important;
}

/* Export/print fallback when the midnight marker is attached to either html
   or body.  Keep every settlement surface dark so Bootstrap cannot restore
   white rows, totals, notes, or nested table cells. */
[data-market-theme="teex7x-dark"] #settlementPrintArea,
[data-market-theme="teex7x-dark"] #settlementPrintArea .card-body,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-head,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-customer,
[data-market-theme="teex7x-dark"] #settlementPrintArea .table-responsive,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table *,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-footer,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark *,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary > div,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary > div *{
  background-color:#17191e!important;
  color:#edf3ff!important;
  border-color:#3b424e!important;
}
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead *,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table th{
  background-color:#1d2027!important;
  color:#b8d7ff!important;
  border-color:#3b424e!important;
}
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary .settlement-balance{
  background-color:#163a2c!important;
  color:#b6f4d4!important;
  border-color:#2f8f68!important;
}

@media print{
  [data-market-theme="teex7x-dark"] body,
  [data-market-theme="teex7x-dark"] #appShell,
  [data-market-theme="teex7x-dark"] #content,
  [data-market-theme="teex7x-dark"] #settlement,
  [data-market-theme="teex7x-dark"] #settlementPrintArea,
  [data-market-theme="teex7x-dark"] #settlementPrintArea .card-body,
  [data-market-theme="teex7x-dark"] #settlementPrintArea .table-responsive,
  [data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table,
  [data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table *,
  [data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-footer,
  [data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark,
  [data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary,
  [data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary > div{
    background-color:#17191e!important;
    color:#edf3ff!important;
    border-color:#3b424e!important;
  }
  [data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead,
  [data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead *,
  [data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table th{
    background-color:#1d2027!important;
    color:#b8d7ff!important;
    border-color:#3b424e!important;
  }
}

/* Final ancestor-agnostic guard: the theme marker may be written on either
   <html> or <body> during a theme transition. */
[data-market-theme="teex7x-dark"] .settlement-export-card,
[data-market-theme="teex7x-dark"] .settlement-export-card>.card-body,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tbody,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tbody tr,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tbody td,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot tr,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot td,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table > :not(caption) > * > *,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary>div,
[data-market-theme="teex7x-dark"] #settlementPrintArea,
[data-market-theme="teex7x-dark"] #settlementPrintArea>.card-body,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tbody,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tbody tr,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tbody td,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot tr,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot td,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table > :not(caption) > * > *,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary>div{
  background:#17191e!important;
  background-color:#17191e!important;
  color:#edf3ff!important;
  border-color:#3b424e!important;
}
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table thead,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table thead tr,
[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table thead th,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead tr,
[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead th{
  background:#1d2027!important;
  background-color:#1d2027!important;
  color:#b8d7ff!important;
  border-color:#3b424e!important;
}
.log-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;align-items:end;gap:10px}.user-log-toolbar{grid-template-columns:minmax(220px,1fr) minmax(180px,240px) auto auto}.log-filter-card .card-body{padding:18px 20px}.log-table td{font-size:13px}.log-time{white-space:nowrap;color:#64748b;font-variant-numeric:tabular-nums}.log-action{display:inline-flex;align-items:center;min-height:27px;padding:3px 9px;border:1px solid #bfdbfe;border-radius:999px;background:#eff6ff;color:#1d4ed8;font-size:12px;font-weight:750;white-space:nowrap}.log-action-system{border-color:#ddd6fe;background:#f5f3ff;color:#6d28d9}
@media(max-width:767px){.log-filter-card .card-body{padding:14px}.log-toolbar,.user-log-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.log-toolbar>div:first-child{grid-column:1/-1}.log-toolbar .btn{width:100%;min-height:40px;padding-inline:7px;font-size:12px}.log-table td,.log-table th{padding:9px 10px}.log-time{white-space:normal;min-width:105px}}
.ticket-modal-dialog{max-width:800px}.ticket-modal-dialog .ticket-detail-table .table{width:100%;min-width:0;table-layout:fixed}.ticket-modal-dialog .ticket-detail-table .table th,.ticket-modal-dialog .ticket-detail-table .table td{padding-inline:8px;white-space:normal;word-break:normal}.ticket-modal-dialog .ticket-detail-table .table th:nth-child(1),.ticket-modal-dialog .ticket-detail-table .table td:nth-child(1){width:14%}.ticket-modal-dialog .ticket-detail-table .table th:nth-child(2),.ticket-modal-dialog .ticket-detail-table .table td:nth-child(2){width:32%}.ticket-modal-dialog .ticket-detail-table .table th:nth-child(3),.ticket-modal-dialog .ticket-detail-table .table td:nth-child(3){width:20%}.ticket-modal-dialog .ticket-detail-table .table th:nth-child(4),.ticket-modal-dialog .ticket-detail-table .table td:nth-child(4){width:34%}.image-capture-stage{position:fixed;z-index:-9999;top:0;left:-100000px;overflow:visible;padding:0}.image-capture-source{width:100%!important;max-width:none!important;margin:0!important;box-shadow:none!important}.ticket-export-card{overflow:hidden;width:100%;border:1px solid #d7e1ed;border-radius:22px;background:#fff;color:#172033;box-shadow:0 18px 45px rgba(15,23,42,.12)}.ticket-export-header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;padding:26px 30px 22px;border-bottom:4px solid #fbbf24;background:linear-gradient(120deg,#163f8f,#2563eb);color:#fff}.ticket-export-header span{display:block;margin-bottom:3px;font-size:12px;font-weight:850;letter-spacing:.14em}.ticket-export-header h2{margin:0;font-size:28px;font-weight:850}.ticket-export-header>strong{font-family:Consolas,"Courier New",monospace;font-size:21px;letter-spacing:.03em}.ticket-export-body{padding:25px 28px 30px;background:#fff}.ticket-export-body .ticket-detail-table{overflow:visible}.ticket-export-body .ticket-detail-table .table{width:100%;min-width:0;table-layout:fixed}.ticket-export-body .ticket-detail-table th:nth-child(1),.ticket-export-body .ticket-detail-table td:nth-child(1){width:14%}.ticket-export-body .ticket-detail-table th:nth-child(2),.ticket-export-body .ticket-detail-table td:nth-child(2){width:32%}.ticket-export-body .ticket-detail-table th:nth-child(3),.ticket-export-body .ticket-detail-table td:nth-child(3){width:20%}.ticket-export-body .ticket-detail-table th:nth-child(4),.ticket-export-body .ticket-detail-table td:nth-child(4){width:34%}
@media(max-width:576px){.ticket-modal-dialog{width:calc(100% - 8px);max-width:none;margin:4px}.ticket-modal-dialog .modal-header{padding:12px 14px}.ticket-modal-dialog .modal-body{padding:12px}.ticket-modal-dialog .modal-footer{padding:10px 12px}.ticket-modal-dialog .modal-footer .btn{padding:8px 7px;font-size:12px}.ticket-detail-table{overflow:visible}.ticket-detail-table .table{width:100%;min-width:0!important;table-layout:fixed}.ticket-detail-table .table th,.ticket-detail-table .table td{padding:7px 4px!important;font-size:11px;line-height:1.22;white-space:normal;word-break:normal}.ticket-detail-table .table th:nth-child(1),.ticket-detail-table .table td:nth-child(1){width:14%}.ticket-detail-table .table th:nth-child(2),.ticket-detail-table .table td:nth-child(2){width:32%}.ticket-detail-table .table th:nth-child(3),.ticket-detail-table .table td:nth-child(3){width:20%}.ticket-detail-table .table th:nth-child(4),.ticket-detail-table .table td:nth-child(4){width:34%}.ticket-detail-table .rank-number{font-size:13px;letter-spacing:.02em}.ticket-detail-table .blocked-badge{display:flex;width:max-content;max-width:100%;margin:3px 0 0;padding:2px 4px;font-size:8px}.ticket-detail-section h6{padding:8px 10px;font-size:14px}}
.market-footer-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.market-language-picker{display:flex;align-items:center;gap:6px;min-height:31px;padding:4px 8px;border:1px solid #dbe5f0;border-radius:8px;background:#f8fbff;color:#475569;font-size:12px}.market-language-picker select{min-height:0;padding:0;border:0;background:transparent;color:#1d4ed8;font-size:12px;font-weight:800;outline:0}.profile-language-section{padding:8px 10px}.profile-language-title{display:flex;align-items:center;gap:7px;margin-bottom:7px;color:#64748b;font-size:12px;font-weight:750}.profile-language-options{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.profile-language-options button{min-height:31px;padding:4px 5px;border:1px solid #dbe5f0;border-radius:8px;background:#fff;color:#475569;font-size:12px;font-weight:800}.profile-language-options button:hover{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.profile-language-options button.active{border-color:#2563eb;background:#2563eb;color:#fff;box-shadow:0 4px 10px rgba(37,99,235,.2)}html.lang-lo,html.lang-lo body,html.lang-lo button,html.lang-lo input,html.lang-lo select{font-family:"Lao UI","Phetsarath OT","Noto Sans Lao",Tahoma,sans-serif!important}@media(max-width:576px){.market-footer-actions{justify-content:flex-start;width:100%}.market-language-picker{flex:1}.market-language-picker select{min-width:0;flex:1}.market-footer-actions .btn{flex:1 1 auto}}

.currency-unit-card .card-header,.exchange-card .card-header{display:flex;align-items:center;gap:8px}
.currency-unit-card .btn{width:100%}
.exchange-rate-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px;padding:14px 16px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff}
.exchange-rate-head span{display:block;color:var(--muted);font-size:13px}.exchange-rate-head strong{display:block;margin-top:3px;color:#16366f;font-size:22px;font-variant-numeric:tabular-nums}.exchange-rate-head>div:last-child{text-align:right}
.exchange-grid{display:grid;grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);align-items:end;gap:12px}.exchange-arrow{display:flex;align-items:center;justify-content:center;height:40px;color:var(--primary);font-size:19px}.exchange-rate-input{max-width:280px}
.exchange-note{margin-top:14px;color:var(--muted);font-size:12px;line-height:1.5}.exchange-note i{margin-right:5px;color:var(--primary)}.exchange-note a{color:var(--primary);text-decoration:none}.exchange-note a:hover{text-decoration:underline}
@media(max-width:575.98px){.currency-settings-row>.col-lg-4,.currency-settings-row>.col-lg-8{padding-left:8px;padding-right:8px}.exchange-rate-head{display:block;padding:12px 13px}.exchange-rate-head>div:last-child{margin-top:5px;text-align:left}.exchange-rate-head strong{font-size:19px}.exchange-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:9px}.exchange-arrow{display:none}.exchange-rate-input{max-width:none}}

/* Record-detail and settlement exports */
.ticket-export-card{
  border:0;
  border-radius:0;
  box-shadow:none;
}
.ticket-export-header{padding:30px 32px 26px}
.ticket-export-header h2{font-size:34px}
.ticket-export-header>strong{font-size:24px}
.ticket-export-body{
  padding:28px 30px 34px;
  font-size:17px;
}
.ticket-export-body .ticket-document-meta span{font-size:14px!important}
.ticket-export-body .ticket-document-meta strong{font-size:18px}
.ticket-export-body .ticket-detail-section h6{font-size:19px}
.ticket-export-body .ticket-detail-table th{font-size:14px}
.ticket-export-body .ticket-detail-table td{font-size:17px}
.ticket-export-body .rank-number{font-size:19px}
.ticket-export-body .modal-summary{padding:15px 17px;font-size:18px}

.settlement-export-card{
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.settlement-export-card .card-body{padding:30px!important}
.settlement-export-card .settlement-table{font-size:16px}
.settlement-export-card .settlement-table th,.settlement-export-card .settlement-table td{font-size:16px;padding:12px 14px}
.settlement-export-card .settlement-payment-label{font-size:15px;padding:7px 11px}
.settlement-export-card .settlement-ticket-detail header span{font-size:15px}
.settlement-export-card .settlement-ticket-detail .table th,.settlement-export-card .settlement-ticket-detail .table td{font-size:16px;padding:11px 13px}
.settlement-export-card .settlement-ticket-detail footer{font-size:15px}

.ticket-detail-print-area{display:none}
@media print{
  body.printing-ticket-detail #loginScreen,
  body.printing-ticket-detail #marketScreen,
  body.printing-ticket-detail #appShell,
  body.printing-ticket-detail .modal,
  body.printing-ticket-detail .modal-backdrop{display:none!important}
  body.printing-ticket-detail #ticketDetailPrintArea{
    display:block!important;
    width:100%;
    margin:0;
  }
  body.printing-ticket-detail #ticketDetailPrintArea .ticket-export-card{
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
}

/* Admin selective data cleanup */
.data-cleanup-card{border-color:#fecaca}
.data-cleanup-card>.card-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  background:linear-gradient(90deg,#fff7f7,#fff);
}
.data-cleanup-card>.card-header strong{display:block;color:#991b1b}
.data-cleanup-card>.card-header .badge{padding:7px 10px;color:#475569}
.data-cleanup-summary{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:48px;
  padding:11px 14px;
  border:1px solid #dbe5f0;
  border-radius:12px;
  background:#f8fafc;
  color:#64748b;
  font-weight:700;
}
.data-cleanup-summary i{font-size:18px}
.data-cleanup-summary.is-ready{border-color:#86efac;background:#f0fdf4;color:#166534}
.data-cleanup-summary.is-warning{border-color:#fde68a;background:#fffbeb;color:#92400e}
.data-cleanup-summary.is-danger{border-color:#fecaca;background:#fef2f2;color:#b91c1c}
@media(max-width:576px){
  .data-cleanup-card>.card-header{align-items:flex-start}
  .data-cleanup-card .card-body{padding:14px}
  .data-cleanup-card .row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
  .data-cleanup-card .row>[class*="col-"]{width:auto;max-width:none;padding:0;min-width:0}
  .data-cleanup-card .form-label{margin-bottom:4px;font-size:12px}
  .data-cleanup-card .form-control,.data-cleanup-card .form-select{min-height:40px;height:40px;padding-inline:8px;font-size:12px}
  .data-cleanup-card .input-group>.btn{min-height:40px;height:40px;padding-inline:9px}
  .data-cleanup-summary{font-size:12px;line-height:1.4}
  .data-cleanup-card .card-body>.d-flex:last-child{display:grid!important;grid-template-columns:1fr 1fr;width:100%}
  .data-cleanup-card .card-body>.d-flex:last-child .btn{width:100%;padding-inline:7px;font-size:12px}
}

/* Units are shown in the entry-field labels instead of inside the inputs. */
.entry-tabbed .ticket-type-tabs button{min-width:118px;padding-inline:14px;font-size:14px}
@media(max-width:576px){
  .entry-tabbed .ticket-type-tabs button{min-width:0;min-height:48px;padding:8px 5px;font-size:12.5px;line-height:1.15}
  .entry-workspace .form-label{font-size:12.5px;line-height:1.25}
}

/* Admin account switcher */
.profile-dropdown{width:310px}
.profile-switch-section{margin:5px 0;padding:10px;border:1px solid #dbeafe;border-radius:10px;background:#f8fbff}
.profile-switch-section>label{display:flex;align-items:center;gap:7px;margin-bottom:7px;color:#334155;font-size:12px;font-weight:800}
.profile-switch-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px}
.profile-switch-control .form-select{min-width:0;font-size:12px}
.profile-switch-control .btn{padding-inline:10px;font-size:12px;white-space:nowrap}
.profile-impersonation-mode{margin:5px 0;padding:10px;border:1px solid #f3c46d;border-radius:10px;background:#fffaf0}
.profile-impersonation-mode>label{display:flex;align-items:center;gap:7px;margin-bottom:7px;color:#92400e;font-size:12px;font-weight:800}
.profile-mode-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.profile-mode-buttons button{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;min-height:36px;padding:6px 8px;border:1px solid #dbe4f0;border-radius:9px;background:#fff;color:#475569;font-size:12px;font-weight:800;white-space:nowrap}
.profile-mode-buttons button.is-active[data-impersonation-mode="read"]{border-color:#94a3b8;background:#f1f5f9;color:#334155}
.profile-mode-buttons button.is-active[data-impersonation-mode="write"]{border-color:#f59e0b;background:#fff7ed;color:#b45309;box-shadow:0 2px 8px rgba(245,158,11,.14)}
.profile-impersonation-mode small{display:block;margin-top:7px;color:#64748b;font-size:11px;line-height:1.35}
.navbar .profile-dropdown .profile-return-admin{color:#7c3aed;font-weight:800}
.navbar .profile-dropdown .profile-return-admin:hover{background:#f5f3ff;color:#6d28d9}
.impersonating-user .profile-trigger{border-color:#f59e0b;background:#fffbeb;color:#92400e}
.impersonating-user .profile-trigger .profile-name::after{content:" • USER";font-size:10px;font-weight:900;letter-spacing:.04em}

/* Select individual records in Admin cleanup */
.data-cleanup-list{overflow:hidden;border:1px solid #dbe5f0;border-radius:12px}
.data-cleanup-list .table{min-width:760px}
.data-cleanup-list th{background:#f8fafc;color:#475569;font-size:12px;white-space:nowrap}
.data-cleanup-list td{font-size:13px}
.data-cleanup-list .cleanup-check{width:42px;text-align:center}
.data-cleanup-list .cleanup-reference{display:block;color:#1d4ed8;font-size:13px}
.data-cleanup-list td span{display:block;margin-top:2px;color:#64748b;font-size:11px}
.data-cleanup-actions{align-items:center}
@media(max-width:576px){
  .profile-dropdown{width:min(310px,calc(100vw - 20px))}
  .data-cleanup-card .data-cleanup-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .data-cleanup-card .data-cleanup-actions #deleteFilteredData{grid-column:1/-1}
  .data-cleanup-list .table{min-width:680px}
}

/* Keep paired dashboard cards compact on phone screens. */
@media(max-width:576px){
  #dashboard .dashboard-card .card-body{min-height:76px;padding:8px 10px}
  #dashboard .dashboard-card p{max-width:calc(100% - 27px);margin-bottom:4px;font-size:11px;line-height:1.1}
  #dashboard .dashboard-card h2{font-size:22px;line-height:1}
  #dashboard .dashboard-card small{display:block;font-size:10px;line-height:1.1}
  #dashboard .dashboard-card .stat-icon{right:8px;top:8px;width:25px;height:25px;font-size:13px}
  #dashboard .coverage-card .card-body{padding:15px 13px}
  #dashboard .coverage-card .coverage-header{gap:5px;font-size:13px;line-height:1.15}
  #dashboard .coverage-card .coverage-header strong{font-size:16px}
  #dashboard .coverage-card .coverage-value{margin:13px 0 10px}
  #dashboard .coverage-card .coverage-value strong{font-size:26px}
  #dashboard .coverage-card .coverage-value span,#dashboard .coverage-card .form-hint{font-size:11px;line-height:1.25}
}

/* Let the number-entry workspace use the full width of its parent card. */
.entry-card .entry-tabbed{margin:4px -18px -18px}
.entry-card .entry-workspace{border-right:0;border-bottom:0;border-left:0;border-radius:0 0 15px 15px}
.settlement-selection-card .card-header{font-weight:800}
.settlement-select-all{display:inline-flex;align-items:center;gap:8px;margin:0;color:#334155;font-weight:700}
.settlement-selection-table th{background:#f8fafc;color:#52647a;font-size:12px;white-space:nowrap}
.settlement-selection-table td{font-size:14px}
.settlement-check-column{width:44px;text-align:center}
.settlement-selection-card .card-header>div:last-child{margin-left:auto;justify-content:flex-end;max-width:100%}
.settlement-selection-card #settlementSelectionSummary{
  display:inline-flex!important;
  align-items:center!important;
  min-height:44px!important;
  padding:0 12px!important;
  border:1px solid var(--border,#dbe4f0)!important;
  border-radius:12px!important;
  background:var(--surface-soft,#f8fafc)!important;
  color:var(--text,#172033)!important;
  font-size:13px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.settlement-selection-card .column-picker-button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  min-height:44px!important;
  border-radius:12px!important;
  font-weight:750!important;
  white-space:nowrap!important;
}
.settlement-selection-card .settlement-print-mode{
  min-height:44px;
  border-radius:12px;
}
.settlement-selection-card .settlement-print-mode .settlement-print-option{
  min-height:42px;
  align-items:center;
}
.settlement-commission-fields{display:grid;grid-template-columns:minmax(0,1fr) 84px;align-items:end;gap:8px}
.settlement-commission-fields.is-tiered{grid-template-columns:minmax(0,1fr)}
.settlement-commission-mode-field,.settlement-fixed-percent-field{min-width:0}
.settlement-fixed-percent-field .input-group{width:84px}
.settlement-fixed-percent-field .form-control{text-align:center;padding-inline:7px}
.settlement-commission-fields .form-label{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.settlement-tier-editor{padding:14px 16px;border:1px solid color-mix(in srgb,var(--primary,#2563eb) 22%,var(--border,#dbe4f0));border-radius:14px;background:color-mix(in srgb,var(--primary-soft,#eff6ff) 42%,var(--surface,#fff))}
.settlement-tier-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:11px}
.settlement-tier-editor-head strong{display:block;color:var(--text,#172033);font-size:14px}
.settlement-tier-editor-head p{margin:3px 0 0;color:var(--muted,#64748b);font-size:12px}
.settlement-tier-head-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}
.settlement-tier-chevron{display:inline-block;min-width:14px;margin-right:4px;font-size:15px;line-height:1;transform:translateY(-1px)}
.settlement-tier-editor-content{padding-top:2px}
.settlement-tier-table{min-width:650px;border:1px solid var(--border,#dbe4f0);border-radius:10px;overflow:hidden;background:var(--surface,#fff)}
.settlement-tier-table th{background:var(--surface-soft,#f8fafc);color:var(--muted,#52647a);font-size:12px;white-space:nowrap}
.settlement-tier-table td,.settlement-tier-table th{padding:8px 10px}
.settlement-tier-table .form-control{min-width:115px}
.settlement-tier-note{display:flex;align-items:flex-start;gap:7px;margin-top:10px;color:var(--muted,#64748b);font-size:12px;line-height:1.45}
.settlement-tier-note i{margin-top:2px;color:var(--primary,#2563eb)}
.settlement-tier-validation{display:flex;align-items:flex-start;gap:7px;margin-top:8px;font-size:12px;font-weight:700;line-height:1.45}
.settlement-tier-validation.is-valid{color:#15803d}.settlement-tier-validation.is-invalid,.settlement-tier-error{color:#b91c1c}
.settlement-commission-breakdown{margin-top:14px;padding:12px 14px;border:1px solid #dbe5f0;border-radius:11px;background:#f8fbff;color:#38516c}
.settlement-breakdown-title{display:flex;align-items:center;gap:7px;margin-bottom:8px;color:#1d4ed8;font-size:14px;font-weight:850}
.settlement-commission-breakdown .table{margin-bottom:0;background:transparent;color:inherit}
.settlement-commission-breakdown .table th{color:#52647a;font-size:13px;white-space:nowrap}
.settlement-commission-breakdown .table td{font-size:13.5px;line-height:1.45}
.settlement-commission-breakdown .table tfoot th{border-top:1px solid #cbdbea;color:#1f3650;font-size:13.5px}
.settlement-tier-error{margin-top:12px;padding:10px 12px;border:1px solid #fecaca;border-radius:10px;background:#fff1f2;font-size:12px;font-weight:750}
.settlement-print-mode{display:flex;overflow:hidden;border:1px solid var(--border,#dbe4f0);border-radius:10px;background:var(--surface-soft,#f8fafc)}
.settlement-print-mode .settlement-print-option{position:relative;display:inline-flex;align-items:center;gap:6px;margin:0;padding:6px 10px;border-right:1px solid var(--border,#dbe4f0);color:var(--muted,#64748b);font-size:12px;font-weight:800;cursor:pointer;transition:background-color .16s ease,color .16s ease,box-shadow .16s ease}
.settlement-print-mode .settlement-print-option:last-child{border-right:0}
.settlement-print-mode .settlement-print-option>input{position:absolute;opacity:0;pointer-events:none}
.settlement-print-indicator{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border:1px solid var(--border,#cbd5e1);border-radius:50%;color:transparent;opacity:.75;transition:background-color .16s ease,border-color .16s ease,color .16s ease,transform .16s ease}
.settlement-print-indicator i{font-size:11px;opacity:0;transform:scale(.7);transition:opacity .16s ease,transform .16s ease}
.settlement-print-mode .settlement-print-option:has(input:checked){background:var(--primary-soft,rgba(37,99,235,.12));color:var(--primary,#2563eb);box-shadow:inset 0 -2px 0 var(--primary,#2563eb)}
.settlement-print-mode .settlement-print-option:has(input:checked) .settlement-print-indicator{background:var(--primary,#2563eb);border-color:var(--primary,#2563eb);color:#fff;opacity:1}
.settlement-print-mode .settlement-print-option:has(input:checked) .settlement-print-indicator i{opacity:1;transform:scale(1)}
.settlement-payment-mode{display:flex;align-items:center;flex-wrap:nowrap;gap:8px 14px;margin-bottom:14px;padding:9px 11px;border:1px solid #bfdbfe;border-radius:10px;background:#f8fbff;color:#475569;font-size:13px;font-weight:700;white-space:nowrap;overflow-x:auto}.settlement-payment-mode>span{color:#1d4ed8;flex:0 0 auto}.settlement-payment-mode label{display:inline-flex;align-items:center;gap:5px;margin:0;cursor:pointer;flex:0 0 auto}.settlement-payment-mode input{accent-color:#2563eb}
.settlement-issued-meta{min-width:165px}.settlement-issued-meta #settlementPrintedAt{font-size:13px;font-weight:700}.settlement-issued-meta b{color:#172033;font-weight:750}
.settlement-payment-label{display:inline-flex;align-items:center;gap:8px;margin:-5px 0 13px;padding:5px 9px;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-size:12px}.settlement-payment-label strong{font-weight:800}
.settlement-ticket-detail{margin:14px 0;border:1px solid #dbe5f0;border-radius:12px;overflow:hidden;background:#fff}
.settlement-ticket-detail header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 14px;background:#f8fbff;border-bottom:1px solid #dbe5f0}
.settlement-ticket-detail header>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px}.settlement-ticket-detail header strong{font-family:Consolas,"Courier New",monospace;color:#1d4ed8;font-size:15px}.settlement-ticket-detail header span{color:#64748b;font-size:13px}
.settlement-ticket-result{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border-radius:99px;font-size:12px;font-weight:800;white-space:nowrap}.settlement-ticket-result.has-win{background:#fef2f2;color:#b91c1c}.settlement-ticket-result.no-win{background:#f0fdf4;color:#15803d}
.settlement-ticket-detail .table th,.settlement-ticket-detail .table td{padding:8px 11px;font-size:13px}.settlement-winning-row td{background:#fff1f2!important}.settlement-winning-row .rank-number{color:#b91c1c}
.settlement-ticket-detail footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px 24px;padding:10px 14px;background:#f8fafc;border-top:1px solid #dbe5f0;color:#64748b;font-size:13px}.settlement-ticket-detail footer strong{color:#172033}
@media print{.settlement-selection-card{display:none!important}}
@media(max-width:767.98px){
  .settlement-selection-card .card-header{align-items:flex-start}
  .settlement-selection-card .card-header>div:last-child{width:100%;margin-left:0;justify-content:flex-start}
}
@media(max-width:576px){
  .entry-card .entry-tabbed{margin:4px -18px -18px}
  .entry-card .entry-workspace{border-radius:0 0 15px 15px;padding:16px 18px}
  .settlement-selection-table{min-width:660px}
  .settlement-print-mode label{padding-inline:7px}.settlement-ticket-detail header{align-items:flex-start;flex-direction:column}.settlement-ticket-detail .table{min-width:590px}.settlement-ticket-detail footer{justify-content:space-between;gap:8px}
}

#settlementPrintArea{position:relative;overflow:hidden}#settlementPrintArea .settlement-watermark{position:absolute;z-index:2;top:54%;left:50%;transform:translate(-50%,-50%) rotate(-18deg);padding:8px 22px;border:3px solid rgba(22,163,74,.18);border-radius:9px;color:rgba(22,163,74,.16);font-size:clamp(32px,6vw,62px);font-weight:900;letter-spacing:.07em;white-space:nowrap;pointer-events:none;user-select:none}#settlementPrintArea .settlement-payment-label.is-unpaid{background:#fef2f2;color:#b91c1c}#settlementPrintArea .settlement-payment-label.is-unpaid strong{display:inline-flex;align-items:center;gap:5px;color:#b91c1c}#settlementPaymentMode .settlement-payment-unpaid{color:#b91c1c}@media print{#settlementPrintArea .settlement-watermark{position:fixed;top:50%;z-index:5}}

/* Compact page navigation for quick switching on narrow screens. */
.quick-nav{display:flex;align-items:center;gap:3px;min-height:43px;padding:5px 26px;background:#fff;border-bottom:1px solid var(--border);overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.quick-nav::-webkit-scrollbar{display:none}
.quick-nav-item{position:relative;border:1px solid transparent;border-radius:8px;padding:6px 10px;background:transparent;color:#64748b;font-size:13px;font-weight:650;line-height:1.2;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s,border-color .15s}
.quick-nav-item:hover{background:#f8fafc;color:#334155}
.quick-nav-item.active{background:#eef2f6;border-color:#e2e8f0;color:#475569;font-weight:800}
.quick-nav-item.quick-nav-child{padding-left:18px;color:#64748b;font-size:12px}
.quick-nav-item.quick-nav-child::before{content:"›";position:absolute;left:7px;color:#94a3b8;font-size:14px;font-weight:800}
.quick-nav-item.quick-nav-child.active{background:#f1f5f9;color:#475569}
@media(max-width:576px){
  .quick-nav{min-height:39px;padding:4px 14px;gap:2px}
  .quick-nav-item{padding:5px 8px;font-size:12px}
  .quick-nav-item.quick-nav-child{padding-left:16px;font-size:11px}
}

@media(max-width:576px){html.lang-lo .navbar .title{font-size:21px}html.lang-lo .page-heading h1{font-size:clamp(26px,7vw,32px)}html.lang-lo .card-header{font-size:16px}html.lang-lo .form-label{font-size:15px}html.lang-lo .form-control,html.lang-lo .form-select,html.lang-lo .btn{font-size:15px}}

.cloud-backup-list{display:grid;gap:8px}
.cloud-backup-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #dbe5f0;border-radius:11px;background:#f8fafc}
.cloud-backup-meta{min-width:0;display:flex;flex-direction:column;gap:2px}
.cloud-backup-meta strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cloud-backup-meta span{font-size:12px;color:#64748b}
.cloud-backup-row .btn{flex:0 0 auto}
@media(max-width:576px){
  .cloud-backup-row{align-items:flex-start;padding:10px;gap:8px}
  .cloud-backup-row .btn{padding:6px 9px;font-size:12px}
}

/* Mobile filter pairing: keep related controls together and compact. */
@media(max-width:767px){
  #search>.page-heading + .card .card-body>.row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:0;
  }
  #search>.page-heading + .card .card-body>.row>[class*="col-"]{
    width:auto;
    max-width:none;
    min-width:0;
    padding:0;
  }
  /* Dates first, then number/reference, then customer/status. */
  #search>.page-heading + .card .card-body>.row>:nth-child(3){order:1}
  #search>.page-heading + .card .card-body>.row>:nth-child(4){order:2}
  #search>.page-heading + .card .card-body>.row>:nth-child(1){order:3}
  #search>.page-heading + .card .card-body>.row>:nth-child(2){order:4}
  #search>.page-heading + .card .card-body>.row>:nth-child(5){order:5}
  #search>.page-heading + .card .card-body>.row>:nth-child(6){order:6}
  #search .filter-actions{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  #search .filter-actions .filter-primary{grid-column:auto}
  #search .filter-actions #searchToday{order:1}
  #search .filter-actions #searchTicket{order:2}
  #search .filter-actions #clearSearch{order:3}
  #search .filter-actions .btn{min-width:0;padding-inline:5px;font-size:12px;white-space:nowrap}
  #search .filter-actions #clearSearch{white-space:normal;line-height:1.15}

  #reportTwo>.page-heading + .card .card-body>.row,
  #reportThree>.page-heading + .card .card-body>.row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:0;
  }
  /* Summary filters: keep the start/end draw dates side by side on phones. */
  #report>.page-heading + .card .card-body>.row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin:0;
  }
  #report>.page-heading + .card .card-body>.row>[class*="col-"]{
    width:auto;
    max-width:none;
    min-width:0;
    padding:0;
  }
  #reportTwo>.page-heading + .card .card-body>.row>[class*="col-"],
  #reportThree>.page-heading + .card .card-body>.row>[class*="col-"]{
    width:auto;
    max-width:none;
    min-width:0;
    padding:0;
  }
  /* Reports: dates pair, customer spans a row, then sort and direction pair. */
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(3),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(3){grid-column:1/-1}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6){grid-column:1/-1}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:8px!important;
  }
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6) .btn,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6) .btn{
    min-width:0;
    padding-inline:5px;
    font-size:12px;
    white-space:nowrap;
  }

  /* Keep reference and note controls balanced on the compact entry form. */
  #ticket .entry-meta-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  #ticket .entry-reference-field,
  #ticket .entry-reference-field>.form-control,
  #ticket .entry-meta-grid .ticket-note-editor,
  #ticket .entry-meta-grid .ticket-note-editor summary{min-width:0;width:100%}
  #ticket .entry-meta-grid .ticket-note-editor:not([open]){height:40px}
  #ticket .entry-meta-grid .ticket-note-editor:not([open]) summary{height:38px;min-height:38px;padding-block:6px}

  /* Give the number and price inputs more usable width while retaining a clear gap. */
  #ticket .entry-card .entry-workspace{padding-inline:10px}
  #ticket #panel2,
  #ticket #panel3{
    display:grid;
    grid-template-columns:minmax(0,.90fr) minmax(0,1.10fr) minmax(0,1.10fr);
    column-gap:9px;
    row-gap:16px;
    margin:0!important;
    --bs-gutter-x:0;
    --bs-gutter-y:0;
  }
  #ticket #panel2>.col-4,
  #ticket #panel3>.col-4{width:auto;padding:0;flex:none}
  #ticket #panel2 .form-control,
  #ticket #panel3 .form-control,
  #ticket .entry-workspace .number-input,
  #ticket .entry-workspace .money-entry-input{font-size:16px;font-weight:700}
  #ticket #panel2>#reverse2Row{grid-column:1/-1}

}

/* Compact, touch-friendly entry card controls on phones. */
@media(max-width:576px){
  #ticket .entry-card>.card-header{min-height:42px;padding:10px 14px;font-size:16px}
  #ticket .entry-card>.card-body{padding:12px 14px}
  #ticket .entry-card .ticket-quickbar{margin-bottom:10px}
  #ticket .entry-tabbed .ticket-type-tabs button{min-height:44px;padding-block:7px;font-size:12px;border-radius:11px 11px 0 0}
}

/* Keep the quick navigation blue on desktop as well as on mobile. */
.quick-nav-item{color:#1d4ed8;border-color:#dbeafe}
.quick-nav-item:hover{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}
.quick-nav-item.active{background:#dbeafe;border-color:#93c5fd;color:#1d4ed8;font-weight:800}

/* Workspace themes: the original blue-white theme is the default; all themes use a white canvas. */
.card{border:1px solid var(--border)}
html[data-market-theme="blue"]{--primary:#2563eb;--primary-dark:#1d4ed8;--primary-soft:#dbeafe;--sidebar:#0f172a;--background:#fff}
html[data-market-theme="gray"]{--primary:#475569;--primary-dark:#334155;--primary-soft:#e5e7eb;--sidebar:#1f2937;--background:#fff}
html[data-market-theme="gray"] .quick-nav-item.active{background:#e5e7eb;border-color:#cbd5e1;color:#334155}
html[data-market-theme="gray"] .entry-tabbed .ticket-type-tabs button.active{background:linear-gradient(135deg,#e5e7eb,#cbd5e1);color:#334155}
html[data-market-theme="nexora"]{--primary:#155c9a;--primary-dark:#0b3558;--primary-soft:#dff3f1;--sidebar:#081c35;--background:#fff;--accent:#119f9a}
html[data-market-theme="nexora"] .quick-nav-item.active{background:#e4f5f4;border-color:#a7ded8;color:#0b5d73}
html[data-market-theme="nexora"] .entry-tabbed .ticket-type-tabs button.active{background:linear-gradient(135deg,#155c9a,#119f9a);color:#fff;border-color:#119f9a}
html[data-market-theme="nexora"] .btn-primary{background:linear-gradient(135deg,#155c9a,#119f9a);border-color:#119f9a}
html[data-market-theme="teal"]{--primary:#119f9a;--primary-dark:#087a79;--primary-soft:#d9f5f1;--sidebar:#083b48;--background:#fff;--accent:#31bfae}
html[data-market-theme="teal"] .quick-nav-item.active{background:#dff6f2;border-color:#9fddd5;color:#087a79}
html[data-market-theme="teal"] .entry-tabbed .ticket-type-tabs button.active{background:linear-gradient(135deg,#46c8b7,#119f9a);color:#fff;border-color:#119f9a}
html[data-market-theme="teal"] .btn-primary{background:#119f9a;border-color:#119f9a}
.logo{justify-content:flex-start;padding:8px 16px;background:#f8fafc;border-bottom-color:#dbe3ec}
.logo .nexora-sidebar-logo{width:124px;height:54px;object-fit:contain;border-radius:8px;background:#fff;border:1px solid #e2e8f0;padding:3px}
.logo span{display:none}
#sidebar.hide .logo{justify-content:center;padding:8px}
#sidebar.hide .logo .nexora-sidebar-logo{width:48px;height:48px}
/* Restore the original dark sidebar brand layout while using the new icon asset. */
.logo{height:70px;justify-content:flex-start;gap:12px;padding:0 0 0 38px;background:transparent;border-bottom-color:rgba(255,255,255,.09)}
.logo img{width:30px;height:30px;object-fit:cover;border-radius:9px;background:transparent;border:0;padding:0}
.logo span{display:inline}
#sidebar.hide .logo span{display:none}
#sidebar.hide .logo{justify-content:center;padding:0}
.settlement-brand{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;column-gap:14px;row-gap:2px}
.settlement-brand.settlement-logo-hidden{grid-template-columns:minmax(0,1fr)}
.settlement-brand .eyebrow{display:none!important}
.settlement-brand-logo{grid-column:1;grid-row:1 / span 2;width:58px;height:58px;object-fit:contain;border:0;border-radius:0;background:transparent}
.settlement-brand h2{grid-column:2;grid-row:1;font-size:22px;line-height:1.1;margin:0}
.settlement-brand #settlementPeriod{grid-column:2;grid-row:2;display:block;font-size:13px;white-space:nowrap;margin:0}
.ticket-export-brand img{width:52px;height:52px;border:0;border-radius:0;background:transparent}
.ticket-export-brand h2{font-size:25px}
.entry-tabbed .ticket-type-tabs button.active{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)));border-color:var(--primary);color:#fff}
#ticket .entry-tabbed .ticket-type-tabs button.active{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)));border-color:var(--primary);color:#fff}
.market-screen{position:relative;overflow:hidden;background:radial-gradient(circle at 18% 12%,rgba(71,189,178,.24),transparent 32%),linear-gradient(135deg,#082746 0%,#155c9a 52%,#18a999 100%)}
.market-screen::before,.market-screen::after{content:"";position:absolute;border-radius:999px;pointer-events:none;filter:blur(2px)}
.market-screen::before{width:360px;height:360px;right:-150px;top:-130px;background:rgba(255,255,255,.11)}
.market-screen::after{width:280px;height:280px;left:-130px;bottom:-120px;background:rgba(20,184,166,.18)}
.market-card{position:relative;z-index:1;background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.7);box-shadow:0 28px 70px rgba(4,25,48,.32)}
/* NEXORA login: calm blue-to-teal gradient with a clean, focused card. */
.login-screen{background:radial-gradient(circle at 18% 12%,rgba(71,189,178,.24),transparent 32%),linear-gradient(135deg,#082746 0%,#155c9a 52%,#18a999 100%);position:relative;overflow:hidden}
.login-screen::before,.login-screen::after{content:"";position:absolute;border-radius:999px;pointer-events:none;filter:blur(2px)}
.login-screen::before{width:360px;height:360px;right:-150px;top:-130px;background:rgba(255,255,255,.11)}
.login-screen::after{width:280px;height:280px;left:-130px;bottom:-120px;background:rgba(20,184,166,.18)}
.login-card{position:relative;z-index:1;width:min(100%,430px);padding:36px 38px;background:rgba(255,255,255,.97);border:1px solid rgba(255,255,255,.7);border-radius:22px;box-shadow:0 28px 70px rgba(4,25,48,.32)}
.login-brand{margin-bottom:24px}
.login-brand .nexora-login-logo{width:94px;height:76px;object-fit:contain;border-radius:0;background:transparent;border:0;padding:0}
.login-brand p{color:#0b6570}
.login-brand h1{color:#082746}
.login-card .form-control:focus{border-color:#119f9a;box-shadow:0 0 0 .22rem rgba(17,159,154,.16)}
.login-card .btn-primary{background:linear-gradient(135deg,#155c9a,#119f9a);border-color:#119f9a}
.login-card .btn-primary:hover,.login-card .btn-primary:focus{background:linear-gradient(135deg,#0b3558,#087a79);border-color:#087a79}
.theme-settings-card .card-header i{margin-right:6px;color:var(--primary)}
.user-settings-card .card-header{display:flex;align-items:center;gap:7px}
.user-settings-card .card-header i{color:var(--primary)}
.user-settings-card .card-body{padding:16px}
.user-settings-card .form-label{margin-bottom:5px}
.user-settings-card .customer-list{min-height:28px;max-height:92px;overflow:auto;padding-right:2px}
.user-settings-card .form-hint{line-height:1.35}
.user-settings-card-row>.col-12{min-width:0}
@media(max-width:767.98px){
  .user-settings-card .card-body{padding:14px}
  .user-settings-card .row.g-3{--bs-gutter-y:.65rem}
  .user-settings-card .customer-list{max-height:116px}
}
#ticket .entry-workspace .number-input,
#ticket .entry-workspace .money-entry-input{font-family:Arial,sans-serif;font-weight:700}

/* Keep the active customer and reference values easy to scan on the entry form. */
#ticket .ticket-quickbar #customer,
#ticket .entry-reference-field #ticketRef{
  color:#1e3a8a;
  font-weight:650;
  caret-color:#1d4ed8;
}
#ticket .ticket-quickbar #customer,
#ticket .entry-meta-grid #customer{color:#b42318;caret-color:#b42318}
#ticket .ticket-quickbar #draw,
#ticket .entry-reference-field #ticketRef{
  color:#1e3a8a;
  font-weight:750;
}
#ticket .ticket-quickbar #draw::placeholder,
#ticket .entry-reference-field #ticketRef::placeholder{
  color:#1e3a8a;
  opacity:.82;
  font-weight:750;
}

/* Clear, modern segmented control for selecting the entry type. */
#ticket .entry-tabbed .ticket-type-tabs{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  padding:4px;
  border:1px solid #dbeafe;
  border-radius:14px;
  background:#f1f5f9;
}
#ticket .entry-tabbed .ticket-type-tabs button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-width:0;
  min-height:42px;
  padding:8px 7px;
  border:0!important;
  border-radius:10px!important;
  background:transparent;
  color:#64748b;
  font-size:14px;
  font-weight:750;
  line-height:1.15;
  box-shadow:none;
  transform:none;
}
#ticket .entry-tabbed .ticket-type-tabs button i{font-size:15px;line-height:1;color:#94a3b8}
#ticket .entry-tabbed .ticket-type-tabs button.active{
  background:linear-gradient(135deg,#bfdbfe,#93c5fd);
  color:#1d4ed8;
  box-shadow:0 3px 9px rgba(37,99,235,.22),inset 0 1px 0 rgba(255,255,255,.9);
}
#ticket .entry-tabbed .ticket-type-tabs button.active i{color:#2563eb}
#ticket .entry-tabbed .ticket-type-tabs button.active:after{display:none}
#ticket .entry-card .ticket-quickbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#ticket .entry-action-row{align-items:center}
#ticket .entry-action-row .ticket-new-button{margin-left:auto;min-height:38px;padding:7px 13px;white-space:nowrap}
@media(max-width:576px){
  .bulk-import-toolbar{grid-template-columns:1fr;padding:12px}.bulk-import-bill{padding:12px;border-radius:14px}.bulk-import-bill-heading{align-items:flex-start}.bulk-import-bill-heading>div{align-items:flex-start;flex-direction:column;gap:2px}.bulk-import-preview-summary{grid-template-columns:1fr;gap:8px}.bulk-import-preview-summary>div{padding:11px}
  #ticket .entry-tabbed .ticket-type-tabs{gap:3px;padding:3px;border-radius:13px}
  #ticket .entry-tabbed .ticket-type-tabs button{min-height:40px;padding:7px 4px;font-size:12px;gap:4px}
  #ticket .entry-tabbed .ticket-type-tabs button i{font-size:14px}
  #ticket .entry-card .ticket-quickbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #ticket .entry-action-row{flex-wrap:wrap}
  #ticket .entry-action-row #addItem,
  #ticket .entry-action-row #reviewTicket{flex:1 1 0;min-width:0;padding-inline:9px}
  #ticket .entry-action-row .ticket-new-button{margin-left:0;flex:0 0 auto}
  #ticket .entry-action-row .ticket-new-button{min-height:38px;padding-inline:10px;font-size:12px}
}
.quick-nav-item.quick-nav-child{color:#2563eb}
.quick-nav-item.quick-nav-child::before{color:#60a5fa}
.quick-nav-item.quick-nav-child.active{background:#dbeafe;color:#1d4ed8}
/* Per-account workspace permissions */
.user-market-access-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.user-market-access-options label{display:flex;align-items:center;gap:7px;border:1px solid var(--border-color,#dbe4f0);border-radius:10px;padding:9px 10px;background:#f8fafc;cursor:pointer;font-size:.95rem}
.user-market-access-options input{accent-color:var(--primary-color,#2563eb)}
.entry-tabbed .ticket-type-tabs button.active,#ticket .entry-tabbed .ticket-type-tabs button.active{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)))!important;border-color:var(--primary)!important;color:#fff!important;box-shadow:0 3px 12px color-mix(in srgb,var(--primary) 28%,transparent)!important}
#ticket .entry-action-row #addItem{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)))!important;border-color:var(--primary)!important;color:#fff!important}
.navbar .profile-dropdown .dropdown-item:not(.profile-logout):hover,.navbar .profile-dropdown .dropdown-item:not(.profile-logout):focus,.navbar .profile-dropdown .dropdown-item:not(.profile-logout).active{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)))!important;color:#fff!important}
.logo img{width:40px;height:40px}
#sidebar.hide .logo img{width:38px;height:38px}
.btn-primary{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)))!important;border-color:var(--primary)!important;color:#fff!important}
.btn-primary:hover,.btn-primary:focus{background:linear-gradient(135deg,var(--primary-dark),var(--accent,var(--primary)))!important;border-color:var(--primary-dark)!important;color:#fff!important}
.btn-outline-primary{color:var(--primary)!important;border-color:var(--primary)!important;background:transparent!important}
.btn-outline-primary:hover,.btn-outline-primary:focus{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)))!important;border-color:var(--primary)!important;color:#fff!important}
.btn-link,.link-button{color:var(--primary)!important}
:root{--bs-primary:var(--primary);--bs-primary-rgb:37,99,235}
.text-primary{color:var(--primary)!important}
.settlement-page-actions{position:fixed;right:24px;bottom:24px;z-index:1030;display:flex;gap:9px;padding:8px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 12px 30px rgba(15,23,42,.18);backdrop-filter:blur(10px)}
#settlement .page-heading-actions{position:fixed;right:24px;bottom:24px;z-index:1030;display:flex;gap:9px;padding:8px;border:1px solid var(--border);border-radius:14px;background:rgba(255,255,255,.94);box-shadow:0 12px 30px rgba(15,23,42,.18);backdrop-filter:blur(10px)}
@media(max-width:576px){#settlement .page-heading-actions{right:12px;bottom:12px;left:12px;justify-content:stretch}#settlement .page-heading-actions .btn{flex:1 1 0;padding-inline:8px;font-size:13px}}
@media print{#settlement .page-heading-actions{display:none!important}}
.quick-nav-item.quick-nav-child,.quick-nav-item.quick-nav-child:hover{color:var(--primary)!important}
.profile-trigger>.bi-person-circle{color:var(--primary)!important}
.logo i,.coverage-header i,.ticket-type-tabs button.active i,#ticket .entry-tabbed .ticket-type-tabs button.active i{color:var(--accent,var(--primary))!important}
.navbar .profile-dropdown .dropdown-item:not(.profile-logout):hover strong,.navbar .profile-dropdown .dropdown-item:not(.profile-logout):focus strong{color:#fff!important}
.profile-language-title.profile-language-toggle:hover,.profile-language-title.profile-language-toggle.is-open{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)))!important;color:#fff!important}
.profile-language-options button.profile-language-option:hover,.profile-language-options button.profile-language-option:focus,.profile-language-options button.profile-language-option.active{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)))!important;border-color:var(--primary)!important;color:#fff!important}
.quick-nav-item.quick-nav-child::before{color:var(--primary);font-size:18px;font-weight:900;line-height:1;text-shadow:0 1px 1px rgba(15,23,42,.15)}
.quick-nav-item.quick-nav-child.active::before{color:var(--primary-dark);font-size:21px;font-weight:950;text-shadow:0 1px 2px rgba(15,23,42,.2)}
.quick-nav-item.quick-nav-child{display:inline-flex;align-items:center;gap:5px;padding-left:10px}
.quick-nav-item.quick-nav-child::before{position:static;display:inline-block;content:"›";color:var(--accent,var(--primary));font-size:20px;font-weight:950;line-height:1;text-shadow:none}
.quick-nav-item.quick-nav-child.active::before{color:#fff;font-size:22px}
.quick-nav-item.active{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)))!important;border-color:var(--primary)!important;color:#fff!important}
.entry-tabbed .ticket-type-tabs button{font-size:13.5px}
#ticket .entry-tabbed .ticket-type-tabs button{font-size:13.5px!important}
#ticket .entry-tabbed .ticket-type-tabs button i{display:none}
#ticket .entry-tabbed .ticket-type-tabs button.active{transform:scale(1.035)!important;transform-origin:center bottom;z-index:2}
#ticket .entry-tabbed .ticket-type-tabs button.active::before{content:"✓";display:inline-block;margin-right:6px;font-size:14px;font-weight:950;line-height:1}
.user-market-access.is-disabled{opacity:.7}
@media (max-width:576px){.user-market-access-options{grid-template-columns:1fr 1fr}.user-market-access-options label:last-child{grid-column:1/-1}}

/* Profile submenu presentation */
.profile-switch-submit{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-width:86px;font-weight:800!important}
.profile-language-title.profile-language-toggle{cursor:pointer;justify-content:space-between;padding:7px 8px;margin:-2px -4px 5px;border-radius:8px;transition:background .15s,color .15s}
.profile-language-title.profile-language-toggle:hover,.profile-language-title.profile-language-toggle.is-open{background:#eff6ff;color:#1d4ed8}
.profile-language-chevron{margin-left:auto;font-size:11px;transition:transform .15s}.profile-language-toggle.is-open .profile-language-chevron{transform:rotate(180deg)}
.profile-language-submenu{padding:2px 0 4px}.profile-language-submenu[hidden]{display:none!important}
.profile-language-options{grid-template-columns:1fr!important;gap:5px!important}
.profile-language-options button.profile-language-option{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-height:35px;padding:6px 10px;text-align:left}
.profile-language-options .language-flag{font-size:18px;line-height:1;flex:0 0 auto}
.coverage-risk{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;font-weight:700;line-height:1.2}.coverage-risk i{color:var(--primary);font-size:14px}.coverage-risk strong{margin-left:auto;color:var(--text);font-size:13px}.coverage-bottom .coverage-risk i{color:#7c3aed}.coverage-three .coverage-risk i{color:#d97706}
@media (max-width:575.98px){.coverage-risk{font-size:10px;gap:4px}.coverage-risk i{font-size:12px}.coverage-risk strong{font-size:11px}}
.market-choice-icon{overflow:hidden}.market-flag-img{display:block;width:100%;height:100%;object-fit:cover}.market-inline-flag{display:inline-flex;align-items:center;justify-content:center;width:22px;height:16px;overflow:hidden;flex:0 0 auto}.market-flag-inline-image{display:block;width:22px;height:16px;object-fit:cover;border-radius:2px}.market-flag-fallback{font-size:18px;color:#334155}.market-context-badge .market-flag-inline-image{width:18px;height:13px}.profile-language-options .language-flag{display:block;width:24px;height:15px;object-fit:cover;border-radius:2px;font-size:16px}
.hero h1,.page-heading h1{font-size:clamp(24px,2.8vw,30px)}
#sidebar.search-expanded li.search-submenu,#sidebar.ticket-expanded li.ticket-submenu,#sidebar.dashboard-expanded li.dashboard-submenu{display:flex}

/* User record-entry hours */
.entry-window-notice{display:flex;align-items:flex-start;gap:10px;margin:-4px 0 14px;padding:10px 13px;border:1px solid #bfdbfe;border-radius:12px;background:#eff6ff;color:#1d4ed8;font-size:.9rem;line-height:1.3}.entry-window-notice>i{font-size:18px;line-height:1.1}.entry-window-notice strong{font-weight:800}.entry-window-notice small{display:block;margin-top:2px;color:inherit;opacity:.82}.entry-window-notice.is-open{background:#ecfdf5;border-color:#a7f3d0;color:#047857}.entry-window-notice.is-closed{background:#fff1f2;border-color:#fecdd3;color:#be123c}.entry-window-notice.is-unlimited{background:#f5f3ff;border-color:#ddd6fe;color:#6d28d9}
.market-entry-window-card{height:100%;padding:14px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff}.market-entry-window-card.is-limited{border-color:#93c5fd;background:#f8fbff}.market-entry-window-card.is-unlimited{border-color:#ddd6fe;background:#fbfaff}.market-entry-window-title{display:flex;align-items:center;gap:8px;margin-bottom:12px;font-size:1rem}.market-entry-window-title .market-flag-inline-image{width:27px;height:19px;border-radius:3px}.entry-window-mode{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:12px}.entry-window-mode input{position:absolute;opacity:0;pointer-events:none}.entry-window-mode label{display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:6px;border:1px solid #dbe4f0;border-radius:9px;background:#fff;color:#64748b;font-size:.83rem;font-weight:700;cursor:pointer}.entry-window-mode input:checked+label{border-color:#60a5fa;background:#dbeafe;color:#1d4ed8;box-shadow:0 3px 9px rgba(37,99,235,.12)}.entry-window-times{display:grid;grid-template-columns:1fr auto 1fr;align-items:end;gap:7px;color:#64748b;font-size:.78rem;font-weight:700}.entry-window-times label{min-width:0}.entry-window-times .form-control{min-height:37px;margin-top:4px;padding-inline:8px;font-size:.9rem}.entry-window-times input:disabled{background:#f1f5f9;color:#94a3b8}
@media (max-width:575.98px){.entry-window-notice{margin-top:2px;font-size:.82rem}.market-entry-window-card{padding:12px}.entry-window-mode label{font-size:.78rem}.entry-window-times{gap:5px;font-size:.72rem}}

/* Improve contrast for secondary/helper text without changing primary headings. */
.text-secondary{color:#4d5f73!important}
html.lang-lo .page-heading p,html.lang-lo .section-heading p,html.lang-lo .hero p,html.lang-lo .form-hint,html.lang-lo .empty-state p{font-size:1.05em;font-weight:500}
html.lang-lo,html.lang-lo body,html.lang-lo button,html.lang-lo input,html.lang-lo select{font-family:"Noto Sans Lao UI","Lao Sans Pro","Lao UI","Phetsarath OT","Noto Sans Lao",Tahoma,sans-serif!important}
/* Finance UAT */
.finance-summary-card{border-left:4px solid var(--primary);min-height:92px}.finance-summary-card .card-body{display:flex;flex-direction:column;justify-content:center;gap:.2rem}.finance-summary-card span{color:var(--muted);font-size:.95rem}.finance-summary-card strong{font-size:1.6rem;line-height:1.15}.finance-income{border-left-color:#16a34a}.finance-expense{border-left-color:#dc2626}.finance-net{border-left-color:#2563eb}.finance-table th{white-space:nowrap;color:var(--muted);font-weight:600}.finance-table td{white-space:nowrap}.finance-table td:nth-child(5){white-space:normal;min-width:160px}.finance-number-input{font-weight:700}.finance-filters .form-label{margin-bottom:.35rem}@media(max-width:575.98px){.finance-summary-card{min-height:78px}.finance-summary-card strong{font-size:1.3rem}.finance-table{font-size:.88rem}}
.closed-finance-periods{display:grid;gap:.5rem}.closed-finance-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;padding:.65rem .8rem;border:1px solid var(--border);border-radius:.7rem;background:#fff7ed}.closed-finance-row span{display:flex;flex-direction:column;gap:.15rem;font-weight:650}.closed-finance-row small{font-weight:400;color:var(--muted)}
.finance-displayed-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;padding:.8rem 1rem;border:1px solid var(--border);border-radius:.85rem;background:var(--surface,#fff)}.finance-displayed-summary>div{display:flex;flex-direction:column;gap:.15rem;min-width:0}.finance-displayed-summary .finance-summary-label{color:var(--muted);font-size:.86rem}.finance-displayed-summary strong{font-size:1.05rem;line-height:1.2;white-space:nowrap}@media(max-width:767.98px){.finance-displayed-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem .9rem;padding:.75rem .85rem}.finance-displayed-summary strong{font-size:1rem}}
.finance-groups{display:grid;gap:.7rem}.finance-period-group{border:1px solid var(--border);border-radius:.9rem;background:var(--surface,#fff);overflow:hidden}.finance-period-group>summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.8rem 1rem;cursor:pointer;list-style:none}.finance-period-group>summary::-webkit-details-marker{display:none}.finance-period-group>summary>div:first-child{display:flex;flex-direction:column;gap:.15rem}.finance-period-title{font-weight:750;color:var(--text,#0f172a)}.finance-period-group summary small{color:var(--muted);font-weight:500}.finance-period-summary{display:flex;align-items:center;gap:1rem;font-size:.9rem;white-space:nowrap}.finance-period-summary strong{min-width:5rem;text-align:right}.finance-period-summary i{transition:transform .2s;color:var(--muted)}.finance-period-group[open]>summary{border-bottom:1px solid var(--border);background:color-mix(in srgb,var(--primary) 4%,transparent)}.finance-period-group[open] .finance-period-summary i{transform:rotate(180deg)}.finance-group-table{font-size:.9rem}.finance-group-table th{white-space:nowrap;color:var(--muted);font-weight:650}.finance-group-table td{white-space:nowrap}.finance-group-table td:nth-child(4){white-space:normal;min-width:180px}.finance-groups-total{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem;padding:.8rem 1rem;border:1px solid var(--border);border-radius:.8rem;background:var(--surface,#fff)}.finance-groups-total>div{display:flex;flex-direction:column;gap:.15rem}.finance-groups-total span{color:var(--muted);font-size:.82rem}.finance-groups-total strong{font-size:1.05rem}@media(max-width:767.98px){.finance-period-group>summary{align-items:flex-start;flex-direction:column}.finance-period-summary{width:100%;justify-content:space-between;gap:.45rem}.finance-groups-total{grid-template-columns:repeat(2,minmax(0,1fr))}.finance-group-table{font-size:.82rem}}
.finance-select-cell{width:2.6rem;text-align:center}.finance-latest-card{display:grid;gap:.45rem;padding:.7rem .9rem;border:1px solid var(--border);border-radius:.85rem;background:var(--surface,#fff)}.finance-latest-row{display:grid;grid-template-columns:minmax(9rem,1fr) repeat(3,minmax(5rem,auto));align-items:center;gap:.8rem;padding:.35rem 0}.finance-latest-row+.finance-latest-row{border-top:1px solid var(--border);padding-top:.55rem}.finance-latest-row>span,.finance-latest-row>strong:not(:first-child){text-align:right}.badge-closed{background:#fef3c7;color:#92400e;border-color:#fcd34d}.finance-currency-switch{min-width:8rem}@media(max-width:767.98px){.finance-latest-row{grid-template-columns:1fr 1fr;gap:.35rem}.finance-latest-row>strong:first-child{grid-column:1/-1}.finance-latest-row>span,.finance-latest-row>strong:not(:first-child){text-align:left}}
.logo{gap:10px}.logo img{width:30px;height:30px;object-fit:cover;border-radius:9px}.nexora-login-logo{width:52px;height:52px;object-fit:contain;border-radius:14px;background:#fff}.ticket-export-brand{display:flex;align-items:center;gap:12px}.ticket-export-brand img{width:42px;height:42px;object-fit:contain;border-radius:9px;background:#fff}

/* Keep page navigation beside the page title to save a full row of height. */
.navbar-page{display:flex;align-items:center;gap:12px;min-width:0;flex:1;margin-left:14px}
.navbar-page .title{flex:0 0 auto;white-space:nowrap}
.navbar-page .quick-nav{display:flex;align-items:center;gap:3px;min-width:0;min-height:0;padding:0;background:transparent;border:0;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.navbar-page .quick-nav::-webkit-scrollbar{display:none}
.navbar-page .quick-nav-item{padding:7px 11px;border:1px solid transparent;border-radius:9px;background:transparent;color:var(--primary);font-size:15px;font-weight:700;line-height:1.2;white-space:nowrap}
.navbar-page .quick-nav-item:hover{background:var(--primary-soft,#eff6ff);color:var(--primary-dark)}
.navbar-page .quick-nav-item.active{background:linear-gradient(135deg,var(--primary),var(--accent,var(--primary-dark)))!important;border-color:var(--primary)!important;color:#fff!important}
.navbar-page .quick-nav-item.quick-nav-child{padding-left:9px}
.navbar-page .quick-nav-item.quick-nav-child::before{position:static;display:inline-block;content:"›";margin-right:4px;color:var(--accent,var(--primary));font-size:17px;font-weight:950;line-height:1}
.navbar-page .quick-nav-item.quick-nav-child.active::before{color:#fff}
@media(max-width:992px){.navbar-page{gap:8px;margin-left:8px}.navbar-page .quick-nav-item{font-size:14px;padding:6px 9px}}
 @media(max-width:576px){.navbar-page{gap:6px;margin-left:5px}.navbar-page .title{font-size:18px}.navbar-page .quick-nav{gap:2px;padding-inline-start:7px}.navbar-page .quick-nav-item{font-size:13px;padding:5px 8px}.navbar-page .quick-nav-item.quick-nav-child::before{font-size:16px;margin-right:3px}}
html.lang-lo .navbar-page .quick-nav-item{font-size:16px;line-height:1.25}
@media(max-width:992px){html.lang-lo .navbar-page .quick-nav-item{font-size:15px}}
@media(max-width:576px){html.lang-lo .navbar-page .quick-nav-item{font-size:14px}}

/* Customer picker: show saved names on tap/click while keeping free typing. */
.customer-picker{position:relative;z-index:20}
.customer-picker .form-control{padding-right:42px}
.customer-picker-toggle{position:absolute;top:50%;right:7px;z-index:2;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;transform:translateY(-50%);padding:0;border:0;border-radius:8px;background:transparent;color:#991b1b;font-size:18px;font-weight:800;cursor:pointer}
.customer-picker-toggle:hover,.customer-picker-toggle:focus-visible{background:rgba(153,27,27,.10);color:#7f1d1d;outline:0}
.customer-suggestions{position:absolute;z-index:1100;top:calc(100% + 5px);left:0;right:0;max-height:230px;overflow-y:auto;padding:6px;border:1px solid var(--border);border-radius:11px;background:var(--white,#fff);box-shadow:0 12px 28px rgba(15,23,42,.16)}
.customer-suggestions.d-none{display:none!important}
.customer-suggestion{display:block;width:100%;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:.95rem;text-align:left;cursor:pointer}
.customer-suggestion:hover,.customer-suggestion:focus{background:#eff6ff;color:var(--primary);outline:0}
.customer-suggestions-empty{padding:10px 12px;color:var(--muted);font-size:.85rem}
@media(max-width:576px){.customer-suggestions{max-height:210px}.customer-suggestion{min-height:42px;padding:9px 11px;font-size:.98rem}}

.cleanup-transfer-panel{padding:12px 14px;border:1px solid #bfdbfe;border-radius:12px;background:#f8fbff}.cleanup-transfer-panel .form-hint{font-size:.82rem}

/* Optional display modes: auto keeps the responsive layout, touch enlarges
   touch targets, and standard keeps the more compact control height. */
html[data-display-mode="touch"] .btn,
html[data-display-mode="touch"] .form-control,
html[data-display-mode="touch"] .form-select{min-height:48px}
html[data-display-mode="touch"] #ticket .ticket-type-tabs button{min-height:52px}
html[data-display-mode="standard"] .btn,
html[data-display-mode="standard"] .form-control,
html[data-display-mode="standard"] .form-select{min-height:40px}

/* iOS date picker fallback: keep the custom DD/MM/YYYY field while making the native calendar touch target usable. */
.date-picker-trigger{position:relative;overflow:hidden}
.date-picker-trigger .ios-native-date-picker{position:absolute;top:0;right:0;bottom:auto;left:auto;width:52px;height:100%;z-index:2;margin:0;padding:0;border:0;opacity:.01;pointer-events:auto;cursor:pointer;-webkit-appearance:none;appearance:none}
.date-picker-trigger .date-picker-button{border-top-right-radius:10px!important;border-bottom-right-radius:10px!important}
@media(max-width:576px){.date-picker-button{min-width:50px}}

/* Mobile standalone/shortcut view: use the available screen width without
   changing the desktop layout. Keep controls evenly sized and comfortable
   for touch, including Lao labels and narrow iPhone/Android widths. */
@media(max-width:576px){
  #content{
    padding-top:14px;
    padding-right:max(8px, env(safe-area-inset-right));
    padding-bottom:24px;
    padding-left:max(8px, env(safe-area-inset-left));
  }
  .navbar{min-height:64px;padding-inline:max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right))}
  .profile-menu{flex:0 0 auto}
  .quick-nav{min-height:45px;padding-block:5px}
  .navbar-page .quick-nav-item{min-height:35px;padding:7px 9px;font-size:14px;line-height:1.2}
  html.lang-lo .navbar-page .quick-nav-item{font-size:15px}

  #ticket .ticket-main-grid{gap:9px}
  #ticket .entry-card>.card-header,
  #ticket .ticket-bill-card>.card-header{padding-inline:12px}
  #ticket .entry-card>.card-body{padding-inline:10px}
  #ticket .entry-card .entry-tabbed{margin-right:-10px;margin-left:-10px}
  #ticket .entry-card .entry-workspace{padding-right:12px;padding-left:12px}
  #ticket .entry-card .form-label{font-size:13px}
  #ticket .ticket-quickbar .form-control,
  #ticket .ticket-quickbar .form-select,
  #ticket .ticket-quickbar .btn{font-size:14px}
  #ticket .entry-action-row{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    width:100%;
    margin-top:14px!important;
  }
  #ticket .entry-action-row .btn,
  #ticket .entry-action-row .ticket-new-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-width:0;
    min-height:46px;
    height:46px;
    padding:6px 5px!important;
    font-size:clamp(11px,3.25vw,14px)!important;
    line-height:1.15;
    white-space:normal;
    text-align:center;
  }
  #ticket .entry-action-row .ticket-new-button{margin-left:0}
}

/* App-like touch layout for the record-entry screen on phones and compact
   browser shortcuts. This is intentionally scoped to #ticket and narrow
   viewports so desktop screens and other pages keep their existing layout. */
@media(max-width:767px){
  #ticket,
  #ticket button,
  #ticket input,
  #ticket select,
  #ticket textarea{
    -webkit-tap-highlight-color:transparent;
  }
  #ticket .ticket-main-grid{gap:10px}
  #ticket .ticket-main-grid>.card{
    border:1px solid var(--border);
    border-radius:18px;
    box-shadow:0 6px 18px rgba(15,23,42,.06);
  }
  #ticket .entry-card>.card-header,
  #ticket .ticket-bill-card>.card-header{
    min-height:52px;
    padding:12px 14px;
    font-size:18px;
  }
  #ticket .entry-card>.card-body{padding:12px 10px 10px}
  #ticket .ticket-quickbar{gap:10px;margin-bottom:12px}
  #ticket .ticket-quick-field .form-label{font-size:13px;font-weight:750}
  #ticket .ticket-quickbar .form-control,
  #ticket .ticket-quickbar .form-select,
  #ticket .ticket-quickbar .btn{
    min-height:48px;
    height:48px;
    border-radius:12px;
    font-size:16px!important;
  }
  #ticket .ticket-quickbar .input-group>.form-control{border-radius:12px 0 0 12px}
  #ticket .ticket-quickbar .input-group>.btn{
    min-width:50px;
    border-radius:0 12px 12px 0;
  }
  #ticket .entry-meta-grid{gap:10px;margin-bottom:12px}
  #ticket .entry-meta-grid .entry-reference-field>.form-control,
  #ticket .entry-meta-grid .ticket-note-editor summary{
    min-height:48px;
    height:48px;
    font-size:16px;
    border-radius:12px;
  }
  #ticket .entry-meta-grid .ticket-note-editor summary{padding:10px 11px}
  #ticket .entry-meta-grid .ticket-note-editor textarea{font-size:16px}
  #ticket .entry-tabbed .ticket-type-tabs{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px;
    padding:4px;
    border:1px solid #dbeafe;
    border-radius:15px 15px 0 0;
    background:#f1f5f9;
  }
  #ticket .entry-tabbed .ticket-type-tabs button{
    min-width:0;
    min-height:50px;
    height:50px;
    padding:8px 4px;
    border:0;
    border-radius:11px;
    font-size:clamp(13px,3.7vw,16px)!important;
    font-weight:750;
    line-height:1.2;
    white-space:normal;
    touch-action:manipulation;
  }
  #ticket .entry-tabbed .ticket-type-tabs button.active{transform:none!important}
  #ticket .entry-card .entry-workspace{
    padding:16px 12px 14px;
    border:1px solid #dbeafe;
    border-top:0;
    border-radius:0 0 17px 17px;
  }
  #ticket .entry-workspace .form-label{
    margin-bottom:6px;
    font-size:14px;
    font-weight:800;
    line-height:1.25;
  }
  #ticket .entry-workspace .form-control{
    min-height:50px;
    height:50px;
    padding-inline:12px;
    border-radius:12px;
    font-size:18px;
    touch-action:manipulation;
  }
  #ticket .entry-workspace .number-input,
  #ticket .entry-workspace .money-entry-input{
    font-family:Arial,sans-serif;
    font-size:18px!important;
    font-weight:800;
  }
  #ticket .entry-action-row{
    padding:8px;
    margin-right:-2px;
    margin-bottom:0;
    border:1px solid #dbeafe;
    border-radius:14px;
    background:color-mix(in srgb,var(--surface,#fff) 86%,var(--primary) 14%);
  }
  #ticket .entry-action-row .btn,
  #ticket .entry-action-row .ticket-new-button{
    min-height:48px;
    height:48px;
    border-radius:12px;
    font-weight:800;
    touch-action:manipulation;
  }
  #ticket .ticket-bill-card .card-body{padding:0 10px 10px}
  #ticket .ticket-bill-card .table-responsive{-webkit-overflow-scrolling:touch}
}
#ticket .ticket-today-card{overflow:hidden;border:1px solid var(--border);box-shadow:0 10px 28px rgba(15,23,42,.06)}
#ticket .ticket-today-card .card-header{padding:14px 18px;font-weight:850}
#ticket .ticket-today-card .table{margin:0}
#ticket .ticket-today-card .table th{background:var(--surface-soft,#f8fafc);font-size:13px;white-space:nowrap}
#ticket .ticket-today-card .table td{vertical-align:top}
#ticket .ticket-today-reference{font-weight:850;color:var(--primary);font-family:Arial, sans-serif}
#ticket .ticket-today-details{min-width:220px;max-width:520px;line-height:1.45;color:var(--text-secondary,#64748b);white-space:normal}
@media(max-width:576px){
  #ticket .ticket-today-card .card-header{padding:12px 14px}
  #ticket .ticket-today-card .table{min-width:620px}
  #ticket .ticket-today-card .table th,#ticket .ticket-today-card .table td{padding:9px 10px;font-size:12px}
  #ticket .ticket-today-details{min-width:250px;max-width:330px}
}

/* Touch-first record-entry mode. It is responsive only; desktop keeps the
   existing two-column layout and all of the same controls and behaviour. */
@media (max-width:767.98px){
  #ticket{
    --touch-gap:10px;
    padding-bottom:8px;
  }
  #ticket .ticket-main-grid{
    display:flex;
    flex-direction:column;
    gap:var(--touch-gap);
  }
  #ticket .ticket-main-grid>.card,
  #ticket .ticket-today-card{
    width:100%;
    margin:0;
    border-radius:18px;
    box-shadow:0 5px 16px rgba(15,23,42,.06);
  }
  #ticket .entry-card>.card-header,
  #ticket .ticket-bill-card>.card-header,
  #ticket .ticket-today-card>.card-header{
    min-height:50px;
    display:flex;
    align-items:center;
    padding:11px 14px;
    font-size:18px;
  }
  #ticket .entry-card>.card-body{
    padding:12px 10px 10px;
  }
  #ticket .ticket-quickbar,
  #ticket .entry-meta-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  #ticket .ticket-quickbar .form-control,
  #ticket .ticket-quickbar .form-select,
  #ticket .entry-meta-grid .form-control,
  #ticket .entry-meta-grid .ticket-note-editor summary{
    min-height:48px;
    height:48px;
    font-size:16px!important;
  }
  #ticket .ticket-quickbar .input-group>.btn{
    min-width:52px;
    min-height:48px;
  }
  #ticket .entry-tabbed .ticket-type-tabs{
    min-height:54px;
    gap:4px;
    padding:4px;
    border-radius:15px 15px 0 0;
  }
  #ticket .entry-tabbed .ticket-type-tabs button{
    min-height:46px;
    height:46px;
    padding:7px 5px;
    font-size:clamp(13px,3.8vw,16px)!important;
    line-height:1.15;
    touch-action:manipulation;
  }
  #ticket .entry-card .entry-workspace{
    padding:16px 12px 14px;
    border-radius:0 0 17px 17px;
  }
  #ticket .entry-workspace .form-control{
    min-height:50px;
    height:50px;
    font-size:18px!important;
  }
  #ticket .entry-action-row{
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
    margin-top:14px!important;
    padding:8px;
    border-radius:14px;
  }
  #ticket .entry-action-row .btn,
  #ticket .entry-action-row .ticket-new-button{
    min-width:0;
    min-height:48px;
    height:48px;
    padding:7px 5px!important;
    font-size:clamp(11px,3.25vw,14px)!important;
    line-height:1.15;
    white-space:normal;
    touch-action:manipulation;
  }
  #ticket .entry-action-row .btn:active,
  #ticket .entry-action-row .ticket-new-button:active,
  #ticket .ticket-type-tabs button:active{
    transform:translateY(1px) scale(.98);
  }
  #ticket .ticket-bill-card .table-responsive,
  #ticket .ticket-today-card .table-responsive{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  #ticket .ticket-bill-card .table,
  #ticket .ticket-today-card .table{
    min-width:590px;
  }
}

/* Record-entry metadata order: draw + note, then reference + customer. */
#ticket .ticket-quickbar.ticket-draw-note{
  grid-template-columns:minmax(190px,280px) minmax(180px,1fr);
  align-items:end;
}
#ticket .ticket-quickbar.ticket-draw-note .ticket-note-quick-field{
  min-width:0;
  margin:0;
  padding:0;
  border:1px solid var(--border);
  border-radius:10px;
  background:#f8fafc;
  overflow:hidden;
}
#ticket .ticket-quickbar.ticket-draw-note .ticket-note-quick-field summary{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:40px;
  height:40px;
  padding:8px 11px;
  list-style:none;
  color:#475569;
  font-size:14px;
  font-weight:750;
  cursor:pointer;
}
#ticket .ticket-quickbar.ticket-draw-note .ticket-note-quick-field summary::-webkit-details-marker{display:none}
#ticket .ticket-quickbar.ticket-draw-note .ticket-note-quick-field summary:after{content:"+";margin-left:auto;color:var(--primary);font-size:18px;font-weight:800}
#ticket .ticket-quickbar.ticket-draw-note .ticket-note-quick-field[open] summary:after{content:"−"}
#ticket .ticket-quickbar.ticket-draw-note .ticket-note-quick-field textarea{
  min-height:42px;
  margin:0!important;
  border:0;
  border-top:1px solid var(--border);
  border-radius:0;
  resize:vertical;
  font-size:13px;
}
#ticket .entry-meta-grid .ticket-customer-field{min-width:0;align-self:end}
#ticket .entry-meta-grid .ticket-customer-field .customer-picker{width:100%}

@media(max-width:767.98px){
  #ticket .ticket-quickbar.ticket-draw-note{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  #ticket .ticket-quickbar.ticket-draw-note .ticket-note-quick-field summary{min-height:48px;height:48px;padding:10px 11px;font-size:16px}
  #ticket .ticket-quickbar.ticket-draw-note .ticket-note-quick-field textarea{font-size:16px}
}

/* Keep customer and the action controls paired on the compact statistics view.
   These rules intentionally override the older generic mobile report grid. */
@media(max-width:767.98px){
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(3),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(3){grid-column:1!important;order:5!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6){grid-column:2!important;order:5!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}
}

/* Entry placeholders stay clear and visible across every work-set theme. */
#ticket #customer,
#ticket #ticketRef{
  color:#991b1b!important;
  caret-color:#991b1b!important;
  font-weight:800!important;
}
#ticket #customer::placeholder,
#ticket #ticketRef::placeholder{
  color:#991b1b!important;
  opacity:1!important;
  font-weight:800!important;
}

/* Compact navigation and profile controls remain touch-friendly on phones. */
.navbar-page .quick-nav-item{min-height:40px;padding:9px 12px;font-size:16px;line-height:1.2}
html.lang-lo .navbar-page .quick-nav-item{font-size:17px;min-height:42px}
.profile-dropdown .dropdown-item,.profile-dropdown .profile-dropdown-head{font-size:15px}
.profile-language-title.profile-language-toggle{min-height:42px;font-size:15px}
.profile-language-options button.profile-language-option{min-height:42px;font-size:15px}
.profile-language-options .language-flag{width:27px;height:17px;font-size:17px}

/* Optional TEEX7X + Verified watermark stack for settlement exports. */
#settlementPrintArea .settlement-watermark-stack{position:absolute;z-index:2;top:54%;left:50%;transform:translate(-50%,-50%) rotate(-18deg);display:flex;flex-direction:column;align-items:center;gap:4px;padding:9px 22px;border:3px solid rgba(22,163,74,.18);border-radius:9px;color:rgba(22,163,74,.16);pointer-events:none;user-select:none;white-space:nowrap}
#settlementPrintArea .settlement-watermark-stack .settlement-watermark{position:static;transform:none;padding:0;border:0;color:rgba(22,163,74,.16);font-size:clamp(32px,6vw,62px);font-weight:900;letter-spacing:.07em;line-height:1.05}
#settlementPrintArea .settlement-brand-watermark-line{display:block;line-height:1}
#settlementPrintArea .settlement-brand-watermark-line img{display:block;width:clamp(54px,9vw,86px);height:auto;opacity:.18;filter:grayscale(1)}
#settlementPrintArea .settlement-watermark-stack.is-dual{gap:7px}
#settlementPrintArea .settlement-brand-watermark-toggle{display:inline-flex;align-items:center;gap:6px;margin-left:8px;color:var(--primary-dark,#0f3d70);font-weight:750}
@media print{#settlementPrintArea .settlement-watermark-stack{position:fixed;top:50%;z-index:5}}

/* Keep settlement watermarks anchored to the statement content (not the print
   viewport/page frame), and give the TEEX7X mark the same visual presence as
   the Verified label.  This also keeps PNG and print placement consistent. */
#settlementPrintArea .settlement-watermark-stack{top:32%;}
#settlementPrintArea .settlement-watermark-stack .settlement-brand-watermark-line img{width:clamp(280px,34vw,320px);opacity:.16;}
#settlementPrintArea .settlement-watermark-stack .settlement-watermark{font-size:clamp(42px,7vw,68px);}
@media print{
  #settlementPrintArea .settlement-watermark-stack{position:absolute;top:32%;z-index:5;}
  #settlementPrintArea .settlement-watermark-stack .settlement-watermark{position:static;top:auto;}
}
/* Persistent sidebar submenu controls */
.sidebar-submenu-toggle{display:inline-flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;margin-left:auto;padding:0;border:0;border-radius:9px;background:transparent;color:#cbd5e1;font-size:15px;cursor:pointer;touch-action:manipulation}
.sidebar-submenu-toggle:hover,.sidebar-submenu-toggle:focus-visible{background:rgba(255,255,255,.14);color:#fff;outline:none}
.sidebar-submenu-toggle i{font-size:14px!important;pointer-events:none}
@media (max-width: 992px){
  #sidebar li[data-submenu-group] > .sidebar-submenu-toggle{
    flex-basis:42px;width:42px;height:42px;border-radius:12px;font-size:18px;
  }
  #sidebar li[data-submenu-group] > .sidebar-submenu-toggle i{font-size:17px!important}
}

/* Keep the statistics entry under Dashboard (and the other child entries
   under their own parent) even when the sidebar is opened on a narrow screen. */
#sidebar.dashboard-expanded li.dashboard-submenu,
#sidebar.ticket-expanded li.ticket-submenu,
#sidebar.report-expanded li.report-submenu,
#sidebar.settings-expanded li.settings-submenu{display:flex}
#sidebar li.submenu-item{order:initial}

/* Sidebar parents keep their submenu control at the far edge and remain
   touch-friendly without changing the compact desktop navigation. */
#sidebar li[data-submenu-group]{padding-right:8px}
#sidebar li[data-submenu-group] > span{min-width:0;overflow:hidden;text-overflow:ellipsis}
#sidebar li[data-submenu-group] > .sidebar-submenu-toggle{margin-left:auto}

/* Admins land in a focused Control Center. Workspace navigation remains
   available after choosing a workset, while the center keeps only its
   system-level pages visible. */
body.control-center-mode #sidebar li[data-page="dashboard"],
body.control-center-mode #sidebar li[data-page="reportTwo"],
body.control-center-mode #sidebar li[data-page="ticket"],
body.control-center-mode #sidebar li[data-page="search"],
body.control-center-mode #sidebar li[data-page="report"],
body.control-center-mode #sidebar li[data-page="result"],
body.control-center-mode #sidebar li[data-page="settlement"],
body.control-center-mode #sidebar li[data-page="finance"]{display:none!important}
body.control-center-mode #sidebar li[data-page="adminCenter"],
body.control-center-mode #sidebar li[data-page="dataCleanup"],
body.control-center-mode #sidebar li[data-page="setting"],
body.control-center-mode #sidebar li[data-page="adminUsers"],
body.control-center-mode #sidebar li[data-page="logs"]{display:flex!important}

/* The statistics filters are intentionally two-up on touch screens: dates,
   sort controls, then customer beside the action controls. */
@media(max-width:767.98px){
  #reportTwo>.page-heading + .card .card-body>.row,
  #reportThree>.page-heading + .card .card-body>.row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  #reportTwo>.page-heading + .card .card-body>.row>[class*="col-"],
  #reportThree>.page-heading + .card .card-body>.row>[class*="col-"]{
    width:auto;max-width:none;min-width:0;padding:0;
  }
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(1),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(1){grid-column:1;order:1}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(2),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(2){grid-column:2;order:2}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(4),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(4){grid-column:1;order:3}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(5),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(5){grid-column:2;order:4}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(3),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(3){grid-column:1;order:5}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6){grid-column:2;order:5}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid{
    display:grid!important;grid-template-columns:1fr!important;gap:7px!important;
  }
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6) .btn,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6) .btn{
    width:100%;min-width:0;min-height:40px;padding-inline:5px;font-size:12px;white-space:nowrap;
  }
  #reportTwo .ranking-header .ranking-expand-button,
  #reportThree .ranking-header .ranking-expand-button{
    min-height:34px;padding:7px 9px;font-size:12px;touch-action:manipulation;
  }
}

/* The latest-five shortcut is intentionally one line on phone-sized screens. */
@media(max-width:767.98px){
  #search .filter-actions #clearSearch,
  #report #clearReportDate,
  #settlement #clearSettlement{white-space:nowrap;line-height:1.2}
}

/* Ranking scope control: clearly indicates that the initial view is the
   first 10 results and remains easy to tap on a phone. */
#reportTwo .ranking-header .ranking-expand-button,
#reportThree .ranking-header .ranking-expand-button{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:34px;padding:6px 10px;border:1px solid var(--border);
  border-radius:9px;color:var(--primary);background:var(--surface,#fff);
  cursor:pointer;user-select:none;touch-action:manipulation;
}
#reportTwo .ranking-header .ranking-expand-button:hover,
#reportTwo .ranking-header .ranking-expand-button:focus-visible,
#reportThree .ranking-header .ranking-expand-button:hover,
#reportThree .ranking-header .ranking-expand-button:focus-visible{
  color:var(--primary-dark,var(--primary));background:var(--primary-soft,#eff6ff);
  border-color:var(--primary);outline:none;
}

/* Keep the customer filter beside the action buttons on touch screens. */
@media(max-width:767.98px){
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6),
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid{display:contents!important}
  #reportTwo>.page-heading + .card .card-body>.row #filterReportTwo,
  #reportThree>.page-heading + .card .card-body>.row #filterReportThree{grid-column:2!important;order:5!important;width:100%}
  #reportTwo>.page-heading + .card .card-body>.row #reportTwoToday,
  #reportThree>.page-heading + .card .card-body>.row #reportThreeToday{grid-column:1!important;order:6!important;width:100%}
  #reportTwo>.page-heading + .card .card-body>.row #clearReportTwoDate,
  #reportThree>.page-heading + .card .card-body>.row #clearReportThreeDate{grid-column:2!important;order:6!important;width:100%}
}

/* Settings account action should stay inside the account card on desktop. */
.account-settings-summary{grid-template-columns:auto minmax(0,1.45fr) minmax(72px,.65fr) minmax(72px,.65fr) minmax(118px,.9fr)}
.account-settings-summary #settingsLogoutButton{width:100%;min-width:0;max-width:100%;padding-inline:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:767.98px){
  .account-settings-summary{grid-template-columns:auto 1fr auto;gap:11px}
}

/* Latest-period filters use the same visible control boundary as the other
   filter buttons, while retaining each theme's own colors. */
:is(#clearDashboardDate,#clearSearch,#clearReportDate,#clearReportTwoDate,#clearReportThreeDate,#clearSettlement){
  border:1px solid var(--border,#cbd5e1)!important;
  border-radius:9px!important;
  background:var(--surface,#fff)!important;
  color:var(--text,#172033)!important;
  box-shadow:none!important;
}
:is(#clearDashboardDate,#clearSearch,#clearReportDate,#clearReportTwoDate,#clearReportThreeDate,#clearSettlement):hover,
:is(#clearDashboardDate,#clearSearch,#clearReportDate,#clearReportTwoDate,#clearReportThreeDate,#clearSettlement):focus-visible{
  border-color:var(--primary,#2563eb)!important;
  color:var(--primary-dark,var(--primary,#1d4ed8))!important;
  background:var(--primary-soft,#eff6ff)!important;
  outline:none;
}

/* Keep the compact quick navigation crisp in the iOS/macOS visual style
   without overriding the Thai/Lao/English font selected by the app. */
.navbar-page .quick-nav-item,.quick-nav-item{
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
  font-weight:750;
}

/* Keep exactly a 5px touch-safe gap after the hamburger on narrow screens. */
@media(max-width:576px){
  .navbar-page{margin-left:5px}
  .navbar-page .quick-nav{padding-inline-start:0}
}

.search-columns-picker summary{cursor:pointer;list-style:none}
.search-columns-picker summary::-webkit-details-marker{display:none}
.column-picker-button{display:inline-flex;align-items:center;justify-content:center;gap:.42rem;min-height:40px;padding:.45rem .78rem!important;border-radius:12px!important;font-family:inherit!important;font-size:.94rem!important;font-weight:600!important;letter-spacing:0!important;line-height:1.2!important;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
.column-picker-button i{font-size:1.05em;line-height:1}
.column-picker-button:hover{transform:translateY(-1px);box-shadow:0 3px 8px rgba(15,23,42,.09)}
.column-picker-button:active{transform:translateY(0);box-shadow:inset 0 1px 2px rgba(15,23,42,.12)}
.column-picker-button:focus-visible{outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--primary) 22%,transparent)}
.search-results-card{overflow:visible!important}
.search-columns-picker .search-columns-menu{min-width:230px;max-width:min(320px,calc(100vw - 1rem));max-height:min(70vh,420px);overflow-y:auto;overscroll-behavior:contain;padding:.65rem .75rem;z-index:5000}
.search-columns-list{display:flex;flex-direction:column;gap:.2rem}
.search-column-choice{display:flex;align-items:center;gap:.5rem;width:100%;border:0;border-radius:.7rem;background:transparent;color:inherit;text-align:left;padding:.5rem .55rem;font:inherit;line-height:1.25;cursor:pointer;transition:background-color .16s ease,opacity .16s ease,transform .16s ease}
.search-column-choice:hover,.search-column-choice:focus-visible{background:var(--primary-soft,rgba(37,99,235,.12));box-shadow:inset 0 0 0 1px var(--primary);outline:none}
.search-column-choice.is-selected{background:var(--primary-soft,rgba(37,99,235,.12));box-shadow:inset 0 0 0 1px var(--primary);color:var(--primary-dark,var(--primary));font-weight:600}
.search-column-choice.is-off{opacity:.58}
.search-column-choice .drag-handle-disabled{color:var(--text-secondary,#9aa8bb);font-size:.7em;opacity:.5}
@media (max-width:575.98px){.search-columns-picker .search-columns-menu{max-width:calc(100vw - 16px);max-height:65vh}.search-column-choice{min-height:42px;padding:.55rem .6rem}}
.stats-columns-menu{position:fixed!important;min-width:230px;max-width:min(320px,calc(100vw - 1rem));max-height:min(70vh,420px);overflow-y:auto;overscroll-behavior:contain;padding:.65rem .75rem;z-index:5000!important}
.stats-columns-list{display:flex;flex-direction:column;gap:.2rem}
.stats-column-choice{display:flex;align-items:center;gap:.5rem;width:100%;border:0;border-radius:.7rem;background:transparent;color:inherit;text-align:left;padding:.5rem .55rem;font:inherit;line-height:1.25;cursor:pointer;transition:background-color .16s ease,opacity .16s ease,transform .16s ease}
.stats-column-choice:hover,.stats-column-choice:focus-visible{background:var(--primary-soft,rgba(37,99,235,.12));box-shadow:inset 0 0 0 1px var(--primary);outline:none}
.stats-column-choice.is-selected{background:var(--primary-soft,rgba(37,99,235,.12));box-shadow:inset 0 0 0 1px var(--primary);color:var(--primary-dark,var(--primary));font-weight:600}
.stats-column-choice.is-off{opacity:.58}
.stats-column-choice .drag-handle{color:var(--text-secondary,#718096);cursor:grab}
.stats-column-choice.is-reorder-disabled .drag-handle-disabled{color:var(--text-secondary,#9aa8bb);font-size:.7em;opacity:.5}
.stats-columns-reorder-toggle{border-bottom:1px solid var(--border,#dce4ef);padding:.15rem .1rem .65rem;margin-bottom:.65rem;gap:.75rem}
.stats-columns-reorder-toggle strong{font-size:.9rem}
.stats-columns-reorder-toggle small{font-size:.75rem}
.stats-column-choice.is-dragging{opacity:.45}
.stats-column-choice.is-drag-over{box-shadow:inset 0 0 0 2px var(--primary,#2563eb)}
@media (max-width:575.98px){.stats-columns-menu{max-width:calc(100vw - 16px);max-height:65vh}.stats-column-choice{min-height:42px;padding:.55rem .6rem}}
.inline-ticket-editor .inline-ticket-meta{background:var(--surface-soft,#f6f8fb);border:1px solid var(--border,#dce4ef);border-radius:14px;padding:.75rem}
.inline-ticket-editor .inline-ticket-row{border:1px solid var(--border,#dce4ef);border-radius:14px;padding:.75rem;background:var(--surface,#fff)}
.inline-ticket-editor .inline-ticket-row + .inline-ticket-row{margin-top:.65rem}

/* Keep each editable ticket line compact on desktop: type / number /
   top (or teng) / bottom (or tod) / remove stay on one row. */
@media(min-width:768px){
  .inline-ticket-editor .inline-ticket-row .row{
    display:grid;
    grid-template-columns:minmax(110px,1.05fr) minmax(110px,1.15fr) minmax(130px,1.55fr) minmax(130px,1.55fr) 44px;
    gap:.5rem;
    margin:0;
    align-items:end;
  }
  .inline-ticket-editor .inline-ticket-row .row > [class*="col-"]{
    width:auto;
    max-width:none;
    flex:none;
    padding-inline:0;
  }
  .inline-ticket-editor .inline-ticket-row .form-control,
  .inline-ticket-editor .inline-ticket-row .form-select{min-width:0}
}

/* On phones keep the selector and number together on the first line, then
   place the two amount fields and the remove action on the second line. */
@media(max-width:767.98px){
  .inline-ticket-editor .inline-ticket-row .row{
    display:grid;
    grid-template-columns:minmax(96px,.9fr) minmax(0,1.15fr) 44px;
    gap:.5rem;
    margin:0;
    align-items:end;
  }
  .inline-ticket-editor .inline-ticket-row .row > [class*="col-"]{
    width:auto;
    max-width:none;
    flex:none;
    padding-inline:0;
  }
  .inline-ticket-editor .inline-ticket-row .row > :nth-child(1){grid-column:1}
  .inline-ticket-editor .inline-ticket-row .row > :nth-child(2){grid-column:2 / 4}
  .inline-ticket-editor .inline-ticket-row .row > :nth-child(3){grid-column:1}
  .inline-ticket-editor .inline-ticket-row .row > :nth-child(4){grid-column:2}
  .inline-ticket-editor .inline-ticket-row .row > :nth-child(5){grid-column:3}
  .inline-ticket-editor .inline-ticket-row .form-control,
  .inline-ticket-editor .inline-ticket-row .form-select{min-width:0}
}

/* Editing an account is a focused modal action, while creation remains inline. */
body.user-editing::before{content:"";position:fixed;inset:0;background:rgba(8,24,48,.42);z-index:1040}
body.user-editing #userEditCard{position:fixed;z-index:1041;inset:5vh auto auto 50%;transform:translateX(-50%);width:min(620px,calc(100vw - 2rem));max-height:90vh;overflow:auto;box-shadow:0 24px 70px rgba(8,24,48,.28)}
@media(max-width:767.98px){body.user-editing #userEditCard{inset:2vh .75rem auto;transform:none;width:auto;max-height:96vh}}

/* Final touch layout: concise read-only status, compact filters and export sheets. */
.ticket-note-label-en,.ticket-note-label-lo{display:none}
html.lang-en .ticket-note-label-th,html.lang-lo .ticket-note-label-th{display:none}
html.lang-en .ticket-note-label-en,html.lang-lo .ticket-note-label-lo{display:inline}

@media(min-width:768px){
  .ticket-modal-dialog{max-width:760px}
}

.ticket-export-card.ticket-export-compact{width:100%;max-width:560px}
.ticket-export-card.ticket-export-compact .ticket-export-body{padding:20px 20px 24px}
.ticket-export-card.ticket-export-compact .ticket-detail-table{overflow:visible}
.ticket-export-card.ticket-export-compact .ticket-export-header{padding:20px 22px 17px;gap:16px}
.ticket-export-card.ticket-export-compact .ticket-export-header h2{font-size:25px;line-height:1.15}
.ticket-export-card.ticket-export-compact .ticket-export-header>strong{font-size:18px;line-height:1.15}
.ticket-export-card.ticket-export-compact .ticket-export-three-column{width:100%;min-width:0;margin-left:0;margin-right:0;table-layout:fixed}
.ticket-export-card.ticket-export-compact .ticket-export-three-column th,
.ticket-export-card.ticket-export-compact .ticket-export-three-column td{padding:8px 6px;white-space:normal;word-break:normal}
.ticket-export-card.ticket-export-compact .ticket-export-three-column th{font-size:13px;line-height:1.2}
.ticket-export-card.ticket-export-compact .ticket-export-three-column td{font-size:17px;line-height:1.28}
.ticket-export-card.ticket-export-compact .ticket-export-three-column td:nth-child(1){font-size:19px;font-weight:750}
.ticket-export-card.ticket-export-compact .ticket-export-three-column td:nth-child(3){font-size:18px;font-weight:700}
.ticket-export-card.ticket-export-compact .ticket-export-three-column th:nth-child(1),
.ticket-export-card.ticket-export-compact .ticket-export-three-column td:nth-child(1){width:17%}
.ticket-export-card.ticket-export-compact .ticket-export-three-column th:nth-child(2),
.ticket-export-card.ticket-export-compact .ticket-export-three-column td:nth-child(2){width:50%}
.ticket-export-card.ticket-export-compact .ticket-export-three-column th:nth-child(3),
.ticket-export-card.ticket-export-compact .ticket-export-three-column td:nth-child(3){width:33%}

/* Keep exported ticket metadata compact while preserving the larger purchase rows. */
.ticket-export-card.ticket-export-compact .ticket-export-header{
  padding:14px 18px 12px;
  gap:12px;
  border-bottom-width:3px;
  background:linear-gradient(135deg,#0b2745 0%,#155c76 54%,#13a99a 100%);
}
.ticket-export-card.ticket-export-compact .ticket-export-header h2{
  font-size:21px;
  line-height:1.12;
  color:#f5fffd;
}
.ticket-export-card.ticket-export-compact .ticket-export-header>strong{
  font-size:15px;
  line-height:1.12;
}
.ticket-export-card.ticket-export-compact .ticket-export-brand img{
  width:42px;
  height:42px;
}
.ticket-export-card.ticket-export-compact .ticket-export-body{
  padding:14px 18px 20px;
}
.ticket-export-card.ticket-export-compact .ticket-document-meta{
  padding:0 0 8px;
  margin-bottom:10px;
  gap:8px;
}
.ticket-export-card.ticket-export-compact .ticket-document-meta span,
.ticket-export-card.ticket-export-compact .ticket-document-meta strong{
  font-size:13px!important;
  line-height:1.2;
}
.ticket-export-card.ticket-export-compact .ticket-document-meta strong{
  color:#123d69;
  font-weight:700;
}

@media(max-width:767.98px){
  .ticket-page-heading .entry-window-notice{white-space:normal!important;text-align:right;line-height:1.24!important}
  .ticket-page-heading .entry-window-notice>span{min-width:0;overflow-wrap:anywhere}

  html.lang-th #ticket .ticket-quick-field .form-label,
  html.lang-en #ticket .ticket-quick-field .form-label{font-size:13px!important;font-weight:500!important;letter-spacing:0;white-space:nowrap}
  html.lang-th #ticket .ticket-quickbar .form-control,
  html.lang-en #ticket .ticket-quickbar .form-control,
  html.lang-th #ticket .ticket-note-quick-field summary,
  html.lang-en #ticket .ticket-note-quick-field summary{font-size:13px!important;font-weight:500!important}
  html.lang-th #ticket .ticket-note-optional,
  html.lang-en #ticket .ticket-note-optional{display:none!important}

  #reportTwo>.page-heading + .card .card-body>.row,
  #reportThree>.page-heading + .card .card-body>.row{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(1),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(1){grid-column:1!important;order:1!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(2),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(2){grid-column:2!important;order:1!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(4),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(4){grid-column:1!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(5),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(5){grid-column:2!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(3),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(3){grid-column:1!important;order:3!important}
  #reportTwo>.page-heading + .card .card-body>.row #filterReportTwo,
  #reportThree>.page-heading + .card .card-body>.row #filterReportThree{grid-column:2!important;order:3!important;min-height:42px!important}
  #reportTwo>.page-heading + .card .card-body>.row #reportTwoToday,
  #reportThree>.page-heading + .card .card-body>.row #reportThreeToday{grid-column:1!important;order:4!important;min-height:42px!important}
  #reportTwo>.page-heading + .card .card-body>.row #clearReportTwoDate,
  #reportThree>.page-heading + .card .card-body>.row #clearReportThreeDate{grid-column:2!important;order:4!important;min-height:42px!important}

  #settlement .settlement-controls .card-body>.row>:nth-child(6){grid-column:1/-1!important;order:4!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(7){grid-column:1!important;order:5!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(8){grid-column:2!important;order:5!important}
  #settlement #settlementToday,#settlement #clearSettlement{min-height:42px!important}
  #settlement #clearSettlement{border:1px solid var(--border)!important;background:var(--surface,#fff)!important;color:var(--text)!important}
}

/* iOS 27 / macOS interaction polish: quick navigation stays touch-friendly and
   can be dragged horizontally with a mouse on compact desktop windows. */
.quick-nav{
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
  cursor:grab;
  user-select:none;
}
.quick-nav.is-dragging{cursor:grabbing;scroll-behavior:auto}

/* Customer-name learning uses an iOS-style switch and remains compact on mobile. */
.ios-toggle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 13px;
  border:1px solid var(--border,#dbe4ef);
  border-radius:16px;
  background:var(--surface,#fff);
}
.ios-toggle-row>span:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.ios-toggle-row strong{font-size:14px;line-height:1.25;color:var(--text,#172033)}
.ios-toggle-row small{font-size:12px;line-height:1.3;color:var(--text-muted,#60708a)}
.ios-toggle-row input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.ios-toggle{
  position:relative;
  display:inline-block;
  flex:0 0 48px;
  width:48px;
  height:28px;
  border-radius:999px;
  background:#cbd5e1;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.08);
  transition:background .2s ease;
}
.ios-toggle::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:22px;
  height:22px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 5px rgba(15,23,42,.22);
  transition:transform .2s ease;
}
.ios-toggle-row input:checked + .ios-toggle{background:var(--primary,#149e99)}
.ios-toggle-row input:checked + .ios-toggle::after{transform:translateX(20px)}

/* Report filters: dates, sorting and quick actions form predictable pairs on
   phone screens instead of collapsing into a long single column. */
@media(max-width:767.98px){
  #reportTwo>.page-heading + .card .card-body>.row,
  #reportThree>.page-heading + .card .card-body>.row,
  #settlement .settlement-controls .card-body>.row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:end!important;
  }
  #reportTwo>.page-heading + .card .card-body>.row>[class*="col-"],
  #reportThree>.page-heading + .card .card-body>.row>[class*="col-"],
  #settlement .settlement-controls .card-body>.row>[class*="col-"]{
    width:auto!important;
    max-width:none!important;
    padding-left:0!important;
    padding-right:0!important;
  }

  /* Stats: Show first, then yesterday/latest pair, dates pair, sort pair,
     and customer last. */
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6){grid-column:1/-1!important;order:1!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6) #filterReportTwo,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6) #filterReportThree{grid-column:1/-1!important;order:1!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6) #reportTwoToday,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6) #reportThreeToday{grid-column:1!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6) #clearReportTwoDate,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6) #clearReportThreeDate{grid-column:2!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(1),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(1){grid-column:1!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(2),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(2){grid-column:2!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(4),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(4){grid-column:1!important;order:3!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(5),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(5){grid-column:2!important;order:3!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(3),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(3){grid-column:1/-1!important;order:4!important}

  /* Settlement: the two quick date actions always share one row. */
  #settlement .settlement-controls .card-body>.row>:nth-child(1),
  #settlement .settlement-controls .card-body>.row>:nth-child(2){order:1!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(3),
  #settlement .settlement-controls .card-body>.row>:nth-child(4){order:2!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(5),
  #settlement .settlement-controls .card-body>.row>:nth-child(6){order:3!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(7),
  #settlement .settlement-controls .card-body>.row>:nth-child(8){order:4!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(1),
  #settlement .settlement-controls .card-body>.row>:nth-child(3),
  #settlement .settlement-controls .card-body>.row>:nth-child(5),
  #settlement .settlement-controls .card-body>.row>:nth-child(7){grid-column:1!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(2),
  #settlement .settlement-controls .card-body>.row>:nth-child(4),
  #settlement .settlement-controls .card-body>.row>:nth-child(6),
  #settlement .settlement-controls .card-body>.row>:nth-child(8){grid-column:2!important}
  #settlement #settlementToday,#settlement #clearSettlement{min-height:42px!important;width:100%!important}
}
.ticket-export-card.ticket-export-compact{
  width:100%!important;
  max-width:560px!important;
  border-radius:20px!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.ticket-export-card.ticket-export-compact .ticket-export-header{
  padding:12px 16px 10px!important;
  gap:10px!important;
  border-bottom-width:3px!important;
  background:linear-gradient(120deg,#123d69 0%,#1d65b5 54%,#15a69d 100%)!important;
}
.ticket-export-card.ticket-export-compact .ticket-export-brand img{width:38px!important;height:38px!important}
.ticket-export-card.ticket-export-compact .ticket-export-header h2{font-size:20px!important;line-height:1.12!important}
.ticket-export-card.ticket-export-compact .ticket-export-header>strong{font-size:14px!important;line-height:1.15!important}
.ticket-export-card.ticket-export-compact .ticket-export-body{padding:12px 16px 18px!important}
.ticket-export-card.ticket-export-compact .ticket-document-meta{margin:0 0 8px!important;padding:0 0 7px!important;gap:6px!important}
.ticket-export-card.ticket-export-compact .ticket-document-meta span,
.ticket-export-card.ticket-export-compact .ticket-document-meta strong{font-size:12px!important;line-height:1.2!important}
.ticket-export-card.ticket-export-compact .ticket-document-meta strong{font-weight:700!important;color:#123d69!important}
.ticket-export-card.ticket-export-compact .ticket-export-three-column th{font-size:12px!important;white-space:nowrap!important}
.ticket-export-card.ticket-export-compact .ticket-export-three-column td{font-size:18px!important;line-height:1.25!important}
.ticket-export-card.ticket-export-compact .ticket-export-three-column td:nth-child(1){font-size:20px!important}
.ticket-export-card.ticket-export-compact .ticket-export-three-column td:nth-child(3){font-size:19px!important}

/* Final responsive polish for the ticket export and compact iOS/macOS controls. */
.ticket-export-card.ticket-export-compact .ticket-export-meta{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:10px!important;
  align-items:start!important;
  padding:0 0 8px!important;
  margin:0 0 10px!important;
}
.ticket-export-card.ticket-export-compact .ticket-export-meta>div{min-width:0!important}
.ticket-export-card.ticket-export-compact .ticket-export-meta span,
.ticket-export-card.ticket-export-compact .ticket-export-meta strong{
  display:block!important;
  font-size:12px!important;
  line-height:1.22!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.ticket-export-card.ticket-export-compact .ticket-export-meta strong{color:#123d69!important;font-weight:700!important}

.filter-selected{
  background:linear-gradient(135deg,var(--primary,#2563eb),var(--accent,#149e99))!important;
  border-color:var(--primary,#2563eb)!important;
  color:#fff!important;
  box-shadow:0 4px 12px rgba(20,110,170,.2)!important;
}
.filter-selected i,.filter-selected svg{color:currentColor!important}

.settlement-watermark-toggle,
.settlement-logo-toggle,
.settlement-brand-watermark-toggle,
.settlement-remark-toggle{
  display:inline-flex!important;
  align-items:center!important;
  gap:7px!important;
  min-height:34px!important;
  padding:5px 10px!important;
  border:1px solid var(--border,#dbe4ef)!important;
  border-radius:999px!important;
  background:var(--surface,#fff)!important;
  white-space:nowrap!important;
  color:var(--text,#172033)!important;
  font-size:13px!important;
  font-weight:700!important;
  cursor:pointer!important;
}
.settlement-watermark-toggle input[type="checkbox"],
.settlement-logo-toggle input[type="checkbox"],
.settlement-brand-watermark-toggle input[type="checkbox"],
.settlement-remark-toggle input[type="checkbox"]{
  appearance:none!important;
  -webkit-appearance:none!important;
  position:relative!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:24px!important;
  margin:0!important;
  border:0!important;
  border-radius:999px!important;
  background:#cbd5e1!important;
  box-shadow:inset 0 0 0 1px rgba(15,23,42,.09)!important;
  cursor:pointer!important;
  transition:background .2s ease!important;
}
.settlement-watermark-toggle input[type="checkbox"]::before,
.settlement-logo-toggle input[type="checkbox"]::before,
.settlement-brand-watermark-toggle input[type="checkbox"]::before,
.settlement-remark-toggle input[type="checkbox"]::before{
  content:""!important;
  position:absolute!important;
  top:3px!important;
  left:3px!important;
  width:18px!important;
  height:18px!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 5px rgba(15,23,42,.2)!important;
  transition:transform .2s ease!important;
}
.settlement-watermark-toggle input[type="checkbox"]:checked,
.settlement-logo-toggle input[type="checkbox"]:checked,
.settlement-brand-watermark-toggle input[type="checkbox"]:checked,
.settlement-remark-toggle input[type="checkbox"]:checked{background:var(--primary,#149e99)!important}
.settlement-watermark-toggle input[type="checkbox"]:checked::before,
.settlement-logo-toggle input[type="checkbox"]:checked::before,
.settlement-brand-watermark-toggle input[type="checkbox"]:checked::before,
.settlement-remark-toggle input[type="checkbox"]:checked::before{transform:translateX(18px)!important}
.settlement-remark-toggle i{color:var(--primary,#149e99)!important}

@media(max-width:767.98px){
  /* Stats: show, yesterday/latest, dates, sorting, then customer. */
  #reportTwo>.page-heading + .card .card-body>.row,
  #reportThree>.page-heading + .card .card-body>.row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:end!important;
  }
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6){grid-column:1/-1!important;order:1!important;display:block!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6)>.d-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6) #filterReportTwo,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6) #filterReportThree{grid-column:1/-1!important;order:1!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6) #reportTwoToday,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6) #reportThreeToday{grid-column:1!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(6) #clearReportTwoDate,
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(6) #clearReportThreeDate{grid-column:2!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(1),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(1){grid-column:1!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(2),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(2){grid-column:2!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(4),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(4){grid-column:1!important;order:3!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(5),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(5){grid-column:2!important;order:3!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(3),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(3){grid-column:1/-1!important;order:4!important}
  #reportTwo .btn,#reportThree .btn{min-height:44px!important;height:auto!important;line-height:1.2!important;white-space:nowrap!important;box-sizing:border-box!important;overflow:hidden!important;text-overflow:ellipsis!important}

  #settlement #settlementToday,#settlement #clearSettlement{min-height:42px!important;width:100%!important;box-sizing:border-box!important;white-space:nowrap!important}
  #settlement #clearSettlement{border:1px solid var(--border,#cbd5e1)!important}
}

@media(max-width:576px){
  .ticket-export-card.ticket-export-compact .ticket-export-meta{gap:6px!important}
  .ticket-export-card.ticket-export-compact .ticket-export-meta span,
  .ticket-export-card.ticket-export-compact .ticket-export-meta strong{font-size:11px!important}
}

/* 2026-08-13 final UI alignment: class-based rules intentionally override
   obsolete nth-child layouts left by the earlier combined action column. */
.ticket-export-card.ticket-export-compact .ticket-export-meta{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:baseline!important;
  gap:8px!important;
  padding-bottom:7px!important;
  margin-bottom:8px!important;
}
.ticket-export-card.ticket-export-compact .ticket-export-meta>div{
  display:flex!important;
  align-items:baseline!important;
  gap:4px!important;
  min-width:0!important;
}
.ticket-export-card.ticket-export-compact .ticket-export-meta span,
.ticket-export-card.ticket-export-compact .ticket-export-meta strong{
  display:inline!important;
  margin:0!important;
  font-size:11px!important;
  line-height:1.15!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

@media(max-width:767.98px){
  #reportTwo>.page-heading + .card .card-body>.row,
  #reportThree>.page-heading + .card .card-body>.row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:end!important;
  }
  #reportTwo>.page-heading + .card .card-body>.row>*,
  #reportThree>.page-heading + .card .card-body>.row>*{
    grid-column:auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    padding-inline:0!important;
  }
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(1),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(1){grid-column:1!important;order:1!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(2),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(2){grid-column:2!important;order:1!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(4),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(4){grid-column:1!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(5),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(5){grid-column:2!important;order:2!important}
  #reportTwo>.page-heading + .card .card-body>.row>:nth-child(3),
  #reportThree>.page-heading + .card .card-body>.row>:nth-child(3){grid-column:1!important;order:3!important}
  #reportTwo>.page-heading + .card .card-body>.row>.detailed-report-show,
  #reportThree>.page-heading + .card .card-body>.row>.detailed-report-show{grid-column:2!important;order:3!important;display:block!important}
  #reportTwo>.page-heading + .card .card-body>.row>.detailed-report-relative,
  #reportThree>.page-heading + .card .card-body>.row>.detailed-report-relative{grid-column:1!important;order:4!important;display:block!important}
  #reportTwo>.page-heading + .card .card-body>.row>.detailed-report-latest,
  #reportThree>.page-heading + .card .card-body>.row>.detailed-report-latest{grid-column:2!important;order:4!important;display:block!important}
  #reportTwo .detailed-report-action .btn,
  #reportThree .detailed-report-action .btn{
    width:100%!important;
    min-height:44px!important;
    padding:8px 7px!important;
    font-size:14px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }

  #settlement .settlement-controls .card-body>.row{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    align-items:end!important;
  }
  #settlement .settlement-controls .card-body>.row>*{
    grid-column:auto!important;
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    padding-inline:0!important;
  }
  #settlement .settlement-controls .card-body>.row>:nth-child(1),
  #settlement .settlement-controls .card-body>.row>:nth-child(2){order:1!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(3),
  #settlement .settlement-controls .card-body>.row>:nth-child(4){order:2!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(5),
  #settlement .settlement-controls .card-body>.row>:nth-child(6){order:3!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(7),
  #settlement .settlement-controls .card-body>.row>:nth-child(8){order:4!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(odd){grid-column:1!important}
  #settlement .settlement-controls .card-body>.row>:nth-child(even){grid-column:2!important}
  #settlement #settlementToday,
  #settlement #clearSettlement{
    width:100%!important;
    min-width:0!important;
    min-height:44px!important;
    padding:8px 7px!important;
    border:1px solid var(--border,#cbd5e1)!important;
    font-size:14px!important;
    line-height:1.2!important;
    white-space:nowrap!important;
  }
}
/* Orange over-limit indicator follows the existing blocked-number warning style. */
.liability-limit-badge{display:inline-flex;align-items:center;justify-content:flex-end;gap:4px;padding:3px 7px;border-radius:999px;background:#fff7ed;color:#c2410c;font-weight:400;line-height:1;white-space:nowrap}
.liability-limit-badge *{font-weight:400!important}
.liability-limit-hint{color:#c2410c;font-weight:400!important}.liability-limit-hint *{font-weight:400!important}
.liability-limit-badge i{font-size:.85em}
.liability-limit-settings{padding:16px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--primary) 4%,var(--white));}
.liability-limit-heading{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:var(--primary);}
.liability-limit-heading i{font-size:1.05rem;}
.liability-limit-settings .form-label{margin-bottom:6px}
.liability-limit-settings .money-entry-input{font-variant-numeric:tabular-nums;font-weight:700;text-align:right}
.liability-limit-settings .form-hint{margin-top:10px}
@media (max-width:767.98px){.liability-limit-settings{padding:12px}.liability-limit-settings .row{--bs-gutter-y:.65rem}}
.settlement-columns-menu{position:fixed!important;min-width:240px;max-width:min(300px,calc(100vw - 16px));max-height:min(70vh,420px);overflow-y:auto;overscroll-behavior:contain;padding:.65rem .75rem;z-index:5000!important}
.settlement-columns-list{display:flex;flex-direction:column;gap:.2rem}
.settlement-column-choice{min-height:38px}
@media (max-width:575.98px){.settlement-columns-menu{max-width:calc(100vw - 16px);max-height:65vh}.settlement-column-choice{min-height:42px;padding:.55rem .6rem}}

/* Settings: account-scoped controls live inside the account card.  Keep the
   inner cards paired on desktop and let them stack naturally on phones. */
#setting .settings-account-combined-row{margin-bottom:1rem!important}
#setting .settings-account-combined-row>.col-12{width:100%;max-width:none}
#setting .account-settings-card>.card-body{padding:20px}
#setting .account-settings-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-top:1rem}
#setting .account-settings-section{min-width:0;margin:0!important;height:100%}
#setting .account-settings-section>.card-body{height:100%}
#setting .account-settings-currency-section{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-left:0!important;margin-right:0!important;--bs-gutter-x:0;--bs-gutter-y:0}
#setting .account-settings-currency-section>.col-lg-6{width:auto;max-width:none;flex:none;padding-left:0;padding-right:0;min-width:0}
#setting .account-settings-currency-section>.col-lg-6 .card{height:100%;box-shadow:none;border:1px solid var(--border)}
#setting .account-settings-currency-section>.col-lg-6 .card-header{padding:13px 16px}
#setting .account-settings-currency-section>.col-lg-6 .card-body{padding:16px}
#setting .user-settings-card-row>.col-12{display:flex;min-width:0}
#setting .user-settings-card-row>.col-12>.card{width:100%}
#setting .user-settings-card-row .backup-restore-card{margin-top:0!important}
#setting .user-settings-card-row>.settings-backup-column:has(.backup-restore-card.d-none){display:none}
#setting .backup-restore-card{width:100%;margin-top:1rem!important}
#setting .backup-restore-body{padding:16px!important}
#setting .backup-restore-grid{display:grid;grid-template-columns:1fr;gap:1rem;align-items:stretch}
#setting .backup-restore-local-section{display:flex;flex-direction:column;justify-content:space-between;gap:1rem;min-width:0;padding:16px;border:1px solid var(--border);border-radius:14px;background:var(--white)}
#setting .backup-restore-local-section>div:first-child{min-width:0}
#setting .backup-restore-local-section>div:last-child{display:flex;flex-wrap:wrap;gap:.5rem}
#setting .backup-restore-online-card{height:100%;margin:0!important;border:1px solid var(--border);box-shadow:none}
#setting .backup-restore-online-card>.card-header{padding:13px 16px}
#setting .backup-restore-online-card>.card-body{padding:16px}
@media(max-width:991.98px){
  #setting .account-settings-controls{grid-template-columns:1fr}
  #setting .account-settings-currency-section{grid-column:auto}
  #setting .account-settings-currency-section{grid-template-columns:1fr}
  #setting .backup-restore-grid{grid-template-columns:1fr}
}
@media(max-width:575.98px){
  #setting .account-settings-card>.card-body{padding:14px}
  #setting .account-settings-controls{gap:.75rem;margin-top:.75rem}
  #setting .account-settings-section>.card-header{padding:12px 14px}
  #setting .account-settings-section>.card-body{padding:14px}
  #setting .backup-restore-body{padding:12px!important}
  #setting .backup-restore-local-section{padding:14px}
}

/* Settings sections: keep one outer card and use light dividers instead of
   visibly nested cards.  The controls remain paired on desktop. */
#setting .account-settings-controls{gap:0}
#setting .account-settings-section{border:0!important;border-radius:0;background:transparent;box-shadow:none!important}
#setting .account-settings-section>.card-header{background:transparent;border-bottom:1px solid var(--border);padding:13px 16px}
#setting .account-settings-section>.card-body{padding:16px}
#setting .account-settings-controls>.account-settings-section:nth-child(2){border-left:1px solid var(--border)!important;padding-left:1rem}
#setting .account-settings-currency-section{border-top:1px solid var(--border)!important;padding-top:1rem;margin-top:1rem!important}
#setting .account-settings-currency-section>.col-lg-6 .card{border:0!important;border-radius:0;background:transparent}
#setting .account-settings-currency-section>.col-lg-6+.col-lg-6{border-left:1px solid var(--border);padding-left:1rem}
#setting .backup-restore-grid{gap:0}
#setting .backup-restore-local-section{border:0;border-radius:0;background:transparent;padding:16px 16px 16px 0}
#setting .backup-restore-online-card{border:0!important;border-radius:0;padding-left:1rem}
#setting .backup-restore-online-card>.card-header{background:transparent;border-bottom:1px solid var(--border)}
@media(max-width:991.98px){
  #setting .account-settings-controls>.account-settings-section:nth-child(2){border-left:0!important;padding-left:0}
  #setting .account-settings-currency-section>.col-lg-6+.col-lg-6{border-left:0;padding-left:0}
  #setting .backup-restore-local-section{padding-right:0}
  #setting .backup-restore-online-card{border-top:1px solid var(--border)!important;padding-left:0;padding-top:1rem}
}

/* PWA installation prompt: a compact iOS/macOS-inspired offer that is shown
   only after a successful sign-in. It is fixed-position so page layouts and
   existing forms never shift. */
.pwa-install-offer{position:fixed;z-index:2100;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));display:flex;align-items:flex-start;gap:12px;width:min(420px,calc(100vw - 32px));padding:15px 42px 15px 15px;border:1px solid rgba(255,255,255,.72);border-radius:22px;background:rgba(255,255,255,.96);box-shadow:0 20px 52px rgba(4,25,48,.28);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);opacity:0;transform:translateY(18px) scale(.98);transition:opacity .16s ease,transform .16s ease}
.pwa-install-offer.is-visible{opacity:1;transform:translateY(0) scale(1)}
.pwa-install-mark{width:52px;height:52px;flex:0 0 52px;border-radius:14px;box-shadow:0 7px 18px rgba(4,25,48,.13)}
.pwa-install-copy{min-width:0;flex:1}
.pwa-install-copy strong{display:block;color:#082746;font-size:16px;font-weight:780;line-height:1.25}
.pwa-install-copy p{margin:5px 0 12px;color:#52677f;font-size:13px;line-height:1.42}
.pwa-install-actions{display:flex;flex-wrap:wrap;gap:8px}
.pwa-install-actions .btn{min-height:38px;padding:7px 13px;border-radius:12px;font-size:13px}
.pwa-install-close{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:50%;background:transparent;color:#60738a;font-size:14px}
.pwa-install-close:hover,.pwa-install-close:focus-visible{background:#edf4fb;color:#082746}
@media(max-width:575.98px){
  .pwa-install-offer{right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));width:min(440px,calc(100vw - 24px));padding:14px 40px 14px 14px;border-radius:20px}
  .pwa-install-mark{width:48px;height:48px;flex-basis:48px}
  .pwa-install-copy strong{font-size:15px}
  .pwa-install-copy p{font-size:12.5px}
  .pwa-install-actions .btn{min-height:40px}
}

/* iOS touch-target hardening for the persistent top navigation.  Keep the
   existing layout and Bootstrap dropdown behavior; only make the controls
   explicit hit targets and keep the horizontally scrolling Navi from
   overlapping the menu/profile controls. */
.navbar{position:relative;z-index:1040;isolation:isolate}
#menuButton,.navbar-page,.navbar-page .quick-nav,.navbar-page .quick-nav-item,.profile-menu,.profile-trigger{position:relative;pointer-events:auto}
#menuButton{z-index:4;display:grid;place-items:center;min-width:44px;min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.navbar-page{z-index:2;min-width:0;overflow:hidden}
.navbar-page .quick-nav{z-index:2;max-width:100%;overscroll-behavior-x:contain}
.navbar-page .quick-nav-item{z-index:1;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.profile-menu{z-index:5}
.profile-trigger{z-index:6;min-width:44px;min-height:44px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.profile-dropdown{z-index:1051!important}
/* Do not show a persistent focus ring after a touch; keep :focus-visible for
   keyboard users on desktop and assistive navigation. */
@media (hover:none){
  .navbar .profile-trigger:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
}
@media(max-width:992px){#sidebar{z-index:1055}}

/* TEEX7X midnight: a dark account theme inspired by the mobile browser
   preview, while keeping the existing layout and component behavior. */
html[data-market-theme="teex7x-dark"]{
  color-scheme:dark;
  /* Keep the same TEEX7X navy-to-teal identity as the light theme.  The
     midnight theme changes surfaces and contrast, not the brand accent. */
  --primary:#2867b4;
  --primary-dark:#1e568e;
  --primary-soft:#19354f;
  --accent:#159f9d;
  --sidebar:#080d15;
  --background:#101114;
  --surface:#17191e;
  --white:#17191e;
  --border:#3b424e;
  --text:#edf3ff;
  --muted:#a7b5ca;
  --success:#35d38a;
  --danger:#ff7180;
  --warning:#f3a446;
}
html[data-market-theme="teex7x-dark"] body{background:var(--background);color:var(--text)}
html[data-market-theme="teex7x-dark"] .navbar,
html[data-market-theme="teex7x-dark"] .quick-nav,
html[data-market-theme="teex7x-dark"] .card,
html[data-market-theme="teex7x-dark"] .card-header,
html[data-market-theme="teex7x-dark"] .card-footer,
html[data-market-theme="teex7x-dark"] .modal-content,
html[data-market-theme="teex7x-dark"] .dropdown-menu{
  background:#17191e;color:var(--text);border-color:var(--border)
}
html[data-market-theme="teex7x-dark"] .card-body{background:#17191e;color:var(--text)}
html[data-market-theme="teex7x-dark"] .page-heading p,
html[data-market-theme="teex7x-dark"] .form-hint,
html[data-market-theme="teex7x-dark"] .text-muted,
html[data-market-theme="teex7x-dark"] .text-secondary,
html[data-market-theme="teex7x-dark"] .muted{color:var(--muted)!important}
html[data-market-theme="teex7x-dark"] .form-control,
html[data-market-theme="teex7x-dark"] .form-select,
html[data-market-theme="teex7x-dark"] input,
html[data-market-theme="teex7x-dark"] select,
html[data-market-theme="teex7x-dark"] textarea{
  background:#111318;color:var(--text);border-color:var(--border)
}
html[data-market-theme="teex7x-dark"] .form-control::placeholder,
html[data-market-theme="teex7x-dark"] input::placeholder,
html[data-market-theme="teex7x-dark"] textarea::placeholder{color:#8290a7;opacity:1}
html[data-market-theme="teex7x-dark"] .table,
html[data-market-theme="teex7x-dark"] .table td,
html[data-market-theme="teex7x-dark"] .table th{color:var(--text);border-color:var(--border)}
html[data-market-theme="teex7x-dark"] .table thead th{background:#1d2027;color:#b6c6df}
html[data-market-theme="teex7x-dark"] .quick-nav{border-color:var(--border)}
html[data-market-theme="teex7x-dark"] .quick-nav-item{color:#a9bad4;border-color:transparent}
html[data-market-theme="teex7x-dark"] .quick-nav-item:hover{background:#202630;color:#dbe8ff;border-color:#445064}
html[data-market-theme="teex7x-dark"] .quick-nav-item.active{
  background:linear-gradient(135deg,#2867b4,#159f9d);color:#fff;border-color:#5fa9ff
}
html[data-market-theme="teex7x-dark"] .btn-primary,
html[data-market-theme="teex7x-dark"] .entry-tabbed .ticket-type-tabs button.active,
html[data-market-theme="teex7x-dark"] #ticket .entry-tabbed .ticket-type-tabs button.active{
  background:linear-gradient(135deg,#2867b4,#159f9d);border-color:#159f9d;color:#fff
}
html[data-market-theme="teex7x-dark"] .btn-outline-primary,
html[data-market-theme="teex7x-dark"] .btn-outline-secondary,
html[data-market-theme="teex7x-dark"] .btn-outline-dark{color:#9cc1ff;border-color:#668bc1}
html[data-market-theme="teex7x-dark"] .btn-outline-primary:hover,
html[data-market-theme="teex7x-dark"] .btn-outline-secondary:hover,
html[data-market-theme="teex7x-dark"] .btn-outline-dark:hover{background:#203756;color:#fff;border-color:#76a9ff}
html[data-market-theme="teex7x-dark"] .ticket-type-tabs,
html[data-market-theme="teex7x-dark"] .entry-workspace{background:#15171c;border-color:#3c4654}
html[data-market-theme="teex7x-dark"] .entry-tabbed .ticket-type-tabs button{background:#1b1f26;color:#aab8ce;border-color:#3c4654}
html[data-market-theme="teex7x-dark"] .entry-tabbed .ticket-type-tabs button.active{background:linear-gradient(135deg,#2867b4,#159f9d);color:#fff}
html[data-market-theme="teex7x-dark"] .dashboard-card,
html[data-market-theme="teex7x-dark"] .coverage-card,
html[data-market-theme="teex7x-dark"] .report-stat,
html[data-market-theme="teex7x-dark"] .admin-center-kpi{
  background:#15171c;border-color:#3b4350;box-shadow:0 12px 28px rgba(0,0,0,.24)
}
html[data-market-theme="teex7x-dark"] .dashboard-card .stat-icon,
html[data-market-theme="teex7x-dark"] .stat-icon{background:#1e2a3c;color:#86b5ff}
html[data-market-theme="teex7x-dark"] .dashboard-card.customers .stat-icon{background:#2b2340;color:#c077ff}
html[data-market-theme="teex7x-dark"] .dashboard-card.tickets .stat-icon{background:#3a2b1a;color:#ffb24b}
html[data-market-theme="teex7x-dark"] .dashboard-card.payout .stat-icon{background:#1b3327;color:#52d892}
html[data-market-theme="teex7x-dark"] .navbar .profile-trigger{color:var(--text);border-color:#3e4755;background:#151922}
html[data-market-theme="teex7x-dark"] .navbar .profile-trigger:hover,
html[data-market-theme="teex7x-dark"] .navbar .profile-trigger[aria-expanded="true"]{border-color:#6f9fe7;background:#21334e;color:#dceaff}
html[data-market-theme="teex7x-dark"] .profile-dropdown .dropdown-item,
html[data-market-theme="teex7x-dark"] .profile-language-options button{color:var(--text);background:transparent}
html[data-market-theme="teex7x-dark"] .profile-dropdown .dropdown-item:hover,
html[data-market-theme="teex7x-dark"] .profile-language-options button:hover{background:#202b3b;color:#dceaff}
html[data-market-theme="teex7x-dark"] .profile-language-options button.active{background:linear-gradient(135deg,#2867b4,#159f9d);color:#fff;border-color:#159f9d}
html[data-market-theme="teex7x-dark"] .empty-state{color:var(--muted)}
html[data-market-theme="teex7x-dark"] .modal-summary,
html[data-market-theme="teex7x-dark"] .result-derived,
html[data-market-theme="teex7x-dark"] .ticket-note{background:#1a2a40;color:#c4dcff;border-color:#385a82}
html[data-market-theme="teex7x-dark"] .profile-impersonation-mode,
html[data-market-theme="teex7x-dark"] .entry-window-notice,
html[data-market-theme="teex7x-dark"] .market-entry-window-card{background:#1b2028;border-color:#3d495a}

/* Midnight surface hardening.  A number of older components carry their
   light-theme background colours inline or with a stronger selector. */
html[data-market-theme="teex7x-dark"] #content .card:not(.ticket-export-card):not(.settlement-export-card):not(.announcement-poster),
html[data-market-theme="teex7x-dark"] #content .card:not(.ticket-export-card):not(.settlement-export-card):not(.announcement-poster)>.card-header,
html[data-market-theme="teex7x-dark"] #content .card:not(.ticket-export-card):not(.settlement-export-card):not(.announcement-poster)>.card-body,
html[data-market-theme="teex7x-dark"] #content .card:not(.ticket-export-card):not(.settlement-export-card):not(.announcement-poster)>.card-footer,
html[data-market-theme="teex7x-dark"] #content .modal-content,
html[data-market-theme="teex7x-dark"] #content .table-responsive,
html[data-market-theme="teex7x-dark"] #content .table-responsive>.table,
html[data-market-theme="teex7x-dark"] #content .empty-state{
  background:#17191e!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] #content .table>tbody,
html[data-market-theme="teex7x-dark"] #content .table>tbody>tr,
html[data-market-theme="teex7x-dark"] #content .table>tbody>tr>td,
html[data-market-theme="teex7x-dark"] #content .table>tbody>tr>th{
  background:#17191e!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] #content .table>thead>tr>th{
  background:#1d2027!important;
  color:#b6c6df!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] #content .input-group-text,
html[data-market-theme="teex7x-dark"] #content .entry-unit,
html[data-market-theme="teex7x-dark"] #content .input-group>.btn{
  background:#1d2027!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] #content .exchange-rate-head,
html[data-market-theme="teex7x-dark"] #content .exchange-rate-card,
html[data-market-theme="teex7x-dark"] #content .currency-rate-card,
html[data-market-theme="teex7x-dark"] #content .exchange-rate-panel{
  background:#1c2938!important;
  color:var(--text)!important;
  border-color:#3d5875!important;
}
html[data-market-theme="teex7x-dark"] #content .exchange-rate-head strong{color:#d8e8ff!important}
html[data-market-theme="teex7x-dark"] #content .finance-summary-card,
html[data-market-theme="teex7x-dark"] #content .finance-displayed-summary,
html[data-market-theme="teex7x-dark"] #content .finance-period-group,
html[data-market-theme="teex7x-dark"] #content .finance-period-group>summary,
html[data-market-theme="teex7x-dark"] #content .finance-groups-total,
html[data-market-theme="teex7x-dark"] #content .finance-latest-card,
html[data-market-theme="teex7x-dark"] #content .closed-finance-row,
html[data-market-theme="teex7x-dark"] #content .cloud-backup-row{
  background:#17191e!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] #content .finance-period-group[open]>summary{background:#1b2a3a!important}
html[data-market-theme="teex7x-dark"] #content .admin-user-accounts-full>.card,
html[data-market-theme="teex7x-dark"] #content .admin-user-accounts-full #userTable,
html[data-market-theme="teex7x-dark"] #content .admin-user-accounts-full #userTable tbody,
html[data-market-theme="teex7x-dark"] #content .admin-user-accounts-full #userTable tbody tr,
html[data-market-theme="teex7x-dark"] #content .admin-user-accounts-full #userTable tbody td{
  background:#17191e!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] #content .entry-card .card-body,
html[data-market-theme="teex7x-dark"] #content .entry-card .entry-workspace,
html[data-market-theme="teex7x-dark"] #content #ticket .ticket-detail-section,
html[data-market-theme="teex7x-dark"] #content #ticket .ticket-detail-table,
html[data-market-theme="teex7x-dark"] #content #ticket .ticket-detail-table .table,
html[data-market-theme="teex7x-dark"] #content #ticket .ticket-detail-table tbody,
html[data-market-theme="teex7x-dark"] #content #ticket .ticket-detail-table tbody tr,
html[data-market-theme="teex7x-dark"] #content #ticket .ticket-detail-table tbody td{
  background:#17191e!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}

/* All interactive highlights use the TEEX7X brand gradient. */
html[data-market-theme="teex7x-dark"] #content .btn-primary,
html[data-market-theme="teex7x-dark"] #content .btn-success,
html[data-market-theme="teex7x-dark"] #content .btn-info,
html[data-market-theme="teex7x-dark"] #content .admin-add-user-button,
html[data-market-theme="teex7x-dark"] #content .quick-nav-item.active,
html[data-market-theme="teex7x-dark"] #content .ticket-type-tabs button.active,
html[data-market-theme="teex7x-dark"] #content .entry-window-mode input:checked+label,
html[data-market-theme="teex7x-dark"] #content .profile-language-options button.active{
  background:linear-gradient(135deg,#2867b4,#159f9d)!important;
  border-color:#159f9d!important;
  color:#fff!important;
}
html[data-market-theme="teex7x-dark"] #content .btn-outline-primary,
html[data-market-theme="teex7x-dark"] #content .btn-outline-secondary,
html[data-market-theme="teex7x-dark"] #content .btn-outline-dark,
html[data-market-theme="teex7x-dark"] #content .btn-outline-success,
html[data-market-theme="teex7x-dark"] #content .entry-window-mode label{
  background:#17191e!important;
  color:#a9c5e8!important;
  border-color:#4d617a!important;
}
html[data-market-theme="teex7x-dark"] #content .btn-outline-primary:hover,
html[data-market-theme="teex7x-dark"] #content .btn-outline-secondary:hover,
html[data-market-theme="teex7x-dark"] #content .btn-outline-dark:hover,
html[data-market-theme="teex7x-dark"] #content .btn-outline-success:hover,
html[data-market-theme="teex7x-dark"] #content .entry-window-mode label:hover{
  background:#19354f!important;
  color:#fff!important;
  border-color:#159f9d!important;
}
html[data-market-theme="teex7x-dark"] #content .entry-tabbed .ticket-type-tabs,
html[data-market-theme="teex7x-dark"] #content .ticket-type-tabs,
html[data-market-theme="teex7x-dark"] #content .entry-tabbed .ticket-type-tabs button{
  background:#17191e!important;
  color:#a9b9cf!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] #content .entry-tabbed .ticket-type-tabs button.active,
html[data-market-theme="teex7x-dark"] #content .ticket-type-tabs button.active{
  background:linear-gradient(135deg,#2867b4,#159f9d)!important;
  color:#fff!important;
}

/* TEEX7X midnight cleanup: keep secondary surfaces and utility panels in the
   same dark family, and use the navy-to-teal brand gradient for navigation. */
html[data-market-theme="teex7x-dark"] #sidebar li.active,
html[data-market-theme="teex7x-dark"] #sidebar li.active:hover{
  background:linear-gradient(135deg,#2867b4,#159f9d)!important;
  border-color:#159f9d!important;
  color:#fff!important;
}
html[data-market-theme="teex7x-dark"] #sidebar li:hover:not(.active){
  background:#19354f!important;
  color:#fff!important;
}
html[data-market-theme="teex7x-dark"] #sidebar li.active i,
html[data-market-theme="teex7x-dark"] #sidebar li.active span,
html[data-market-theme="teex7x-dark"] #sidebar li.active a,
html[data-market-theme="teex7x-dark"] #sidebar li.active .sidebar-submenu-toggle{color:#fff!important}

/* Add-record note control and reverse-entry panel. */
html[data-market-theme="teex7x-dark"] #content .ticket-note-editor summary,
html[data-market-theme="teex7x-dark"] #content .ticket-note-editor textarea,
html[data-market-theme="teex7x-dark"] #content .entry-workspace .reverse-entry{
  background:#17191e!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] #content .ticket-note-editor summary:hover{background:#19354f!important}
html[data-market-theme="teex7x-dark"] #content .ticket-note-editor .ticket-note-optional,
html[data-market-theme="teex7x-dark"] #content .ticket-note-editor summary i{color:#a9c5e8!important}
html[data-market-theme="teex7x-dark"] #content .btn-light,
html[data-market-theme="teex7x-dark"] #content .btn-secondary{
  background:#1d2027!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] #content .btn-light:hover,
html[data-market-theme="teex7x-dark"] #content .btn-secondary:hover{background:#19354f!important;color:#fff!important}

/* Data-management notices and transfer controls. */
html[data-market-theme="teex7x-dark"] #content .cleanup-transfer-panel,
html[data-market-theme="teex7x-dark"] #content #referencePrefixRootNotice,
html[data-market-theme="teex7x-dark"] #content .alert-info{
  background:#1c2938!important;
  color:var(--text)!important;
  border-color:#3d5875!important;
}
html[data-market-theme="teex7x-dark"] #content .alert-warning,
html[data-market-theme="teex7x-dark"] #content .data-cleanup-summary.is-warning{
  background:#3a2a1a!important;
  color:#ffd6a0!important;
  border-color:#8c622e!important;
}
html[data-market-theme="teex7x-dark"] #content .alert-success,
html[data-market-theme="teex7x-dark"] #content .data-cleanup-summary.is-ready{
  background:#163a2c!important;
  color:#b6f4d4!important;
  border-color:#2f8f68!important;
}
html[data-market-theme="teex7x-dark"] #content .data-cleanup-summary.is-danger{
  background:#3b2028!important;
  color:#ffd0d7!important;
  border-color:#9b4453!important;
}

/* Settlement selection and payment notices. */
html[data-market-theme="teex7x-dark"] #content .settlement-payment-mode,
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail,
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail header,
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail footer{
  background:#1c2938!important;
  color:var(--text)!important;
  border-color:#3d5875!important;
}
html[data-market-theme="teex7x-dark"] #content .settlement-payment-mode>span,
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail header strong,
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail footer strong{color:#b8d7ff!important}
html[data-market-theme="teex7x-dark"] #content .settlement-payment-mode input{accent-color:#159f9d}
html[data-market-theme="teex7x-dark"] #content #settlementNotice .alert-warning{
  background:#3a2a1a!important;
  color:#ffd6a0!important;
  border-color:#8c622e!important;
}
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail .table,
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail .table thead,
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail .table tbody,
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail .table tbody tr,
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail .table tbody td{
  background:#17191e!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] #content .settlement-ticket-detail .table thead th{background:#1d2027!important;color:#b8d7ff!important}

/* Ticket review/detail modal: the live modal is dark, while export clones
   below explicitly restore their white paper surface. */
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .modal-content,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .modal-body,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .modal-footer{
  background:#17191e!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .modal-header{
  background:linear-gradient(135deg,#123c68,#159f9d)!important;
  color:#fff!important;
  border-color:#f3c54c!important;
}
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-document-meta,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-detail-section,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-detail-table,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .modal-summary,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-note{
  background:#1c2938!important;
  color:var(--text)!important;
  border-color:#3d5875!important;
}
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-document-meta strong,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-detail-section h6,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .modal-summary strong{color:#b8d7ff!important}
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-detail-section h6{background:#1d2027!important}
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-detail-table .table,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-detail-table .table thead,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-detail-table .table tbody,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-detail-table .table tbody tr,
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-detail-table .table tbody td{
  background:#17191e!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .ticket-detail-table .table thead th{background:#1d2027!important;color:#b8d7ff!important}
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .btn-light{
  background:#252b35!important;
  color:var(--text)!important;
  border-color:var(--border)!important;
}
html[data-market-theme="teex7x-dark"] .ticket-modal-dialog .btn-success{background:linear-gradient(135deg,#2867b4,#159f9d)!important;border-color:#159f9d!important;color:#fff!important}

/* Midnight theme is preserved in settlement PNG/PDF export clones as well. */
html[data-market-theme="teex7x-dark"] #settlementPrintArea:not(.settlement-export-card) .settlement-remark{
  background:#1c2938!important;
  color:var(--text)!important;
  border-color:#3d5875!important;
}
html[data-market-theme="teex7x-dark"] .settlement-export-card,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-ticket-detail,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-ticket-detail header,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-ticket-detail footer,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-ticket-detail .table,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-ticket-detail .table tbody,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-ticket-detail .table tbody tr,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-ticket-detail .table tbody td{
  background:#17191e!important;
  color:#edf3ff!important;
  border-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] .settlement-export-card,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-ticket-detail header{background:#17191e!important;color:#edf3ff!important}
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-ticket-detail footer{background:#17191e!important;color:#edf3ff!important}
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-ticket-detail .table thead th{background:#1d2027!important;color:#b8d7ff!important;border-color:#3b424e!important}

/* Ticket/detail export clones also retain the midnight surfaces. */
html[data-market-theme="teex7x-dark"] .ticket-export-card,
html[data-market-theme="teex7x-dark"] .ticket-export-card .ticket-export-body,
html[data-market-theme="teex7x-dark"] .ticket-export-card .ticket-detail-section,
html[data-market-theme="teex7x-dark"] .ticket-export-card .ticket-detail-table,
html[data-market-theme="teex7x-dark"] .ticket-export-card .modal-summary,
html[data-market-theme="teex7x-dark"] .ticket-export-card .ticket-detail-table .table,
html[data-market-theme="teex7x-dark"] .ticket-export-card .ticket-detail-table .table tbody,
html[data-market-theme="teex7x-dark"] .ticket-export-card .ticket-detail-table .table tbody tr,
html[data-market-theme="teex7x-dark"] .ticket-export-card .ticket-detail-table .table tbody td{
  background:#17191e!important;
  color:#edf3ff!important;
  border-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] .ticket-export-card .ticket-detail-table .table thead th{background:#1d2027!important;color:#b8d7ff!important;border-color:#3b424e!important}
html[data-market-theme="teex7x-dark"] .ticket-export-card .modal-summary{background:#1c2938!important;color:#edf3ff!important;border-color:#3d5875!important}

/* Midnight theme surfaces that can be shown before a workspace is selected
   or inside the profile popover. The theme is written to both html and body,
   so mirror selectors to avoid a stale light component during transitions. */
html[data-market-theme="teex7x-dark"] #marketScreen,
body[data-market-theme="teex7x-dark"] #marketScreen{
  background:radial-gradient(circle at 18% 12%,rgba(21,159,157,.22),transparent 34%),linear-gradient(135deg,#070b12 0%,#0d1b2d 54%,#102f3f 100%)!important;
  color:#edf3ff!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-card,
body[data-market-theme="teex7x-dark"] #marketScreen .market-card{
  background:#17191e!important;color:#edf3ff!important;border-color:#465262!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-card h1,
html[data-market-theme="teex7x-dark"] #marketScreen .market-card p,
body[data-market-theme="teex7x-dark"] #marketScreen .market-card h1,
body[data-market-theme="teex7x-dark"] #marketScreen .market-card p{color:#edf3ff!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-card .text-secondary,
html[data-market-theme="teex7x-dark"] #marketScreen .market-card small,
body[data-market-theme="teex7x-dark"] #marketScreen .market-card .text-secondary,
body[data-market-theme="teex7x-dark"] #marketScreen .market-card small{color:#a7b5ca!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice,
body[data-market-theme="teex7x-dark"] #marketScreen .market-choice{
  background:#111318!important;color:#edf3ff!important;border-color:#465262!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice:hover,
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice:focus-visible,
body[data-market-theme="teex7x-dark"] #marketScreen .market-choice:hover,
body[data-market-theme="teex7x-dark"] #marketScreen .market-choice:focus-visible{
  background:#1d3047!important;color:#fff!important;border-color:#159f9d!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer,
body[data-market-theme="teex7x-dark"] #marketScreen .market-footer{border-color:#3b424e!important}
html[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker,
html[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker select,
html[data-market-theme="teex7x-dark"] #marketScreen .market-switch,
body[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker,
body[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker select,
body[data-market-theme="teex7x-dark"] #marketScreen .market-switch{
  background:#111318!important;color:#dceaff!important;border-color:#465262!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-primary,
body[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-primary{
  background:linear-gradient(135deg,#2867b4,#159f9d)!important;border-color:#159f9d!important;color:#fff!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-outline-primary,
html[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-outline-secondary,
body[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-outline-primary,
body[data-market-theme="teex7x-dark"] #marketScreen .market-footer-actions .btn-outline-secondary{
  background:#17191e!important;color:#a9c9ff!important;border-color:#668bc1!important;
}

html[data-market-theme="teex7x-dark"] .profile-dropdown,
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-dropdown-head,
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-switch-section,
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-impersonation-mode,
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-language-section,
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-mode-buttons,
body[data-market-theme="teex7x-dark"] .profile-dropdown,
body[data-market-theme="teex7x-dark"] .profile-dropdown .profile-dropdown-head,
body[data-market-theme="teex7x-dark"] .profile-dropdown .profile-switch-section,
body[data-market-theme="teex7x-dark"] .profile-dropdown .profile-impersonation-mode,
body[data-market-theme="teex7x-dark"] .profile-dropdown .profile-language-section,
body[data-market-theme="teex7x-dark"] .profile-dropdown .profile-mode-buttons{
  background:#17191e!important;color:#edf3ff!important;border-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-switch-section,
body[data-market-theme="teex7x-dark"] .profile-dropdown .profile-switch-section{background:#1c2938!important;border-color:#3d5875!important}
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-impersonation-mode,
body[data-market-theme="teex7x-dark"] .profile-dropdown .profile-impersonation-mode{background:#2b2418!important;border-color:#8c622e!important}
html[data-market-theme="teex7x-dark"] .profile-dropdown .form-select,
html[data-market-theme="teex7x-dark"] .profile-dropdown select,
body[data-market-theme="teex7x-dark"] .profile-dropdown .form-select,
body[data-market-theme="teex7x-dark"] .profile-dropdown select{
  background:#111318!important;color:#edf3ff!important;border-color:#556274!important;
}
html[data-market-theme="teex7x-dark"] .profile-dropdown .btn-primary,
body[data-market-theme="teex7x-dark"] .profile-dropdown .btn-primary{
  background:linear-gradient(135deg,#2867b4,#159f9d)!important;border-color:#159f9d!important;color:#fff!important;
}
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-mode-buttons button,
body[data-market-theme="teex7x-dark"] .profile-dropdown .profile-mode-buttons button{
  background:#17191e!important;color:#c7d7ed!important;border-color:#556274!important;
}
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-mode-buttons button.is-active[data-impersonation-mode="read"],
body[data-market-theme="teex7x-dark"] .profile-dropdown .profile-mode-buttons button.is-active[data-impersonation-mode="read"]{background:#26303d!important;color:#fff!important;border-color:#8b9bb0!important}
html[data-market-theme="teex7x-dark"] .profile-dropdown .profile-mode-buttons button.is-active[data-impersonation-mode="write"],
body[data-market-theme="teex7x-dark"] .profile-dropdown .profile-mode-buttons button.is-active[data-impersonation-mode="write"]{background:#3a2a1a!important;color:#ffd6a0!important;border-color:#f3a446!important}
html[data-market-theme="teex7x-dark"] .profile-dropdown .dropdown-divider,
body[data-market-theme="teex7x-dark"] .profile-dropdown .dropdown-divider{border-color:#3b424e!important}

/* Live export actions follow the midnight theme; generated PNG/PDF clones
   use the matching dark export surfaces above when the theme is midnight. */
html[data-market-theme="teex7x-dark"] #settlement .page-heading-actions,
body[data-market-theme="teex7x-dark"] #settlement .page-heading-actions{background:rgba(23,25,30,.96)!important;border-color:#3b424e!important}
html[data-market-theme="teex7x-dark"] #settlement .page-heading-actions .btn-primary,
body[data-market-theme="teex7x-dark"] #settlement .page-heading-actions .btn-primary{background:linear-gradient(135deg,#2867b4,#159f9d)!important;color:#fff!important;border-color:#159f9d!important}
html[data-market-theme="teex7x-dark"] #settlement .page-heading-actions .btn-outline-primary,
body[data-market-theme="teex7x-dark"] #settlement .page-heading-actions .btn-outline-primary{background:#17191e!important;color:#a9c9ff!important;border-color:#668bc1!important}

/* Settlement exports and the browser print document follow the selected
   midnight theme too.  Bootstrap's card/table defaults otherwise reintroduce
   white tfoot, remark and summary surfaces in PNG/PDF output. */
html[data-market-theme="teex7x-dark"] .image-capture-stage,
html[data-market-theme="teex7x-dark"] .image-capture-stage .settlement-export-card,
html[data-market-theme="teex7x-dark"] .image-capture-stage .settlement-export-card>.card-body,
html[data-market-theme="teex7x-dark"] .settlement-export-card,
html[data-market-theme="teex7x-dark"] .settlement-export-card>.card-body,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tbody,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tbody tr,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tbody td,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot tr,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table tfoot td,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table > :not(caption) > * > *,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary>div{
  background:#17191e!important;
  background-color:#17191e!important;
  color:#edf3ff!important;
  border-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table thead,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table thead tr,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-table thead th{
  background:#1d2027!important;
  color:#b8d7ff!important;
  border-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark-title,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark>div strong,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark>div span,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary>div>span,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary>div>strong{
  color:#b8d7ff!important;
}
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary .settlement-balance{
  background:#163a2c!important;
  color:#b6f4d4!important;
  border-color:#2f8f68!important;
}

@media print{
  html[data-market-theme="teex7x-dark"],
  html[data-market-theme="teex7x-dark"] body,
  html[data-market-theme="teex7x-dark"] #appShell,
  html[data-market-theme="teex7x-dark"] #content,
  html[data-market-theme="teex7x-dark"] #settlement,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea>.card-body,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tbody,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tbody tr,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tbody td,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot tr,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table tfoot td,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table > :not(caption) > * > *,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary>div{
    background:#17191e!important;
    background-color:#17191e!important;
    color:#edf3ff!important;
    border-color:#3b424e!important;
  }
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead tr,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-table thead th{
    background:#1d2027!important;
    color:#b8d7ff!important;
    border-color:#3b424e!important;
  }
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary .settlement-balance{
    background:#163a2c!important;
    color:#b6f4d4!important;
    border-color:#2f8f68!important;
  }
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-title,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark>div strong,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark>div span,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary>div>span,
  html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary>div>strong{
    color:#b8d7ff!important;
  }
}

/* Keep the two action prompts prominent in the light, midnight, and print views. */
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-action>span,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-action>span i,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-payment>strong,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-payment>span,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-payment>span i,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark-action>span,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark-action>span i,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark-payment>strong,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark-payment>span,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark-payment>span i{
  color:#ff8b8b!important;
  font-weight:900!important;
}

/* Keep the payment note inside its card when English text is longer. */
#settlementPrintArea .settlement-remark-payment{
  align-items:flex-start;
  white-space:normal;
}
#settlementPrintArea .settlement-remark-payment>strong{
  flex:0 0 auto;
}
#settlementPrintArea .settlement-remark-payment>span{
  min-width:0;
  white-space:normal;
  overflow-wrap:break-word;
}

/* Compact printed notes: keep the label on its own line and right-align the
   longer English detail so it never escapes the note card. */
@media print{
  #settlementPrintArea .settlement-remark{
    width:330px;
    max-width:330px;
    min-height:0;
    padding:12px 14px;
  }
  #settlementPrintArea .settlement-remark-title{
    margin-bottom:8px;
    font-size:14px;
  }
  #settlementPrintArea .settlement-remark>div{
    display:grid;
    grid-template-columns:minmax(0,1fr);
    align-items:start;
    gap:2px;
    padding:6px 0;
    font-size:12px;
    line-height:1.35;
  }
  #settlementPrintArea .settlement-remark>div strong{
    white-space:normal;
  }
  #settlementPrintArea .settlement-remark>div span{
    width:100%;
    justify-content:flex-end;
    text-align:right;
    white-space:normal;
    overflow-wrap:break-word;
  }
}

/* English payment notes follow the requested reading order: keep each detail
   on its own line and align it with the left edge of the note card. */
html[lang="en"] #settlementPrintArea .settlement-remark-action,
html[lang="en"] #settlementPrintArea .settlement-remark-payment{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  gap:3px;
}
html[lang="en"] #settlementPrintArea .settlement-remark-action>strong,
html[lang="en"] #settlementPrintArea .settlement-remark-payment>strong{
  width:100%;
}
html[lang="en"] #settlementPrintArea .settlement-remark-action>span,
html[lang="en"] #settlementPrintArea .settlement-remark-payment>span{
  width:100%;
  justify-content:flex-start;
  text-align:left;
  white-space:normal;
}
#settlementPrintArea .settlement-remark-payment>strong .settlement-remark-payment-time{
  display:inline;
  color:#b91c1c;
  font-weight:900;
  white-space:nowrap;
}

/* Keep Settlement export actions as a compact floating group on the left. */
#settlement .page-heading-actions{
  left:24px;
  right:auto;
}
@media(max-width:576px){
  #settlement .page-heading-actions{
    left:12px;
    right:auto;
    width:max-content;
    max-width:calc(100vw - 24px);
    justify-content:flex-start;
    overflow-x:auto;
  }
  #settlement .page-heading-actions .btn{
    flex:0 0 auto;
  }
}

/* Liquid Glass settlement actions: keep the floating controls clear of the
   fixed sidebar and place them around the vertical center of the screen. */
@media(min-width:993px){
  #settlement .page-heading-actions{
    top:auto;
    left:50%;
    right:auto;
    bottom:24px;
    transform:translateX(-50%);
    gap:7px;
    padding:7px;
    border-color:rgba(255,255,255,.68);
    border-radius:16px;
    background:linear-gradient(135deg,rgba(255,255,255,.58),rgba(226,250,248,.34));
    box-shadow:0 14px 34px rgba(8,55,72,.2),inset 0 1px 0 rgba(255,255,255,.78);
    -webkit-backdrop-filter:blur(18px) saturate(155%);
    backdrop-filter:blur(18px) saturate(155%);
  }
}
#settlement .page-heading-actions .btn{
  min-height:35px;
  padding:6px 10px;
  border-radius:11px;
  font-size:13px;
  box-shadow:0 4px 12px rgba(8,55,72,.1),inset 0 1px 0 rgba(255,255,255,.48);
}
@media(max-width:992px){
  #settlement .page-heading-actions{
    top:auto;
    bottom:18px;
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:max-content;
    max-width:calc(100vw - 24px);
    padding:6px;
  }
}
@media(max-width:576px){
  #settlement .page-heading-actions{left:50%;right:auto;bottom:12px}
  #settlement .page-heading-actions .btn{min-height:34px;padding:6px 9px;font-size:12px}
}

/* Match the fixed side menu to the TEEX7X navy-teal and turquoise themes. */
html[data-market-theme="nexora"] #sidebar,
body[data-market-theme="nexora"] #sidebar{
  background:linear-gradient(180deg,#071d35 0%,#0a3550 52%,#0d5a62 100%);
  border-right:1px solid rgba(89,220,208,.28);
  box-shadow:8px 0 26px rgba(4,38,57,.18);
}
html[data-market-theme="nexora"] #sidebar .logo,
body[data-market-theme="nexora"] #sidebar .logo{
  border-bottom-color:rgba(121,235,222,.22);
}
html[data-market-theme="nexora"] #sidebar li.active,
body[data-market-theme="nexora"] #sidebar li.active{
  background:linear-gradient(135deg,#155c9a,#119f9a);
  box-shadow:0 8px 20px rgba(17,159,154,.25);
}
html[data-market-theme="nexora"] #sidebar li:hover:not(.active),
body[data-market-theme="nexora"] #sidebar li:hover:not(.active){
  background:rgba(38,190,180,.18);
}

html[data-market-theme="teal"] #sidebar,
body[data-market-theme="teal"] #sidebar{
  background:linear-gradient(180deg,rgba(4,65,78,.94) 0%,rgba(7,103,105,.9) 54%,rgba(10,143,127,.88) 100%);
  border-right:1px solid rgba(157,255,239,.4);
  box-shadow:8px 0 28px rgba(5,82,87,.2),inset -1px 0 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  backdrop-filter:blur(18px) saturate(145%);
}
html[data-market-theme="teal"] #sidebar .logo,
body[data-market-theme="teal"] #sidebar .logo{
  border-bottom-color:rgba(177,255,244,.3);
}
html[data-market-theme="teal"] #sidebar li.active,
body[data-market-theme="teal"] #sidebar li.active{
  background:linear-gradient(135deg,rgba(80,216,194,.82),rgba(13,151,145,.9));
  box-shadow:0 8px 22px rgba(0,85,89,.28),inset 0 1px 0 rgba(255,255,255,.32);
}
html[data-market-theme="teal"] #sidebar li:hover:not(.active),
body[data-market-theme="teal"] #sidebar li:hover:not(.active){
  background:rgba(149,255,235,.18);
}

/* Keep the action glass readable against each TEEX7X theme. */
html[data-market-theme="nexora"] #settlement .page-heading-actions,
body[data-market-theme="nexora"] #settlement .page-heading-actions{
  background:linear-gradient(135deg,rgba(255,255,255,.72),rgba(207,249,245,.46));
  border-color:rgba(17,159,154,.38);
}
html[data-market-theme="teal"] #settlement .page-heading-actions,
body[data-market-theme="teal"] #settlement .page-heading-actions{
  background:linear-gradient(135deg,rgba(220,255,250,.64),rgba(112,235,214,.32));
  border-color:rgba(9,137,130,.42);
}

/* Child menu icons keep the same visual weight as their parent icons and
   remain easy to identify on a native-sized touch target. */
#sidebar li.submenu-item>i:first-child{
  width:22px;
  flex:0 0 22px;
  text-align:center;
  font-size:16px;
  opacity:.92;
}
@media(max-width:576px){
  #sidebar li,
  #sidebar li.submenu-item{
    min-height:48px;
    touch-action:manipulation;
  }
  #sidebar li.submenu-item>i:first-child{font-size:17px}
  #sidebar .sidebar-submenu-toggle,
  #sidebar li>i,
  #sidebar li>span,
  #settlement .page-heading-actions .btn,
  .btn,
  button,
  label[for]{touch-action:manipulation}
}

/* Cross-theme Liquid Glass system. Keep semantic danger actions red while
   giving every navigational and primary function control the active theme's
   material, contrast, and touch-friendly shape. */
html[data-market-theme="blue"]{
  --theme-gradient:linear-gradient(135deg,#2563eb 0%,#4f8df7 100%);
  --theme-glass-surface:rgba(255,255,255,.68);
  --theme-glass-border:rgba(37,99,235,.34);
  --theme-glass-hover:rgba(37,99,235,.12);
}
html[data-market-theme="gray"]{
  --theme-gradient:linear-gradient(135deg,#475569 0%,#64748b 100%);
  --theme-glass-surface:rgba(255,255,255,.7);
  --theme-glass-border:rgba(71,85,105,.34);
  --theme-glass-hover:rgba(71,85,105,.12);
}
html[data-market-theme="nexora"]{
  --theme-gradient:linear-gradient(135deg,#155c9a 0%,#119f9a 100%);
  --theme-glass-surface:rgba(255,255,255,.68);
  --theme-glass-border:rgba(17,159,154,.38);
  --theme-glass-hover:rgba(17,159,154,.13);
}
html[data-market-theme="teal"]{
  --theme-gradient:linear-gradient(135deg,#087a9b 0%,#119f9a 100%);
  --theme-glass-surface:rgba(239,255,252,.68);
  --theme-glass-border:rgba(9,137,130,.42);
  --theme-glass-hover:rgba(17,159,154,.14);
}
html[data-market-theme="teex7x-dark"]{
  --theme-gradient:linear-gradient(135deg,#2867b4 0%,#159f9d 100%);
  --theme-glass-surface:rgba(27,43,61,.78);
  --theme-glass-border:rgba(111,174,235,.48);
  --theme-glass-hover:rgba(42,112,177,.24);
}

html[data-market-theme] #sidebar{
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  backdrop-filter:blur(18px) saturate(145%);
  border-right:1px solid var(--theme-glass-border);
  box-shadow:8px 0 28px rgba(6,32,54,.2),inset -1px 0 0 rgba(255,255,255,.1);
}
html[data-market-theme="blue"] #sidebar{
  background:linear-gradient(180deg,rgba(15,23,42,.97) 0%,rgba(21,58,108,.94) 54%,rgba(37,99,235,.88) 100%);
}
html[data-market-theme="gray"] #sidebar{
  background:linear-gradient(180deg,rgba(31,41,55,.97) 0%,rgba(51,65,85,.95) 55%,rgba(71,85,105,.9) 100%);
}
html[data-market-theme="nexora"] #sidebar{
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  backdrop-filter:blur(18px) saturate(145%);
}
html[data-market-theme="teal"] #sidebar{
  -webkit-backdrop-filter:blur(18px) saturate(150%);
  backdrop-filter:blur(18px) saturate(150%);
}
html[data-market-theme="teex7x-dark"] #sidebar{
  background:linear-gradient(180deg,rgba(5,22,39,.96) 0%,rgba(8,53,75,.94) 52%,rgba(9,101,101,.9) 100%);
  border-right-color:rgba(92,218,206,.34);
  box-shadow:8px 0 30px rgba(0,30,47,.42),inset -1px 0 0 rgba(159,255,242,.12);
}
html[data-market-theme] #sidebar li.active,
html[data-market-theme] #sidebar li.active:hover{
  background:var(--theme-gradient)!important;
  border-color:var(--theme-glass-border)!important;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(4,55,84,.22),inset 0 1px 0 rgba(255,255,255,.24);
}
html[data-market-theme] #sidebar li:hover:not(.active){
  background:var(--theme-glass-hover)!important;
  color:#fff!important;
}
html[data-market-theme] #sidebar .logo{
  border-bottom-color:var(--theme-glass-border);
}

/* Blue-white theme: keep the Sidebar opaque and calm. The bright lower
   gradient made the navigation tiring to read; cards, fields, borders, and
   the profile menu intentionally remain on their original white surface. */
html[data-market-theme="blue"] #sidebar,
body[data-market-theme="blue"] #sidebar{
  background:#15345a!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  border-right-color:#2d527d!important;
  box-shadow:8px 0 24px rgba(8,30,57,.18),inset -1px 0 0 rgba(255,255,255,.08)!important;
}
html[data-market-theme="blue"] #sidebar li.active,
body[data-market-theme="blue"] #sidebar li.active,
html[data-market-theme="blue"] #sidebar li.active:hover,
body[data-market-theme="blue"] #sidebar li.active:hover{
  background:#2563eb!important;
  border-color:#2563eb!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(12,52,112,.28),inset 0 1px 0 rgba(255,255,255,.18)!important;
}
html[data-market-theme="blue"] #sidebar li:hover:not(.active),
body[data-market-theme="blue"] #sidebar li:hover:not(.active){
  background:#1d4777!important;
  color:#fff!important;
}
html[data-market-theme="blue"] #sidebar li.submenu-item,
body[data-market-theme="blue"] #sidebar li.submenu-item{
  color:#dbeafe!important;
}
html[data-market-theme="blue"] #sidebar li > i,
html[data-market-theme="blue"] #sidebar li > span,
body[data-market-theme="blue"] #sidebar li > i,
body[data-market-theme="blue"] #sidebar li > span{
  color:#f4f8ff!important;
}

html[data-market-theme] #content .btn:not(.btn-danger):not(.btn-outline-danger):not(.btn-link),
html[data-market-theme] #content button:not(.btn-danger):not(.btn-outline-danger){
  border-radius:12px;
  -webkit-backdrop-filter:blur(12px) saturate(140%);
  backdrop-filter:blur(12px) saturate(140%);
  transition:transform .16s ease,box-shadow .16s ease,background-color .16s ease,border-color .16s ease;
}
html[data-market-theme] #content .btn:not(.btn-danger):not(.btn-outline-danger):hover,
html[data-market-theme] #content button:not(.btn-danger):not(.btn-outline-danger):hover{
  transform:translateY(-1px);
  box-shadow:0 8px 18px rgba(7,42,68,.16),inset 0 1px 0 rgba(255,255,255,.42);
}
html[data-market-theme] #content .btn-primary,
html[data-market-theme] #content .btn-success,
html[data-market-theme] #content .btn-info{
  background:var(--theme-gradient)!important;
  border-color:var(--theme-glass-border)!important;
  color:#fff!important;
  box-shadow:0 6px 16px rgba(8,67,102,.2),inset 0 1px 0 rgba(255,255,255,.28);
}
html[data-market-theme] #content .btn-outline-primary,
html[data-market-theme] #content .btn-outline-secondary,
html[data-market-theme] #content .btn-outline-dark,
html[data-market-theme] #content .btn-outline-light,
html[data-market-theme] #content .btn-light{
  background:var(--theme-glass-surface)!important;
  border-color:var(--theme-glass-border)!important;
  color:var(--primary-dark,var(--primary,#2563eb))!important;
  box-shadow:0 4px 12px rgba(8,55,72,.1),inset 0 1px 0 rgba(255,255,255,.58);
}
html[data-market-theme="teex7x-dark"] #content .btn-outline-primary,
html[data-market-theme="teex7x-dark"] #content .btn-outline-secondary,
html[data-market-theme="teex7x-dark"] #content .btn-outline-dark,
html[data-market-theme="teex7x-dark"] #content .btn-outline-light,
html[data-market-theme="teex7x-dark"] #content .btn-light{
  color:#d7e8ff!important;
}
html[data-market-theme] #settlement .page-heading-actions{
  background:var(--theme-glass-surface);
  border-color:var(--theme-glass-border);
  box-shadow:0 14px 34px rgba(8,55,72,.2),inset 0 1px 0 rgba(255,255,255,.68);
}

/* TEEX7X midnight: keep Settlement's live controls and generated tier
   breakdown on the same dark material as the statement card. */
html[data-market-theme="teex7x-dark"] #content .settlement-selection-card,
html[data-market-theme="teex7x-dark"] #content .settlement-selection-card>.card-header,
html[data-market-theme="teex7x-dark"] #content .settlement-selection-card>.card-body,
html[data-market-theme="teex7x-dark"] #content .settlement-selection-card .table-responsive,
html[data-market-theme="teex7x-dark"] #content .settlement-selection-card .settlement-selection-table{
  background:#17191e!important;
  color:#edf3ff!important;
  border-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] #content .settlement-selection-card .card-header{
  border-bottom-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] #settlementSelectionSummary{
  background:#1d3048!important;
  color:#d7e8ff!important;
  border:1px solid #55779f!important;
}
html[data-market-theme="teex7x-dark"] .settlement-selection-card .settlement-print-mode{
  background:#17191e!important;
  border-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] .settlement-selection-card .settlement-print-option{
  background:#17191e!important;
  color:#b8c9df!important;
  border-right-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] .settlement-selection-card .settlement-print-option:has(input:checked){
  background:var(--theme-gradient)!important;
  color:#fff!important;
  box-shadow:inset 0 -2px 0 #73eee0;
}
html[data-market-theme="teex7x-dark"] .settlement-selection-card .settlement-print-indicator{
  background:#111318!important;
  border-color:#586778!important;
  color:#d7e8ff!important;
}
html[data-market-theme="teex7x-dark"] .settlement-selection-card .settlement-print-option:has(input:checked) .settlement-print-indicator{
  background:#174f7c!important;
  border-color:#79d9d2!important;
  color:#fff!important;
}
html[data-market-theme="teex7x-dark"] #content .settlement-selection-card .settlement-selection-table thead th,
html[data-market-theme="teex7x-dark"] #content .settlement-selection-card .settlement-selection-table tbody td{
  background:#17191e!important;
  color:#dceaff!important;
  border-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] #content .settlement-selection-card .settlement-selection-table tbody tr:hover td{
  background:#1d3048!important;
}
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown,
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table-responsive,
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table,
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table thead,
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table tbody,
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table tfoot,
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table tr,
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table th,
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table td{
  background:#17191e!important;
  color:#edf3ff!important;
  border-color:#3b424e!important;
}
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown{
  border-color:#4c78a7!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .settlement-breakdown-title{
  color:#a9cfff!important;
}
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table thead th{
  background:#20242d!important;
  color:#b8d7ff!important;
}
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table tfoot th,
html[data-market-theme="teex7x-dark"] #content .settlement-commission-breakdown .table tfoot td{
  background:#1d3048!important;
  color:#dceaff!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark{
  background:linear-gradient(145deg,#1c2d42,#17202b)!important;
  border-color:#3f72a7!important;
  color:#edf3ff!important;
  box-shadow:0 8px 20px rgba(0,0,0,.24),inset 0 1px 0 rgba(150,219,255,.1);
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-title,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark>div strong,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark>div span{
  color:#edf3ff!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark>div{
  border-top-color:#3b5068!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-action>span,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-payment>strong,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-payment>span{
  color:#ff8993!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary>div{
  border-bottom-color:#3b424e!important;
}

/* Remove descendant color blocks accidentally introduced by the broad
   midnight export guard. The note card and summary row should be continuous
   surfaces; only the balance container itself keeps its green/red emphasis. */
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark>div,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark>div *,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark>div,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark>div *{
  background:transparent!important;
  background-color:transparent!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-remark-title,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-remark-title{
  background:transparent!important;
  background-color:transparent!important;
}
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary>div:not(.settlement-balance),
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary>div:not(.settlement-balance) *,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary>div:not(.settlement-balance),
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary>div:not(.settlement-balance) *,
html[data-market-theme="teex7x-dark"] #settlementPrintArea .settlement-summary .settlement-balance *,
html[data-market-theme="teex7x-dark"] .settlement-export-card .settlement-summary .settlement-balance *{
  background:transparent!important;
  background-color:transparent!important;
}

/* Global Liquid Glass navigation and control layer. The Sidebar already has
   the approved hover material; extend the same interaction language to the
   top navigation, account controls, Bootstrap buttons, modal buttons, and
   reusable function controls. Semantic danger actions stay red. */
html[data-market-theme="blue"]{--theme-nav-surface:rgba(255,255,255,.78);--theme-nav-border:rgba(37,99,235,.24);--theme-nav-hover:rgba(37,99,235,.12)}
html[data-market-theme="gray"]{--theme-nav-surface:rgba(255,255,255,.8);--theme-nav-border:rgba(71,85,105,.25);--theme-nav-hover:rgba(71,85,105,.12)}
html[data-market-theme="nexora"]{--theme-nav-surface:rgba(255,255,255,.76);--theme-nav-border:rgba(17,159,154,.28);--theme-nav-hover:rgba(17,159,154,.13)}
html[data-market-theme="teal"]{--theme-nav-surface:rgba(239,255,252,.76);--theme-nav-border:rgba(9,137,130,.3);--theme-nav-hover:rgba(17,159,154,.14)}
html[data-market-theme="teex7x-dark"]{--theme-nav-surface:rgba(12,29,45,.86);--theme-nav-border:rgba(92,218,206,.3);--theme-nav-hover:rgba(67,157,177,.22)}

html[data-market-theme] .navbar{
  background:var(--theme-nav-surface)!important;
  border-bottom-color:var(--theme-nav-border)!important;
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  backdrop-filter:blur(18px) saturate(145%);
  box-shadow:0 6px 20px rgba(7,42,68,.08),inset 0 1px 0 rgba(255,255,255,.42);
}
html[data-market-theme] .navbar>#menuButton{
  display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid var(--theme-nav-border);
  border-radius:13px;background:var(--theme-glass-surface)!important;color:var(--primary-dark,var(--primary,#2563eb))!important;
  box-shadow:0 4px 12px rgba(8,55,72,.1),inset 0 1px 0 rgba(255,255,255,.54);
  -webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%);
  transition:transform .16s ease,background-color .16s ease,box-shadow .16s ease;
}
html[data-market-theme] .navbar>#menuButton:hover,html[data-market-theme] .navbar>#menuButton:focus-visible{
  transform:translateY(-1px);background:var(--theme-nav-hover)!important;box-shadow:0 8px 18px rgba(7,42,68,.16),inset 0 1px 0 rgba(255,255,255,.6);
}
html[data-market-theme] .navbar-page .quick-nav{
  padding:4px;border:1px solid var(--theme-nav-border);border-radius:15px;background:var(--theme-glass-surface);
  box-shadow:0 4px 14px rgba(8,55,72,.08),inset 0 1px 0 rgba(255,255,255,.48);
  -webkit-backdrop-filter:blur(14px) saturate(145%);backdrop-filter:blur(14px) saturate(145%);
}
html[data-market-theme] .navbar-page .quick-nav-item{
  border:1px solid transparent;border-radius:11px;background:transparent;color:var(--primary-dark,var(--primary,#2563eb));
  transition:transform .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease;
}
html[data-market-theme] .navbar-page .quick-nav-item:hover,html[data-market-theme] .navbar-page .quick-nav-item:focus-visible{
  transform:translateY(-1px);border-color:var(--theme-nav-border);background:var(--theme-nav-hover);
  color:var(--primary-dark,var(--primary,#2563eb));box-shadow:0 5px 12px rgba(7,42,68,.12),inset 0 1px 0 rgba(255,255,255,.45);
}
html[data-market-theme] .navbar-page .quick-nav-item.active{
  background:var(--theme-gradient)!important;border-color:var(--theme-glass-border)!important;color:#fff!important;
  box-shadow:0 6px 16px rgba(8,67,102,.2),inset 0 1px 0 rgba(255,255,255,.28);
}
html[data-market-theme] .navbar-page .quick-nav-item.quick-nav-child::before{color:currentColor}
html[data-market-theme] .navbar .profile-trigger{
  border-color:var(--theme-nav-border)!important;background:var(--theme-glass-surface)!important;color:var(--primary-dark,var(--primary,#2563eb))!important;
  box-shadow:0 4px 12px rgba(8,55,72,.1),inset 0 1px 0 rgba(255,255,255,.54);
  -webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%);
}
html[data-market-theme] .navbar .profile-trigger:hover,html[data-market-theme] .navbar .profile-trigger[aria-expanded="true"]{
  border-color:var(--theme-glass-border)!important;background:var(--theme-nav-hover)!important;color:var(--primary-dark,var(--primary,#2563eb))!important;
  box-shadow:0 8px 18px rgba(7,42,68,.15),inset 0 1px 0 rgba(255,255,255,.58);
}
html[data-market-theme] .navbar .profile-dropdown{
  border-color:var(--theme-nav-border)!important;background:var(--theme-glass-surface)!important;
  box-shadow:0 18px 45px rgba(7,42,68,.2),inset 0 1px 0 rgba(255,255,255,.5);
  -webkit-backdrop-filter:blur(18px) saturate(150%);backdrop-filter:blur(18px) saturate(150%);
}
html[data-market-theme] .navbar .profile-dropdown .dropdown-item:not(.profile-logout),
html[data-market-theme] .navbar .profile-dropdown .profile-language-options button,
html[data-market-theme] .navbar .profile-dropdown .profile-mode-buttons button{
  border-color:transparent!important;background:transparent!important;color:var(--primary-dark,var(--primary,#2563eb))!important;
}
html[data-market-theme] .navbar .profile-dropdown .dropdown-item:not(.profile-logout):hover,
html[data-market-theme] .navbar .profile-dropdown .dropdown-item:not(.profile-logout):focus,
html[data-market-theme] .navbar .profile-dropdown .profile-language-options button:hover,
html[data-market-theme] .navbar .profile-dropdown .profile-language-options button:focus,
html[data-market-theme] .navbar .profile-dropdown .profile-mode-buttons button:hover,
html[data-market-theme] .navbar .profile-dropdown .profile-mode-buttons button:focus{
  background:var(--theme-gradient)!important;border-color:var(--theme-glass-border)!important;color:#fff!important;
  box-shadow:0 5px 12px rgba(7,42,68,.14),inset 0 1px 0 rgba(255,255,255,.25);
}
html[data-market-theme] .navbar .profile-dropdown .profile-logout,html[data-market-theme] .navbar .profile-dropdown .profile-logout:hover{color:#dc2626!important}

/* Style reusable Bootstrap buttons globally, including buttons rendered in
   headers, modals, dropdowns, and toolbars outside #content. */
html[data-market-theme] .btn:not(.btn-danger):not(.btn-outline-danger):not(.btn-link):not(.btn-close){
  border-radius:12px;-webkit-backdrop-filter:blur(12px) saturate(140%);backdrop-filter:blur(12px) saturate(140%);
  transition:transform .16s ease,background-color .16s ease,border-color .16s ease,box-shadow .16s ease;
}
html[data-market-theme] .btn:not(.btn-danger):not(.btn-outline-danger):not(.btn-link):not(.btn-close):hover,
html[data-market-theme] .btn:not(.btn-danger):not(.btn-outline-danger):not(.btn-link):not(.btn-close):focus-visible{
  transform:translateY(-1px);box-shadow:0 8px 18px rgba(7,42,68,.15),inset 0 1px 0 rgba(255,255,255,.46);
}
html[data-market-theme] .btn-primary,html[data-market-theme] .btn-success,html[data-market-theme] .btn-info{
  background:var(--theme-gradient)!important;border-color:var(--theme-glass-border)!important;color:#fff!important;
  box-shadow:0 6px 16px rgba(8,67,102,.2),inset 0 1px 0 rgba(255,255,255,.28);
}
html[data-market-theme] .btn-outline-primary,html[data-market-theme] .btn-outline-secondary,html[data-market-theme] .btn-outline-dark,
html[data-market-theme] .btn-outline-light,html[data-market-theme] .btn-light,html[data-market-theme] .btn-secondary{
  background:var(--theme-glass-surface)!important;border-color:var(--theme-glass-border)!important;color:var(--primary-dark,var(--primary,#2563eb))!important;
  box-shadow:0 4px 12px rgba(8,55,72,.1),inset 0 1px 0 rgba(255,255,255,.55);
}
html[data-market-theme="teex7x-dark"] .btn-outline-primary,html[data-market-theme="teex7x-dark"] .btn-outline-secondary,
html[data-market-theme="teex7x-dark"] .btn-outline-dark,html[data-market-theme="teex7x-dark"] .btn-outline-light,
html[data-market-theme="teex7x-dark"] .btn-light,html[data-market-theme="teex7x-dark"] .btn-secondary{color:#d7e8ff!important}

@media(max-width:992px){html[data-market-theme] .navbar-page .quick-nav{max-width:100%;overflow-x:auto}}
@media(max-width:576px){
  html[data-market-theme] .navbar>#menuButton{width:42px;height:42px;flex:0 0 42px}
  html[data-market-theme] .navbar-page .quick-nav{padding:3px;border-radius:13px}
  html[data-market-theme] .navbar-page .quick-nav-item{min-height:40px;padding:8px 10px}
  html[data-market-theme] .navbar .profile-trigger{min-height:42px}
}

/* Contrast correction for unselected navigation labels. Keep each theme's
   inactive text readable without competing with the active gradient state. */
html[data-market-theme="blue"]{--theme-nav-text:#1e4fa3}
html[data-market-theme="gray"]{--theme-nav-text:#334155}
html[data-market-theme="nexora"]{--theme-nav-text:#0b5578}
html[data-market-theme="teal"]{--theme-nav-text:#08645f}
html[data-market-theme="teex7x-dark"]{--theme-nav-text:#d7e7fa}
html[data-market-theme] .navbar-page .quick-nav-item,
html[data-market-theme] .navbar-page .quick-nav-item:hover,
html[data-market-theme] .navbar-page .quick-nav-item:focus-visible{
  color:var(--theme-nav-text)!important;
  text-shadow:0 1px 0 rgba(255,255,255,.12);
}
html[data-market-theme] .navbar-page .quick-nav-item.active,
html[data-market-theme] .navbar-page .quick-nav-item.active:hover,
html[data-market-theme] .navbar-page .quick-nav-item.active:focus-visible{
  color:#fff!important;
  text-shadow:0 1px 2px rgba(0,28,55,.22);
}
html[data-market-theme] .navbar .profile-trigger,
html[data-market-theme] .navbar .profile-trigger:hover,
html[data-market-theme] .navbar .profile-trigger[aria-expanded="true"]{
  color:var(--theme-nav-text)!important;
}

/* TEEX7X midnight profile surface: darker, more opaque, and calmer behind the
   bright readable labels. Keep the Liquid Glass edge and inner highlight. */
html[data-market-theme="teex7x-dark"] .navbar-page .quick-nav{
  background:rgba(7,16,27,.92)!important;
  border-color:#34546b!important;
  box-shadow:0 8px 22px rgba(0,0,0,.28),inset 0 1px 0 rgba(151,222,255,.12);
}
html[data-market-theme="teex7x-dark"] .navbar .profile-trigger{
  background:rgba(7,16,27,.94)!important;
  border-color:#34546b!important;
  color:#d7e7fa!important;
}
html[data-market-theme="teex7x-dark"] .navbar .profile-trigger:hover,
html[data-market-theme="teex7x-dark"] .navbar .profile-trigger[aria-expanded="true"]{
  background:#12283b!important;
  border-color:#5b9ab1!important;
  color:#f0f7ff!important;
}
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown,
body[data-market-theme="teex7x-dark"] .navbar .profile-dropdown{
  background:rgba(7,13,21,.98)!important;
  border-color:#35586f!important;
  color:#e7f1ff!important;
  box-shadow:0 22px 52px rgba(0,0,0,.5),inset 0 1px 0 rgba(151,222,255,.12);
  -webkit-backdrop-filter:blur(20px) saturate(135%);
  backdrop-filter:blur(20px) saturate(135%);
}
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-dropdown-head,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-switch-section,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-language-section,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-mode-buttons,
body[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-dropdown-head,
body[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-switch-section,
body[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-language-section,
body[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-mode-buttons{
  background:#0e1722!important;
  border-color:#2d4659!important;
  color:#dbeaff!important;
}
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-impersonation-mode,
body[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-impersonation-mode{
  background:#201b14!important;
  border-color:#76552a!important;
}
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .dropdown-item:not(.profile-logout),
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-language-options button,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-mode-buttons button,
body[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .dropdown-item:not(.profile-logout),
body[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-language-options button,
body[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-mode-buttons button{
  background:#111b27!important;
  border-color:#283d4e!important;
  color:#d7e7fa!important;
}
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .dropdown-item:not(.profile-logout):hover,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .dropdown-item:not(.profile-logout):focus,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-language-options button:hover,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-language-options button:focus,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-mode-buttons button:hover,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-mode-buttons button:focus{
  background:linear-gradient(135deg,#164d78,#127f80)!important;
  border-color:#63c7c0!important;
  color:#fff!important;
}
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-language-options button.active,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-mode-buttons button.is-active{
  background:linear-gradient(135deg,#2867b4,#159f9d)!important;
  border-color:#63c7c0!important;
  color:#fff!important;
}
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-dropdown-head strong,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-dropdown-head span,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-language-title,
html[data-market-theme="teex7x-dark"] .navbar .profile-dropdown .profile-language-title i{
  color:#e7f1ff!important;
}

/* Light-theme profile menus need an opaque material. Keep the glass border
   and shadow, but prevent page text from showing through the open dropdown. */
html[data-market-theme="blue"] .navbar .profile-dropdown,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-dropdown-head,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-switch-section,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-language-section,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-mode-buttons,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-impersonation-mode{
  --bs-dropdown-bg:#fff;
  background:#fff!important;
  background-color:#fff!important;
}
html[data-market-theme="gray"] .navbar .profile-dropdown,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-dropdown-head,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-switch-section,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-language-section,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-mode-buttons,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-impersonation-mode{
  --bs-dropdown-bg:#fff;
  background:#fff!important;
  background-color:#fff!important;
}
html[data-market-theme="nexora"] .navbar .profile-dropdown,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-dropdown-head,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-switch-section,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-language-section,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-mode-buttons,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-impersonation-mode{
  --bs-dropdown-bg:#fbfffe;
  background:#fbfffe!important;
  background-color:#fbfffe!important;
}
html[data-market-theme="teal"] .navbar .profile-dropdown,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-dropdown-head,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-switch-section,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-language-section,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-mode-buttons,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-impersonation-mode{
  --bs-dropdown-bg:#f7fffe;
  background:#f7fffe!important;
  background-color:#f7fffe!important;
}
html[data-market-theme="blue"] .navbar .profile-dropdown,
html[data-market-theme="gray"] .navbar .profile-dropdown,
html[data-market-theme="nexora"] .navbar .profile-dropdown,
html[data-market-theme="teal"] .navbar .profile-dropdown{
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  box-shadow:0 20px 46px rgba(8,55,72,.22),inset 0 1px 0 rgba(255,255,255,.9);
}

/* Theme markers can be written on body during the workspace/theme transition.
   Mirror the opaque, theme-tinted Profile surface there as well. */
html[data-market-theme="blue"] .navbar .profile-dropdown,
body[data-market-theme="blue"] .navbar .profile-dropdown{
  --bs-dropdown-bg:#edf5ff;
  background:#edf5ff!important;
  background-color:#edf5ff!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html[data-market-theme="gray"] .navbar .profile-dropdown,
body[data-market-theme="gray"] .navbar .profile-dropdown{
  --bs-dropdown-bg:#f1f5f9;
  background:#f1f5f9!important;
  background-color:#f1f5f9!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html[data-market-theme="nexora"] .navbar .profile-dropdown,
body[data-market-theme="nexora"] .navbar .profile-dropdown{
  --bs-dropdown-bg:#edf9f7;
  background:#edf9f7!important;
  background-color:#edf9f7!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html[data-market-theme="teal"] .navbar .profile-dropdown,
body[data-market-theme="teal"] .navbar .profile-dropdown{
  --bs-dropdown-bg:#e5faf6;
  background:#e5faf6!important;
  background-color:#e5faf6!important;
  border-color:#82d7ca!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  box-shadow:0 20px 46px rgba(6,105,102,.2),inset 0 1px 0 rgba(255,255,255,.92);
}
html[data-market-theme="blue"] .navbar .profile-dropdown>*,
body[data-market-theme="blue"] .navbar .profile-dropdown>*,
html[data-market-theme="gray"] .navbar .profile-dropdown>*,
body[data-market-theme="gray"] .navbar .profile-dropdown>*,
html[data-market-theme="nexora"] .navbar .profile-dropdown>*,
body[data-market-theme="nexora"] .navbar .profile-dropdown>*,
html[data-market-theme="teal"] .navbar .profile-dropdown>*,
body[data-market-theme="teal"] .navbar .profile-dropdown>*{
  background-color:transparent!important;
}

/* Sidebar brand actions: tap the logo mark to toggle the slide menu; tap the
   TEEX7X wordmark to reload and return to the current hash/page. */
#sidebar>.logo{cursor:pointer;touch-action:manipulation;user-select:none;-webkit-tap-highlight-color:transparent}
#sidebar>.logo .logo-refresh{cursor:pointer;touch-action:manipulation;user-select:none}

/* Sign-in and workspace chooser: calm Liquid Glass surfaces.
   These screens intentionally use mostly opaque, theme-tinted materials so
   older users get strong contrast and the text never competes with the glow. */
html[data-market-theme="blue"],body[data-market-theme="blue"]{
  --entry-screen-bg:linear-gradient(145deg,#e9f3ff 0%,#f7fbff 56%,#e6f7f6 100%);
  --entry-card:#f9fcff;--entry-surface:#f1f7ff;--entry-border:#b9d3ef;
  --entry-text:#102a43;--entry-muted:#4e6680;--entry-accent:#1769a8;--entry-accent-2:#0c9b9b;
}
html[data-market-theme="gray"],body[data-market-theme="gray"]{
  --entry-screen-bg:linear-gradient(145deg,#edf1f5 0%,#fafbfc 56%,#e8edf2 100%);
  --entry-card:#fbfcfd;--entry-surface:#f2f5f8;--entry-border:#c7d2de;
  --entry-text:#1f2937;--entry-muted:#536273;--entry-accent:#40546b;--entry-accent-2:#287f8b;
}
html[data-market-theme="nexora"],body[data-market-theme="nexora"]{
  --entry-screen-bg:linear-gradient(145deg,#e6f8f4 0%,#f9fffe 56%,#e8f5ff 100%);
  --entry-card:#faffff;--entry-surface:#effaf8;--entry-border:#a9dcd8;
  --entry-text:#12334d;--entry-muted:#4f6d80;--entry-accent:#087e9c;--entry-accent-2:#0c9e9a;
}
html[data-market-theme="teal"],body[data-market-theme="teal"]{
  --entry-screen-bg:linear-gradient(145deg,#e3faf5 0%,#f7fffe 55%,#dff2ff 100%);
  --entry-card:#f9fffe;--entry-surface:#effbf9;--entry-border:#9dd7d0;
  --entry-text:#073b4c;--entry-muted:#47707b;--entry-accent:#087e9c;--entry-accent-2:#0d9d9b;
}
html[data-market-theme="teex7x-dark"],body[data-market-theme="teex7x-dark"]{
  --entry-screen-bg:linear-gradient(145deg,#070c14 0%,#0d1b2b 56%,#102e37 100%);
  --entry-card:#171c24;--entry-surface:#111b27;--entry-border:#46657b;
  --entry-text:#edf4ff;--entry-muted:#b7c7d9;--entry-accent:#9bc9ff;--entry-accent-2:#5fd6c9;
}
html[data-market-theme] #loginScreen,body[data-market-theme] #loginScreen,
html[data-market-theme] #marketScreen,body[data-market-theme] #marketScreen{
  background:var(--entry-screen-bg)!important;color:var(--entry-text)!important;isolation:isolate;
}
html[data-market-theme] #loginScreen::before,html[data-market-theme] #loginScreen::after,
body[data-market-theme] #loginScreen::before,body[data-market-theme] #loginScreen::after{opacity:.32}
html[data-market-theme] .login-card,body[data-market-theme] .login-card,
html[data-market-theme] .market-card,body[data-market-theme] .market-card{
  width:min(100%,620px);padding:32px;background:var(--entry-card)!important;color:var(--entry-text)!important;
  border:1px solid var(--entry-border)!important;border-radius:26px;
  box-shadow:0 24px 64px rgba(15,35,58,.16),inset 0 1px 0 rgba(255,255,255,.72);
  -webkit-backdrop-filter:blur(12px) saturate(120%);backdrop-filter:blur(12px) saturate(120%);
}
html[data-market-theme] .login-card,body[data-market-theme] .login-card{width:min(100%,460px)}
html[data-market-theme] .login-brand,body[data-market-theme] .login-brand{margin-bottom:20px}
html[data-market-theme] .login-brand p,html[data-market-theme] .login-brand h1,
body[data-market-theme] .login-brand p,body[data-market-theme] .login-brand h1{color:var(--entry-text)!important}
html[data-market-theme] .login-brand p,body[data-market-theme] .login-brand p{color:var(--entry-accent)!important}
html[data-market-theme] .login-brand h1,body[data-market-theme] .login-brand h1{font-size:clamp(1.75rem,4vw,2.15rem);line-height:1.15}
html[data-market-theme] .login-card>.text-secondary,html[data-market-theme] .market-card>.text-secondary,
html[data-market-theme] .login-note,html[data-market-theme] #marketUserLabel,
body[data-market-theme] .login-card>.text-secondary,body[data-market-theme] .market-card>.text-secondary,
body[data-market-theme] .login-note,body[data-market-theme] #marketUserLabel{
  color:var(--entry-muted)!important;opacity:1;font-size:15px;line-height:1.55;
}
html[data-market-theme] .login-card .form-label,body[data-market-theme] .login-card .form-label{color:var(--entry-text)!important;font-size:16px;font-weight:750}
html[data-market-theme] .login-card .form-control,body[data-market-theme] .login-card .form-control{
  min-height:50px;padding:11px 14px;background:var(--entry-surface)!important;color:var(--entry-text)!important;
  border:1px solid var(--entry-border)!important;border-radius:15px;font-size:16px;line-height:1.4;
}
html[data-market-theme] .login-card .form-control::placeholder,body[data-market-theme] .login-card .form-control::placeholder{color:var(--entry-muted);opacity:.9}
html[data-market-theme] .login-card .form-control:focus,body[data-market-theme] .login-card .form-control:focus{
  border-color:var(--entry-accent)!important;box-shadow:0 0 0 .24rem color-mix(in srgb,var(--entry-accent) 20%,transparent)!important;
}
html[data-market-theme] .login-card .btn-primary,body[data-market-theme] .login-card .btn-primary,
html[data-market-theme] .market-footer-actions .btn-primary,body[data-market-theme] .market-footer-actions .btn-primary{
  min-height:50px;border-radius:15px;border-color:var(--entry-accent-2)!important;
  background:linear-gradient(135deg,var(--entry-accent),var(--entry-accent-2))!important;color:#fff!important;
  font-size:16px;font-weight:800;box-shadow:0 8px 18px rgba(10,104,139,.18),inset 0 1px 0 rgba(255,255,255,.22);
}
html[data-market-theme] .login-card .btn-primary:hover,html[data-market-theme] .login-card .btn-primary:focus-visible,
html[data-market-theme] .market-footer-actions .btn-primary:hover,html[data-market-theme] .market-footer-actions .btn-primary:focus-visible,
body[data-market-theme] .login-card .btn-primary:hover,body[data-market-theme] .login-card .btn-primary:focus-visible,
body[data-market-theme] .market-footer-actions .btn-primary:hover,body[data-market-theme] .market-footer-actions .btn-primary:focus-visible{filter:brightness(1.05);transform:translateY(-1px)}
html[data-market-theme] .market-grid,body[data-market-theme] .market-grid{gap:14px}
html[data-market-theme] .market-choice,body[data-market-theme] .market-choice{
  min-height:78px;padding:15px 16px;background:var(--entry-surface)!important;color:var(--entry-text)!important;
  border:1px solid var(--entry-border)!important;border-radius:17px;box-shadow:inset 0 1px 0 rgba(255,255,255,.65);touch-action:manipulation;
}
html[data-market-theme] .market-choice strong,body[data-market-theme] .market-choice strong{color:var(--entry-text)!important;font-size:18px;line-height:1.25}
html[data-market-theme] .market-choice small,body[data-market-theme] .market-choice small{color:var(--entry-muted)!important;font-size:14px;line-height:1.35}
html[data-market-theme] .market-choice>i,body[data-market-theme] .market-choice>i{color:var(--entry-accent)!important;font-size:18px}
html[data-market-theme] .market-choice-icon,body[data-market-theme] .market-choice-icon{
  width:46px;height:46px;border-radius:15px;background:color-mix(in srgb,var(--entry-accent) 12%,var(--entry-card))!important;color:var(--entry-accent)!important;
}
html[data-market-theme] .market-lao .market-choice-icon,body[data-market-theme] .market-lao .market-choice-icon{background:color-mix(in srgb,var(--entry-accent-2) 14%,var(--entry-card))!important;color:var(--entry-accent-2)!important}
html[data-market-theme] .market-hanoi .market-choice-icon,body[data-market-theme] .market-hanoi .market-choice-icon{background:color-mix(in srgb,#c58b2a 16%,var(--entry-card))!important;color:#a56712!important}
html[data-market-theme] .market-choice:hover,html[data-market-theme] .market-choice:focus-visible,html[data-market-theme] .market-choice.active,
body[data-market-theme] .market-choice:hover,body[data-market-theme] .market-choice:focus-visible,body[data-market-theme] .market-choice.active{
  background:linear-gradient(135deg,var(--entry-accent),var(--entry-accent-2))!important;color:#fff!important;border-color:var(--entry-accent-2)!important;
  box-shadow:0 0 0 .24rem color-mix(in srgb,var(--entry-accent-2) 19%,transparent),0 10px 22px rgba(10,104,139,.16);
}
html[data-market-theme] .market-choice:hover strong,html[data-market-theme] .market-choice:hover small,html[data-market-theme] .market-choice:hover>i,
html[data-market-theme] .market-choice:focus-visible strong,html[data-market-theme] .market-choice:focus-visible small,html[data-market-theme] .market-choice:focus-visible>i,
html[data-market-theme] .market-choice.active strong,html[data-market-theme] .market-choice.active small,html[data-market-theme] .market-choice.active>i,
body[data-market-theme] .market-choice:hover strong,body[data-market-theme] .market-choice:hover small,body[data-market-theme] .market-choice:hover>i,
body[data-market-theme] .market-choice:focus-visible strong,body[data-market-theme] .market-choice:focus-visible small,body[data-market-theme] .market-choice:focus-visible>i,
body[data-market-theme] .market-choice.active strong,body[data-market-theme] .market-choice.active small,body[data-market-theme] .market-choice.active>i{color:#fff!important}
html[data-market-theme] .market-footer,body[data-market-theme] .market-footer{border-top-color:var(--entry-border)!important}
html[data-market-theme] .market-language-picker,body[data-market-theme] .market-language-picker{
  min-height:46px;padding:7px 10px;border:1px solid var(--entry-border);border-radius:14px;background:var(--entry-surface);color:var(--entry-text)!important;
}
html[data-market-theme] .market-language-picker select,body[data-market-theme] .market-language-picker select{
  min-height:30px;background:var(--entry-surface)!important;color:var(--entry-text)!important;border-color:var(--entry-border)!important;font-size:15px;
}
html[data-market-theme] .market-footer-actions .btn,body[data-market-theme] .market-footer-actions .btn{min-height:46px;border-radius:14px;font-size:15px;font-weight:750}

/* Dark mode keeps the same readable material treatment without a white cast. */
html[data-market-theme="teex7x-dark"] #loginScreen,body[data-market-theme="teex7x-dark"] #loginScreen{background:var(--entry-screen-bg)!important}
html[data-market-theme="teex7x-dark"] .login-card,body[data-market-theme="teex7x-dark"] .login-card,
html[data-market-theme="teex7x-dark"] #marketScreen .market-card,body[data-market-theme="teex7x-dark"] #marketScreen .market-card{
  background:#171c24!important;border-color:#46657b!important;box-shadow:0 24px 64px rgba(0,0,0,.46),inset 0 1px 0 rgba(151,222,255,.1);
}
html[data-market-theme="teex7x-dark"] .login-card .form-control,body[data-market-theme="teex7x-dark"] .login-card .form-control,
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice,body[data-market-theme="teex7x-dark"] #marketScreen .market-choice,
html[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker,body[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker{
  background:#111b27!important;color:#edf4ff!important;border-color:#46657b!important;
}
html[data-market-theme="teex7x-dark"] #marketScreen .market-choice small,body[data-market-theme="teex7x-dark"] #marketScreen .market-choice small,
html[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker select,body[data-market-theme="teex7x-dark"] #marketScreen .market-language-picker select{color:#b7c7d9!important}

@media(max-width:576px){
  html[data-market-theme] .login-screen,html[data-market-theme] .market-screen,body[data-market-theme] .login-screen,body[data-market-theme] .market-screen{padding:16px 12px}
  html[data-market-theme] .login-card,html[data-market-theme] .market-card,body[data-market-theme] .login-card,body[data-market-theme] .market-card{padding:24px 18px;border-radius:22px}
  html[data-market-theme] .market-choice,body[data-market-theme] .market-choice{min-height:74px;padding:14px 13px}
  html[data-market-theme] .market-choice strong,body[data-market-theme] .market-choice strong{font-size:17px}
  html[data-market-theme] .market-choice small,body[data-market-theme] .market-choice small{font-size:13px}
  html[data-market-theme] .market-footer,body[data-market-theme] .market-footer{align-items:stretch;gap:12px}
  html[data-market-theme] .market-footer-actions,body[data-market-theme] .market-footer-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
  html[data-market-theme] .market-footer-actions .market-language-picker,body[data-market-theme] .market-footer-actions .market-language-picker{grid-column:1/-1;width:100%}
  html[data-market-theme] .market-footer-actions .btn,body[data-market-theme] .market-footer-actions .btn{width:100%;min-width:0}
}

/* Keep the crisp white canvas on light themes. The theme tint belongs to the
   Liquid Glass cards and controls, not to the page background. */
html[data-market-theme="blue"] #loginScreen,body[data-market-theme="blue"] #loginScreen,
html[data-market-theme="blue"] #marketScreen,body[data-market-theme="blue"] #marketScreen,
html[data-market-theme="gray"] #loginScreen,body[data-market-theme="gray"] #loginScreen,
html[data-market-theme="gray"] #marketScreen,body[data-market-theme="gray"] #marketScreen,
html[data-market-theme="nexora"] #loginScreen,body[data-market-theme="nexora"] #loginScreen,
html[data-market-theme="nexora"] #marketScreen,body[data-market-theme="nexora"] #marketScreen,
html[data-market-theme="teal"] #loginScreen,body[data-market-theme="teal"] #loginScreen,
html[data-market-theme="teal"] #marketScreen,body[data-market-theme="teal"] #marketScreen{
  background:#fff!important;
}
html[data-market-theme="blue"] #loginScreen::before,html[data-market-theme="blue"] #loginScreen::after,
html[data-market-theme="gray"] #loginScreen::before,html[data-market-theme="gray"] #loginScreen::after,
html[data-market-theme="nexora"] #loginScreen::before,html[data-market-theme="nexora"] #loginScreen::after,
html[data-market-theme="teal"] #loginScreen::before,html[data-market-theme="teal"] #loginScreen::after,
body[data-market-theme="blue"] #loginScreen::before,body[data-market-theme="blue"] #loginScreen::after,
body[data-market-theme="gray"] #loginScreen::before,body[data-market-theme="gray"] #loginScreen::after,
body[data-market-theme="nexora"] #loginScreen::before,body[data-market-theme="nexora"] #loginScreen::after,
body[data-market-theme="teal"] #loginScreen::before,body[data-market-theme="teal"] #loginScreen::after{
  opacity:.12;
}

/* Theme-specific opaque glass for the authenticated app. Keep the canvas
   white on light themes, but tint cards, form fields, and borders from the
   same palette used by the Sidebar. This prevents every theme falling back to
   the same white surface while keeping the text crisp. */
html[data-market-theme="blue"]{
  --surface:#f3f7fc;--surface-soft:#eaf2fb;--border:#bfd2e7;--text:#15324d;--muted:#536b84;
  --entry-card:#f3f7fc;--entry-surface:#eaf2fb;--entry-border:#bfd2e7;--entry-text:#15324d;--entry-muted:#536b84;
}
html[data-market-theme="gray"]{
  --surface:#f1f3f6;--surface-soft:#e8ecf1;--border:#c8d0da;--text:#293548;--muted:#5b6878;
  --entry-card:#f1f3f6;--entry-surface:#e8ecf1;--entry-border:#c8d0da;--entry-text:#293548;--entry-muted:#5b6878;
}
html[data-market-theme="nexora"]{
  --surface:#edf7f7;--surface-soft:#e3f2f2;--border:#a8d4d5;--text:#103650;--muted:#537084;
  --entry-card:#edf7f7;--entry-surface:#e3f2f2;--entry-border:#a8d4d5;--entry-text:#103650;--entry-muted:#537084;
}
html[data-market-theme="teal"]{
  --surface:#e7f7f4;--surface-soft:#dff1ee;--border:#9fd5ce;--text:#083b48;--muted:#4c7078;
  --entry-card:#e7f7f4;--entry-surface:#dff1ee;--entry-border:#9fd5ce;--entry-text:#083b48;--entry-muted:#4c7078;
}
html[data-market-theme="teex7x-dark"]{
  --surface:#171c24;--surface-soft:#111b27;--border:#46657b;--text:#edf4ff;--muted:#b7c7d9;
  --entry-card:#171c24;--entry-surface:#111b27;--entry-border:#46657b;--entry-text:#edf4ff;--entry-muted:#b7c7d9;
}

html[data-market-theme="blue"] .card,html[data-market-theme="gray"] .card,
html[data-market-theme="nexora"] .card,html[data-market-theme="teal"] .card,
html[data-market-theme="teex7x-dark"] .card{
  background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important;
  box-shadow:0 14px 34px rgba(8,28,53,.09),inset 0 1px 0 rgba(255,255,255,.62);
  -webkit-backdrop-filter:blur(8px) saturate(115%);backdrop-filter:blur(8px) saturate(115%);
}
html[data-market-theme="blue"] .card-header,html[data-market-theme="blue"] .card-footer,
html[data-market-theme="gray"] .card-header,html[data-market-theme="gray"] .card-footer,
html[data-market-theme="nexora"] .card-header,html[data-market-theme="nexora"] .card-footer,
html[data-market-theme="teal"] .card-header,html[data-market-theme="teal"] .card-footer,
html[data-market-theme="teex7x-dark"] .card-header,html[data-market-theme="teex7x-dark"] .card-footer{
  background:var(--surface-soft)!important;color:var(--text)!important;border-color:var(--border)!important;
}
html[data-market-theme="blue"] .card-body,html[data-market-theme="gray"] .card-body,
html[data-market-theme="nexora"] .card-body,html[data-market-theme="teal"] .card-body,
html[data-market-theme="teex7x-dark"] .card-body{
  background:var(--surface)!important;color:var(--text)!important;
}
html[data-market-theme="blue"] .form-control,html[data-market-theme="blue"] .form-select,
html[data-market-theme="gray"] .form-control,html[data-market-theme="gray"] .form-select,
html[data-market-theme="nexora"] .form-control,html[data-market-theme="nexora"] .form-select,
html[data-market-theme="teal"] .form-control,html[data-market-theme="teal"] .form-select,
html[data-market-theme="teex7x-dark"] .form-control,html[data-market-theme="teex7x-dark"] .form-select{
  background:var(--surface-soft)!important;color:var(--text)!important;border-color:var(--border)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.48);
}
html[data-market-theme="blue"] .form-control::placeholder,html[data-market-theme="blue"] .form-select::placeholder,
html[data-market-theme="gray"] .form-control::placeholder,html[data-market-theme="gray"] .form-select::placeholder,
html[data-market-theme="nexora"] .form-control::placeholder,html[data-market-theme="nexora"] .form-select::placeholder,
html[data-market-theme="teal"] .form-control::placeholder,html[data-market-theme="teal"] .form-select::placeholder,
html[data-market-theme="teex7x-dark"] .form-control::placeholder,html[data-market-theme="teex7x-dark"] .form-select::placeholder{color:var(--muted)!important;opacity:1}
html[data-market-theme="blue"] .form-control:focus,html[data-market-theme="blue"] .form-select:focus,
html[data-market-theme="gray"] .form-control:focus,html[data-market-theme="gray"] .form-select:focus,
html[data-market-theme="nexora"] .form-control:focus,html[data-market-theme="nexora"] .form-select:focus,
html[data-market-theme="teal"] .form-control:focus,html[data-market-theme="teal"] .form-select:focus,
html[data-market-theme="teex7x-dark"] .form-control:focus,html[data-market-theme="teex7x-dark"] .form-select:focus{
  border-color:var(--accent,var(--primary))!important;
  box-shadow:0 0 0 .22rem color-mix(in srgb,var(--accent,var(--primary)) 20%,transparent)!important;
}

/* Keep paper/export previews white; only the live application surfaces follow
   the active workspace theme. */
html[data-market-theme] .settlement-export-card,
html[data-market-theme] .ticket-export-card,
html[data-market-theme] .announcement-poster{background:#fff!important;color:#172033!important}

/* Revert the last over-scoped surface pass. Light themes keep the original
   white cards, fields, borders, and profile menu. Theme color is reserved for
   buttons and their approved active/hover states. */
html[data-market-theme="blue"],html[data-market-theme="gray"],
html[data-market-theme="nexora"],html[data-market-theme="teal"]{
  --surface:#fff;--surface-soft:#fff;--border:#e2e8f0;--text:#172033;--muted:#4d5f73;
  --entry-card:#fff;--entry-surface:#fff;--entry-border:#e2e8f0;--entry-text:#172033;--entry-muted:#4d5f73;
}
html[data-market-theme="blue"] .card,html[data-market-theme="gray"] .card,
html[data-market-theme="nexora"] .card,html[data-market-theme="teal"] .card{
  background:#fff!important;color:#172033!important;border-color:#e2e8f0!important;
  box-shadow:0 8px 25px rgba(15,23,42,.055);
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
html[data-market-theme="blue"] .card-header,html[data-market-theme="blue"] .card-footer,
html[data-market-theme="blue"] .card-body,html[data-market-theme="gray"] .card-header,
html[data-market-theme="gray"] .card-footer,html[data-market-theme="gray"] .card-body,
html[data-market-theme="nexora"] .card-header,html[data-market-theme="nexora"] .card-footer,
html[data-market-theme="nexora"] .card-body,html[data-market-theme="teal"] .card-header,
html[data-market-theme="teal"] .card-footer,html[data-market-theme="teal"] .card-body{
  background:#fff!important;color:#172033!important;border-color:#e2e8f0!important;
}
html[data-market-theme="blue"] .form-control,html[data-market-theme="blue"] .form-select,
html[data-market-theme="gray"] .form-control,html[data-market-theme="gray"] .form-select,
html[data-market-theme="nexora"] .form-control,html[data-market-theme="nexora"] .form-select,
html[data-market-theme="teal"] .form-control,html[data-market-theme="teal"] .form-select{
  background:#fff!important;color:#172033!important;border-color:#e2e8f0!important;box-shadow:none;
}
html[data-market-theme="blue"] .login-card,html[data-market-theme="blue"] .market-card,
html[data-market-theme="gray"] .login-card,html[data-market-theme="gray"] .market-card,
html[data-market-theme="nexora"] .login-card,html[data-market-theme="nexora"] .market-card,
html[data-market-theme="teal"] .login-card,html[data-market-theme="teal"] .market-card{
  background:#fff!important;color:#172033!important;border-color:#e2e8f0!important;
}
html[data-market-theme="blue"] .market-choice,html[data-market-theme="gray"] .market-choice,
html[data-market-theme="nexora"] .market-choice,html[data-market-theme="teal"] .market-choice{
  background:#fff!important;color:#172033!important;border-color:#e2e8f0!important;box-shadow:none;
}

/* Profile menu: restore the original white light-theme surface. The profile
   trigger and action buttons retain their theme-colored button treatment. */
html[data-market-theme="blue"] .navbar .profile-dropdown,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-dropdown-head,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-switch-section,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-language-section,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-mode-buttons,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-impersonation-mode,
html[data-market-theme="gray"] .navbar .profile-dropdown,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-dropdown-head,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-switch-section,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-language-section,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-mode-buttons,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-impersonation-mode,
html[data-market-theme="nexora"] .navbar .profile-dropdown,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-dropdown-head,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-switch-section,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-language-section,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-mode-buttons,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-impersonation-mode,
html[data-market-theme="teal"] .navbar .profile-dropdown,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-dropdown-head,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-switch-section,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-language-section,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-mode-buttons,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-impersonation-mode{
  --bs-dropdown-bg:#fff;background:#fff!important;background-color:#fff!important;
  color:#24324a!important;border-color:#e2e8f0!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;
}
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-switch-control select,
html[data-market-theme="blue"] .navbar .profile-dropdown .profile-switch-control .form-select,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-switch-control select,
html[data-market-theme="gray"] .navbar .profile-dropdown .profile-switch-control .form-select,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-switch-control select,
html[data-market-theme="nexora"] .navbar .profile-dropdown .profile-switch-control .form-select,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-switch-control select,
html[data-market-theme="teal"] .navbar .profile-dropdown .profile-switch-control .form-select{
  background:#fff!important;color:#24324a!important;border-color:#dbe4ef!important;
}

/* Final surface reset for light themes. Keep the original white material for
   cards, fields, borders, and utility panels; theme color belongs to buttons
   and selected/hover states only. Midnight remains intentionally dark. */
html[data-market-theme="blue"],
html[data-market-theme="gray"],
html[data-market-theme="nexora"],
html[data-market-theme="teal"],
body[data-market-theme="blue"],
body[data-market-theme="gray"],
body[data-market-theme="nexora"],
body[data-market-theme="teal"]{
  --surface:#fff!important;
  --surface-soft:#fff!important;
  --border:#e2e8f0!important;
  --text:#172033!important;
  --muted:#4d5f73!important;
  --entry-card:#fff!important;
  --entry-surface:#fff!important;
  --entry-border:#e2e8f0!important;
  --entry-text:#172033!important;
  --entry-muted:#4d5f73!important;
}
html[data-market-theme="blue"] .card,
html[data-market-theme="gray"] .card,
html[data-market-theme="nexora"] .card,
html[data-market-theme="teal"] .card,
body[data-market-theme="blue"] .card,
body[data-market-theme="gray"] .card,
body[data-market-theme="nexora"] .card,
body[data-market-theme="teal"] .card{
  background:#fff!important;
  color:#172033!important;
  border-color:#e2e8f0!important;
  box-shadow:0 8px 25px rgba(15,23,42,.055)!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}
html[data-market-theme="blue"] .card-header,
html[data-market-theme="blue"] .card-body,
html[data-market-theme="blue"] .card-footer,
html[data-market-theme="gray"] .card-header,
html[data-market-theme="gray"] .card-body,
html[data-market-theme="gray"] .card-footer,
html[data-market-theme="nexora"] .card-header,
html[data-market-theme="nexora"] .card-body,
html[data-market-theme="nexora"] .card-footer,
html[data-market-theme="teal"] .card-header,
html[data-market-theme="teal"] .card-body,
html[data-market-theme="teal"] .card-footer,
body[data-market-theme="blue"] .card-header,
body[data-market-theme="blue"] .card-body,
body[data-market-theme="blue"] .card-footer,
body[data-market-theme="gray"] .card-header,
body[data-market-theme="gray"] .card-body,
body[data-market-theme="gray"] .card-footer,
body[data-market-theme="nexora"] .card-header,
body[data-market-theme="nexora"] .card-body,
body[data-market-theme="nexora"] .card-footer,
body[data-market-theme="teal"] .card-header,
body[data-market-theme="teal"] .card-body,
body[data-market-theme="teal"] .card-footer{
  background:#fff!important;
  color:#172033!important;
  border-color:#e2e8f0!important;
}
html[data-market-theme="blue"] .form-control,
html[data-market-theme="blue"] .form-select,
html[data-market-theme="gray"] .form-control,
html[data-market-theme="gray"] .form-select,
html[data-market-theme="nexora"] .form-control,
html[data-market-theme="nexora"] .form-select,
html[data-market-theme="teal"] .form-control,
html[data-market-theme="teal"] .form-select,
body[data-market-theme="blue"] .form-control,
body[data-market-theme="blue"] .form-select,
body[data-market-theme="gray"] .form-control,
body[data-market-theme="gray"] .form-select,
body[data-market-theme="nexora"] .form-control,
body[data-market-theme="nexora"] .form-select,
body[data-market-theme="teal"] .form-control,
body[data-market-theme="teal"] .form-select{
  background:#fff!important;
  color:#172033!important;
  border-color:#e2e8f0!important;
  box-shadow:none!important;
}
html[data-market-theme="blue"] #settlement .page-heading-actions,
html[data-market-theme="gray"] #settlement .page-heading-actions,
html[data-market-theme="nexora"] #settlement .page-heading-actions,
html[data-market-theme="teal"] #settlement .page-heading-actions,
body[data-market-theme="blue"] #settlement .page-heading-actions,
body[data-market-theme="gray"] #settlement .page-heading-actions,
body[data-market-theme="nexora"] #settlement .page-heading-actions,
body[data-market-theme="teal"] #settlement .page-heading-actions{
  background:rgba(255,255,255,.94)!important;
  border-color:#e2e8f0!important;
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
}
html[data-market-theme="blue"] .admin-center-card .card-header,
html[data-market-theme="gray"] .admin-center-card .card-header,
html[data-market-theme="nexora"] .admin-center-card .card-header,
html[data-market-theme="teal"] .admin-center-card .card-header,
body[data-market-theme="blue"] .admin-center-card .card-header,
body[data-market-theme="gray"] .admin-center-card .card-header,
body[data-market-theme="nexora"] .admin-center-card .card-header,
body[data-market-theme="teal"] .admin-center-card .card-header{
  background:#fff!important;
}

/* Mobile Navi performance pass only. Keep the Sidebar and function buttons
   unchanged; make the top navigation cheaper to composite and touch. */
@media (max-width:992px){
  html[data-market-theme="blue"] .navbar,
  html[data-market-theme="gray"] .navbar,
  html[data-market-theme="nexora"] .navbar,
  html[data-market-theme="teal"] .navbar,
  body[data-market-theme="blue"] .navbar,
  body[data-market-theme="gray"] .navbar,
  body[data-market-theme="nexora"] .navbar,
  body[data-market-theme="teal"] .navbar{
    background:#fff!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    box-shadow:0 2px 8px rgba(15,23,42,.08)!important;
  }
  html[data-market-theme="teex7x-dark"] .navbar,
  body[data-market-theme="teex7x-dark"] .navbar{
    background:#0c1d2d!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    box-shadow:0 2px 8px rgba(0,0,0,.28)!important;
  }
  html[data-market-theme] .navbar-page .quick-nav,
  body[data-market-theme] .navbar-page .quick-nav{
    background:#fff!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
    box-shadow:0 2px 8px rgba(15,23,42,.08)!important;
    touch-action:pan-x;
  }
  html[data-market-theme="teex7x-dark"] .navbar-page .quick-nav,
  body[data-market-theme="teex7x-dark"] .navbar-page .quick-nav{
    background:#12283c!important;
    box-shadow:0 2px 8px rgba(0,0,0,.28)!important;
  }
  html[data-market-theme] .navbar-page .quick-nav-item,
  body[data-market-theme] .navbar-page .quick-nav-item{
    transition:background-color .1s ease,color .1s ease,border-color .1s ease!important;
    transform:none!important;
    box-shadow:none!important;
  }
  html[data-market-theme] .navbar-page .quick-nav-item:hover,
  html[data-market-theme] .navbar-page .quick-nav-item:focus-visible,
  body[data-market-theme] .navbar-page .quick-nav-item:hover,
  body[data-market-theme] .navbar-page .quick-nav-item:focus-visible{
    transform:none!important;
    box-shadow:none!important;
  }
}
