/* SiteTrack's presentation layer. Existing Bootstrap components and application hooks remain in place. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-latin-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --st-bg: #0e1116;
  --st-surface: #15191f;
  --st-raised: #1b2028;
  --st-input: #11151b;
  --st-line: #2a303a;
  --st-line-strong: #414a58;
  --st-text: #f3f4f6;
  --st-muted: #9ba4b3;
  --st-accent: #ffbd3e;
  --st-accent-ink: #ffbd3e;
  --st-accent-hover: #ffd077;
  --st-accent-soft: rgba(255, 189, 62, .10);
  --st-focus: rgba(255, 189, 62, .35);
  --st-highlight-bg: #302719;
  --st-highlight-text: #fff4dc;
  --st-stripe: rgba(255, 255, 255, .02);
  --st-row-hover: rgba(251, 146, 60, .06);
  --st-action: #e8520a;
  --st-radius: 14px;
  --sidenav-width: 248px;
  --topbar-height: 76px;
}
html[data-bs-theme="light"] {
  --st-bg: #f5f5f3;
  --st-surface: #ffffff;
  --st-raised: #f0f1ee;
  --st-input: #ffffff;
  --st-line: #e0e3de;
  --st-line-strong: #b9bfb5;
  --st-text: #20251f;
  --st-muted: #626d61;
  --st-accent: #e8ab2b;
  --st-accent-ink: #8a5b00;
  --st-accent-hover: #f4bb49;
  --st-accent-soft: #fff3d8;
  --st-focus: rgba(195, 137, 14, .3);
  --st-highlight-bg: #fff4da;
  --st-highlight-text: #49320a;
  --st-stripe: rgba(15, 23, 42, .025);
  --st-row-hover: rgba(251, 146, 60, .10);
}
body.st-app, body.st-auth {
  --primary: var(--st-accent);
  --primary-hover: var(--st-accent-hover);
  --primary-rgb: 255, 189, 62;
  --primary-transparent: var(--st-accent-soft);
  --body-color: var(--st-muted);
  --heading-color: var(--st-text);
  --border-color: var(--st-line);
  --gray-900: var(--st-text);
  --gray-800: var(--st-text);
  --gray-600: var(--st-muted);
  --light: var(--st-raised);
  --light-100: var(--st-surface);
  --white: var(--st-surface);
  --menu-bg: var(--st-bg);
  --menu-item-heading: var(--st-text);
  --menu-item-color: var(--st-text);
  --menu-active-color: var(--st-accent-soft);
  --menu-subdrop-active: var(--st-accent-ink);
  --topbar-bg: var(--st-bg);
  --bs-body-color: var(--st-text);
  --bs-body-bg: var(--st-bg);
  --bs-border-color: var(--st-line);
  background: var(--st-bg);
  color: var(--st-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.st-app h1, .st-app h2, .st-app h3, .st-app h4, .st-app h5, .st-app h6,
.st-auth h1, .st-auth h2, .st-auth h3, .st-auth h4 { color: var(--st-text); letter-spacing: -.025em; }
.st-app a, .st-auth a { text-underline-offset: 4px; }
.st-app :is(a, button, input, select, textarea):focus-visible,
.st-auth :is(a, button, input):focus-visible { outline: 3px solid var(--st-focus); outline-offset: 3px; }
.st-app .text-dark, .st-app .text-body, .st-auth .text-body { color: var(--st-text) !important; }
.st-app .text-muted, .st-auth .text-muted { color: var(--st-muted) !important; }
.st-app .text-primary, .st-auth .text-primary { color: var(--st-accent-ink) !important; }
.st-app .bg-white, .st-app .bg-light { background: var(--st-raised) !important; }
.st-app .border, .st-app .border-top, .st-app .border-bottom { border-color: var(--st-line) !important; }
.st-app .btn, .st-auth .btn {
  min-height: 40px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  box-shadow: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.st-app .btn-primary, .st-app .bg-primary, .st-auth .btn-primary {
  background: var(--st-accent) !important;
  border-color: var(--st-accent) !important;
  color: #17150f !important;
}
.st-app .btn-primary:hover, .st-auth .btn-primary:hover { background: var(--st-accent-hover) !important; border-color: var(--st-accent-hover) !important; }
.st-app .btn-white, .st-app .btn-light, .st-app .btn-outline-light {
  background: var(--st-surface);
  border: 1px solid var(--st-line);
  color: var(--st-text);
}
.st-app .btn-white:hover, .st-app .btn-light:hover { background: var(--st-raised); border-color: var(--st-line-strong); }
.st-app .btn-icon { width: 40px; padding: 8px; display: inline-grid; place-items: center; }
.st-app .btn-sm { min-height: 32px; padding: 6px 11px; font-size: 13px; }
.st-app .btn-danger, .st-app .btn-success { color: #fff !important; }
.st-app .card {
  background: var(--st-surface);
  color: var(--st-text);
  border: 1px solid var(--st-line);
  border-radius: var(--st-radius);
  box-shadow: none !important;
  overflow: hidden;
}
.st-app .card-header { background: transparent; border-bottom: 1px solid var(--st-line); padding: 20px; }
.st-app .card-header h5 { font-size: 16px; font-weight: 600; }
.st-app .card-body { padding: 20px; }
.st-app .card-header:first-child { border-radius: 0; }
.st-app .form-control, .st-app .form-select, .st-auth .form-control {
  background-color: var(--st-input);
  border: 1px solid var(--st-line-strong);
  border-radius: 8px;
  color: var(--st-text);
  min-height: 42px;
  font-size: 16px;
}
.st-app .form-control:focus, .st-app .form-select:focus, .st-auth .form-control:focus {
  background-color: var(--st-input);
  border-color: var(--st-accent);
  color: var(--st-text);
  box-shadow: 0 0 0 3px var(--st-accent-soft);
}
.st-app .form-control::placeholder, .st-auth .form-control::placeholder { color: var(--st-muted); opacity: .7; }
.st-app .form-label, .st-auth .form-label { color: var(--st-text); font-size: 14px; font-weight: 500; margin-bottom: 9px; }
.st-app .input-group-text { background: var(--st-raised); color: var(--st-muted); border-color: var(--st-line-strong); }
.st-app input[type="checkbox"], .st-app input[type="radio"] { accent-color: var(--st-accent); }
.st-app .select2-container--default .select2-selection--single,
.st-app .select2-container--default .select2-selection--multiple { background: var(--st-input); border: 1px solid var(--st-line-strong); border-radius: 8px; min-height: 42px; font-size: 16px; }
.st-app .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--st-text); }
.st-app .select2-dropdown, .st-app .flatpickr-calendar, .st-app .daterangepicker { background: var(--st-surface); color: var(--st-text); border-color: var(--st-line); }
.st-app .select2-results__option--highlighted[aria-selected] { background: var(--st-accent-soft); color: var(--st-accent-ink); }
.st-app .select2-container--default .select2-results__option[aria-selected=true] { background: var(--st-raised); }
.st-app .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--st-text);
  --bs-table-border-color: var(--st-line);
  --bs-table-striped-bg: var(--st-raised);
  --bs-table-striped-color: var(--st-text);
  --bs-table-hover-bg: var(--st-raised);
  --bs-table-hover-color: var(--st-text);
  color: var(--st-text);
  border-color: var(--st-line) !important;
}
.st-app .table > thead > tr > th { background: var(--st-raised); color: var(--st-muted); border-color: var(--st-line); font-size: 12px !important; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 14px; }
.st-app .table > tbody > tr > td { background: transparent; color: var(--st-text); border-color: var(--st-line); padding: 16px 14px; font-size: 14px; }
.st-app .table > tbody > tr:hover > td { background: var(--st-raised); }
.st-app :is(.table-responsive, .table-responsive-sm, .table-responsive-md) { overflow-x: auto; overscroll-behavior-x: contain; }
.st-app .table a:not(.btn):not(.dropdown-item) { color: var(--st-text); }
.st-app .table a:not(.btn):hover { color: var(--st-accent); }
.st-app table[id$="_table"] tbody td:last-child { white-space: nowrap; }
.st-app table[id$="_table"] tbody td:last-child .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 30px; min-width: 30px; height: 30px; padding: 5px; margin: 2px 1px; }
.st-app .dataTables_wrapper .dataTables_length, .st-app .dataTables_wrapper .dataTables_filter, .st-app .dataTables_info { color: var(--st-muted); font-size: 13px; }
.st-app .dataTables_filter input { margin-left: 10px; }
.st-app .page-link { background: var(--st-surface); color: var(--st-muted); border-color: var(--st-line); border-radius: 6px; margin: 0 2px; }
.st-app .page-link:hover { background: var(--st-raised); color: var(--st-text); border-color: var(--st-line); }
.st-app .page-item.active .page-link { background: var(--st-accent); color: #17150f; border-color: var(--st-accent); }
.st-app .page-item.disabled .page-link { background: var(--st-surface); color: var(--st-muted); border-color: var(--st-line); opacity: .5; }
.st-app .badge { border-radius: 6px; font-size: 12px; padding: 6px 9px; font-weight: 500; }
.st-app .badge-soft-success { background: rgba(67, 190, 145, .12); color: #73d7b1; }
.st-app .badge-soft-danger { background: rgba(247, 112, 112, .12); color: #ff9797; }
.st-app .badge-soft-warning, .st-app .badge-soft-orange { background: var(--st-accent-soft); color: var(--st-accent-ink); }
html[data-bs-theme="light"] .st-app .badge-soft-success { color: #16714c; }
html[data-bs-theme="light"] .st-app .badge-soft-danger { color: #ad3030; }
.st-app .modal-content, .st-app .dropdown-menu, .st-app .swal2-popup, .st-auth .swal2-popup { background: var(--st-surface); border: 1px solid var(--st-line); border-radius: 12px; color: var(--st-text); }
.st-app .modal-header, .st-app .modal-footer { border-color: var(--st-line); }
.st-app .dropdown-item { color: var(--st-text); font-size: 14px; border-radius: 6px; }
.st-app .dropdown-item:hover, .st-app .dropdown-item:focus { background: var(--st-raised); color: var(--st-text); }
.st-app .swal2-title, .st-auth .swal2-title, .st-app .swal2-html-container, .st-auth .swal2-html-container { color: var(--st-text); }
.st-app .main-wrapper { padding-top: 0; }
.st-app .sidebar { display: flex; flex-direction: column; background: var(--st-bg); width: 248px; border-right: 1px solid var(--st-line); top: 0; height: 100vh; z-index: 1040; overflow: hidden; }
.st-app .sidebar-logo { position: relative; display: flex; align-items: center; width: 100%; flex: 0 0 76px; line-height: normal; background: var(--st-bg); height: 76px; padding: 0 18px 0 24px; border-bottom: 1px solid var(--st-line); }
.st-app .sidebar-inner { top: 0; flex: 1; min-height: 0; height: calc(100vh - 76px); padding: 17px 12px 24px; }
.st-app .sidebar .sidebar-menu { margin: 0; padding: 0; }
.st-app .sidebar-menu .menu-title { font-size: 11px; letter-spacing: .13em; color: var(--st-muted); padding: 12px 13px 10px; }
.st-app .sidebar .sidebar-menu .menu-title span { font-size: 11px; font-weight: 500; color: var(--st-muted); }
.st-app .sidebar-menu > ul > li { margin-bottom: 4px; }
.st-app .sidebar-menu > ul > li > a { padding: 11px 13px; border-radius: 8px; font-size: 14px; color: var(--st-muted); border: 1px solid transparent; }
.st-app .sidebar-menu > ul > li > a > i { color: inherit; font-size: 18px; margin-right: 11px; }
.st-app .sidebar .sidebar-menu > ul > li > a > span { font-size: 14px; font-weight: 500; }
.st-app .sidebar-menu > ul > li > a:hover { background: var(--st-raised); color: var(--st-text); }
.st-app .sidebar .sidebar-menu > ul > li > a.active { background: var(--st-accent-soft); color: var(--st-accent-ink) !important; border-color: rgba(255, 189, 62, .12); }
.st-app .sidebar-menu .submenu ul { background: transparent; padding: 4px 0 5px 30px; }
.st-app .sidebar-menu .submenu ul li a { color: var(--st-muted); font-size: 14px; padding: 9px 12px; border-radius: 6px; }
.st-app .sidebar-menu .submenu ul li a.active, .st-app .sidebar-menu .submenu ul li a:hover { color: var(--st-accent); background: var(--st-accent-soft); }
.st-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--st-text); text-decoration: none; min-width: 0; }
.st-brand:hover { color: var(--st-text); }
.st-brand-mark { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; background: var(--st-accent); color: #17150f; border-radius: 8px; }
.st-brand-mark svg { width: 22px; height: 22px; }
.st-brand-copy { display: flex; flex-direction: column; min-width: 0; }
.st-brand-copy strong { font-size: 15px; font-weight: 650; letter-spacing: -.04em; white-space: nowrap; }
.st-brand-copy small { color: var(--st-muted); font-size: 11px; letter-spacing: .015em; margin-top: -1px; }
.st-brand-logo { width: auto; max-width: 150px; height: 28px; object-fit: contain; object-position: left center; }
.st-logo-on-light { display: none; }
html[data-bs-theme="light"] .st-logo-on-light { display: block; }
html[data-bs-theme="light"] .st-logo-on-dark { display: none; }
.st-brand-configured small { margin-top: 3px; }
.st-app .sidenav-toggle-btn { color: var(--st-muted); }
.st-app .navbar-header { position: fixed; top: 0; left: 248px; margin: 0; width: calc(100% - 248px); height: 76px; background: var(--st-bg); border-bottom: 1px solid var(--st-line); box-shadow: none; }
.st-app .sidebar-logo #toggle_btn { min-height: 26px; height: 26px; width: 26px; background: var(--st-raised); color: var(--st-muted); }
.st-app .sidebar-overlay { z-index: 1045; }
.st-app .topbar-menu { height: 100%; padding: 0 28px; gap: 16px; }
.st-topbar-left, .st-topbar-right { display: flex; align-items: center; gap: 16px; min-width: 0; }
.st-topbar-right { margin-left: auto; gap: 12px; }
.st-breadcrumb { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--st-muted); white-space: nowrap; }
.st-breadcrumb strong { color: var(--st-text); font-weight: 500; }
.st-search-trigger { display: flex; align-items: center; gap: 10px; min-width: 228px; padding: 9px 12px !important; border: 1px solid var(--st-line); background: var(--st-surface); color: var(--st-muted); text-align: left; }
.st-search-trigger kbd { margin-left: auto; border: 1px solid var(--st-line-strong); border-radius: 4px; padding: 0 4px; background: transparent; color: var(--st-muted); font-size: 12px; font-family: inherit; }
.st-app .topbar-link { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 5px; background: transparent; border: 0; color: var(--st-muted); border-radius: 8px; }
.st-app .topbar-link:hover { color: var(--st-text); background: var(--st-raised); }
.st-profile-trigger { display: flex !important; gap: 10px; width: auto !important; height: auto !important; text-align: left; padding: 0 !important; }
.st-profile-avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--st-line-strong); background: var(--st-raised); color: var(--st-accent); font-size: 14px; font-weight: 600; overflow: hidden; }
.st-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.st-profile-copy { display: flex; flex-direction: column; }
.st-profile-copy strong { font-size: 13px; color: var(--st-text); font-weight: 500; }
.st-profile-copy small { font-size: 11px; color: var(--st-muted); }
.st-app .page-wrapper { margin-left: 248px; padding-top: 76px; min-height: 100vh; background: var(--st-bg); }
.st-app .page-wrapper .content { padding: 24px; min-height: 0; flex: 1; }
.st-app .breadcrumb-arrow h4 { font-size: 25px; font-weight: 600; margin-bottom: 6px !important; }
.st-app .breadcrumb-arrow p, .st-app .breadcrumb { color: var(--st-muted); font-size: 13px; }
.st-app .breadcrumb a { color: var(--st-muted); }
.st-app .breadcrumb-item.active { color: var(--st-text); }
.st-app .footer { justify-content: flex-start; border-top: 1px solid var(--st-line); background: var(--st-bg); padding: 18px 28px; font-size: 12px; text-align: left !important; }
.st-app .footer p, .st-app .footer a { color: var(--st-muted) !important; }
.st-eyebrow { display: block; color: var(--st-accent-ink); font-size: 11px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 9px; }
.st-page-intro { margin-bottom: 28px !important; }
.st-page-intro h1 { font-size: clamp(25px, 3vw, 33px); font-weight: 550; margin: 0 0 7px; line-height: 1.2; }
.st-page-intro p { color: var(--st-muted); font-size: 14px; margin: 0; }
.st-metrics.row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.st-metrics.row > div { width: auto; padding: 0; }
.st-metrics .card { margin-bottom: 0; transition: border-color .15s, transform .15s; }
.st-metrics .card:hover { border-color: var(--st-line-strong); transform: translateY(-2px); }
.st-metrics .card-body { padding: 18px; }
.st-metrics .card-body > .d-flex { flex-direction: column-reverse; align-items: flex-start !important; gap: 17px; }
.st-metrics .card-body p { color: var(--st-muted); font-size: 12px; margin-bottom: 7px !important; }
.st-metrics .card-body h6 { font-size: 30px; font-weight: 550; line-height: 1; font-variant-numeric: tabular-nums; }
.st-metrics .avatar { border-radius: 9px !important; width: 34px; height: 34px; background: var(--st-accent-soft); color: var(--st-accent); }
.st-metrics .avatar i { font-size: 18px !important; }
.st-app .dashboard-project-progress-item { padding-bottom: 22px; margin-bottom: 22px; border-color: var(--st-line); }
.st-app .dashboard-project-progress-head { margin-bottom: 12px; }
.st-app .dashboard-project-progress-head a { color: var(--st-text); font-size: 15px; font-weight: 500; }
.st-app .dashboard-project-progress-head p { font-size: 12px; color: var(--st-muted); }
.st-app .dashboard-project-progress-percent { font-size: 20px; font-weight: 500; }
.st-app .dashboard-project-progress-track, .st-app .boq-row-progress, .st-app .boq-total-progress { background: var(--st-raised); height: 5px; }
.st-app .dashboard-project-progress-track span { background: var(--st-accent); }
.st-app .boq-extra-row > * { background: var(--st-accent-soft) !important; }
.st-empty { padding: 36px 18px; text-align: center; color: var(--st-muted); }
.st-empty > i { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--st-line); border-radius: 12px; color: var(--st-accent); font-size: 22px; margin-bottom: 14px; }
.st-empty h6 { font-size: 16px; margin-bottom: 7px; }
.st-empty p { font-size: 14px; margin-bottom: 0; }
.st-command { width: min(540px, calc(100vw - 32px)); margin: 15vh auto auto; padding: 0; border: 1px solid var(--st-line-strong); border-radius: 14px; background: var(--st-surface); color: var(--st-text); box-shadow: 0 24px 80px rgba(0, 0, 0, .45); }
.st-command::backdrop { background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); }
.st-command-head { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--st-line); }
.st-command-head > i { color: var(--st-accent); font-size: 20px; }
.st-command-head input { flex: 1; width: 0; background: transparent; color: var(--st-text); border: 0; outline: 0; font-size: 16px; }
.st-command-head button { background: transparent; border: 1px solid var(--st-line); color: var(--st-muted); border-radius: 4px; padding: 2px 6px; font-size: 12px; }
.st-command-list { padding: 8px; max-height: 340px; overflow: auto; }
.st-command-list a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; color: var(--st-text); text-decoration: none; font-size: 15px; }
.st-command-list a:hover, .st-command-list a:focus { background: var(--st-raised); color: var(--st-accent); }
.st-command-list a i:last-child { margin-left: auto; color: var(--st-muted); }
.st-command-foot { display: flex; justify-content: space-between; border-top: 1px solid var(--st-line); padding: 11px 18px; color: var(--st-muted); font-size: 12px; }
.st-auth { min-height: 100vh; }
.st-auth-shell { display: grid; grid-template-columns: 1.08fr 1fr; min-height: 100vh; }
.st-auth-story { display: flex; flex-direction: column; position: relative; overflow: hidden; padding: 48px 64px 32px; border-right: 1px solid var(--st-line); }
.st-auth-story .st-brand { align-self: flex-start; }
.st-auth-story .st-brand-copy strong { font-size: 18px; }
.st-auth-story-content { margin: auto 0; padding: 60px 0 32px; max-width: 480px; }
.st-auth-story h1 { font-size: clamp(36px, 4.2vw, 60px); line-height: 1.13; letter-spacing: -.055em; font-weight: 550; margin: 21px 0 24px; }
.st-auth-story h1 em { color: var(--st-accent); font-style: normal; }
.st-auth-story-content > p { color: var(--st-muted); font-size: 16px; line-height: 1.8; max-width: 380px; }
.st-auth-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .13em; color: var(--st-accent); border: 1px solid rgba(255, 189, 62, .24); padding: 6px 10px; border-radius: 5px; }
.st-auth-note { display: flex; justify-content: space-between; gap: 20px; color: var(--st-muted); font-size: 12px; padding-top: 20px; border-top: 1px solid var(--st-line); }
.st-blueprint { position: relative; height: 170px; margin: 38px 0 8px; border: 1px solid var(--st-line); border-radius: 12px; overflow: hidden; background-image: linear-gradient(var(--st-line) 1px, transparent 1px), linear-gradient(90deg, var(--st-line) 1px, transparent 1px); background-size: 26px 26px; background-position: -1px -1px; }
.st-blueprint-buildings { position: absolute; inset: 27px 36px 29px; display: flex; align-items: flex-end; gap: 14px; }
.st-blueprint-buildings span { display: block; flex: 1; height: 52%; border: 1px solid var(--st-line-strong); background: var(--st-surface); position: relative; }
.st-blueprint-buildings span:nth-child(2) { height: 100%; border-color: var(--st-accent); }
.st-blueprint-buildings span:nth-child(3) { height: 73%; }
.st-blueprint-buildings span::after { content: ""; position: absolute; inset: 12px; background: repeating-linear-gradient(0deg, transparent, transparent 15px, var(--st-line) 15px, var(--st-line) 16px); }
.st-blueprint-label { position: absolute; right: 12px; bottom: 8px; color: var(--st-accent); font-size: 10px; letter-spacing: .18em; background: var(--st-bg); padding: 2px 6px; }
.st-auth-form-area { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px; }
.st-auth-mobile-brand { display: none; }
.st-auth-form { width: 100%; max-width: 360px; }
.st-auth-form .st-eyebrow { margin-bottom: 12px; }
.st-auth-form h2 { font-size: 30px; font-weight: 550; margin: 0 0 10px; }
.st-auth-form-intro { color: var(--st-muted); font-size: 14px; line-height: 1.8; margin-bottom: 32px; }
.st-auth-field { margin-bottom: 22px; }
.st-auth-field .form-control { min-height: 48px; padding: 12px 14px; font-size: 16px; }
.st-auth-field .input-group { position: relative; }
.st-auth-field .input-group .form-control { border-radius: 8px !important; padding-right: 46px; }
.st-auth-field .toggle-password { position: absolute; right: 2px; top: 2px; bottom: 2px; z-index: 5; width: 42px; border: 0; background: transparent; color: var(--st-muted); border-radius: 6px; }
.st-auth-field .toggle-password:hover { color: var(--st-text); }
.st-auth-form .btn-primary { width: 100%; min-height: 48px; margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; }
.st-auth-form .btn-primary i { font-size: 17px; }
.st-auth-options { display: flex; justify-content: flex-end; margin: -5px 0 22px; font-size: 13px; }
.st-auth-options a { color: var(--st-muted); }
.st-auth-options a:hover, .st-auth-back:hover { color: var(--st-accent); }
.st-auth-legal { color: var(--st-muted); text-align: center; font-size: 12px; margin: 24px 0 0; line-height: 1.8; }
.st-auth-back { display: inline-flex; align-items: center; gap: 8px; color: var(--st-muted); font-size: 14px; margin-top: 24px; }
.st-auth .error, .st-auth .st-field-error { color: #ff9797; font-size: 13px; display: block; margin-top: 7px; }
body.st-app.mini-sidebar:not(.expand-menu) .sidebar { width: 70px; }
body.st-app.mini-sidebar:not(.expand-menu) .sidebar-logo { padding: 0 18px; justify-content: center; }
body.st-app.mini-sidebar:not(.expand-menu) .sidebar-logo .st-brand-copy { display: none; }
body.st-app.mini-sidebar:not(.expand-menu) .sidebar-logo .st-brand { display: none; }
body.st-app.mini-sidebar:not(.expand-menu) .sidebar-logo #toggle_btn { right: 22px; }
body.st-app.mini-sidebar:not(.expand-menu) .sidebar-logo #toggle_btn i { transform: rotate(180deg); }
body.st-app.mini-sidebar .page-wrapper { margin-left: 70px; }
body.st-app.mini-sidebar .navbar-header { left: 70px; width: calc(100% - 70px); }
@media (max-width: 1199.98px) {
  .st-metrics.row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-metrics .card-body > .d-flex { flex-direction: row !important; align-items: center !important; }
  .st-search-trigger { min-width: 180px; }
  .st-profile-copy { display: none; }
  .st-auth-story { padding: 36px; }
}
@media (max-width: 991.98px) {
  .st-app .navbar-header, body.st-app.mini-sidebar .navbar-header { left: 0; width: 100%; height: 64px; }
  .st-app .page-wrapper, body.st-app.mini-sidebar .page-wrapper { margin-left: 0; padding-top: 64px; }
  .st-app .topbar-menu { padding: 0 20px; }
  .st-app .sidebar { left: -260px; margin-left: 0; z-index: 1050; transition: left .2s; }
  .st-app .slide-nav .sidebar { left: 0; width: 248px; }
  .st-app .page-wrapper .content { padding: 24px 20px; }
  .st-app .mobile-btn { display: grid !important; place-items: center; width: 32px; height: 34px; background: none; border: none; color: var(--st-text); }
  .st-topbar-left, .st-topbar-right { gap: 12px; }
  .st-breadcrumb { font-size: 12px; }
  .st-auth-shell { grid-template-columns: 1fr 1fr; }
  .st-auth-story { padding: 32px; }
  .st-auth-form-area { padding: 32px; }
}
@media (max-width: 767.98px) {
  .st-auth-shell { display: block; }
  .st-auth-story { display: none; }
  .st-auth-mobile-brand { display: inline-flex; margin-bottom: 64px; align-self: flex-start; }
  .st-auth-form-area { min-height: 100vh; justify-content: flex-start; padding: 32px 24px 40px; }
  .st-auth-form { max-width: 420px; margin: auto 0; padding-bottom: 50px; }
  .st-auth-form h2 { font-size: 30px; }
  .st-search-trigger { min-width: auto; width: 34px; height: 34px; padding: 5px !important; justify-content: center; background: transparent; border-color: transparent; }
  .st-search-trigger span, .st-search-trigger kbd { display: none; }
  .st-breadcrumb > span, .st-breadcrumb > i { display: none; }
  .st-app .topbar-menu { padding: 0 16px; }
  .st-topbar-left, .st-topbar-right { gap: 8px; }
  .st-app .page-wrapper .content { padding: 24px 16px; }
  .st-app .card-header, .st-app .card-body { padding: 18px; }
  .st-app .footer { padding: 16px; }
}
@media (max-width: 575.98px) {
  .st-metrics.row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .st-metrics .card-body { padding: 16px; }
  .st-metrics .card-body h6 { font-size: 26px; }
  .st-metrics .avatar { width: 29px; height: 29px; }
  .st-metrics .avatar i { font-size: 16px !important; }
  .st-app .header-fullscreen { display: none; }
  .st-app .table-responsive-sm { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .st-app *, .st-auth * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Project directory, site workspace and reporting flows. */
