
:root{
 --navy:#12304a;--navy-2:#173f61;--blue:#1769aa;--blue-2:#0d5c99;
 --sky:#eaf4fb;--green:#147d52;--green-bg:#e9f7ef;--red:#b42335;--red-bg:#fff0f1;
 --amber:#b7791f;--bg:#f4f7fb;--surface:#fff;--ink:#1b2b3a;--muted:#65788b;
 --border:#d9e3ec;--shadow:0 5px 18px rgba(23,55,82,.06);--radius:14px
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);font-family:Inter,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);line-height:1.5;font-size:14px}
header{position:relative;display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:0;z-index:50;background:linear-gradient(115deg,#103654 0%,#135f94 58%,#1677b5 100%);color:#fff;box-shadow:0 5px 18px rgba(16,54,84,.17)}
header h1{display:flex;align-items:center;gap:14px;padding:16px 24px 8px;min-height:66px;font-size:clamp(21px,2.6vw,30px);letter-spacing:.25px;margin:0;font-weight:800}
header h2{margin:0;padding:0 24px 16px 80px;text-align:left;font-size:12px;font-weight:600;letter-spacing:1.5px;opacity:.88}
.brand-title{display:inline-block}
.header-menu-toggle{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;min-height:42px;padding:0;border:1px solid #ffffff55;border-radius:10px;background:#ffffff15;color:#fff;font-size:23px;flex:0 0 42px}
.header-menu-toggle:hover{background:#ffffff2a}
main{position:relative;max-width:1400px;margin:0 auto;padding:22px}
.toolbar,.panel,.metric,.reportbox,.entry-actions-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}
.toolbar{display:flex;gap:14px;align-items:end;flex-wrap:wrap;padding:18px;margin-bottom:20px}
.control{flex:1;min-width:180px}
label{display:block;font-weight:700;font-size:12px;margin:0 0 7px;color:#3c5368;letter-spacing:.15px}
input,select,textarea{font:inherit;width:100%;padding:11px 12px;border:1px solid #cbd8e4;border-radius:9px;background:#fff;min-height:42px;color:var(--ink);transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:#4c9bd2;box-shadow:0 0 0 3px #d9efff}
input[readonly]{background:#f2f6f9;color:#526678}
button{font:inherit;font-weight:700;border:1px solid transparent;border-radius:9px;padding:10px 15px;background:var(--blue);color:white;cursor:pointer;min-height:41px;transition:transform .12s,filter .12s,box-shadow .12s}
button:hover{filter:brightness(1.04);box-shadow:0 3px 9px #12304a16}
button:active{transform:translateY(1px)}
button:focus-visible{outline:3px solid #9bd5ff;outline-offset:2px}
button.green{background:var(--green)}button.gray{background:#52697d}button.red{background:var(--red)}button.light{background:#edf3f8;color:#29465f;border-color:#d9e4ed}
h3{margin:0 0 15px;font-size:17px;color:var(--navy);font-weight:800;letter-spacing:.05px}
.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:132px;align-items:stretch;gap:14px;margin-bottom:16px}
.metric{box-sizing:border-box;height:132px;min-height:132px;padding:15px;min-width:0;border-top:4px solid var(--blue);position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:center}
.metric.green{border-top-color:var(--green)}.metric.red{border-top-color:var(--red)}
.metric .name{font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.55px;line-height:1.3}
.metric .num{font-size:clamp(21px,2.2vw,29px);font-weight:800;line-height:1.2;margin-top:8px;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.metric.green .num{color:var(--green)}.metric.red .num{color:var(--red)}
.grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:16px;align-items:start}
.panel{padding:20px;margin-bottom:16px;min-width:0}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.full{grid-column:1/-1}
.subhead{background:#edf5fb;padding:10px 13px;border-radius:8px;color:#1a5279;font-weight:800;margin:17px 0 12px;border-left:4px solid #2584bd}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.note{font-size:12px;color:var(--muted);line-height:1.55;margin:9px 0}
details{border:1px solid var(--border);border-radius:10px;padding:12px;margin-top:14px;background:#fbfdff}
summary{font-weight:750;color:var(--navy);cursor:pointer;padding:3px}
.reporthead{background:#edf5fb;color:#153d5d;padding:14px 16px;font-weight:800;letter-spacing:.35px;border-bottom:1px solid var(--border)}
.reportbox{overflow:hidden;margin-bottom:16px}
.tablewrap{width:100%;overflow-x:auto}
table{border-collapse:collapse;width:100%;min-width:0;table-layout:fixed;background:#fff}
th,td{padding:10px 9px;border-bottom:1px solid #e7edf3;text-align:left;font-size:12px;overflow-wrap:anywhere}
th{background:#f7f9fc;color:#38536b;font-weight:800;text-transform:uppercase;letter-spacing:.25px;font-size:10px}
td.num{text-align:right;font-variant-numeric:tabular-nums;font-weight:700}
tbody tr:hover{background:#f8fbfd}
tr.total td{font-weight:800;background:var(--green-bg)}tr.expense td:last-child{color:var(--red)}
.status{font-size:13px;margin-top:11px;color:var(--green);font-weight:750;min-height:18px;padding:0 2px}
.history button{padding:7px 10px;min-height:32px;font-size:11px}
.daily-table tr.date-group-start td{border-top:3px solid #b8d8eb;background:#f0f7fc;padding-top:12px}
.daily-table tr.date-group-start td:first-child{font-weight:800;color:#155b87;white-space:nowrap}
.history-table{min-width:720px!important;width:720px;table-layout:fixed;border-collapse:collapse}
.history-table td{vertical-align:middle;padding:7px 6px}.history-table th{padding:8px 6px;font-size:10px;white-space:nowrap;text-align:left}.history-table th:nth-child(n+3):nth-child(-n+6){text-align:right}.history-table th:last-child,.history-table td:last-child{text-align:center}.history-table td.num{text-align:right}.history-table td:last-child{padding-right:5px}.history-table button{padding:6px 8px;min-height:30px;font-size:10px}
.history-table td.num{white-space:nowrap}
.history-table td:last-child{white-space:nowrap}
.history-table .date-cell{font-weight:800;color:#155b87;white-space:nowrap}
.history-table .closing-cell{color:#147d52;font-weight:800}

/* Expenses page: compact, readable table and tidy actions on phones */
.expense-grand-total{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:0;margin:0 0 16px;padding:12px 8px;background:linear-gradient(135deg,#f1f8fc,#ffffff);border:1px solid #cfe0ea;border-top:4px solid #078354;border-radius:15px;box-shadow:0 5px 16px rgba(24,66,91,.08)}.expense-grand-total>div{min-width:0;padding:8px 12px;display:flex;flex-direction:column;justify-content:center;border-right:1px solid #d8e5ed}.expense-grand-total>div:last-child{border-right:0}.expense-grand-total>div:first-child{background:linear-gradient(145deg,#e4f8ef,#f7fffb);border-radius:10px}.expense-grand-total span{display:block;color:#536879;font-size:11px;font-weight:800;line-height:1.35;margin-bottom:7px}.expense-grand-total strong{display:block;color:#0879ae;font-size:18px;font-weight:850;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.expense-grand-total>div:first-child strong{color:#078354;font-size:23px}
#tdLoginGate .td-card,#tdLoginGate .td-field,#tdLoginGate input,#tdLoginGate button{box-sizing:border-box}
#tdLoginGate #tdForgotPanel label{display:block;text-align:left;margin:18px 0 8px;font-weight:700;color:#12304a}
#tdLoginGate #tdForgotPanel input{display:block;width:100%;min-height:58px;border:1px solid #dce9f1;border-radius:14px;background:#f5fbfe;padding:14px 16px;font:inherit;color:#12304a;outline:none}
#tdLoginGate #tdForgotPanel input:focus{border-color:#159bc1;box-shadow:0 0 0 3px rgba(21,155,193,.12)}
#tdLoginGate #tdForgotPanel button:not(.td-link){display:block;width:100%;min-height:58px;border:0;border-radius:14px;background:linear-gradient(105deg,#12304a,#087eae);color:#fff;font-size:16px;font-weight:700;padding:12px 16px;margin-top:16px;cursor:pointer}
@media(max-width:480px){.expense-grand-total{grid-template-columns:1.15fr 1fr 1fr;padding:8px 4px;border-radius:12px}.expense-grand-total>div{padding:8px 6px}.expense-grand-total span{font-size:10px;line-height:1.25;margin-bottom:6px}.expense-grand-total strong{font-size:13px}.expense-grand-total>div:first-child strong{font-size:17px}}
[data-page-panel="expenses"] .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
[data-page-panel="expenses"] #expenseRows td{vertical-align:middle;padding:9px 8px;white-space:normal}
[data-page-panel="expenses"] #expenseRows tr{border-bottom:2px solid #dce8f0}
[data-page-panel="expenses"] #expenseRows td:first-child{background:#eaf5fc;border-left:4px solid #0879ae}
[data-page-panel="expenses"] #expenseRows td:nth-child(2){text-align:left}
[data-page-panel="expenses"] #expenseRows td:nth-child(5){font-weight:800;color:#087c56}
[data-page-panel="expenses"] #expenseRows td:last-child{min-width:132px}
[data-page-panel="expenses"] #expenseRows td:first-child{white-space:nowrap;font-weight:700;color:#155b87}
[data-page-panel="expenses"] #expenseRows td:nth-child(3),
[data-page-panel="expenses"] #expenseRows td:nth-child(4),
[data-page-panel="expenses"] #expenseRows td:nth-child(5){white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
[data-page-panel="expenses"] #expenseRows td:last-child{white-space:nowrap;min-width:132px}
[data-page-panel="expenses"] #expenseRows td:last-child button{display:inline-flex;align-items:center;justify-content:center;min-width:54px;padding:7px 9px;min-height:34px;margin:2px;font-size:11px;white-space:nowrap}
[data-page-panel="expenses"] table{min-width:650px;table-layout:auto}
@media(max-width:560px){[data-page-panel="expenses"] .panel{padding:14px}[data-page-panel="expenses"] h3{font-size:16px}[data-page-panel="expenses"] table{min-width:0!important;width:100%;border-collapse:separate;border-spacing:0 9px;table-layout:fixed}[data-page-panel="expenses"] thead{display:none}[data-page-panel="expenses"] #expenseRows tr{display:grid;grid-template-columns:1fr 1fr;background:#fff;border:1px solid #d8e5ed;border-radius:10px;overflow:hidden;margin-bottom:10px;box-shadow:0 2px 7px rgba(20,55,80,.05)}[data-page-panel="expenses"] #expenseRows td{display:flex;flex-direction:column;gap:4px;box-sizing:border-box;padding:9px 10px!important;font-size:12px!important;text-align:left!important;white-space:normal!important;min-width:0;border-bottom:1px solid #edf1f4}[data-page-panel="expenses"] #expenseRows td:before{content:attr(data-label);font-size:10px;font-weight:800;letter-spacing:.3px;color:#667b8a;text-transform:uppercase}[data-page-panel="expenses"] #expenseRows td:first-child{grid-column:1/-1;display:block;font-size:14px!important;padding:11px 12px!important;background:#eaf5fc;border-left:4px solid #0879ae;border-bottom:1px solid #cfe4f2}[data-page-panel="expenses"] #expenseRows td:first-child:before{content:'EXPENSE DATE';display:block;margin-bottom:3px;font-size:10px;color:#496779}[data-page-panel="expenses"] #expenseRows td:last-child{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;gap:8px;min-width:0;border-bottom:0}[data-page-panel="expenses"] #expenseRows td:last-child:before{content:'ACTIONS';margin-right:auto}[data-page-panel="expenses"] #expenseRows td:last-child button{min-width:65px;padding:8px 12px;font-size:12px}}
@media(max-width:560px){.history .tablewrap{overflow-x:auto!important;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}.history-table{min-width:720px!important;width:720px!important;table-layout:fixed!important;border-collapse:collapse}.history-table thead{display:table-header-group!important}.history-table,.history-table tbody{display:table!important;width:720px!important}.history-table tbody tr{display:table-row!important;border:0!important;border-radius:0!important;margin:0!important;overflow:visible!important;box-shadow:none!important;background:#fff}.history-table th,.history-table td{display:table-cell!important;box-sizing:border-box;padding:7px 6px!important;white-space:nowrap!important;text-align:left!important;font-size:11px!important;vertical-align:middle}.history-table th:nth-child(n+3):nth-child(-n+6){text-align:right!important}.history-table th:last-child,.history-table td:last-child{text-align:center!important}.history-table tbody td:before{content:none!important}.history-table tbody td.num{text-align:right!important;font-variant-numeric:tabular-nums;font-weight:800}.history-table tbody td:last-child{white-space:nowrap!important}.history-table tbody td .light,.history-table tbody td .red{min-width:58px}.history-table tbody tr:nth-child(even){background:#f6fafc}}
.empty{text-align:center;color:var(--muted);padding:25px}
.entry-first-banner{background:#eaf4fb;color:#17496d;border:1px solid #d1e7f5;border-left:4px solid var(--blue);border-radius:10px;padding:13px 15px;margin:0 0 14px;font-size:13px;font-weight:750}
.entry-actions-panel{padding:18px;margin-top:14px}
.summary-cards-section{margin:0 0 20px}
.section-title{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 2px 13px}
.section-title h3{margin:0}.section-caption{font-size:12px;color:var(--muted)}
.closing-total{background:#eff9f3;border-top-color:var(--green)}.card-hint{display:none}
.closing-breakdown-card .num{margin-top:4px}.closing-breakdown{display:flex;justify-content:space-between;gap:8px;margin-top:5px;font-size:10px;line-height:1.15;min-width:0}.closing-breakdown>div{display:flex;flex-direction:column;min-width:0;gap:2px}.closing-breakdown span{color:var(--muted);font-weight:700}.closing-breakdown strong{color:var(--green);font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.closing-breakdown-card{justify-content:center}
.expense-breakdown{display:flex;justify-content:space-between;gap:8px;margin-top:5px;font-size:10px;line-height:1.15;min-width:0}.expense-breakdown>div{display:flex;flex-direction:column;min-width:0;gap:2px}.expense-breakdown span{color:var(--muted);font-weight:700}.expense-breakdown strong{color:var(--red);font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.side-nav{position:absolute;top:100%;left:0;width:min(300px,88vw);margin:0;display:block;z-index:1000}
.side-menu{display:none;flex-direction:column;gap:4px;width:100%;max-height:calc(100vh - 160px);overflow-y:auto;background:#fff;border:1px solid var(--border);border-radius:0 0 12px 12px;padding:10px;box-shadow:0 14px 30px rgba(15,42,65,.22)}
.side-nav.open .side-menu{display:flex}
.side-item{display:flex;align-items:center;gap:11px;width:100%;text-align:left;background:transparent;color:#29465f;border:1px solid transparent;padding:12px 13px;min-height:44px}
.side-item:hover{background:#f3f8fc;box-shadow:none}
.side-item.active{background:#eaf4fb;color:#12558a;border-color:#cfe4f2}
.nav-icon{display:inline-flex;width:24px;justify-content:center;font-weight:800;font-size:17px}
.app-page{display:none;min-width:0;animation:fadeIn .14s ease-in}.app-page.active{display:block}
@keyframes fadeIn{from{opacity:.8}to{opacity:1}}
@media(max-width:900px){main{padding:14px}.grid{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:124px}.metric{height:124px;min-height:124px;padding:13px}}
@media(max-width:560px){.metrics{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:112px;gap:9px}.metric{height:112px;min-height:112px;padding:10px}.metric .name{font-size:10px;letter-spacing:.25px}.metric .num{font-size:clamp(18px,5vw,24px);margin-top:6px}
 main{padding:10px}
 header h1{padding:12px 12px 7px;gap:10px;font-size:20px;min-height:58px}
 header h2{padding:0 12px 12px 64px;font-size:10px}
 .header-menu-toggle{width:38px;height:38px;min-height:38px;flex-basis:38px}
 .toolbar,.panel,.entry-actions-panel{padding:13px;border-radius:11px}
 .toolbar{gap:10px}
 .control{min-width:calc(50% - 6px)}
 .fields{gap:10px}
 input,select,textarea{padding:10px;font-size:13px;min-height:40px}
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .metric{padding:12px;border-radius:11px}
 .metric .name{font-size:9px;letter-spacing:.45px}
 .metric .num{font-size:19px;margin-top:7px}
 .actions button{flex:1 1 auto}
 h3{font-size:16px}
 .section-title{align-items:flex-start;flex-direction:column;gap:4px}
 .reporthead{padding:12px;font-size:12px}
 th,td{padding:7px 5px;font-size:10px}
 .history table{min-width:900px!important}
 .daily-table tr.date-group-start td{border-top-width:4px;padding-top:11px}
 .history .note{font-size:11px}
 .entry-first-banner{font-size:12px;padding:11px}
}
@media print{
 body{background:#fff}main{padding:0;max-width:none}
 .toolbar,.entry-area,.history,.no-print,.side-nav,.header-menu-toggle{display:none!important}
 .app-page{display:block!important}
 .metrics{grid-template-columns:repeat(3,1fr)}
 .metric,.reportbox,.panel{box-shadow:none;break-inside:avoid}
 .reportbox{overflow:visible}table{min-width:0}th,td{font-size:10px;padding:5px}
 header{print-color-adjust:exact;-webkit-print-color-adjust:exact}
}

.bill-prefix-input{display:flex;align-items:stretch;width:100%;border:1px solid #cbd8e4;border-radius:9px;overflow:hidden;background:#fff;min-height:42px}
.bill-prefix{display:flex;align-items:center;justify-content:center;padding:0 13px;background:#edf4fa;color:#17496d;font-weight:800;letter-spacing:.4px;border-right:1px solid #d5e1eb}
.bill-prefix-input input{border:0;border-radius:0;box-shadow:none!important;min-width:0;flex:1}
.bill-prefix-input input:focus{outline:none;border:0;box-shadow:inset 0 0 0 2px #4c9bd2!important}

.previous-balance-card{border-top-color:#8b5cc7;background:linear-gradient(180deg,#fff 0%,#fbf8ff 100%)}
.previous-balance-card .num{color:#7042a6}
.previous-breakdown{display:grid;gap:7px;margin-top:12px;padding-top:10px;border-top:1px solid #e8def5}
.previous-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--muted)}
.previous-line strong{color:var(--ink);font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}

/* Card UI fix: prevent labels and amounts from being clipped on small screens */
.metrics{grid-auto-rows:auto;align-items:stretch}
.metric{height:auto;min-height:132px;overflow:visible;justify-content:center;overflow-wrap:anywhere}
.metric .name{white-space:normal;overflow-wrap:anywhere;word-break:normal;hyphens:auto;max-width:100%}
.metric .num{white-space:normal;overflow-wrap:anywhere;word-break:break-word;max-width:100%;font-size:clamp(18px,2vw,27px)}
.previous-breakdown{min-width:0}
.previous-line{flex-wrap:wrap;min-width:0}
.previous-line span{min-width:0;overflow-wrap:anywhere}
.previous-line strong{white-space:normal;overflow-wrap:anywhere;text-align:right}
@media(max-width:900px){.metrics{grid-auto-rows:auto}.metric{height:auto;min-height:124px}}
@media(max-width:560px){.metrics{grid-auto-rows:auto;gap:9px}.metric{height:auto;min-height:112px;padding:12px}.metric .name{font-size:10px;letter-spacing:.15px;line-height:1.35}.metric .num{font-size:clamp(17px,4.6vw,22px);line-height:1.25;margin-top:7px}.previous-balance-card{padding:10px}.previous-breakdown{gap:5px;margin-top:8px;padding-top:8px}.previous-line{font-size:11px;gap:5px}.previous-line strong{font-size:12px}}


/* Refined Saved Daily Entries table: consistent columns, compact spacing, premium look */
.history .reporthead{font-size:15px;padding:15px 18px;background:linear-gradient(100deg,#e8f4fc,#f4f9fd);border-bottom:1px solid #d7e7f2}
.history .note{padding:0 18px;margin:10px 0 12px;font-size:12px}
.history .tablewrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border-top:1px solid #e4edf4}
.history-table{width:840px!important;min-width:840px!important;table-layout:fixed!important;border-collapse:separate;border-spacing:0;background:#fff}
.history-table th{padding:11px 10px!important;background:#edf4fa;color:#34536d;font-size:10px!important;font-weight:800;letter-spacing:.35px;border-bottom:1px solid #dbe7f0;white-space:nowrap!important}
.history-table td{padding:11px 10px!important;border-bottom:1px solid #e8eef4;font-size:12px!important;line-height:1.35;vertical-align:middle;white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
.history-table th:nth-child(1),.history-table td:nth-child(1){text-align:left!important}
.history-table th:nth-child(2),.history-table td:nth-child(2){text-align:left!important}
.history-table th:nth-child(n+3):nth-child(-n+6),.history-table td:nth-child(n+3):nth-child(-n+6){text-align:right!important}
.history-table th:last-child,.history-table td:last-child{text-align:center!important}
.history-table td.num{font-variant-numeric:tabular-nums;font-weight:750}
.history-table .date-cell{font-weight:800;color:#155b87}
.history-table .closing-cell{color:#147d52;font-weight:850}
.history-table tbody tr:nth-child(even){background:#f5f9fc}
.history-table tbody tr:hover{background:#eaf5fc}
.history-table tbody tr:last-child td{border-bottom:0}
.history-table td:last-child{overflow:visible;text-overflow:clip}
.history-table td:last-child button{display:inline-flex;align-items:center;justify-content:center;min-width:58px;padding:7px 10px!important;min-height:32px!important;margin:0 2px;font-size:11px!important;border-radius:9px}
.history-table td:last-child button.light{background:#eaf3fb;border-color:#d6e5f1;color:#244c69}
.history-table td:last-child button.red{background:#c51d3a;color:#fff}
@media(max-width:560px){.history .tablewrap{overflow-x:auto!important}.history-table,.history-table tbody{display:table!important;width:840px!important;min-width:840px!important;table-layout:fixed!important}.history-table thead{display:table-header-group!important}.history-table tbody tr{display:table-row!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important}.history-table th,.history-table td{display:table-cell!important;box-sizing:border-box;padding:10px 9px!important;font-size:11px!important;white-space:nowrap!important;vertical-align:middle!important}.history-table th:nth-child(n+3):nth-child(-n+6),.history-table td:nth-child(n+3):nth-child(-n+6){text-align:right!important}.history-table th:last-child,.history-table td:last-child{text-align:center!important}.history-table tbody td:before{content:none!important}.history-table td:last-child button{min-width:56px!important;padding:7px 8px!important}.history-table tbody tr:nth-child(even){background:#f5f9fc!important}}


/* Staff salary page */
.salary-dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin:14px 0 18px}
.staff-salary-card{background:linear-gradient(145deg,#fff,#f4f9fd);border:1px solid #d7e5ef;border-radius:16px;padding:16px;box-shadow:0 7px 22px rgba(18,48,74,.07);min-width:0}
.staff-salary-card .staff-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}
.staff-salary-card h4{margin:0;color:#12304a;font-size:16px;overflow-wrap:anywhere}
.staff-salary-card .staff-meta{font-size:12px;color:#607487;margin-top:5px}
.staff-salary-card .staff-due{background:#e5f8ef;border:1px solid #b9e8cf;border-radius:12px;padding:12px;margin-top:12px}
.staff-salary-card .staff-due span{display:block;color:#23744e;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}
.staff-salary-card .staff-due strong{display:block;color:#087b4c;font-size:24px;margin-top:4px;font-variant-numeric:tabular-nums}
.staff-card-metrics{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.staff-card-metrics>div{background:#f0f6fa;border-radius:10px;padding:9px;min-width:0}
.staff-card-metrics span{display:block;color:#5e7180;font-size:11px;font-weight:700}
.staff-card-metrics strong{display:block;color:#193e58;font-size:14px;margin-top:4px;overflow-wrap:anywhere}
.salary-page .panel{border-radius:18px}
.salary-page .fields>div{min-width:0}
.salary-page input,.salary-page select{width:100%;min-height:44px;border-radius:10px}
.salary-page .actions{display:flex;flex-wrap:wrap;gap:8px}
.salary-page .table-wrap{border-radius:14px}
.salary-page .salary-table{min-width:760px}
@media(max-width:600px){.salary-dashboard{grid-template-columns:1fr;gap:10px}.staff-salary-card{padding:13px}.staff-salary-card .staff-due strong{font-size:22px}.salary-page .panel{padding:13px}.salary-page .salary-summary{grid-template-columns:1fr}.salary-page .salary-summary>div{border-right:0;border-bottom:1px solid #d8e5ed}.salary-page .salary-summary>div:last-child{border-bottom:0}.salary-page .salary-table{font-size:12px}}
.salary-summary{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:0;margin:0 0 16px;padding:12px 8px;background:linear-gradient(135deg,#f1f8fc,#fff);border:1px solid #cfe0ea;border-top:4px solid #0879ae;border-radius:15px;box-shadow:0 5px 16px rgba(24,66,91,.08)}.salary-summary>div{padding:8px 10px;border-right:1px solid #d8e5ed;min-width:0}.salary-summary>div:last-child{border-right:0}.salary-summary span{display:block;color:#536879;font-size:11px;font-weight:800;margin-bottom:6px}.salary-summary strong{display:block;color:#0879ae;font-size:18px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.salary-summary>div:first-child{background:#e4f8ef;border-radius:10px}.salary-summary>div:first-child strong{color:#078354;font-size:22px}.salary-table td{vertical-align:middle}.salary-table td:last-child{white-space:nowrap}.salary-table button{margin:2px}@media(max-width:480px){.salary-summary{grid-template-columns:1.15fr 1fr 1fr;padding:7px 4px}.salary-summary>div{padding:7px 5px}.salary-summary span{font-size:10px}.salary-summary strong{font-size:13px}.salary-summary>div:first-child strong{font-size:16px}.salary-table{font-size:12px}}


/* Login screen brand/icon visibility fix */
#tdLoginGate .brand-name span { color: var(--sky, #65b6e5) !important; opacity: 1 !important; }
#tdLoginGate .field-wrap .icon-left { color: #318dc2 !important; opacity: 1 !important; }
#tdLoginGate .toggle-password { color: #607d8b !important; opacity: 1 !important; }
#tdLoginGate .toggle-password i { display: inline-block !important; font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }


#tdLoginGate .td-field-icon i{font-family:"Font Awesome 6 Free"!important;font-weight:900!important;display:inline-block!important;line-height:1}
#tdLoginGate .td-eye i{font-family:"Font Awesome 6 Free"!important;font-weight:900!important;display:inline-block!important;line-height:1}
#tdLoginGate .td-login-submit{min-height:64px;border-radius:15px;font-size:17px;letter-spacing:.1px}
#tdLoginGate .td-card{border-radius:22px;border:1px solid #dce9f1;box-shadow:0 14px 38px rgba(18,48,74,.08)}


.monthly-select-control{display:flex;align-items:center;gap:12px;max-width:360px;margin:0 0 18px;padding:12px 14px;background:#f5faff;border:1px solid #d8eaf5;border-radius:12px}
.monthly-select-control label{font-weight:700;color:#23445b;white-space:nowrap}
.monthly-select-control input{min-width:0;flex:1;padding:10px;border:1px solid #cbdce8;border-radius:8px;background:#fff;color:#12304a;font:inherit}
.monthly-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.monthly-compare-card{background:#fff;border:1px solid #d9e8f0;border-radius:15px;padding:16px;box-shadow:0 3px 12px rgba(18,48,74,.045);min-width:0}
.monthly-compare-card h4{margin:0 0 13px;color:#12304a;font-size:16px}
.monthly-compare-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.monthly-compare-values>div{background:#f5f9fc;border-radius:10px;padding:10px;min-width:0}
.monthly-compare-values span{display:block;color:#607789;font-size:12px;margin-bottom:5px}
.monthly-compare-values strong{display:block;color:#12304a;font-size:17px;overflow-wrap:anywhere}
.monthly-compare-values .wide{grid-column:1/-1;background:#eaf5fb}
.monthly-summary-note{margin-top:14px}
@media(max-width:650px){.monthly-compare-grid{grid-template-columns:1fr}.monthly-select-control{align-items:stretch;flex-direction:column;gap:7px}.monthly-compare-values strong{font-size:15px}}


/* ===== Extracted style block ===== */

.expense-keypad{display:none;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:10px;padding:8px;background:#f1f7fb;border:1px solid #d7e5ed;border-radius:12px}.expense-keypad.is-open{display:grid}
.expense-keypad button{min-width:0;padding:9px 4px;border:1px solid #d4e1ea;border-radius:8px;background:#fff;color:#17435a;font-size:15px;font-weight:700;box-shadow:0 1px 2px #0000000a}
.expense-keypad button[data-key="+"]{background:#dff3e9;border-color:#b8e4d0;color:#08784e}
.expense-keypad button[data-key="clear"],.expense-keypad button[data-key="back"]{background:#fff0f1;color:#b00035}
@media(max-width:480px){.expense-keypad{gap:5px;padding:6px}.expense-keypad button{padding:8px 2px;font-size:14px}}


/* ===== Extracted style block ===== */

/* Responsive layout hardening: use the full available viewport */
html,body{width:100%;max-width:100%;overflow-x:hidden}
main{width:100%;max-width:1400px;margin-inline:auto}
.app-page,.salary-page,.salary-page>.panel{width:100%;min-width:0;max-width:100%}
.salary-page{display:none}
.salary-page.active{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;align-items:start}
.salary-page .panel{min-width:0;width:100%;margin:0;padding:clamp(13px,2.5vw,22px)}
.salary-page .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
.salary-page input,.salary-page select{min-width:0;max-width:100%}
.salary-dashboard{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px;margin:12px 0 16px}
.salary-dashboard>*{min-width:0;max-width:100%}
.salary-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border:1px solid #dce8f0;border-top:4px solid #0783a8;border-radius:14px;padding:12px;background:linear-gradient(180deg,#fbfdff,#f5faff);margin:12px 0}
.salary-summary>div{min-width:0;padding:10px;border-radius:9px;background:#fff;border:1px solid #e5edf3}
.salary-summary>div:first-child{background:#e0f8ee}
.salary-summary span{display:block;font-size:10px;line-height:1.35;color:#5c7080;font-weight:800;letter-spacing:.25px;margin-bottom:5px}
.salary-summary strong{display:block;color:#087caa;font-size:clamp(14px,3.5vw,19px);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.salary-summary>div:first-child strong{color:#078153}
.salary-page .table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.salary-page table{width:100%;min-width:720px;table-layout:auto;border-collapse:collapse}
.salary-page .salary-table th,.salary-page .salary-table td{white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
.salary-page .salary-table td:last-child{white-space:nowrap;min-width:125px}
.salary-page .salary-table td:last-child button{margin:2px}
.salary-page .status{overflow-wrap:anywhere}
@media(min-width:900px){
 .salary-page.active{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
 .salary-page.active>.panel:last-child{grid-column:1/-1}
}
@media(max-width:560px){
 main{padding:10px!important}
 .salary-page.active{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .salary-page .panel{padding:13px!important;border-radius:14px}
 .salary-page .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .salary-page .fields>.full{grid-column:1/-1}
 .salary-page h3{font-size:16px;line-height:1.35}
 .salary-page .note{font-size:11px}
 .salary-page .actions{gap:8px}
 .salary-page .actions button{flex:1 1 120px}
 .salary-dashboard{grid-template-columns:minmax(0,1fr)}
 .salary-summary{grid-template-columns:minmax(0,1fr);gap:6px;padding:8px}
 .salary-summary>div{padding:8px 10px}
 .salary-summary>div:first-child strong{font-size:18px}
 .salary-page .table-wrap{margin-top:10px}
 .salary-page table{min-width:700px}
}


/* ===== Extracted style block ===== */
.daily-entry-date-panel{margin-bottom:12px;padding:14px 18px}.daily-entry-date-panel .control{max-width:100%}.daily-entry-date-panel input{width:100%}

/* ===== Extracted style block ===== */

.salary-page,.salary-page *{box-sizing:border-box}.salary-page{width:100%;max-width:100%;overflow:hidden}.salary-page .table-wrap{display:block;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.salary-page .salary-table{width:100%;min-width:760px;table-layout:auto}.salary-page .salary-table th,.salary-page .salary-table td{padding:10px 9px;white-space:nowrap}.salary-page .salary-table .salary-date-group td{background:#e7f3fb;color:#12445e;font-weight:800;border-top:2px solid #b8d8e9;border-bottom:1px solid #c9e1ee;padding:10px 12px}.salary-page .salary-table .salary-date-group span{font-weight:500;color:#526d7c;font-size:12px}.salary-page .staff-salary-card{min-width:0;width:100%;max-width:100%}.salary-page .staff-card-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.salary-page .staff-card-metrics>div{min-width:0;overflow-wrap:anywhere}.salary-page .salary-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.salary-page .salary-summary>div{min-width:0;overflow-wrap:anywhere}.salary-page .salary-summary strong{font-size:clamp(12px,3.3vw,18px)}@media(max-width:560px){.salary-page.active{grid-template-columns:minmax(0,1fr)!important}.salary-page .fields{grid-template-columns:repeat(2,minmax(0,1fr))}.salary-page .fields>.full{grid-column:1/-1}.salary-page .salary-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;padding:6px}.salary-page .salary-summary>div{padding:7px 5px}.salary-page .salary-summary span{font-size:9px;letter-spacing:0}.salary-page .salary-summary strong,.salary-page .salary-summary>div:first-child strong{font-size:12px}.salary-page .salary-table{min-width:760px}.salary-page .table-wrap{margin-right:0}.salary-page .actions button{min-width:0}}


/* ===== Extracted style block ===== */
.staff-profile-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px;margin:14px 0}.staff-profile-card{min-width:0;border:1px solid #d5e5ef;border-radius:16px;padding:14px;background:linear-gradient(145deg,#fff,#f4f9fd);box-shadow:0 6px 18px #163a5012}.profile-card-top{display:flex;justify-content:space-between;gap:10px}.profile-card-top h4{margin:0;font-size:17px;overflow-wrap:anywhere}.profile-card-top p{margin:6px 0;color:#64798a;font-size:12px}.profile-salary-pill{font-size:12px;font-weight:800;color:#176184;background:#eaf4fb;border-radius:999px;padding:7px;white-space:nowrap}.profile-card-due{margin-top:12px;padding:12px;border:1px solid #b9e8d0;border-radius:12px;background:#e0f8ee}.profile-card-due span{display:block;color:#23744e;font-size:10px;font-weight:800}.profile-card-due strong{display:block;color:#078153;font-size:23px;margin-top:5px}.profile-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:12px}.profile-card-actions button{flex:1 1 78px;min-width:0}.balance-due-only{display:block!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}.balance-due-only>div{padding:17px!important;border:1px solid #b9e8d0!important;border-radius:14px!important;background:#e1f9ef!important}.balance-due-only span{font-size:12px!important;color:#23744e!important}.balance-due-only strong{font-size:clamp(26px,5vw,36px)!important;color:#078153!important}.balance-hidden-values{display:none!important}.salary-date-group td{background:#eaf4fb!important;color:#17445d!important;font-weight:800!important}@media(max-width:560px){.staff-profile-cards{grid-template-columns:1fr}.salary-page .table-wrap{overflow-x:auto!important;max-width:100%}.salary-page .salary-table{min-width:760px}}

/* ===== Extracted style block ===== */

.staff-add-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:14px}.staff-add-heading h3{margin-bottom:4px}.staff-add-heading .note{margin:0}.staff-add-heading button{min-height:44px;padding:10px 20px;border-radius:12px;font-weight:700;white-space:nowrap}#staffAddForm{border:1px solid var(--border);border-radius:14px;background:#f7fbff;padding:16px;margin:14px 0 22px}#staffAddForm[hidden]{display:none!important}#staffAddForm h3{margin-top:0}@media(max-width:600px){.staff-add-heading{align-items:stretch}.staff-add-heading>div{width:100%}.staff-add-heading button{width:100%}#staffAddForm{padding:12px}}


/* ===== Extracted style block ===== */

/* Compact, centered login sizing: only the login screen is affected. */
#tdLoginGate{padding:18px 16px!important;overflow-y:auto!important;align-items:center!important;background:#f1f9fc!important;background-image:radial-gradient(ellipse at 12% 4%,rgba(163,226,247,.32),transparent 42%),radial-gradient(ellipse at 88% 96%,rgba(173,228,245,.28),transparent 43%)!important}
#tdLoginGate .td-shell{width:100%!important;max-width:430px!important;margin:auto!important}
#tdLoginGate .td-brand{margin:0 auto 22px!important}
#tdLoginGate .td-brand-name{font-size:clamp(21px,5.5vw,29px)!important;font-weight:700!important;letter-spacing:0!important;line-height:1.2!important}
#tdLoginGate .td-brand-caption{font-size:11px!important;letter-spacing:2px!important;margin-top:7px!important}
#tdLoginGate .td-card{box-sizing:border-box!important;width:100%!important;padding:28px 22px 28px!important;border:1px solid #d7eaf1!important;border-radius:25px!important;box-shadow:0 14px 30px rgba(18,48,74,.07)!important;overflow:hidden!important}
#tdLoginGate h2{font-size:clamp(27px,7vw,34px)!important;line-height:1.2!important;font-weight:750!important;letter-spacing:-.6px!important;margin:0 0 10px!important}
#tdLoginGate p{font-size:clamp(14px,3.8vw,18px)!important;line-height:1.45!important;margin:0 0 30px!important}
#tdLoginGate label{font-size:15px!important;margin:0 0 9px!important;font-weight:700!important}
#tdLoginGate .td-field{margin-bottom:20px!important}
#tdLoginGate .td-field input{box-sizing:border-box!important;width:100%!important;height:58px!important;min-height:58px!important;padding:0 48px 0 48px!important;border-radius:17px!important;font-size:16px!important;border:1px solid #d8e8ef!important;background:#f4fbfe!important}
#tdLoginGate .td-field-icon{left:15px!important;width:22px!important;height:22px!important;color:#0aa1c6!important}
#tdLoginGate .td-eye{right:7px!important;width:36px!important;height:36px!important;min-height:36px!important}
#tdLoginGate .td-eye svg{width:23px!important;height:23px!important}
#tdLoginGate .td-login-submit{width:100%!important;height:64px!important;min-height:64px!important;padding:12px 16px!important;border-radius:17px!important;font-size:18px!important;gap:10px!important;margin-top:1px!important}
#tdLoginGate .td-login-submit svg{width:24px!important;height:24px!important}
#tdLoginGate .td-link{font-size:16px!important;margin:17px auto 0!important;padding:5px 8px!important}
#tdLoginGate .td-error{font-size:12px!important}
@media(max-width:360px){#tdLoginGate{padding:12px 10px!important}#tdLoginGate .td-brand-name{font-size:20px!important}#tdLoginGate .td-card{padding:24px 16px 22px!important}#tdLoginGate h2{font-size:26px!important}}
@media(max-height:700px){#tdLoginGate{align-items:flex-start!important}#tdLoginGate .td-shell{margin:auto!important}}


/* ===== Extracted style block ===== */

/* Requested changes only: pure white login background and a clear rounded card outline. */
#tdLoginGate{
  background:#ffffff!important;
  background-image:none!important;
}
#tdLoginGate .td-card{
  border:1.5px solid #b9dfee!important;
  border-radius:25px!important;
  box-shadow:0 8px 24px rgba(18,48,74,.045)!important;
  background:#ffffff!important;
}


/* ===== Extracted style block ===== */

/* Simple salary screen: only staff setup, salary/advance entry, selected staff balance, date-wise history. */
.salary-page #staffSalaryCards { display:none !important; }
.salary-page #staffProfileCards { display:none !important; }
.salary-page section.panel > h3 { margin-bottom: 10px; }
.salary-page section.panel > .note { margin-top: 0; margin-bottom: 14px; }
.salary-page [data-page-panel="salary"] .salary-summary { display:none !important; }
.salary-page #salaryPeriod, .salary-page label[for="salaryPeriod"],
.salary-page #salaryNotes, .salary-page label[for="salaryNotes"] { display:none !important; }
.salary-page .fields > div:has(#salaryPeriod), .salary-page .fields > div:has(#salaryNotes) { display:none !important; }
.salary-page .fields:has(#salaryStaff) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.salary-page .fields:has(#salaryStaff) > .full { grid-column:1/-1; }
.salary-page .fields:has(#salaryStaff) > div:has(#salaryStaff) { grid-column:1/-1; }
.salary-page .salary-summary.balance-due-only { display:block !important; margin-top:14px; padding:16px; border:1px solid #b7e8d5; border-radius:14px; background:#e2f8ef; }
.salary-page .balance-due-only span { display:block; font-size:13px; font-weight:700; color:#087a55; margin-bottom:6px; }
.salary-page .balance-due-only strong { display:block; font-size:28px; line-height:1.2; color:#007f53; }
.salary-page .balance-hidden-values, .salary-page .fields:has(#balanceStaffSelect), .salary-page label[for="balanceStaffSelect"], .salary-page #balanceStaffSelect, .salary-page label[for="balanceMonth"], .salary-page #balanceMonth { display:none !important; }
.salary-page .salary-table { min-width:0; width:100%; }
.salary-page .table-wrap { width:100%; max-width:100%; overflow-x:auto !important; }
.salary-page .salary-date-group td { background:#eaf4fb; font-weight:700; }
.salary-page .staff-profile-cards { display:none !important; }
@media(max-width:600px){
 .salary-page section.panel { padding:14px; margin-bottom:14px; }
 .salary-page .fields:has(#salaryStaff) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
 .salary-page .fields:has(#salaryStaff) input, .salary-page .fields:has(#salaryStaff) select { min-width:0; width:100%; }
 .salary-page .salary-table { min-width:700px; }
 .salary-page .actions button { flex:1 1 130px; }
}


/* ===== Extracted style block ===== */

#tdLoginGate{position:fixed;inset:0;z-index:999999;background:#fff;display:flex;align-items:center;justify-content:center;padding:22px;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink,#243b4d);overflow:auto}
#tdLoginGate .td-shell{width:min(100%,560px);margin:auto}
#tdLoginGate .td-brand{text-align:center;margin:0 auto 24px}
#tdLoginGate .td-brand-name{font-size:clamp(25px,5vw,34px);font-weight:800;letter-spacing:.2px;color:#d71920;line-height:1.2;white-space:nowrap}
#tdLoginGate .td-brand-name span{color:#65b6e5!important;opacity:1!important}
#tdLoginGate .td-brand-caption{margin-top:8px;color:#718596;font-size:11px;letter-spacing:2px}
#tdLoginGate .td-card{width:100%;background:#fff;border:1px solid #dce9f1;border-radius:26px;padding:clamp(28px,5vw,42px) clamp(24px,5vw,34px) 32px;box-shadow:0 15px 38px rgba(18,48,74,.08);position:relative;overflow:hidden}
#tdLoginGate .td-card:before{content:none}
#tdLoginGate h2{margin:4px 0 10px;text-align:center;font-size:clamp(30px,5vw,36px);line-height:1.2;color:#12304a;font-weight:750;letter-spacing:-.6px;text-transform:capitalize}
#tdLoginGate p{margin:0 0 28px;text-align:center;color:#718596;font-size:clamp(15px,3.4vw,18px);line-height:1.5}
#tdLoginGate label{display:block;font-weight:700;font-size:16px;margin:0 0 9px;color:#12304a}
#tdLoginGate input{box-sizing:border-box;width:100%;padding:0 48px 0 58px;border:1px solid #dce9f1;border-radius:19px;font-size:17px;background:#f6fbfe;color:#243b4d;outline:none;min-height:70px}
#tdLoginGate input::placeholder{color:#94a5b2;opacity:1}
#tdLoginGate input:focus{border-color:#65b6e5;background:#fff;box-shadow:0 0 0 4px rgba(101,182,229,.15)}
#tdLoginGate .td-field{position:relative;margin-bottom:22px}
#tdLoginGate .td-field input{padding-left:58px;padding-right:58px}
#tdLoginGate .td-field-icon{position:absolute;left:20px;top:50%;transform:translateY(-50%);color:#159bc1;font-size:20px;pointer-events:none;width:22px;text-align:center;display:grid;place-items:center;}
#tdLoginGate .td-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:42px;height:42px;padding:0;margin:0;background:transparent;color:#607d8b;border:0;border-radius:10px;font-size:19px;min-height:42px;box-shadow:none;display:grid;place-items:center;cursor:pointer;}
#tdLoginGate .td-eye:hover{background:#eef7fc;color:#12304a}
#tdLoginGate .td-login-submit{box-sizing:border-box;width:100%;border:0;border-radius:19px;padding:17px 18px;background:linear-gradient(105deg,#12304a,#087eae);color:white;font-weight:750;font-size:19px;margin-top:2px;cursor:pointer;min-height:76px;box-shadow:0 12px 22px rgba(18,48,74,.15);display:flex;align-items:center;justify-content:center;gap:12px}
#tdLoginGate .td-login-submit:active{transform:translateY(1px)}
#tdLoginGate .td-login-submit i{font-size:21px}
#tdLoginGate .td-link{display:block;width:fit-content;margin:18px auto 0;background:transparent;color:#1689b8;padding:8px 12px;min-height:auto;box-shadow:none;font-size:17px;font-weight:750;border:0;cursor:pointer}
#tdLoginGate .td-note{font-size:12px;background:#f5f9fc;border:1px solid #dce9f1;border-radius:12px;padding:10px;margin-top:14px;color:#536b7c;line-height:1.6}
#tdLoginGate .td-error{color:#b42335;font-size:13px;margin-top:10px;min-height:18px;text-align:center}
#tdForgotPanel{display:none !important}#tdForgotPanel.is-active{display:block !important}
@media(max-width:480px){#tdLoginGate{padding:20px}#tdLoginGate .td-shell{max-width:420px}#tdLoginGate .td-brand{margin-bottom:24px}#tdLoginGate .td-brand-name{font-size:clamp(22px,5.8vw,29px)}#tdLoginGate .td-card{border-radius:24px;padding:30px 22px 28px}#tdLoginGate h2{font-size:clamp(28px,7vw,34px)}#tdLoginGate .td-field input{min-height:68px;padding-left:54px}#tdLoginGate .td-field-icon{left:19px;font-size:23px}#tdLoginGate .td-field{margin-bottom:20px}#tdLoginGate .td-login-submit{min-height:70px}}
@media(max-width:350px){#tdLoginGate{padding:12px}#tdLoginGate .td-brand-name{font-size:21px}#tdLoginGate .td-card{padding:25px 17px}}
@media(max-height:700px){#tdLoginGate{align-items:flex-start}#tdLoginGate .td-card{padding-top:26px;padding-bottom:22px}}


/* ===== Extracted style block ===== */

/* Keep the approved Tahura login design, but fit the complete login block into a compact central area. */
#tdLoginGate{padding:12px;overflow:auto;align-items:center;}
#tdLoginGate .td-shell{width:min(100%,520px);}
#tdLoginGate .td-brand{margin:0 auto 14px;}
#tdLoginGate .td-brand-name{font-size:clamp(22px,4.8vw,30px);line-height:1.12;}
#tdLoginGate .td-brand-caption{margin-top:5px;font-size:10px;letter-spacing:1.8px;}
#tdLoginGate .td-card{border-radius:22px;padding:20px 24px 18px;}
#tdLoginGate h2{font-size:clamp(25px,5vw,30px);margin:2px 0 7px;line-height:1.15;}
#tdLoginGate p{font-size:15px;line-height:1.35;margin:0 0 17px;}
#tdLoginGate label{font-size:14px;margin:0 0 5px;}
#tdLoginGate input{min-height:48px;font-size:15px;border-radius:14px;padding-top:0;padding-bottom:0;}
#tdLoginGate .td-field{margin-bottom:12px;}
#tdLoginGate .td-field input{padding-left:48px;padding-right:48px;}
#tdLoginGate .td-field-icon{left:15px;width:19px;}
#tdLoginGate .td-field-icon svg{width:18px;height:18px;}
#tdLoginGate .td-eye{right:5px;width:36px;height:36px;}
#tdLoginGate .td-eye svg{width:19px;height:19px;}
#tdLoginGate .td-login-submit{min-height:52px;padding:11px 14px;border-radius:14px;font-size:17px;margin-top:0;}
#tdLoginGate .td-login-submit svg{width:19px;height:19px;}
#tdLoginGate .td-link{font-size:15px;margin:7px auto 0;padding:6px 10px;}
#tdLoginGate .td-error{font-size:12px;min-height:0;margin-top:4px;}
@media(max-width:480px){
 #tdLoginGate{padding:10px;}
 #tdLoginGate .td-shell{max-width:390px;}
 #tdLoginGate .td-brand{margin-bottom:12px;}
 #tdLoginGate .td-brand-name{font-size:clamp(21px,5.5vw,27px);}
 #tdLoginGate .td-card{padding:19px 18px 16px;border-radius:20px;}
 #tdLoginGate h2{font-size:26px;}
 #tdLoginGate p{font-size:14px;margin-bottom:15px;}
 #tdLoginGate .td-field{margin-bottom:11px;}
 #tdLoginGate input{min-height:46px;font-size:15px;}
 #tdLoginGate .td-login-submit{min-height:50px;}
}
@media(max-height:760px){#tdLoginGate{align-items:center;padding-top:8px;padding-bottom:8px;}#tdLoginGate .td-brand{margin-bottom:10px;}#tdLoginGate .td-card{padding-top:16px;padding-bottom:14px;}}


/* ===== Extracted style block ===== */

#tdLoginGate{padding:0 2.2vw;background:#f1f9fc; background-image:radial-gradient(ellipse at 12% 4%,rgba(163,226,247,.40),transparent 42%),radial-gradient(ellipse at 88% 96%,rgba(173,228,245,.35),transparent 43%);align-items:center;overflow-y:auto}
#tdLoginGate .td-shell{width:100%;max-width:1000px;margin:auto}
#tdLoginGate .td-brand{margin:0 auto 4.5vh}
#tdLoginGate .td-brand-name{font-size:clamp(28px,6.3vw,64px);font-weight:700;letter-spacing:0;line-height:1.16}
#tdLoginGate .td-brand-caption{font-size:clamp(11px,2.7vw,28px);letter-spacing:clamp(1px,.35vw,3px);margin-top:10px}
#tdLoginGate .td-card{padding:clamp(28px,6vw,78px) clamp(24px,6vw,58px) clamp(30px,5vw,62px);border:1.5px solid #d7eaf1;border-radius:clamp(22px,4vw,42px);box-shadow:0 16px 36px rgba(18,48,74,.05);overflow:visible}
#tdLoginGate h2{font-size:clamp(34px,6.4vw,58px);font-weight:750;margin:0 0 14px;letter-spacing:-1px}
#tdLoginGate p{font-size:clamp(17px,3.5vw,30px);margin:0 0 clamp(34px,7vw,78px);line-height:1.4}
#tdLoginGate label{font-size:clamp(16px,3vw,28px);margin-bottom:14px}
#tdLoginGate .td-field{margin-bottom:clamp(24px,5vw,46px)}
#tdLoginGate .td-field input{height:clamp(72px,14vw,140px);min-height:0;border-radius:clamp(18px,3vw,30px);font-size:clamp(18px,3.5vw,30px);padding-left:clamp(58px,12vw,120px);padding-right:clamp(56px,9vw,90px);background:#f4fbfe;border:1.5px solid #d8e8ef}
#tdLoginGate .td-field-icon{left:clamp(18px,4vw,42px);width:clamp(24px,4vw,42px);height:clamp(24px,4vw,42px);font-size:0;color:#0aa1c6}
#tdLoginGate .td-field-icon svg{width:100%;height:100%;display:block}
#tdLoginGate .td-eye{right:clamp(8px,1.5vw,18px);width:clamp(42px,7vw,68px);height:clamp(42px,7vw,68px);font-size:0;color:#668997}
#tdLoginGate .td-eye svg{width:72%;height:72%;display:block}
#tdLoginGate .td-login-submit{height:clamp(78px,14vw,140px);min-height:0;border-radius:clamp(18px,3vw,30px);font-size:clamp(20px,4vw,32px);margin-top:0;background:linear-gradient(105deg,#063b55,#0786b3);box-shadow:0 15px 28px rgba(18,48,74,.13);gap:clamp(12px,2vw,22px)}
#tdLoginGate .td-login-submit svg{width:clamp(25px,4.2vw,40px);height:clamp(25px,4.2vw,40px);display:block}
#tdLoginGate .td-link{font-size:clamp(18px,3.4vw,30px);margin:clamp(22px,4.5vw,42px) auto 0;padding:0;color:#078eb7}
#tdLoginGate .td-error{font-size:14px}
#tdForgotPanel{display:none!important}
#tdForgotPanel.is-active{display:block!important}
@media(max-width:600px){
 #tdLoginGate{padding:16px 4.5vw}
 #tdLoginGate .td-shell{max-width:100%}
 #tdLoginGate .td-brand{margin-bottom:4vh}
 #tdLoginGate .td-brand-name{font-size:clamp(26px,6.4vw,42px)}
 #tdLoginGate .td-brand-caption{font-size:clamp(11px,2.5vw,16px);letter-spacing:2px}
 #tdLoginGate .td-card{padding:clamp(30px,7vw,52px) clamp(20px,6vw,34px) clamp(34px,7vw,52px)}
 #tdLoginGate h2{font-size:clamp(32px,6.5vw,44px)}
 #tdLoginGate p{font-size:clamp(16px,3.6vw,22px);margin-bottom:clamp(36px,7vw,54px)}
 #tdLoginGate label{font-size:clamp(16px,3vw,20px)}
 #tdLoginGate .td-field input{height:clamp(72px,14vw,100px);font-size:clamp(18px,3.7vw,24px);padding-left:58px}
 #tdLoginGate .td-field-icon{left:20px;width:27px;height:27px}
 #tdLoginGate .td-login-submit{height:clamp(78px,14vw,100px);font-size:clamp(21px,4vw,28px)}
 #tdLoginGate .td-login-submit svg{width:30px;height:30px}
 #tdLoginGate .td-link{font-size:clamp(18px,3.5vw,24px)}
}
@media(max-height:760px){#tdLoginGate{align-items:flex-start;padding-top:20px;padding-bottom:20px}}


/* ===== Extracted style block ===== */

/* Sidebar drawer with Sign Out pinned at the bottom, matching the supplied reference */
.side-nav.open{position:fixed;inset:0 auto 0 0;top:0;left:0;width:min(300px,88vw);height:100vh;height:100dvh;z-index:99980;background:#fff;display:flex;flex-direction:column;box-shadow:12px 0 32px rgba(20,35,55,.18);border-radius:0 0 28px 0;overflow:hidden}
.side-nav.open .side-menu{display:flex;flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain;border:0;border-radius:0;box-shadow:none;padding:12px 14px 18px}
.sidebar-logout-footer{display:none}
.side-nav.open .sidebar-logout-footer{display:block;flex:0 0 auto;padding:14px 14px max(18px,env(safe-area-inset-bottom));border-top:1px solid #e2e6ed;background:#fff}
#tahuraLogoutBtn{display:block;width:100%;min-height:52px;border:1px solid #f0c9cd;border-radius:13px;padding:12px 16px;background:#fff5f5;color:#c92335;font-weight:800;font-size:16px;box-shadow:none;cursor:pointer}
#tahuraLogoutBtn:active{transform:scale(.99)}
#tahuraLogoutBtn::first-letter{font-size:19px}
@media(max-width:600px){.side-nav.open{width:min(300px,88vw)}.side-nav.open .side-menu{padding:10px 12px 14px}#tahuraLogoutBtn{font-size:15px}}


/* ===== Extracted style block ===== */

/* Login screen only: isolated styles to match the supplied reference. */
#tdLoginGate{position:fixed!important;inset:0!important;z-index:999999!important;display:flex;align-items:center!important;justify-content:center!important;overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box!important;padding:30px 18px!important;background:radial-gradient(ellipse at 10% 3%,#dff7ff 0%,transparent 38%),radial-gradient(ellipse at 90% 98%,#e2f7fc 0%,transparent 38%),#f2f9fc!important;font-family:Arial,"Segoe UI",sans-serif!important;color:#12384d!important}
#tdLoginGate *{box-sizing:border-box!important}
#tdLoginGate .td-shell{width:100%!important;max-width:990px!important;margin:auto!important}
#tdLoginGate .td-brand{text-align:center!important;margin:0 auto 42px!important}
#tdLoginGate .td-brand-name{white-space:nowrap!important;font-size:clamp(25px,6.5vw,64px)!important;line-height:1.15!important;font-weight:700!important;letter-spacing:0!important;color:#d71920!important}
#tdLoginGate .td-brand-name span{color:#39afd7!important}
#tdLoginGate .td-brand-caption{margin-top:12px!important;color:#778b95!important;font-size:clamp(11px,2.7vw,27px)!important;letter-spacing:clamp(1px,.32vw,3px)!important;line-height:1.3!important}
#tdLoginGate .td-card{width:100%!important;background:#fff!important;border:1.5px solid #d7eaf1!important;border-radius:clamp(24px,4vw,42px)!important;padding:clamp(36px,6vw,82px) clamp(22px,6vw,58px) clamp(34px,5vw,64px)!important;box-shadow:0 16px 38px rgba(18,48,74,.06)!important;overflow:visible!important;position:relative!important}
#tdLoginGate #tdLoginPanel{display:block!important}
#tdLoginGate h2{margin:0 0 14px!important;text-align:center!important;font-size:clamp(32px,6.2vw,58px)!important;line-height:1.2!important;color:#07384f!important;font-weight:700!important;letter-spacing:-.7px!important;text-transform:none!important}
#tdLoginGate p{margin:0 0 clamp(38px,7vw,78px)!important;text-align:center!important;color:#7d909a!important;font-size:clamp(16px,3.4vw,29px)!important;line-height:1.45!important}
#tdLoginGate #tdLoginForm{display:block!important;width:100%!important}
#tdLoginGate label{display:block!important;margin:0 0 14px!important;color:#12384d!important;font-size:clamp(17px,3vw,28px)!important;line-height:1.25!important;font-weight:700!important}
#tdLoginGate .td-field{position:relative!important;display:block!important;width:100%!important;margin:0 0 clamp(26px,5vw,48px)!important}
#tdLoginGate .td-field input{display:block!important;width:100%!important;height:clamp(72px,14vw,140px)!important;min-height:0!important;margin:0!important;border:1.5px solid #d8e8ef!important;border-radius:clamp(18px,3vw,30px)!important;background:#f4fbfe!important;color:#243b4d!important;font-family:inherit!important;font-size:clamp(18px,3.5vw,30px)!important;padding:0 74px 0 clamp(58px,12vw,120px)!important;outline:none!important;box-shadow:none!important}
#tdLoginGate .td-field input::placeholder{color:#92a5af!important;opacity:1!important}
#tdLoginGate .td-field input:focus{border-color:#66bfdc!important;box-shadow:0 0 0 3px rgba(57,175,215,.12)!important}
#tdLoginGate .td-field-icon{position:absolute!important;left:clamp(19px,4vw,42px)!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:clamp(25px,4.2vw,42px)!important;height:clamp(25px,4.2vw,42px)!important;color:#10a2c5!important;font-size:0!important;pointer-events:none!important}
#tdLoginGate .td-field-icon svg{display:block!important;width:100%!important;height:100%!important}
#tdLoginGate .td-eye{position:absolute!important;right:clamp(9px,1.5vw,18px)!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;width:clamp(44px,7vw,68px)!important;height:clamp(44px,7vw,68px)!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#688b98!important;box-shadow:none!important;cursor:pointer!important}
#tdLoginGate .td-eye svg{display:block!important;width:72%!important;height:72%!important}
#tdLoginGate .td-login-submit{display:flex!important;align-items:center!important;justify-content:center!important;gap:clamp(12px,2vw,22px)!important;width:100%!important;height:clamp(78px,14vw,140px)!important;min-height:0!important;margin:0!important;padding:0 18px!important;border:0!important;border-radius:clamp(18px,3vw,30px)!important;background:linear-gradient(105deg,#063b55,#0786b3)!important;color:#fff!important;font-family:inherit!important;font-size:clamp(21px,4vw,32px)!important;font-weight:700!important;box-shadow:0 15px 28px rgba(18,48,74,.13)!important;cursor:pointer!important}
#tdLoginGate .td-login-submit svg{display:block!important;width:clamp(27px,4.2vw,40px)!important;height:clamp(27px,4.2vw,40px)!important}
#tdLoginGate .td-link{display:block!important;width:max-content!important;min-height:0!important;margin:clamp(24px,4.5vw,44px) auto 0!important;padding:0!important;border:0!important;background:transparent!important;color:#078eb7!important;font-family:inherit!important;font-size:clamp(18px,3.4vw,30px)!important;font-weight:700!important;box-shadow:none!important;cursor:pointer!important}
#tdLoginGate .td-error{margin-top:8px!important;text-align:center!important;font-size:14px!important;line-height:1.4!important;color:#b42335!important;min-height:0!important}
#tdLoginGate #tdForgotPanel{display:none!important}
#tdLoginGate #tdForgotPanel[style*="display: block"]{display:none!important}
#tdLoginGate #tdForgotPanel.is-active{display:block!important}
@media(max-width:600px){#tdLoginGate{padding:20px 16px!important;align-items:center!important}#tdLoginGate .td-shell{max-width:100%!important}#tdLoginGate .td-brand{margin-bottom:28px!important}#tdLoginGate .td-brand-name{font-size:clamp(24px,6.5vw,38px)!important}#tdLoginGate .td-brand-caption{font-size:clamp(10px,2.7vw,15px)!important;letter-spacing:2px!important;margin-top:9px!important}#tdLoginGate .td-card{padding:34px 22px 38px!important;border-radius:26px!important}#tdLoginGate h2{font-size:clamp(30px,8vw,38px)!important;margin-bottom:12px!important}#tdLoginGate p{font-size:clamp(16px,4.1vw,20px)!important;margin-bottom:42px!important}#tdLoginGate label{font-size:18px!important;margin-bottom:12px!important}#tdLoginGate .td-field{margin-bottom:28px!important}#tdLoginGate .td-field input{height:72px!important;font-size:19px!important;padding-left:58px!important;padding-right:58px!important;border-radius:22px!important}#tdLoginGate .td-field-icon{left:20px!important;width:27px!important;height:27px!important}#tdLoginGate .td-eye{right:8px!important;width:42px!important;height:42px!important}#tdLoginGate .td-login-submit{height:78px!important;font-size:23px!important;border-radius:22px!important}#tdLoginGate .td-login-submit svg{width:30px!important;height:30px!important}#tdLoginGate .td-link{font-size:19px!important;margin-top:26px!important}}
@media(max-width:360px){#tdLoginGate{padding:16px 12px!important}#tdLoginGate .td-brand-name{font-size:23px!important}#tdLoginGate .td-card{padding:30px 18px 34px!important}}


/* ===== Extracted style block ===== */

/* Reduce only the login block height; preserve the approved Tahura design and colors. */
#tdLoginGate{padding:10px 14px!important;overflow-y:auto!important;align-items:center!important}
#tdLoginGate .td-shell{width:100%!important;max-width:520px!important;margin:auto!important}
#tdLoginGate .td-brand{margin:0 auto 12px!important}
#tdLoginGate .td-brand-name{font-size:clamp(22px,5.2vw,30px)!important;line-height:1.15!important}
#tdLoginGate .td-brand-caption{font-size:10px!important;letter-spacing:1.8px!important;margin-top:5px!important}
#tdLoginGate .td-card{width:100%!important;padding:18px 22px 16px!important;border-radius:22px!important}
#tdLoginGate h2{font-size:clamp(25px,5.5vw,30px)!important;line-height:1.15!important;margin:0 0 6px!important}
#tdLoginGate p{font-size:14px!important;line-height:1.35!important;margin:0 0 15px!important}
#tdLoginGate label{font-size:14px!important;margin:0 0 5px!important}
#tdLoginGate .td-field{margin-bottom:11px!important}
#tdLoginGate .td-field input{height:46px!important;min-height:46px!important;font-size:15px!important;border-radius:14px!important;padding-left:48px!important;padding-right:44px!important}
#tdLoginGate .td-field-icon{left:14px!important;width:19px!important}
#tdLoginGate .td-field-icon svg{width:18px!important;height:18px!important}
#tdLoginGate .td-eye{right:4px!important;width:34px!important;height:34px!important;min-height:34px!important}
#tdLoginGate .td-eye svg{width:19px!important;height:19px!important}
#tdLoginGate .td-login-submit{height:50px!important;min-height:50px!important;padding:10px 14px!important;border-radius:14px!important;font-size:16px!important;margin-top:0!important}
#tdLoginGate .td-login-submit svg{width:19px!important;height:19px!important}
#tdLoginGate .td-link{font-size:15px!important;margin:6px auto 0!important;padding:5px 8px!important}
#tdLoginGate .td-error{font-size:12px!important;min-height:0!important;margin-top:3px!important}
@media(max-width:380px){#tdLoginGate{padding:8px 10px!important}#tdLoginGate .td-card{padding:16px 16px 14px!important}#tdLoginGate .td-brand-name{font-size:21px!important}}
@media(max-height:720px){#tdLoginGate{padding-top:6px!important;padding-bottom:6px!important}#tdLoginGate .td-brand{margin-bottom:8px!important}#tdLoginGate .td-card{padding-top:14px!important;padding-bottom:12px!important}}


/* ===== Extracted style block ===== */

/* Compact, one-line permission rows for phone and desktop */
.staff-permission-grid{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(205px,1fr))!important;gap:7px!important}
.staff-permission-option{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;padding:9px 11px!important;min-height:42px!important;border-radius:9px!important;font-size:13px!important;line-height:1.3!important;font-weight:600!important;white-space:normal!important}
.staff-permission-option input[type="checkbox"]{appearance:auto!important;-webkit-appearance:checkbox!important;width:17px!important;height:17px!important;min-width:17px!important;max-width:17px!important;flex:0 0 17px!important;margin:0!important;padding:0!important;accent-color:#0782b9!important;transform:none!important}
.staff-permission-box{padding:12px!important;margin-top:13px!important}
.staff-permission-box legend{font-size:15px!important}
.staff-permission-box p{font-size:13px!important;line-height:1.45!important;margin:5px 0 10px!important}
@media(max-width:480px){.staff-permission-grid{grid-template-columns:1fr!important;gap:6px!important}.staff-permission-option{min-height:38px!important;padding:8px 10px!important;font-size:13px!important}.staff-permission-box{padding:10px!important}}


/* ===== Extracted style block ===== */

#staffVerificationPage{position:fixed;inset:0;z-index:10001;overflow:auto;background:#f2f8fc;padding:18px 12px 34px;box-sizing:border-box;color:#12304a;font-family:inherit}
#staffVerificationPage *{box-sizing:border-box} .sv-wrap{max-width:1000px;margin:0 auto}.sv-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.sv-eyebrow{font-size:11px;letter-spacing:1.7px;color:#1684a8;font-weight:800}.sv-title{font-size:clamp(21px,4vw,28px);margin:5px 0;color:#12304a}.sv-sub{margin:0;color:#607789;font-size:13px}.sv-btn{border:1px solid #d0e0ea;border-radius:10px;padding:10px 13px;background:#fff;color:#12304a;font-weight:750;cursor:pointer}.sv-primary{background:#0879b5;color:white;border-color:#0879b5}.sv-card{background:#fff;border:1px solid #dbe7ef;border-radius:14px;padding:14px;margin:10px 0;box-shadow:0 5px 18px #12304a0a}.sv-row{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}.sv-name{font-size:16px;font-weight:800}.sv-meta{font-size:12px;color:#607789;margin-top:4px;overflow-wrap:anywhere}.sv-status{display:inline-block;padding:5px 9px;border-radius:99px;background:#fff2d7;color:#925b00;font-size:11px;font-weight:800}.sv-status.approved{background:#e4f8eb;color:#187444}.sv-status.rejected{background:#fee9e7;color:#b42318}.sv-checks{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px;margin:13px 0}.sv-check{display:flex;gap:8px;align-items:flex-start;border:1px solid #dbe7ef;background:#f8fbfd;padding:10px;border-radius:10px;font-size:13px}.sv-check input{margin-top:2px;accent-color:#0879b5}.sv-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.sv-note{padding:11px 12px;border-radius:10px;background:#fff7e8;border:1px solid #f2dfb5;color:#76511b;font-size:12px;line-height:1.5;margin:12px 0}.sv-empty{padding:24px;text-align:center;color:#607789;border:1px dashed #cbdce8;border-radius:12px}


/* ===== Extracted style block ===== */

body.td-staff-mode #staffManagementOpen,
body.td-staff-mode .side-item[data-page="settings"],
body.td-staff-mode #backupDownloadBtn,
body.td-staff-mode #restoreChooseBtn{display:none!important}


/* ===== Extracted style block ===== */

/* Simplify Staff Salary page: remove duplicate staff cards and redundant totals/selector UI */
.salary-page #staffProfileCards{display:none!important}
.salary-page .balance-hidden-values{display:none!important}
/* Staff selection and month are already selected in the Salary/Advance form; keep the synced controls functional but not duplicated visually. */
.salary-page #balanceStaffSelect,.salary-page label[for="balanceStaffSelect"],.salary-page #balanceMonth,.salary-page label[for="balanceMonth"]{display:none!important}
.salary-page #balanceStaffSelect,.salary-page #balanceMonth{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;opacity:0!important}
.salary-page .fields:has(#balanceStaffSelect){display:none!important}
/* Totals cards repeat payment totals already visible in records, so keep the date-wise records table clean. */
.salary-page [data-page-panel="salary"] .salary-summary{display:none!important}
.salary-page .salary-dashboard{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.salary-page .staff-salary-card .staff-card-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
.salary-page .salary-table{min-width:760px}
.salary-page .table-wrap{max-width:100%;overflow-x:auto!important}
@media(max-width:600px){.salary-page .salary-dashboard{grid-template-columns:1fr}.salary-page .staff-salary-card{padding:12px}.salary-page .staff-salary-card .staff-card-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.salary-page .salary-table{min-width:760px}}


/* ===== Extracted style block ===== */

/* Global responsive safety: prevent the entire page from shifting sideways. */
html,body{max-width:100%;overflow-x:hidden!important}*,*::before,*::after{box-sizing:border-box}img,canvas,svg,video{max-width:100%;height:auto}input,select,textarea,button{max-width:100%;min-width:0} .app,.app-shell,.main,.main-content,.content,.page-content,[data-page-panel]{min-width:0;max-width:100%} .table-wrap{width:100%;max-width:100%;overflow-x:auto!important;-webkit-overflow-scrolling:touch} table{max-width:100%}
/* Salary history styled like expense cards, with no page-level horizontal scroll. */
.salary-page #salaryRows tr:not(.salary-date-group){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #d7e5ed;border-radius:14px;background:#fff;margin:10px 0 14px;overflow:hidden;box-shadow:0 3px 12px rgba(20,55,75,.06)}
.salary-page #salaryRows tr:not(.salary-date-group) td{display:block;min-width:0;padding:12px;border-bottom:1px solid #e8eef2;overflow-wrap:anywhere;white-space:normal}
.salary-page #salaryRows tr:not(.salary-date-group) td:before{content:attr(data-label);display:block;color:#627783;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;margin-bottom:5px}
.salary-page #salaryRows tr:not(.salary-date-group) td:last-child{grid-column:1/-1;display:flex;gap:8px;align-items:center;flex-wrap:wrap;border-bottom:0}
.salary-page #salaryRows tr:not(.salary-date-group) td:last-child:before{margin-right:auto}
.salary-page #salaryRows tr.salary-date-group{display:block;margin-top:14px}
.salary-page #salaryRows tr.salary-date-group td{display:block;background:#e6f5fb!important;color:#075b7b;border:1px solid #cce6f0;border-left:5px solid #0788a8;border-radius:12px;padding:14px;font-weight:800}
.salary-page #salaryRows tr:has(td.empty){display:block;padding:14px}
.salary-page .salary-table{min-width:0!important;width:100%}.salary-page .table-wrap{overflow:visible!important}
@media(min-width:760px){.salary-page #salaryRows tr:not(.salary-date-group){grid-template-columns:repeat(4,minmax(0,1fr))}.salary-page #salaryRows tr:not(.salary-date-group) td:last-child{grid-column:1/-1}}
@media(max-width:600px){.salary-page .fields:has(#salaryStaff){grid-template-columns:minmax(0,1fr)!important}.salary-page .fields:has(#salaryStaff)>div{grid-column:1/-1}.salary-page #salaryRows tr:not(.salary-date-group){grid-template-columns:repeat(2,minmax(0,1fr))}.salary-page #salaryRows tr:not(.salary-date-group) td{padding:10px;font-size:13px}.salary-page #salaryRows tr:not(.salary-date-group) td:last-child button{flex:1 1 100px}.panel,.card,section{min-width:0}}


/* ===== Extracted style block ===== */

#tdLoginGate{background:#fff!important;background-image:none!important;}
#tdLoginGate .td-secure-note{display:flex;align-items:center;justify-content:center;gap:9px;margin:18px auto 0;padding:0 8px;color:#718596;font-size:13px;line-height:1.4;text-align:center;}
#tdLoginGate .td-secure-note span{color:#35a9ce;font-size:15px;}
@media(max-width:480px){#tdLoginGate .td-secure-note{font-size:12px;margin-top:14px;}}


/* ===== Extracted style block ===== */

/* Login page only: clean white background, compact card, subtle outline. */
#tdLoginGate{background:#fff!important;background-image:none!important;padding:12px 14px!important;align-items:center!important;justify-content:center!important;overflow-y:auto!important;}
#tdLoginGate .td-shell{width:100%!important;max-width:430px!important;margin:auto!important;}
#tdLoginGate .td-brand{margin:0 auto 12px!important;}
#tdLoginGate .td-brand-name{font-size:clamp(22px,5.5vw,30px)!important;line-height:1.15!important;}
#tdLoginGate .td-brand-caption{font-size:10px!important;letter-spacing:1.8px!important;margin-top:5px!important;}
#tdLoginGate .td-card{width:100%!important;padding:20px 20px 16px!important;background:#fff!important;border:1px solid #d7e2e9!important;border-radius:18px!important;box-shadow:0 5px 18px rgba(18,48,74,.055)!important;overflow:visible!important;}
#tdLoginGate h2{font-size:clamp(25px,6vw,30px)!important;line-height:1.2!important;margin:0 0 6px!important;}
#tdLoginGate p{font-size:14px!important;line-height:1.4!important;margin:0 0 17px!important;}
#tdLoginGate label{font-size:14px!important;margin:0 0 5px!important;}
#tdLoginGate .td-field{margin-bottom:12px!important;}
#tdLoginGate .td-field input{height:46px!important;min-height:46px!important;padding:0 44px 0 45px!important;border:1px solid #dce6ec!important;border-radius:11px!important;background:#f9fcfe!important;font-size:15px!important;}
#tdLoginGate .td-field-icon{left:13px!important;width:19px!important;height:19px!important;}
#tdLoginGate .td-eye{right:4px!important;width:34px!important;height:34px!important;min-height:34px!important;}
#tdLoginGate .td-eye svg{width:19px!important;height:19px!important;}
#tdLoginGate .td-login-submit{height:48px!important;min-height:48px!important;padding:9px 14px!important;margin-top:2px!important;border-radius:11px!important;font-size:16px!important;box-shadow:0 4px 10px rgba(18,48,74,.10)!important;}
#tdLoginGate .td-login-submit svg{width:19px!important;height:19px!important;}
#tdLoginGate .td-link{font-size:14px!important;margin:8px auto 0!important;padding:4px 8px!important;}
#tdLoginGate .td-error{font-size:12px!important;margin-top:5px!important;}
@media(max-width:380px){#tdLoginGate{padding:8px 10px!important}#tdLoginGate .td-card{padding:17px 15px 13px!important}#tdLoginGate .td-brand-name{font-size:21px!important}}
@media(max-height:650px){#tdLoginGate{padding-top:6px!important;padding-bottom:6px!important}#tdLoginGate .td-brand{margin-bottom:7px!important}#tdLoginGate .td-card{padding-top:14px!important;padding-bottom:12px!important}}


/* ===== Extracted style block ===== */

/* Requested single change: place the secure-access note beneath the login card. */
#tdLoginGate{flex-direction:column!important;}
#tdLoginGate .td-shell{flex:0 0 auto!important;}
#tdLoginGate .td-secure-note{width:100%!important;max-width:430px!important;margin:4px auto 0!important;flex:0 0 auto!important;text-align:center!important;}


/* ===== Extracted style block ===== */

#tdLoginGate .td-remember-row{line-height:1.35!important;text-align:left!important;}
#tdLoginGate .td-remember-row input{flex:0 0 16px!important;padding:0!important;border-radius:4px!important;}


/* ===== Extracted style block ===== */

/* Dashboard is the initial content page; normal navigation remains controlled by the app. */


/* ===== Extracted style block ===== */

#staffManagerModal{display:none;position:fixed;inset:0;z-index:10050;background:rgba(10,25,40,.58);padding:16px;overflow:auto;align-items:center;justify-content:center}
#staffManagerModal .staff-manager-card{background:#fff;color:#12304a;width:min(100%,680px);margin:auto;border-radius:18px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:22px}
#staffManagerModal h2{margin:0 0 6px;font-size:22px;color:#12304a}
#staffManagerModal .staff-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
#staffManagerModal label{display:block;font-weight:650;font-size:13px;margin-bottom:5px}
#staffManagerModal input{width:100%;padding:11px;border:1px solid #cbd8e2;border-radius:9px;font:inherit;background:#fff;color:#12304a}
#staffManagerModal .staff-manager-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
#staffManagerModal .staff-manager-actions button{border:0;border-radius:9px;padding:11px 15px;font-weight:700;cursor:pointer}
#staffManagerModal .staff-primary{background:#1769aa;color:#fff}
#staffManagerModal .staff-secondary{background:#eaf4fb;color:#12304a}
#staffManagerModal .staff-note{font-size:13px;line-height:1.5;color:#526879;background:#f0f7fc;padding:11px;border-radius:9px}
#staffManagerModal .staff-status{font-size:14px;margin-top:10px;min-height:20px}
#staffManagerModal .staff-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:22px 0 12px}
#staffManagerModal .staff-list-heading h3{margin:0;font-size:18px;color:#12304a}
#staffManagerModal .staff-count{background:#e8f5fc;color:#1769aa;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800;white-space:nowrap}
#staffManagerModal .staff-directory{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}
#staffManagerModal .staff-person-card{min-width:0;border:1px solid #dbe7ef;border-radius:14px;padding:15px;background:linear-gradient(180deg,#fff,#f8fbfe);box-shadow:0 4px 14px rgba(18,48,74,.06)}
#staffManagerModal .staff-person-top{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px}
#staffManagerModal .staff-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:12px;background:#e2f3fc;color:#087fa9;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:17px}
#staffManagerModal .staff-person-name{font-size:16px;font-weight:800;color:#12304a;overflow-wrap:anywhere;line-height:1.3}
#staffManagerModal .staff-person-id{font-size:12px;color:#607789;margin-top:4px;overflow-wrap:anywhere}
#staffManagerModal .staff-person-status{display:inline-flex;margin-top:8px;padding:5px 8px;border-radius:999px;background:#fff3d8;color:#8a5a00;font-size:11px;font-weight:750;line-height:1.35}
#staffManagerModal .staff-detail-line{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;padding:8px 0;border-top:1px solid #e8eef3;font-size:13px}
#staffManagerModal .staff-detail-label{color:#607789;font-weight:700}
#staffManagerModal .staff-detail-value{color:#233f52;overflow-wrap:anywhere;word-break:break-word}
#staffManagerModal .staff-person-actions{display:flex;gap:8px;margin-top:13px}
#staffManagerModal .staff-person-actions button{flex:1;min-width:0;border:0;border-radius:9px;padding:10px 12px;font-weight:750;cursor:pointer}
#staffManagerModal .staff-empty{padding:22px 14px;text-align:center;color:#607789;background:#f5f9fc;border:1px dashed #cbdce8;border-radius:13px;grid-column:1/-1}
@media(max-width:520px){#staffManagerModal .staff-form-grid{grid-template-columns:1fr}#staffManagerModal .staff-manager-card{padding:16px}#staffManagerModal .staff-directory{grid-template-columns:1fr}#staffManagerModal .staff-person-card{padding:14px}}


/* ===== Extracted style block ===== */

#staffDirectoryPage .staff-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;margin-top:16px}
#staffDirectoryPage .staff-person-card{min-width:0;border:1px solid #d7e6ef;border-radius:16px;padding:16px;background:linear-gradient(180deg,#fff,#f7fbfe);box-shadow:0 5px 18px rgba(18,48,74,.07)}
#staffDirectoryPage .staff-person-actions{display:flex;gap:12px;margin-top:16px}
#staffDirectoryPage .staff-person-actions button{flex:1;min-width:0;border:0;border-radius:11px;padding:12px 10px;font-size:14px;font-weight:800;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}
#staffDirectoryPage .staff-person-actions button:first-child{background:#e8f5fc;color:#075985}
#staffDirectoryPage .staff-person-actions button:last-child{background:#fff0ef;color:#b42318}
#staffDirectoryPage .staff-detail-line{display:grid;grid-template-columns:76px minmax(0,1fr);gap:10px;padding:10px 0;border-top:1px solid #e8eef3;font-size:14px}
#staffDirectoryPage .staff-detail-value{overflow-wrap:anywhere;word-break:break-word}
.staff-permission-option{display:flex;align-items:center;gap:9px;border:1px solid #e0eaf1;border-radius:10px;padding:10px;background:#f7fbfe;font-weight:600;color:#29475b;font-size:14px}.staff-permission-option input{width:18px;height:18px;accent-color:#0879b5;flex:0 0 auto}.staff-permission-summary{margin-top:12px;padding:11px 12px;border-radius:10px;background:#eef7fc;color:#31566d;font-size:13px;line-height:1.6}.staff-permission-summary strong{color:#12304a}
@media(max-width:520px){#staffDirectoryPage .staff-directory{grid-template-columns:1fr}#staffDirectoryPage .staff-person-actions{gap:12px}#staffDirectoryPage .staff-person-actions button{padding:12px 8px}}


/* ===== Extracted style block ===== */

/* Keep the main hamburger usable above full-screen staff panels. */
#headerMenuToggle{z-index:10060!important}
#staffDirectoryPage .staff-overlay-menu,
#staffVerificationPage .staff-overlay-menu{
  border:1px solid #cbdce8!important;border-radius:10px!important;
  padding:11px 13px!important;background:#fff!important;color:#12304a!important;
  font-weight:800!important;min-height:42px!important;cursor:pointer!important;
}


/* Desktop/laptop persistent sidebar: mobile drawer behavior is unchanged. */
@media (min-width: 901px) {
  .header-menu-toggle { display: none !important; }
  header { width: calc(100% - 260px); margin-left: 260px; }
  header h1 { padding-left: 24px; }
  header h2 { padding-left: 24px; }
  main { width: calc(100% - 260px); max-width: none; margin-left: 260px; margin-right: 0; padding: 22px; }
  .side-nav, .side-nav.open {
    position: fixed !important; inset: 0 auto 0 0 !important;
    display: flex !important; flex-direction: column !important;
    width: 260px !important; max-width: 260px !important;
    height: 100vh !important; height: 100dvh !important;
    margin: 0 !important; padding: 0 !important; z-index: 99980 !important;
    overflow: hidden !important; background: #062b4b !important;
    border-right: 1px solid #16486d !important; border-radius: 0 !important;
    box-shadow: 8px 0 24px rgba(20,35,55,.18) !important;
  }
  .side-nav .side-menu, .side-nav.open .side-menu {
    display: flex !important; flex: 1 1 auto !important; flex-direction: column !important;
    min-height: 0 !important; max-height: none !important; width: 100% !important;
    overflow-y: auto !important; padding: 18px 14px !important; gap: 6px !important;
    border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    background: #062b4b !important;
  }
  .side-nav .side-item { color: #f4f8fc !important; border-color: transparent !important;
    border-radius: 9px !important; min-height: 48px !important; }
  .side-nav .side-item:hover { background: #12496f !important; color: #fff !important; }
  .side-nav .side-item.active { background: #087fce !important; color: #fff !important; border-color: #168bd4 !important; }
  .side-nav .sidebar-logout-footer, .side-nav.open .sidebar-logout-footer {
    display: block !important; flex: 0 0 auto !important; padding: 14px 14px 18px !important;
    border-top: 1px solid #16486d !important; background: #062b4b !important;
  }
  .side-nav #tahuraLogoutBtn { background: #123e60 !important; color: #fff !important;
    border: 1px solid #2a5b7c !important; }
}
