/* TechnoLMS — light ERP design system, v1.6 */
:root {
    --sidebar-width: 252px; --header-height: 64px;
    --bg: #f3f6fc; --surface: #fff; --text: #202d43; --muted: #64748b;
    --line: #e1e7f0; --accent: #3559d4; --accent-dark: #2949bc;
    --blue: #3559d4; --mint: #087c69; --purple: #7550bc; --amber: #98610c;
    --shadow: 0 2px 7px #233f6810; --radius: 13px;
    --bs-body-font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    --bs-body-font-size: .875rem; --bs-body-color: var(--text); --bs-body-bg: var(--bg);
    --bs-primary: var(--accent); --bs-primary-rgb: 53,89,212;
    --bs-border-color: var(--line); --bs-link-color: var(--accent); --bs-link-hover-color: var(--accent-dark);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--bs-body-font-family); font-size: 14px; line-height: 1.55; }
button, input, textarea, select { font: inherit; }
a { text-underline-offset: 3px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #7899ff; outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 2000; background: white; padding: 10px; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.app-shell { min-height: 100vh; }
/* Navigation and workspace shell */
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); display: flex; flex-direction: column; padding: 0 12px; background: var(--surface); border-right: 1px solid var(--line); z-index: 1040; transition: width .18s ease, transform .18s ease; }
.brand { min-height: 78px; display: flex; align-items: center; gap: 11px; padding: 13px 10px; text-decoration: none; color: #202d43; flex-shrink: 0; }
.brand-mark,.login-brand { width: 42px; height: 42px; border-radius: 12px; display: inline-grid; place-items: center; flex: 0 0 auto; background: linear-gradient(145deg,#637ff1,#3457d5); color: #fff; font-size: 23px; box-shadow: 0 5px 12px #3559d42a; }
.brand-copy { display: flex; flex-direction: column; white-space: nowrap; overflow: hidden; }
.brand-copy strong,.login-intro-brand strong { font-size: 21px; line-height: 1.2; letter-spacing: -.85px; color: #202d43; }
.brand-accent { color: var(--accent); }
.brand-copy small,.login-intro-brand small { display: block; font-size: 9px; letter-spacing: 1.35px; font-weight: 700; color: var(--muted); margin-top: 4px; }
.sidebar-workspace,.sidebar-footer { display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; }
.sidebar-workspace { background: #f1f5ff; border: 1px solid #e3eaff; border-radius: 11px; padding: 10px; margin: 0 1px 13px; }
.workspace-icon { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; background: #e1e9ff; color: #3a58bb; border-radius: 9px; font-size: 16px; }
.sidebar-workspace strong,.sidebar-footer strong { display: block; font-size: 12px; font-weight: 650; }
.sidebar-workspace small,.sidebar-footer small { display: block; font-size: 10px; color: var(--muted); }
.nav-search-wrap { margin: 0 1px 6px; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); }
.nav-search-wrap input { background: transparent; outline: none; border: none; width: 100%; min-width: 0; font-size: 12px; color: var(--text); }
.nav-search-wrap:focus-within { border-color: #9db2f9; box-shadow: 0 0 0 3px #3559d413; }
.sidebar-nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 0 1px 14px; scrollbar-width: thin; scrollbar-color: #d4deef transparent; }
.nav-label { padding: 14px 10px 5px; color: #74829b; font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .95px; white-space: nowrap; }
.sidebar .nav-link { position: relative; min-height: 37px; display: flex; align-items: center; gap: 11px; padding: 8px 10px; margin: 1px 0; color: #526178; border-radius: 8px; font-weight: 550; font-size: 12.75px; text-decoration: none; white-space: nowrap; }
.sidebar .nav-link i { width: 20px; text-align: center; font-size: 16px; flex-shrink: 0; color: #6a7d9d; }
.sidebar .nav-link:hover { background: #f1f5fc; color: #2949bc; }
.sidebar .nav-link.active { color: #2449c1; background: #eaf0ff; font-weight: 700; }
.sidebar .nav-link.active i { color: #3559d4; }
.sidebar .nav-link.active:before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: #466ae3; }
.nav-empty { padding: 16px 10px; color: var(--muted); font-size: 12px; }
.sidebar-footer { padding: 12px 6px; border-top: 1px solid var(--line); flex-shrink: 0; }
.sidebar-footer .workspace-icon { background: #edf1f7; color: #71829b; }
.main { min-width: 0; margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left .18s ease; }
.topbar { display: flex; align-items: center; gap: 14px; height: var(--header-height); padding: 0 24px; position: sticky; top: 0; z-index: 1020; background: #fffffffa; border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.topbar-path { display: flex; gap: 9px; align-items: center; min-width: 0; color: var(--muted); font-size: 12px; }
.topbar-path i { font-size: 10px; color: #97a4b9; }
.topbar-path strong { color: #33435c; font-weight: 650; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-right { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-shrink: 0; }
.topbar-date { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; padding-right: 14px; border-right: 1px solid var(--line); }
.user-chip { display: flex; align-items: center; gap: 8px; }
.user-avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e8edff; color: #3c56bd; font-size: 12px; font-weight: 750; }
.user-copy { display: flex; flex-direction: column; max-width: 185px; }
.user-copy strong { color: #33435c; font-size: 12px; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.user-copy small { color: var(--muted); font-size: 10.5px; }
.icon-btn,.action-btn,.icon-action { border: 1px solid #e1e8f2; background: #f6f8fc; color: #536682; width: 35px; height: 35px; display: inline-grid; place-items: center; border-radius: 8px; text-decoration: none; line-height: 1; flex-shrink: 0; transition: background .12s,color .12s,border-color .12s; }
.icon-btn:hover,.action-btn:hover,.icon-action:hover { border-color: #c9d6f4; background: #eaf0ff; color: #3154cc; }
.action-btn,.icon-action { width: 32px; height: 32px; font-size: 14px; margin: 2px 2px 2px 0; }
.action-btn.danger,.icon-action.danger,.erp-action-danger { color: #bd344d; background: #fff0f2; border-color: #f9dce3; }
.action-btn.danger:hover,.icon-action.danger:hover,.erp-action-danger:hover { color: #9b2139; background: #ffe1e7; }
.erp-action-edit { color: #3559d4; background: #edf2ff; border-color: #dfe7ff; }
.erp-action-check { color: #087c69; background: #eaf8f3; border-color: #d7efe6; }
.sidebar-backdrop { display: none; }
.content { padding: 24px 26px 30px; width: 100%; max-width: 1920px; margin: 0 auto; flex: 1; min-width: 0; }
.app-footer { display: flex; justify-content: space-between; gap: 12px; padding: 13px 26px; color: #72819a; font-size: 11px; border-top: 1px solid var(--line); }
.nav-compact { --sidebar-width: 72px; }
.nav-compact .sidebar { padding: 0 8px; }
.nav-compact .brand { padding: 13px 7px; }
.nav-compact .brand-copy,.nav-compact .sidebar-workspace>div,.nav-compact .sidebar-footer>div,.nav-compact .nav-label,.nav-compact .sidebar .nav-link span,.nav-compact .nav-search-wrap { display: none; }
.nav-compact .sidebar-workspace { padding: 7px; justify-content: center; }
.nav-compact .sidebar .nav-link { justify-content: center; padding: 9px 0; }
.nav-compact .nav-group+.nav-group { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.nav-compact .sidebar-footer { justify-content: center; }
/* Heading, panels and data tables */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0 0 20px; flex-wrap: wrap; }
.page-head>div:first-child { flex: 1; min-width: min(100%,260px); }
.page-head h2 { color: #21314b; font-size: clamp(22px,2vw,27px); font-weight: 720; line-height: 1.24; letter-spacing: -.55px; margin: 0 0 6px; }
.page-head p { color: var(--muted); margin: 0; font-size: 13px; max-width: 920px; }
.page-head .btn { white-space: nowrap; }
.page-head .d-flex { flex-wrap: wrap; }
.eyebrow { font-size: 10px; color: #5267a3; font-weight: 750; letter-spacing: 1.3px; margin-bottom: 7px; }
.card-panel,.form-card,.table-card,.metric-card,.kpi { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.card-panel,.form-card,.table-card { padding: 20px; }
.card-panel,.table-card { margin-top: 15px; }
.form-card { max-width: none; width: 100%; }
.form-card+.card-panel,.form-card+.table-card { margin-top: 18px; }
.card-panel h5,.form-card h5,.table-card h5 { font-size: 16px; line-height: 1.4; color: #283850; font-weight: 700; }
.form-card>h5 { margin: 0 0 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.form-card>h5 i,.card-panel h5 i { color: var(--accent); margin-right: 5px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-bottom: 14px; }
.panel-head h5 { margin: 0; }
.panel-head p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.table-responsive { border: 1px solid var(--line); border-radius: 9px; overflow-x: auto; scrollbar-width: thin; }
.table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-hover-bg: #f5f8ff; --bs-table-hover-color: var(--text); margin-bottom: 0; font-size: 13px; width: 100%; }
.table thead th { background: #f0f4fa; padding: 11px 13px; font-size: 10.5px; color: #5f708b; text-transform: uppercase; letter-spacing: .45px; font-weight: 750; white-space: nowrap; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table td { padding: 11px 13px; border-color: #eaf0f6; vertical-align: middle; overflow-wrap: break-word; }
.table tbody tr:last-child td { border-bottom-width: 0; }
.table tbody tr:nth-child(even) { background: #fafbfd; }
.table tbody tr:hover { background: #f2f6ff; }
.table td small { color: var(--muted); font-size: 11.5px; }
.table td strong,.table td b { font-weight: 680; }
.table td form.d-inline,.table td .icon-action,.table td .action-btn { white-space: nowrap; }
.table td:last-child:has(.icon-action),.table td:last-child:has(.action-btn) { min-width: 64px; }
.table td .form-control,.table td .form-select { min-width: 100px; }
.table-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 12px; flex-wrap: wrap; }
.table-tools-count { color: var(--muted); font-size: 12px; }
.table-search { display: flex; align-items: center; gap: 8px; border: 1px solid #dce4f0; background: #fff; border-radius: 8px; padding: 7px 10px; width: min(260px,100%); color: #71819c; }
.table-search:focus-within { border-color: #8aa5fa; box-shadow: 0 0 0 3px #3559d410; }
.table-search input { border: 0; background: transparent; color: var(--text); width: 100%; min-width: 0; outline: none; font-size: 12px; }
.table-empty { text-align: center; padding: 32px 14px !important; color: var(--muted); }
.table-empty i { display: block; font-size: 25px; color: #94a6c2; margin-bottom: 7px; }
.code-chip,.status-pill,.badge-soft,.erp-status { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 650; padding: 4px 9px; border-radius: 7px; background: #edf2ff; color: #3c58b4; white-space: normal; line-height: 1.45; }
.code-chip { font-size: 11px; border: 1px solid #e1e8fb; }
.status-pill,.erp-status { border-radius: 999px; }
.erp-status.is-success { background: #e6f6ed !important; color: #176a48 !important; }
.erp-status.is-warning { background: #fff1d9 !important; color: #87580b !important; }
.erp-status.is-danger { background: #ffe8ec !important; color: #a72c43 !important; }
.erp-status.is-neutral { background: #edf0f6 !important; color: #53637b !important; }
.erp-status.is-info { background: #e9efff !important; color: #3559b9 !important; }
.erp-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
/* Forms, actions and notices */
.form-card label,.form-label { color: #34435a; font-size: 12.5px; font-weight: 650; margin-bottom: 6px; display: inline-block; }
.form-card .row { --bs-gutter-x: 1.1rem; --bs-gutter-y: 1.05rem; }
.form-card .form-check label { margin-bottom: 0; font-weight: 500; }
.form-control,.form-select,.input-group-text { border-color: #dbe3ef; background-color: #fff; color: var(--text); border-radius: 8px; font-size: 13px; min-height: 40px; padding: .57rem .73rem; box-shadow: none; }
.form-select { padding-right: 2rem; }
.form-control-sm,.form-select-sm { min-height: 33px; padding-top: .34rem; padding-bottom: .34rem; font-size: 12px; }
.form-select-sm { padding-right: 1.8rem; }
.form-control::placeholder { color: #7e8da4; opacity: 1; }
.form-control:focus,.form-select:focus { border-color: #8da6f4; box-shadow: 0 0 0 3px #3559d416; }
.form-control[readonly],.form-control:disabled,.form-select:disabled { background: #f1f4f9; color: #62718a; }
textarea.form-control { min-height: 78px; }
.input-group-text { color: #71829d; background: #f7f9fd; }
input[type=checkbox],input[type=radio] { accent-color: var(--accent); }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; border-top: 1px solid var(--line); margin: 20px -20px -20px; padding: 14px 20px; background: #fafbfd; border-radius: 0 0 var(--radius) var(--radius); }
.btn { --bs-btn-font-size: 13px; --bs-btn-font-weight: 620; --bs-btn-border-radius: 8px; --bs-btn-padding-y: .56rem; --bs-btn-padding-x: .88rem; display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 38px; }
.btn-sm { --bs-btn-font-size: 11.5px; --bs-btn-padding-y: .33rem; --bs-btn-padding-x: .65rem; min-height: 31px; }
.btn-primary { --bs-btn-bg: #3559d4; --bs-btn-border-color: #3559d4; --bs-btn-hover-bg: #2949bc; --bs-btn-hover-border-color: #2949bc; --bs-btn-active-bg: #2949bc; --bs-btn-active-border-color: #2949bc; box-shadow: 0 2px 5px #3559d41c; }
.btn-outline-primary { --bs-btn-color: #3559d4; --bs-btn-border-color: #b9c9f6; --bs-btn-hover-bg: #3559d4; --bs-btn-hover-border-color: #3559d4; background: #fff; }
.btn-light { --bs-btn-color: #475b78; --bs-btn-bg: #fff; --bs-btn-border-color: #dce4f0; --bs-btn-hover-bg: #edf2fc; --bs-btn-hover-border-color: #cbd7ee; }
.alert { border-radius: 10px; border-width: 1px; font-size: 13px; }
.info-strip { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d9e5fb; border-radius: 11px; padding: 14px 17px; background: #edf4ff; color: #3f5680; font-size: 13px; }
.info-strip>i { font-size: 19px; color: #4166cc; line-height: 1.5; }
.form-section { margin-bottom: 22px; }
.form-section:last-of-type { margin-bottom: 0; }
.form-section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.form-section-title>span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #eef2ff; color: var(--accent); font-size: 15px; flex-shrink: 0; }
.form-section-title h3 { margin: 0; font-size: 15px; font-weight: 700; color: #283850; }
.form-section-title p { margin: 2px 0 0; font-size: 11.5px; color: var(--muted); }
/* Searchable master data: preserve the existing lookup widget and dependencies */
.master-autocomplete { position: relative; min-width: 0; }
.master-autocomplete-control { flex-wrap: nowrap; }
.master-autocomplete-icon { background: #f6f8fd; border-color: #dbe3ef; color: #71829d; padding-left: 11px; padding-right: 11px; }
.master-autocomplete-input { border-left: 0; min-width: 0; }
.master-autocomplete-toggle { background: #fff; border-color: #dbe3ef; color: #71829d; min-width: 36px; padding: 0 9px; }
.master-autocomplete.open .master-autocomplete-toggle { color: var(--accent); border-color: #a9bdf8; }
.master-autocomplete-menu { position: absolute; z-index: 1080; top: calc(40px + 4px); left: 0; right: 0; background: #fff; border: 1px solid #dbe4f2; border-radius: 10px; box-shadow: 0 10px 28px #243c6829; padding: 5px; max-height: 270px; overflow: auto; min-width: 0; }
.master-autocomplete-item { width: 100%; border: 0; background: transparent; border-radius: 7px; padding: 8px; display: flex; gap: 9px; align-items: flex-start; text-align: left; color: var(--text); }
.master-autocomplete-item:hover,.master-autocomplete-item.active { background: #eef3ff; }
.master-autocomplete-item-icon { width: 28px; height: 28px; border-radius: 7px; background: #e9efff; color: var(--accent); display: grid; place-items: center; flex: 0 0 auto; }
.master-autocomplete-item-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.master-autocomplete-item-title { font-size: 12.5px; font-weight: 650; overflow-wrap: anywhere; }
.master-autocomplete-item-meta { font-size: 11px; color: #65748c; overflow-wrap: anywhere; }
.master-autocomplete-message { display: flex; gap: 8px; align-items: center; padding: 12px; color: var(--muted); font-size: 12px; }
.master-autocomplete-message.loading i { animation: ma-spin 1s linear infinite; }
.master-autocomplete-help { font-size: 11px; color: #667894; margin-top: 5px; display: flex; gap: 5px; align-items: flex-start; line-height: 1.4; }
.master-autocomplete-help i { margin-top: 1px; }
.lookup-form-grid .master-autocomplete-help,.lookup-inline .master-autocomplete-help { display: none; }
.lookup-inline { min-width: 200px; }
@keyframes ma-spin { to { transform: rotate(360deg); } }
/* Dashboard components */
.tone-blue { --tone: #3559d4; --tint: #eef3ff; --tone-line: #dae4ff; }
.tone-purple { --tone: #7550bc; --tint: #f3edff; --tone-line: #e9ddff; }
.tone-mint { --tone: #087c69; --tint: #e9f8f3; --tone-line: #d8efe7; }
.tone-amber { --tone: #98610c; --tint: #fff5e4; --tone-line: #f5e5c7; }
.tone-rose { --tone: #b13e5b; --tint: #fff0f4; --tone-line: #f7dce6; }
.dashboard-heading { margin-bottom: 15px; }
.date-chip,.badge-soft { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: white; color: #64758e; border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 600; }
.dashboard-banner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border-radius: 13px; border: 1px solid #dbe5fb; background: linear-gradient(110deg,#e9efff 0%,#f1f5ff 60%,#e4f7f4 100%); }
.banner-kicker { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 750; letter-spacing: 1.1px; color: #526ba8; margin-bottom: 6px; }
.banner-kicker span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #438f80; }
.dashboard-banner h3 { font-size: clamp(18px,2vw,23px); color: #213c7a; font-weight: 720; margin: 0 0 5px; letter-spacing: -.4px; }
.dashboard-banner p { font-size: 12.5px; color: #5a7094; margin: 0; }
.banner-link { text-decoration: none; white-space: nowrap; display: flex; align-items: center; gap: 9px; padding: 10px 14px; border: 1px solid #cdd9f6; color: #3559c5; background: #fff; border-radius: 8px; font-weight: 650; font-size: 12px; }
.banner-link:hover { background: #f4f7ff; color: #2949bc; }
.banner-decoration { position: absolute; z-index: -1; right: 105px; bottom: -80px; font-size: 180px; line-height: 1; color: #5276ce0c; transform: rotate(-13deg); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 22px 0 11px; }
.section-heading h3 { font-size: 15px; color: #30405a; font-weight: 720; margin: 0; }
.section-heading span { font-size: 11.5px; color: var(--muted); }
.kpi-grid,.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; }
.metric-grid { margin-top: 13px; }
.kpi { --tone: #3559d4; --tint: #eef3ff; --tone-line: #dce6ff; padding: 16px; display: flex; gap: 12px; align-items: center; }
.kpi:nth-child(4n+2) { --tone: #7550bc; --tint: #f3edff; --tone-line: #e9ddff; }
.kpi:nth-child(4n+3) { --tone: #087c69; --tint: #e9f8f3; --tone-line: #d8efe7; }
.kpi:nth-child(4n+4) { --tone: #98610c; --tint: #fff5e4; --tone-line: #f5e5c7; }
.kpi>i,.kpi-top i,.metric-top i,.feature-icon { width: 39px; height: 39px; flex: 0 0 auto; border-radius: 10px; display: inline-grid; place-items: center; background: var(--tint,#eef3ff); color: var(--tone,#3559d4); font-size: 19px; }
.kpi>div { min-width: 0; }
.kpi span,.metric-card span { display: block; color: var(--muted); font-size: 12px; font-weight: 550; }
.kpi b { display: block; font-size: 26px; color: #263650; font-weight: 750; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi small,.metric-card small { color: #6b7a90; font-size: 11px; }
.dashboard-kpis .kpi { display: block; border-color: var(--tone-line); background: linear-gradient(145deg,var(--tint) 0%,#fff 83%); padding: 14px 16px; }
.kpi-top,.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-kpis .kpi-top span { color: #4a5971; font-weight: 650; font-size: 12.5px; }
.dashboard-kpis .kpi b { font-size: 29px; margin: 5px 0 1px; letter-spacing: -.55px; }
.metric-card { padding: 16px; }
.metric-card b { display: block; font-size: 27px; color: #263650; line-height: 1.25; letter-spacing: -.6px; font-weight: 720; margin: 9px 0; font-variant-numeric: tabular-nums; }
.metric-card b small { font-size: 16px; margin-left: 2px; font-weight: 650; }
.metric-card h5 { font-size: 15px; color: #34445d; font-weight: 650; }
.metric-top i { width: 32px; height: 32px; font-size: 16px; }
.dashboard-metrics { margin: 0; }
.progress { --bs-progress-height: 7px; height: 7px; background: #eaf0f7; border-radius: 999px; margin: 8px 0 3px; }
.progress-bar { background: var(--tone,#5071e2); border-radius: inherit; }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0,2.1fr) minmax(250px,1fr); gap: 15px; margin-top: 18px; align-items: start; }
.dashboard-bottom .card-panel { margin-top: 0; }
.coverage-cell { min-width: 84px; max-width: 132px; }
.coverage-cell strong { font-size: 12px; color: #3952b3; }
.coverage-cell .progress { height: 5px; margin-top: 5px; }
.quick-link { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--text); padding: 11px 0; border-top: 1px solid var(--line); }
.quick-link:hover { color: #3559d4; }
.quick-link>span:nth-child(2) { flex: 1; min-width: 0; }
.quick-link strong,.quick-link small { display: block; }
.quick-link strong { font-size: 12px; font-weight: 680; }
.quick-link small { font-size: 11px; color: var(--muted); }
.quick-link>i { font-size: 11px; color: #8290a6; }
.distribution { display: flex; flex-direction: column; gap: 13px; }
.distribution-row { display: grid; grid-template-columns: 70px minmax(0,1fr) 56px; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.distribution-row .progress { height: 13px; margin: 0; background: #f0f3f8; }
.distribution-row strong { font-size: 13px; color: var(--text); text-align: right; }
/* Login */
.login-body { min-height: 100vh; background: radial-gradient(ellipse at 8% 10%,#e7eeff 0,transparent 55%),radial-gradient(ellipse at 90% 94%,#ddf4ed 0,transparent 46%),#f5f7fc; display: grid; place-items: center; padding: 28px; }
.login-shell { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,1fr); width: min(1050px,100%); min-height: 610px; background: #fff; border: 1px solid #dfe6f2; border-radius: 21px; box-shadow: 0 20px 65px #253b6d16; overflow: hidden; }
.login-intro { position: relative; display: flex; flex-direction: column; padding: 36px 38px 27px; background: linear-gradient(145deg,#eaf0ff 5%,#f0f5ff 58%,#e8f8f4); border-right: 1px solid #e1e8f6; }
.login-intro-brand { display: flex; align-items: center; gap: 12px; }
.login-intro-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 38px 0; }
.login-intro h1 { font-size: clamp(38px,4vw,53px); line-height: 1.08; letter-spacing: -2px; margin: 0 0 16px; color: #22345f; font-weight: 780; }
.login-intro h1 span { color: #4163d2; }
.login-intro-content>p { color: #5b6e90; margin: 0 0 24px; font-size: 14px; line-height: 1.7; max-width: 400px; }
.login-feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.login-feature { background: #ffffffb8; border: 1px solid #fff; border-radius: 11px; padding: 13px; }
.login-feature .feature-icon { width: 32px; height: 32px; font-size: 16px; margin-bottom: 8px; }
.login-feature strong,.login-feature small { display: block; }
.login-feature strong { font-size: 12px; color: #35465f; }
.login-feature small { font-size: 11px; color: var(--muted); }
.login-intro-footer { display: flex; gap: 7px; align-items: center; color: #647997; font-size: 11px; }
.login-form-side { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 40px; }
.login-card { width: 100%; max-width: 350px; }
.login-brand { background: #eef3ff; color: #3559d4; box-shadow: none; margin-bottom: 20px; }
.login-card h2 { font-size: 29px; font-weight: 730; letter-spacing: -.8px; margin: 0 0 5px; }
.login-card>p { color: var(--muted); font-size: 13px; margin: 0 0 27px; }
.login-card .form-control,.login-card .input-group-text { min-height: 45px; }
.login-card .form-label { font-size: 13px; }
.login-submit { min-height: 45px; justify-content: space-between; }
.login-help { color: var(--muted); font-size: 11.5px; padding: 18px 0 0; margin-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.login-copyright { color: #7888a0; margin-top: 35px; font-size: 11px; }
/* Responsive layout */
@media (min-width: 1650px) { .content { padding: 30px 35px; } }
@media (max-width: 1240px) { .dashboard-bottom { grid-template-columns: minmax(0,1fr); } .quick-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 18px; } .quick-panel .panel-head { grid-column: 1 / -1; } .topbar-date { display: none; } }
@media (max-width: 1080px) { .kpi-grid,.metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .content { padding: 20px; } }
@media (max-width: 900px) { :root,.nav-compact { --sidebar-width: 252px; } .sidebar { transform: translateX(-100%); } .main { margin-left: 0; } .nav-open .sidebar { transform: translateX(0); } .nav-open .sidebar-backdrop { display: block; position: fixed; inset: 0; border: 0; background: #202d4366; z-index: 1035; } .nav-open body { overflow: hidden; } .nav-compact .sidebar { padding: 0 12px; } .nav-compact .brand-copy,.nav-compact .sidebar-workspace>div,.nav-compact .sidebar-footer>div,.nav-compact .nav-label,.nav-compact .sidebar .nav-link span { display: revert; } .nav-compact .nav-search-wrap { display: flex; } .nav-compact .sidebar .nav-link { justify-content: flex-start; padding: 8px 10px; } .nav-compact .sidebar-workspace { justify-content: flex-start; padding: 10px; } .nav-compact .sidebar-footer { justify-content: flex-start; } .nav-compact .nav-group+.nav-group { margin-top: 0; padding-top: 0; border: 0; } }
@media (max-width: 700px) { .content { padding: 16px 13px 24px; } .topbar { gap: 10px; padding: 0 13px; } .topbar-path span,.topbar-path i,.user-copy { display: none; } .topbar-right { gap: 8px; } .page-head { gap: 12px; margin-bottom: 15px; } .card-panel,.form-card,.table-card { padding: 14px; } .form-actions { margin: 18px -14px -14px; padding: 13px 14px; } .dashboard-banner { align-items: flex-start; flex-direction: column; padding: 17px; } .section-heading { margin-top: 19px; } .section-heading span { text-align: right; } .kpi-grid,.metric-grid { gap: 9px; } .kpi,.dashboard-kpis .kpi,.metric-card { padding: 12px; } .dashboard-kpis .kpi b { font-size: 25px; } .kpi-top i { width: 31px; height: 31px; font-size: 16px; } .metric-top i { width: 28px; height: 28px; } .metric-card b { font-size: 23px; } .quick-panel { display: block; } .app-footer { padding: 12px 13px; } .app-footer span:last-child { display: none; } .login-body { padding: 15px; } .login-shell { display: block; min-height: 0; max-width: 470px; } .login-intro { padding: 22px; border: 0; border-bottom: 1px solid #e1e8f6; } .login-intro-content,.login-intro-footer { display: none; } .login-form-side { padding: 30px 24px; } .login-copyright { margin-top: 25px; } }
@media (max-width: 365px) { .kpi-grid,.metric-grid { grid-template-columns: minmax(0,1fr); } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; animation-duration: .01ms !important; } }
.approval-flow { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px; border: 1px solid #dfe7f7; border-radius: 11px; background: #f5f8ff; margin-bottom: 23px; }
.approval-flow>div { display: flex; gap: 9px; align-items: center; flex: 1; min-width: 0; }
.flow-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; background: #e5edff; color: #3c5ac5; font-size: 17px; }
.approval-flow>div:nth-of-type(2) .flow-icon { background: #f0e9ff; color: #7550bc; }
.approval-flow>div:nth-of-type(3) .flow-icon { background: #dff4eb; color: #087c69; }
.approval-flow strong,.approval-flow small { display: block; }
.approval-flow strong { color: #35465f; font-size: 12px; font-weight: 700; }
.approval-flow small { color: var(--muted); font-size: 11px; }
.flow-arrow { font-size: 11px; color: #92a0b9; }
@media(max-width: 650px) { .approval-flow { align-items: stretch; flex-direction: column; gap: 10px; } .flow-arrow { display: none; } }

/* TechnoLMS branding: original supplied artwork, without filters or distortion. */
.brand-mark { width: 48px; height: 48px; padding: 0; background: #fff; box-shadow: none; border-radius: 50%; overflow: hidden; }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-accent { color: #d51a25; }
.login-intro-brand .brand-mark { width: 60px; height: 60px; }
.nav-compact .brand-mark { width: 42px; height: 42px; }
@media (max-width: 900px) { .nav-compact .brand-mark { width: 48px; height: 48px; } }
@media (max-width: 700px) { .login-intro-brand .brand-mark { width: 48px; height: 48px; } }