.st-app .st-project-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 28px; border-bottom: 1px solid var(--st-line); background: var(--st-surface); }
.st-project-context > a { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--st-text); }
.st-project-context > a > i { font-size: 24px; color: var(--st-accent-ink); }
.st-project-context > a > span { display: flex; flex-direction: column; min-width: 0; }
.st-project-context small { color: var(--st-muted); font-size: 10px; letter-spacing: .1em; }
.st-project-context strong { overflow-wrap: anywhere; }
.st-project-context form { margin: 0; }
.st-project-grid, .st-workspace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.st-project-grid .card, .st-workspace-grid .card { margin: 0; }
.st-project-card { border-top: 3px solid var(--st-accent) !important; }
.st-project-card .card-body { display: flex; flex-direction: column; height: 100%; }
.st-project-card h4 { font-size: 20px; overflow-wrap: anywhere; }
.st-project-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--st-accent-soft); color: var(--st-accent-ink); font-size: 26px; }
.st-progress-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; }
.st-project-progress { height: 7px; background: var(--st-line); border-radius: 20px; overflow: hidden; margin: 9px 0; }
.st-project-progress span { display: block; height: 100%; background: var(--st-accent); border-radius: inherit; }
.st-reported-summary { font-size: 12px; color: var(--st-muted); }
.st-project-meta { display: grid; grid-template-columns: 1fr 1.5fr; gap: 12px; border-top: 1px solid var(--st-line); margin: 14px 0 22px; padding-top: 18px; }
.st-project-meta > span { font-size: 10px; color: var(--st-muted); }
.st-project-meta strong { display: block; margin-top: 7px; font-size: 14px; color: var(--st-text); overflow-wrap: anywhere; }
.st-project-card form { margin-top: auto; }
.st-project-edit { text-align: center; color: var(--st-muted); font-size: 12px; margin-top: 14px; }
.st-directory-search { display: flex; gap: 10px; max-width: 520px; }
.st-workspace-link { color: var(--st-text); transition: border-color .15s; }
.st-workspace-link:hover { color: var(--st-text); border-color: var(--st-accent); }
.st-workspace-link .card-body > i { display: block; font-size: 28px; color: var(--st-accent-ink); margin-bottom: 18px; }
.st-workspace-link h5 { font-size: 17px; }
.st-workspace-link p { font-size: 14px; color: var(--st-muted); }
.st-workspace-link .card-body > span { color: var(--st-accent-ink); font-size: 13px; }
.st-app .sidebar-inner { height: auto; }
.st-app .sidebar-menu .st-site-menu-title { margin-top: 18px; border-top: 1px solid var(--st-line); padding-top: 22px; }
.st-app .sidebar-menu .st-site-menu-title span { color: var(--st-accent-ink); overflow-wrap: anywhere; }
.st-app .sidebar-menu .st-workspace-title { padding-top: 20px; padding-bottom: 14px; }
.st-app .sidebar-menu .st-workspace-title span { display: block; color: var(--st-accent-ink); overflow-wrap: anywhere; white-space: normal; }
.st-app .sidebar .sidebar-menu .st-back-global > a { color: var(--st-muted) !important; font-size: 12px; border-bottom: 1px solid var(--st-line); border-radius: 0; padding-bottom: 18px; margin-bottom: 8px; }
.st-app .sidebar .sidebar-menu .st-back-global > a > span { font-size: 12px; }
.st-sidebar-account { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex: 0 0 auto; border-top: 1px solid var(--st-line); padding: 15px; }
.st-sidebar-account a { display: flex; align-items: center; gap: 10px; color: var(--st-text); min-width: 0; }
.st-account-initials { display: inline-grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; border: 1px solid var(--st-line-strong); border-radius: 50%; color: var(--st-accent-ink); font-size: 12px; }
.st-account-copy { display: flex; flex-direction: column; min-width: 0; }
.st-account-copy strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-account-copy small { color: var(--st-muted); font-size: 11px; }
body.st-app.mini-sidebar:not(.expand-menu) .st-account-copy, body.st-app.mini-sidebar:not(.expand-menu) .st-sidebar-account > a:last-child { display: none; }
.st-report-notes { font-size: 13px; color: var(--st-muted); max-width: 950px; margin-top: 18px; }
.st-report-notes p { margin-bottom: 0; }
.st-report-table { min-width: 1000px; }
.st-app .st-report-table td, .st-app .st-report-table th { white-space: normal; }
.st-evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.st-evidence-grid img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; border: 1px solid var(--st-line); }
.st-evidence-grid figcaption { font-size: 12px; color: var(--st-muted); margin-top: 8px; }
.st-history-list { padding-left: 20px; }
.st-history-list li { padding-bottom: 20px; margin-bottom: 16px; border-bottom: 1px solid var(--st-line); }
.st-history-list p { color: var(--st-muted); font-size: 13px; margin: 6px 0; }
.st-history-list details { font-size: 12px; }
.st-history-list pre { font-size: 11px; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 12px; color: var(--st-muted); }
.st-attendance-table { min-width: 1100px; }
.st-attendance-table .form-select { min-width: 140px; }
.st-attendance-table .form-control { min-width: 85px; }
.st-wage-total { max-width: 180px; }
@media (max-width: 1199.98px) { .st-project-grid, .st-workspace-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) {
  .st-project-grid, .st-workspace-grid { grid-template-columns: 1fr; }
  .st-app .st-project-context { padding: 14px 16px; }
  .st-evidence-grid { grid-template-columns: 1fr; }
}

/* Theme contrast, status vocabulary and consistent SaaS surfaces. */
:root {
  --st-badge-amber: #fcd34d; --st-badge-amber-bg: rgba(245, 158, 11, .16);
  --st-badge-blue: #93c5fd; --st-badge-blue-bg: rgba(59, 130, 246, .16);
  --st-badge-green: #6ee7b7; --st-badge-green-bg: rgba(16, 185, 129, .15);
  --st-badge-red: #fda4af; --st-badge-red-bg: rgba(244, 63, 94, .16);
  --st-badge-orange: #fdba74; --st-badge-orange-bg: rgba(249, 115, 22, .16);
  --st-badge-gray: #cbd5e1; --st-badge-gray-bg: rgba(148, 163, 184, .14);
}
html[data-bs-theme="light"] {
  --st-badge-amber: #854d0e; --st-badge-amber-bg: #fef3c7;
  --st-badge-blue: #1d4ed8; --st-badge-blue-bg: #dbeafe;
  --st-badge-green: #166534; --st-badge-green-bg: #dcfce7;
  --st-badge-red: #b91c1c; --st-badge-red-bg: #fee2e2;
  --st-badge-orange: #9a3412; --st-badge-orange-bg: #ffedd5;
  --st-badge-gray: #475569; --st-badge-gray-bg: #f1f5f9;
}
.st-app .sidebar .sidebar-menu > ul > li > a,
.st-app .sidebar .sidebar-menu > ul > li.submenu ul li a { color: var(--st-text) !important; }
.st-app .sidebar .sidebar-menu a :is(i, span:not(.count)) { color: inherit; }
.st-app .sidebar .sidebar-menu a:is(.active, :hover, :focus-visible),
.st-app .sidebar .sidebar-menu > ul > li.submenu ul li a:is(.active, :hover, :focus-visible) { color: var(--st-accent-ink) !important; }
.st-app .btn-primary { background: #e8520a !important; border-color: #e8520a !important; color: #fff !important; border-radius: 8px; padding: 10px 20px; font-weight: 600; }
.st-app .btn-primary:is(:hover, :focus-visible) { background: #c94408 !important; border-color: #c94408 !important; }
.st-app .st-add-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.st-add-mark { font-size: 20px; font-weight: 500; line-height: 1; }
.st-app .page-wrapper .content { padding: 24px; }
.st-app .card > :is(.card-body, .card-header) { padding: 20px !important; }
.st-app .topbar-menu { padding-left: 24px; padding-right: 24px; }
.st-app .st-project-context { padding-left: 24px; padding-right: 24px; }
.st-app .footer { padding-left: 24px; padding-right: 24px; }
.st-page-intro { margin-bottom: 24px !important; }

.st-app .st-metrics { gap: 16px; }
.st-stat--blue { --stat-rgb: 96, 165, 250; }
.st-stat--orange { --stat-rgb: 251, 146, 60; }
.st-stat--violet { --stat-rgb: 167, 139, 250; }
.st-stat--amber { --stat-rgb: 251, 191, 36; }
.st-stat--rose { --stat-rgb: 251, 113, 133; }
.st-stat--teal { --stat-rgb: 45, 212, 191; }
html[data-bs-theme="light"] .st-stat--blue { --stat-rgb: 37, 99, 235; }
html[data-bs-theme="light"] .st-stat--orange { --stat-rgb: 194, 65, 12; }
html[data-bs-theme="light"] .st-stat--violet { --stat-rgb: 109, 40, 217; }
html[data-bs-theme="light"] .st-stat--amber { --stat-rgb: 161, 98, 7; }
html[data-bs-theme="light"] .st-stat--rose { --stat-rgb: 190, 18, 60; }
html[data-bs-theme="light"] .st-stat--teal { --stat-rgb: 15, 118, 110; }
.st-app .st-metrics .st-stat-card {
  position: relative; min-height: 180px; border-left: 3px solid rgb(var(--stat-rgb));
  background: radial-gradient(ellipse at top right, rgba(var(--stat-rgb), .10), transparent 70%), linear-gradient(125deg, rgba(var(--stat-rgb), .10), rgba(var(--stat-rgb), .025)), var(--st-surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .045) !important;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.st-app .st-metrics .st-stat-card:is(:hover, :focus-visible) { transform: translateY(-3px); border-color: rgba(var(--stat-rgb), .45); border-left-color: rgb(var(--stat-rgb)); box-shadow: 0 12px 28px rgba(0, 0, 0, .2), 0 0 22px rgba(var(--stat-rgb), .07) !important; }
html[data-bs-theme="light"] .st-app .st-metrics .st-stat-card { box-shadow: 0 4px 16px rgba(15, 23, 42, .06), inset 0 1px 0 #fff !important; }
.st-app .st-metrics .st-stat-label { color: var(--st-text); font-size: 13px; font-weight: 500; line-height: 1.5; min-height: 39px; margin: 0; max-width: calc(100% - 46px); }
.st-stat-icon { position: absolute; top: 20px; right: 16px; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: rgb(var(--stat-rgb)); background: rgba(var(--stat-rgb), .13); border: 1px solid rgba(var(--stat-rgb), .24); box-shadow: 0 0 22px rgba(var(--stat-rgb), .22), inset 0 1px 0 rgba(255,255,255,.08); }
.st-stat-icon i { font-size: 21px; }
.st-app .st-stat-value { color: var(--st-text); font-size: 34px; font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; margin: 18px 0 16px; }
.st-app .st-stat-value.is-zero { color: var(--st-muted); opacity: .75; }
.st-stat-hint { display: flex; gap: 8px; align-items: center; justify-content: space-between; color: var(--st-muted); font-size: 11px; line-height: 1.5; }
.st-stat-hint i { color: rgb(var(--stat-rgb)); flex-shrink: 0; font-size: 16px; }

.st-app .table { --bs-table-striped-bg: var(--st-stripe); --bs-table-hover-bg: var(--st-row-hover); }
.st-app .table > thead > tr > th { background: #1f2937 !important; color: #e2e8f0 !important; text-transform: uppercase; letter-spacing: .06em; border-color: var(--st-line); }
.st-app .table > tbody > tr:nth-child(even) > td { background: var(--st-stripe); }
.st-app .table:not(.st-table-empty) > tbody > tr:hover > td { background: var(--st-row-hover); }
.st-app .table:not(.st-table-empty) > tbody > tr:hover > td:first-child { box-shadow: inset 2px 0 0 #fb923c; }
.st-app .table > tbody > tr:is(.daily-work-carry-forward, .daily-progress-carry-forward, .quotation-lowest-row, .boq-extra-row) > * { background: var(--st-highlight-bg) !important; color: var(--st-highlight-text); }
.st-app .table > tbody > tr:is(.daily-work-carry-forward, .daily-progress-carry-forward, .quotation-lowest-row, .boq-extra-row) > :first-child { border-left: 0; box-shadow: inset 3px 0 0 var(--st-accent); }
.st-app .table > tbody > tr:is(.daily-work-carry-forward, .daily-progress-carry-forward, .quotation-lowest-row, .boq-extra-row):hover > * { background: var(--st-row-hover) !important; color: var(--st-text); }
.st-app .table > tbody > tr:is(.daily-work-carry-forward, .daily-progress-carry-forward, .quotation-lowest-row, .boq-extra-row):hover > :first-child { box-shadow: inset 2px 0 0 #fb923c; }
.st-app .badge, .st-app .quotation-lowest-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; border-radius: 20px; padding: 3px 10px; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.st-app .badge:is(.badge-pending-quotation, .badge-soft-warning, .bg-warning), .st-app .quotation-lowest-badge { color: var(--st-badge-amber) !important; background: var(--st-badge-amber-bg) !important; }
.st-app .badge:is(.badge-md-review, .badge-normal, .badge-soft-primary, .badge-soft-info, .bg-primary, .bg-info) { color: var(--st-badge-blue) !important; background: var(--st-badge-blue-bg) !important; }
.st-app .badge:is(.badge-approved, .badge-soft-success, .bg-success) { color: var(--st-badge-green) !important; background: var(--st-badge-green-bg) !important; }
.st-app .badge:is(.badge-rejected, .badge-critical, .badge-soft-danger, .bg-danger) { color: var(--st-badge-red) !important; background: var(--st-badge-red-bg) !important; }
.st-app .badge:is(.badge-high, .badge-soft-orange) { color: var(--st-badge-orange) !important; background: var(--st-badge-orange-bg) !important; }
.st-app .badge:is(.badge-low, .badge-soft-secondary, .bg-secondary) { color: var(--st-badge-gray) !important; background: var(--st-badge-gray-bg) !important; }

.st-app .st-empty, .st-app .st-empty-state { padding: 60px 20px; text-align: center; color: var(--st-muted); }
.st-app .st-empty-state { display: flex; flex-direction: column; align-items: center; white-space: normal; }
.st-empty-state > i { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 50%; border: 1px solid var(--st-line); background: var(--st-raised); color: var(--st-muted); font-size: 24px; }
.st-app .st-empty-state h5 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.st-empty-state p { max-width: 400px; margin: 0; font-size: 14px; line-height: 1.7; }
.st-empty-state .btn { margin-top: 20px; }
.st-app .table.st-table-empty { min-width: 0; width: 100% !important; table-layout: fixed; }
.st-app .table.st-table-empty > thead { display: none; }
.st-app .table.st-table-empty > tbody > tr > td { padding: 0; white-space: normal !important; background: transparent !important; box-shadow: none; }
.st-app .card > .card-body.st-empty { padding: 60px 20px !important; }
@media (max-width: 1599.98px) { .st-app .st-metrics.row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .st-app .st-metrics.row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
