@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --navy: #102344;
  --navy-soft: #1d355b;
  --orange: #f37421;
  --paper: #f5f7fa;
  --white: #fff;
  --text: #17243b;
  --muted: #778398;
  --line: #e7ebf1;
  --green: #238264;
  --red: #c74e46;
  --amber: #a26c18;
  --shadow: 0 14px 40px rgba(24, 42, 70, .07);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-size: 14px; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, summary, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3, strong { letter-spacing: -.025em; }
h1, h2, h3 { font-family: Manrope, 'Segoe UI', sans-serif; color: var(--navy); }
h1 { margin-bottom: 8px; font-size: clamp(28px, 3vw, 38px); line-height: 1.18; }
h2 { margin: 0; font-size: 19px; }
h3 { margin: 12px 0 3px; font-size: 19px; }
small { display: block; color: var(--muted); font-size: 12px; }
.orange, .brand b { color: var(--orange); }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; color: var(--orange); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }

.topbar { position: sticky; z-index: 20; top: 0; display: flex; height: 72px; align-items: center; justify-content: space-between; gap: 25px; padding: 0 max(30px, calc((100% - 1300px)/2)); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; white-space: nowrap; }
.brand img { width: 39px; height: 39px; border-radius: 11px; object-fit: cover; }
.topnav { display: flex; align-items: center; gap: 28px; }
.topnav a { color: #647087; font-size: 13px; font-weight: 600; }
.topnav a:hover { color: var(--orange); }
.mobile-nav-toggle { display: none; }
.account-menu { display: flex; align-items: center; gap: 10px; }
.avatar { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: #e9eef6; color: var(--navy); font-weight: 700; }
.account-copy { min-width: 100px; line-height: 1.25; }
.account-copy strong, .account-copy span { display: block; }
.account-copy span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.page { width: min(1300px, calc(100% - 52px)); margin: 0 auto; padding: 39px 0 24px; }
.welcome-row { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.welcome-row p { margin-bottom: 0; color: var(--muted); }
.welcome-mark { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 30px; background: white; color: #617085; font-size: 12px; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #30a87a; box-shadow: 0 0 0 4px rgba(48,168,122,.12); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 25px; }
.stat-card { min-height: 127px; padding: 20px 21px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 4px 18px rgba(24, 42, 70, .025); }
.stat-card > span { display: block; color: #778398; font-size: 12px; font-weight: 600; }
.stat-card strong { display: block; margin-top: 8px; color: var(--navy); font-family: Manrope, sans-serif; font-size: 28px; }
.stat-card small { margin-top: 2px; }
.stat-card.accent { border-color: #f5ddcc; background: linear-gradient(135deg, #fffaf6, #fff); }
.stat-card.accent strong { color: var(--orange); }
.portfolio-overview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 25px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 4px 18px rgba(24, 42, 70, .025); }
.portfolio-metric { min-width: 0; padding: 17px 18px; border-right: 1px solid var(--line); }
.portfolio-metric:last-child { border-right: 0; }
.portfolio-metric > span, .portfolio-metric > small { display: block; }
.portfolio-metric > span { color: #778398; font-size: 12px; font-weight: 600; }
.portfolio-metric > strong { display: block; margin-top: 5px; color: var(--navy); font: 700 25px Manrope, sans-serif; }
.portfolio-metric > small { margin-top: 2px; }
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 20px 0; align-items: start; }
.panel { min-width: 0; margin-bottom: 20px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 4px 20px rgba(24, 42, 70, .025); }
.panel-heading, .section-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 18px; }
.panel-heading h2 { margin-top: 4px; }
.section-title { margin: 30px 0 16px; }
.content-section { margin: 34px 0; }
.count-pill { display: inline-grid; min-width: 23px; height: 23px; place-items: center; margin-left: 5px; border-radius: 20px; background: #fff1e7; color: var(--orange); font: 700 11px 'DM Sans', sans-serif; vertical-align: 2px; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; font-weight: 700; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--orange); color: white; }
.button.primary:hover { background: #dc6419; }
.button.secondary { border-color: #d7e5df; background: #f2f8f5; color: #237b60; }
.button.quiet { border-color: var(--line); background: white; color: #526078; }
.button.danger { border-color: #f1d8d6; background: #fff7f6; color: var(--red); }
.button.small { min-height: 30px; padding: 6px 10px; font-size: 11px; }
.button.wide { width: 100%; min-height: 45px; margin-top: 6px; }
.alert { margin: 0 0 18px; padding: 12px 15px; border: 1px solid; border-radius: 9px; font-weight: 600; }
.alert.success { border-color: #cde7dc; background: #f1faf6; color: #27785f; }
.alert.error { border-color: #f1d6d3; background: #fff6f5; color: #ae4c43; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 15px; }
.form-stack { display: grid; gap: 11px; }
label { display: grid; gap: 6px; color: #58667c; font-size: 11px; font-weight: 700; }
input, select, textarea { width: 100%; min-width: 0; min-height: 39px; padding: 9px 11px; border: 1px solid #dfe5ec; border-radius: 7px; outline: none; background: white; color: var(--text); font-size: 13px; }
input:focus, select:focus, textarea:focus { border-color: #f1a36f; box-shadow: 0 0 0 3px rgba(243,116,33,.1); }
textarea { resize: vertical; }
.full { grid-column: 1 / -1; }
.form-actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 3px; }
.form-note { color: var(--muted); font-size: 11px; font-weight: 400; }
.check-label { display: flex; align-items: center; gap: 8px; align-self: end; min-height: 39px; }
.check-label input { width: 15px; min-height: 15px; }
.supervisor-field { grid-column: 1 / -1; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 11px 12px; background: #f8f9fb; color: #7d899a; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 12px; border-bottom: 1px solid #edf0f4; color: #3a4960; font-size: 12px; vertical-align: middle; }
td strong { display: block; color: var(--navy); }
.action-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tag { display: inline-block; padding: 4px 8px; border-radius: 20px; background: #f0f3f8; color: #5e6a7d; font-size: 10px; font-weight: 700; white-space: nowrap; }
.status { display: inline-flex; width: fit-content; align-items: center; padding: 4px 8px; border-radius: 20px; background: #f2f4f7; color: #667287; font-size: 10px; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.status.good { background: #eaf7f1; color: #27785f; }
.status.pending { background: #fff5e5; color: #99640f; }
.status.hold { background: #fcefed; color: #aa5147; }
.site-list { border-top: 1px solid var(--line); }
.site-row { border-bottom: 1px solid var(--line); }
.site-row summary { display: flex; align-items: center; gap: 14px; padding: 14px 2px; list-style: none; }
.site-row summary::-webkit-details-marker, .product-card summary::-webkit-details-marker { display: none; }
.site-summary { flex: 1; }
.site-summary strong, .site-summary small { display: block; }
.site-summary small { margin-top: 3px; }
.site-icon, .product-glyph { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border-radius: 11px; background: #fff1e7; color: var(--orange); font-size: 21px; }
.site-edit { padding: 10px 0 14px; }
.site-row > form:last-child { padding-bottom: 14px; }
.search-box { display: flex; width: min(280px, 45%); align-items: center; gap: 7px; padding-left: 11px; border: 1px solid #dfe5ec; border-radius: 8px; background: white; color: #8a95a6; font-size: 20px; }
.search-box input { border: 0; box-shadow: none; }
.site-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.site-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: white; box-shadow: 0 4px 20px rgba(24,42,70,.025); }
.site-card[open] { grid-column: span 2; border-color: #f0c3a5; box-shadow: 0 10px 28px rgba(24,42,70,.08); }
.site-card-summary { display: flex; min-height: 54px; align-items: center; gap: 10px; list-style: none; cursor: pointer; }
.site-card-summary::-webkit-details-marker { display: none; }
.site-summary-copy { min-width: 0; flex: 1; }
.site-summary-copy strong, .site-summary-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-summary-copy strong { color: var(--navy); font-size: 15px; }
.site-summary-copy small { margin-top: 3px; }
.site-expand-indicator { color: var(--muted); font-size: 20px; transition: transform .18s ease; }
.site-card[open] .site-expand-indicator { transform: rotate(180deg); }
.site-detail-content { padding-top: 15px; }
.site-edit-panel { margin: 14px 0; padding: 12px; border: 1px solid #e8edf3; border-radius: 10px; background: #f8fafd; }
.site-edit-panel > summary { display: inline-flex; min-height: 40px; align-items: center; padding: 0 12px; list-style: none; }
.site-edit-panel > summary::-webkit-details-marker { display: none; }
.site-edit-panel[open] > summary { margin-bottom: 12px; }
.site-edit-panel .form-grid { gap: 12px; }
.site-identifiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.site-identifiers > div { padding: 11px 13px; border-radius: 10px; background: var(--navy); color: white; }
.site-identifiers span, .site-identifiers strong { display: block; }
.site-identifiers span { color: #c4cfde; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.site-identifiers strong { margin-top: 2px; font-family: Manrope, sans-serif; font-size: 25px; line-height: 1.2; }
.site-photo { display: block; width: 100%; max-height: 260px; margin: 0 0 14px; border-radius: 10px; object-fit: cover; background: #f0f3f8; }
.site-description { color: #526078; font-size: 12px; }
.site-create-panel .panel-heading { align-items: center; }
.add-site-toggle > span { font-size: 20px; line-height: 1; }
.site-create-panel form[hidden] { display: none; }
.identity-banner { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 4px 12px; margin: -8px 0 20px; padding: 13px 17px; border: 1px solid #dfe5ec; border-radius: 12px; background: linear-gradient(110deg, #fff, #f8fafd); }
.identity-banner > span { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.identity-banner strong { color: var(--navy); font: 800 24px Manrope, sans-serif; }
.identity-banner small { grid-column: 1 / -1; }
.period-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.period-card { min-width: 0; padding: 10px; border: 1px solid #e8edf3; border-radius: 9px; background: #fbfcfe; }
.period-card > strong, .period-card > small { display: block; margin-top: 4px; }
.period-card > strong { color: var(--navy); font-size: 11px; }
.period-card > small { font-size: 9px; }
.period-card p { margin: 7px 0 0; color: #526078; font-size: 10px; }
.period-card p.muted { color: var(--muted); }
.empty-inline { margin: 8px 0; color: var(--muted); font-size: 11px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0; align-items: start; }
.workflow-grid .panel { height: 100%; margin-bottom: 0; }
.supervisor-code > div { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.supervisor-code .eyebrow { flex-basis: 100%; }
.copy-otp { margin-left: auto; }
.otp-copy-status:not(:empty) { display: block; margin-top: 5px; }
.contractor-signup { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.contractor-signup summary { display: flex; justify-content: space-between; gap: 8px; color: var(--navy); font-weight: 700; }
.contractor-signup summary span { color: var(--green); font-size: 10px; font-weight: 600; }
.login-details-page { min-height: 100vh; background: #f5f7fa; }
.details-topbar { display: flex; height: 68px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 max(20px, calc((100% - 1120px)/2)); border-bottom: 1px solid var(--line); background: white; }
.login-details-shell { width: min(100% - 40px, 1000px); margin: 0 auto; padding: 54px 0 70px; }
.login-details-hero { max-width: 650px; margin-bottom: 28px; }
.login-details-hero h1 { margin: 9px 0; font-size: clamp(32px, 6vw, 48px); }
.login-details-hero p { color: #647087; font-size: 14px; line-height: 1.8; }
.login-role-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.login-role-card { display: grid; grid-template-columns: 44px 1fr; align-content: start; gap: 4px 13px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 4px 18px rgba(24,42,70,.035); }
.login-role-icon { display: grid; width: 42px; height: 42px; grid-row: span 2; place-items: center; border-radius: 12px; background: #fff1e7; color: var(--orange); font: 800 17px Manrope, sans-serif; }
.login-role-card h2 { margin: 3px 0 0; font-size: 17px; }
.login-role-card p { grid-column: 1 / -1; margin: 10px 0; color: #657187; font-size: 12px; line-height: 1.7; }
.login-role-card > a { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; color: #d65f18; font-size: 12px; font-weight: 700; }
.login-safety-note { display: grid; grid-column: 1 / -1; gap: 5px; padding: 16px 18px; border: 1px solid #d6e8df; border-radius: 12px; background: #f1faf6; color: #315d4c; font-size: 12px; line-height: 1.6; }
.worker-entry-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.worker-entry-row .worker-other-field[hidden] { display: none; }
.coming-soon-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: var(--paper); }
.coming-soon-card { width: min(100%, 520px); padding: clamp(24px, 6vw, 42px); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow); text-align: center; }
.coming-soon-card .brand { justify-content: center; margin-bottom: 30px; }
.coming-soon-card h1 { margin: 10px 0; }
.coming-soon-card p { margin-bottom: 22px; color: var(--muted); }
.site-thumb { width: 52px; height: 52px; flex: 0 0 52px; border: 1px solid #e8edf3; border-radius: 11px; background: #f3f6f9; object-fit: cover; }
.site-card[open] .site-thumb { display: none; }
.site-card-top { display: flex; justify-content: space-between; align-items: center; }
.site-location { min-height: 21px; margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.site-meta { display: grid; grid-template-columns: 90px 1fr; gap: 6px 10px; padding: 11px 0; border-top: 1px solid #eff1f4; border-bottom: 1px solid #eff1f4; font-size: 11px; }
.site-meta span { color: var(--muted); }
.site-meta strong { overflow: hidden; color: #445169; text-overflow: ellipsis; white-space: nowrap; }
.camera-preview { display: flex; align-items: center; gap: 10px; margin: 13px 0; padding: 11px; border: 1px solid #e8edf3; border-radius: 9px; background: #f8fafd; }
.camera-symbol { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 9px; background: var(--navy); color: white; font-size: 17px; }
.camera-preview strong, .camera-preview span { display: block; }
.camera-preview strong { color: var(--navy); font-size: 11px; }
.camera-preview span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.camera-preview .muted-dot { width: 6px; height: 6px; margin-right: 4px; background: #aab4c2; box-shadow: none; }
.camera-lock { margin-left: auto; font-size: 17px !important; }
.material-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 12px 0; }
.material-summary div { padding: 8px 7px; border-radius: 7px; background: #f5f7fa; }
.material-summary span, .material-summary strong { display: block; }
.material-summary span { color: var(--muted); font-size: 9px; }
.material-summary strong { margin-top: 2px; color: var(--navy); font-size: 13px; overflow-wrap: anywhere; }
.material-list { padding: 6px 0; border-top: 1px solid #edf0f4; }
.material-line { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; color: #526078; font-size: 10px; }
.material-line span:last-child { color: var(--muted); white-space: nowrap; }
.report-highlight { margin-top: 10px; padding: 11px; border-radius: 8px; background: #fff8f2; }
.report-highlight p { margin: 5px 0; color: #515d70; font-size: 11px; }
.report-highlight small { color: #727d8f; font-size: 10px; }
.supervisor-period-panel { margin: 20px 0; }
.supervisor-period-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.supervisor-period-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.supervisor-period-card > strong, .supervisor-period-card > small { display: block; }
.supervisor-period-card > strong { margin: 5px 0 2px; color: var(--navy); font-size: 16px; }
.supervisor-period-card p { margin: 8px 0 0; color: #5a6679; font-size: 11px; }
.supervisor-period-card p b { color: var(--navy); }
.repeat-entry-list { display: grid; gap: 9px; }
.repeat-entry-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 10px; padding: 11px; border: 1px solid #e8edf3; border-radius: 9px; background: #fbfcfe; }
.repeat-entry-row .remove-entry-row { grid-column: 2; justify-self: end; }
.daily-update-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.daily-update-row textarea { grid-column: 1; }
.daily-update-row .remove-entry-row { grid-column: 2; grid-row: 1; }
.team-account-list { display: grid; gap: 9px; margin-top: 12px; }
.team-account-row { display: flex; align-items: center; gap: 10px; padding: 9px; border: 1px solid #eef0f4; border-radius: 9px; }
.team-account-row .avatar { width: 34px; height: 34px; flex: 0 0 34px; font-size: 11px; }
.team-account-row strong, .team-account-row small { display: block; }
.team-account-row strong { color: var(--navy); font-size: 12px; }
.team-account-row small { margin-top: 2px; font-size: 10px; }
.site-reports { margin-top: 13px; padding-top: 11px; border-top: 1px solid var(--line); }
.report-line { display: grid; grid-template-columns: 70px 1fr; gap: 4px 9px; padding: 8px 0; border-bottom: 1px solid #f0f2f5; color: #536077; font-size: 10px; }
.report-line strong { color: var(--navy); }
.report-line small { grid-column: 2; font-size: 10px; }
.invoice-list { display: grid; }
.invoice-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid #edf0f4; }
.invoice-row > div:first-child strong, .invoice-row > div:first-child span { display: block; }
.invoice-row > div:first-child span { margin-top: 3px; color: var(--muted); font-size: 10px; }
.invoice-row > div:nth-child(2) { text-align: right; }
.invoice-row > div:nth-child(2) strong { display: block; margin-bottom: 4px; color: var(--navy); }
.invoice-items th, .invoice-items td { padding: 6px; }
.invoice-items input { min-width: 68px; min-height: 34px; padding: 6px; }
.invoice-items td:first-child input { min-width: 150px; }
.icon-button { border: 0; background: none; color: var(--red); font-size: 19px; }
.empty-state { padding: 22px; border: 1px dashed #dce2e9; border-radius: 10px; color: var(--muted); text-align: center; font-size: 12px; }
.report-card { display: grid; grid-template-columns: 110px 1fr; gap: 15px; padding: 14px 0; border-top: 1px solid #edf0f4; }
.report-date { color: var(--navy); font-weight: 700; }
.report-date small { margin-top: 4px; font-weight: 400; }
.report-card strong { color: #34445c; font-size: 11px; }
.report-card p { margin: 2px 0 9px; color: #667287; font-size: 11px; }
.report-card > div:last-child > small { font-size: 10px; }
.notification-list { display: grid; gap: 13px; }
.notification-item { display: flex; gap: 11px; }
.notification-dot { width: 7px; height: 7px; flex: 0 0 7px; margin-top: 6px; border-radius: 50%; background: var(--orange); }
.notification-item strong { color: #34445c; font-size: 12px; }
.notification-item p { margin: 3px 0; color: #6d798c; font-size: 11px; }
.notification-item small { font-size: 10px; }
.chart-legend { display: flex; gap: 15px; color: #768195; font-size: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; }
.legend-dot.income { background: #f37421; }
.legend-dot.expense { background: #253e67; }
.bar-chart { display: flex; height: 160px; align-items: end; justify-content: space-around; gap: 10px; margin: 15px 0 20px; padding: 9px 2px 0; border-bottom: 1px solid #e9edf2; }
.chart-month { display: flex; height: 100%; flex: 1; flex-direction: column; align-items: center; justify-content: end; gap: 7px; color: var(--muted); font-size: 9px; }
.bar-pair { display: flex; width: 100%; height: 125px; align-items: end; justify-content: center; gap: 4px; }
.bar { width: min(19px, 30%); min-height: 3px; border-radius: 4px 4px 0 0; }
.bar.income { background: linear-gradient(#fa9e62, var(--orange)); }
.bar.expense { background: #25406a; }
.transaction-list { display: grid; gap: 11px; }
.transaction-list > div { display: flex; align-items: center; gap: 9px; }
.transaction-sign { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #eaf7f1; color: var(--green); font-weight: 700; }
.transaction-sign.expense { background: #fff1ef; color: var(--red); }
.transaction-list > div > span:nth-child(2) { flex: 1; }
.transaction-list strong { display: block; overflow: hidden; max-width: 210px; color: #45536a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.transaction-list small { margin-top: 2px; font-size: 9px; }
.transaction-list b { color: var(--navy); font-size: 11px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-card { align-self: start; padding: 12px; border: 1px solid #edf0f4; border-radius: 10px; }
.product-card summary { display: flex; align-items: center; gap: 9px; list-style: none; }
.product-title { flex: 1; min-width: 0; }
.product-title strong, .product-title small { display: block; }
.product-title strong { overflow: hidden; color: var(--navy); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.product-title small { margin-top: 3px; font-size: 9px; }
.product-card summary > strong { color: var(--navy); font-size: 11px; }
.product-glyph { width: 33px; height: 33px; flex-basis: 33px; border-radius: 8px; font-size: 15px; }
.product-edit { margin: 13px 0; }
.footer { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 28px 0 8px; color: #8792a2; font-size: 10px; }
.footer img { width: 21px; height: 21px; border-radius: 6px; }
.footer span { color: var(--orange); }

.login-page { min-height: 100vh; background: #fff; }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(330px, .9fr) 1.1fr; }
.login-brand { position: relative; display: flex; min-height: 100vh; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 36px clamp(28px, 6vw, 82px); background: var(--navy); color: white; }
.login-brand::before, .login-brand::after { position: absolute; width: 390px; height: 390px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; content: ''; }
.login-brand::before { right: -210px; bottom: -180px; }
.login-brand::after { right: -165px; bottom: -135px; }
.login-brand .brand { position: relative; z-index: 1; color: white; }
.brand-copy { position: relative; z-index: 1; max-width: 460px; margin: auto 0; padding: 75px 0; }
.brand-copy .eyebrow { color: #ff9a54; }
.brand-copy h1 { margin: 15px 0 15px; color: white; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.05em; }
.login-hero-image { display: block; width: 100%; aspect-ratio: 1.28; border-radius: 10px; object-fit: cover; object-position: center; }
.brand-proof { display: flex; align-items: center; gap: 10px; margin-top: 29px; color: #e0e7f0; font-size: 12px; }
.brand-foot { position: relative; z-index: 1; color: #aab7ca; font-size: 11px; }
.login-panel { display: grid; place-items: center; padding: 38px 28px; }
.login-form-wrap { width: min(430px, 100%); }
.login-form-wrap h2 { margin: 8px 0; font-size: 27px; }
.login-form-wrap > .muted { margin-bottom: 23px; font-size: 12px; }
.login-form-wrap .form-stack { gap: 9px; }
.login-form-wrap label { margin-top: 5px; }
.supervisor-login { margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.supervisor-login summary { display: flex; justify-content: space-between; gap: 8px; color: var(--navy); font-weight: 700; }
.supervisor-login summary span { color: var(--muted); font-size: 10px; font-weight: 400; }
.compact { margin-top: 17px; }
.inline-field { display: flex; gap: 8px; }
.inline-field input { flex: 1; }
.form-note:empty { display: none; }
.form-note:not(:empty) { padding: 9px; border-radius: 7px; background: #fff8f2; color: #865a35; line-height: 1.5; }
.login-foot { margin-top: 24px; color: var(--muted); font-size: 11px; }
.login-foot a { color: var(--orange); font-weight: 700; }

.invoice-page { padding: 20px; background: #eff2f6; }
.invoice-toolbar { display: flex; width: min(850px, 100%); justify-content: space-between; margin: 0 auto 15px; }
.invoice-sheet { width: min(850px, 100%); min-height: 1000px; margin: auto; padding: 55px 60px; background: white; box-shadow: var(--shadow); }
.invoice-head { display: flex; justify-content: space-between; align-items: start; padding-bottom: 27px; border-bottom: 2px solid var(--navy); }
.invoice-title { text-align: right; }
.invoice-title h1 { margin: 4px 0; color: var(--navy); font-size: 34px; letter-spacing: .05em; }
.invoice-title strong { color: #58667b; font-size: 12px; }
.invoice-parties { display: grid; grid-template-columns: 1.2fr 1.2fr .8fr; gap: 22px; padding: 30px 0; }
.invoice-parties h2 { margin: 7px 0; font-size: 14px; }
.invoice-parties p { color: #68758a; font-size: 11px; line-height: 1.8; white-space: pre-line; }
.invoice-meta { display: grid; align-content: start; grid-template-columns: auto 1fr; gap: 8px; font-size: 10px; }
.invoice-meta span { color: var(--muted); }
.invoice-meta strong { color: #34445c; text-align: right; }
.invoice-table th { background: var(--navy); color: white; }
.invoice-table td { padding: 13px 12px; }
.invoice-table td:last-child, .invoice-table th:last-child { text-align: right; }
.invoice-total { width: min(300px, 100%); margin: 22px 0 0 auto; }
.invoice-total > div { display: flex; justify-content: space-between; padding: 8px 0; color: #69758a; font-size: 12px; }
.invoice-total strong { color: #34445c; }
.invoice-total .grand-total { margin-top: 4px; padding: 13px 0; border-top: 1px solid var(--line); color: var(--navy); font-size: 14px; font-weight: 700; }
.invoice-total .grand-total strong { color: var(--orange); font-size: 19px; }
.invoice-notes { margin-top: 35px; padding: 14px; border-radius: 8px; background: #f7f8fa; }
.invoice-notes p { margin: 5px 0 0; color: #68758a; font-size: 11px; }
.invoice-footer { display: flex; justify-content: space-between; margin-top: 80px; padding-top: 14px; border-top: 1px solid var(--line); color: #788497; font-size: 10px; }
.error-page { display: grid; min-height: 100vh; place-items: center; padding: 20px; background: var(--paper); }
.error-card { width: min(470px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.error-card .brand { margin-bottom: 45px; }
.error-card .eyebrow { display: block; margin-bottom: 8px; }
.error-card p { margin: 12px 0 24px; color: var(--muted); }

@media (max-width: 1000px) {
  .topbar { padding: 0 22px; }
  .topnav { gap: 15px; }
  .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workflow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invoice-sheet { padding: 40px; }
}
@media (max-width: 720px) {
  .topbar { height: 62px; padding: 0 14px; }
  .brand { gap: 7px; font-size: 16px; }
  .brand img { width: 32px; height: 32px; }
  .topnav { display: none; }
  .mobile-nav-toggle { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--navy); font-size: 12px; font-weight: 700; }
  .topbar.mobile-menu-open { height: auto; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .topbar.mobile-menu-open .topnav { display: flex; flex: 1 0 100%; flex-direction: column; align-items: stretch; gap: 0; order: 4; }
  .topbar.mobile-menu-open .topnav a { padding: 10px 4px; border-top: 1px solid var(--line); }
  .account-copy { display: none; }
  .page { width: min(100% - 28px, 600px); padding-top: 27px; }
  .welcome-row { align-items: start; flex-direction: column; }
  .welcome-mark { font-size: 10px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .stat-card { min-height: 109px; padding: 15px; }
  .stat-card strong { font-size: 23px; }
  .portfolio-overview { grid-template-columns: 1fr; gap: 0; padding: 4px 11px; }
  .portfolio-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.35fr); align-items: center; gap: 8px; min-height: 37px; padding: 5px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .portfolio-metric:last-child { border-bottom: 0; }
  .portfolio-metric > span { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .portfolio-metric > strong { margin: 0; font-size: 17px; line-height: 1.2; }
  .portfolio-metric > small { overflow: hidden; margin: 0; font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
  .section-grid { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: 16px; }
  .site-grid { grid-template-columns: 1fr; }
  .site-card[open] { grid-column: auto; }
  .workflow-grid { grid-template-columns: 1fr; }
  .period-grid { grid-template-columns: 1fr; }
  .supervisor-period-grid { grid-template-columns: 1fr; }
  .site-card-summary { min-height: 58px; }
  .site-card { padding: 15px; }
  .site-identifiers strong { font-size: 22px; }
  .material-line { font-size: 11px; }
  .period-card > small { font-size: 11px; }
  .period-card p { font-size: 11px; line-height: 1.5; }
  .identity-banner { margin-top: -6px; }
  .site-create-panel .panel-heading { align-items: flex-start; }
  .add-site-toggle { flex: 0 0 auto; min-height: 44px; }
  .form-grid { grid-template-columns: 1fr; }
  .full, .form-actions { grid-column: 1; }
  .repeat-entry-row { grid-template-columns: 1fr; }
  .repeat-entry-row .remove-entry-row { grid-column: 1; }
  .daily-update-row { grid-template-columns: minmax(0, 1fr) auto; }
  .form-grid label { min-width: 0; }
  input, select, textarea { min-height: 44px; font-size: 16px; }
  textarea { min-height: 80px; }
  .button { min-height: 44px; }
  .button.small { min-height: 38px; }
  .form-actions .button { width: 100%; }
  .site-create-panel form { gap: 13px; }
  .contractor-signup summary { align-items: flex-start; flex-direction: column; }
  .details-topbar { height: 60px; padding: 0 14px; }
  .login-details-shell { width: min(100% - 28px, 600px); padding: 32px 0 45px; }
  .login-details-hero { margin-bottom: 20px; }
  .login-role-grid { grid-template-columns: 1fr; gap: 10px; }
  .login-role-card { padding: 16px; }
  .login-safety-note { grid-column: 1; }
  .site-thumb { width: 46px; height: 46px; flex-basis: 46px; }
  .product-grid { grid-template-columns: 1fr; }
  .section-title { align-items: start; flex-direction: column; }
  .search-box { width: 100%; }
  .invoice-row { grid-template-columns: 1fr auto; }
  .invoice-row > .action-cell, .invoice-row > a { grid-column: 1 / -1; }
  .invoice-row > div:nth-child(2) { text-align: left; }
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { min-height: 0; padding: 18px 20px 12px; }
  .brand-copy { margin: 16px 0 0; padding: 0 0 8px; }
  .brand-copy h1 { margin: 8px 0 12px; font-size: 32px; }
  .login-hero-image { aspect-ratio: 1.75; border-radius: 8px; }
  .brand-proof { margin-top: 10px; font-size: 11px; }
  .brand-foot { display: none; }
  .login-panel { padding: 30px 20px; }
  .invoice-page { padding: 10px; }
  .invoice-sheet { min-height: 0; padding: 24px 18px; }
  .invoice-parties { grid-template-columns: 1fr 1fr; }
  .invoice-meta { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .invoice-footer { margin-top: 40px; }
}
@media print {
  @page { margin: 14mm; }
  body.invoice-page { padding: 0; background: white; }
  .invoice-toolbar { display: none; }
  .invoice-sheet { width: 100%; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
  .invoice-footer { margin-top: 45px; }
}

.brand-market-link { position: absolute; right: 30px; bottom: 30px; display: inline-flex; gap: 8px; color: #fff; font-size: 12px; font-weight: 700; }
.brand-market-link span { color: #ff9a54; }
.market-nav { display: flex; gap: 24px; color: #657187; font-size: 12px; font-weight: 700; }
.market-nav a.active, .market-nav a:hover { color: var(--orange); }
.marketplace-page { background: #f7f8fb; }
.marketplace-shell { width: min(1240px, calc(100% - 44px)); margin: 0 auto; padding: 28px 0 24px; }
.market-hero { position: relative; display: flex; min-height: 310px; align-items: center; justify-content: space-between; overflow: hidden; padding: 42px 54px; border-radius: 20px; background: linear-gradient(117deg, #102344 0%, #18375f 68%, #254e78 100%); color: white; }
.market-hero > div:first-child { position: relative; z-index: 1; width: min(610px, 70%); }
.market-hero .eyebrow { color: #ffac72; }
.market-hero h1 { margin: 12px 0; color: white; font-size: clamp(38px, 5vw, 58px); }
.market-hero p { max-width: 520px; margin-bottom: 20px; color: #d3deec; font-size: 14px; }
.market-hero-mark { position: relative; display: grid; width: 235px; height: 235px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(255,255,255,.06); color: rgba(255,255,255,.88); font: 800 72px Manrope, sans-serif; }
.market-hero-mark:before, .market-hero-mark:after { position: absolute; width: 290px; height: 290px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; content: ''; }
.market-hero-mark:after { width: 350px; height: 350px; }
.market-hero-mark i { position: absolute; right: 30px; bottom: 9px; color: #ff9a54; font-size: 46px; font-style: normal; }
.market-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 30px; }
.market-benefits > div { display: grid; grid-template-columns: 35px 1fr; gap: 1px 10px; align-items: center; padding: 15px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.market-benefits > div > span { grid-row: span 2; display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: #fff1e7; color: var(--orange); font-size: 10px; font-weight: 800; }
.market-benefits strong { color: var(--navy); font-size: 12px; }
.market-benefits small { font-size: 10px; }
.market-layout { display: grid; grid-template-columns: minmax(0, 1fr) 325px; gap: 23px; align-items: start; scroll-margin-top: 90px; }
.market-catalogue { min-width: 0; }
.market-section-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.market-section-heading h2 { margin-top: 4px; font-size: 23px; }
.market-filters { display: grid; grid-template-columns: 1fr 190px; gap: 10px; margin-bottom: 16px; }
.market-filters .search-box { width: 100%; }
.market-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.market-product { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; }
.market-product-art { position: relative; display: grid; height: 108px; place-items: center; overflow: hidden; background: linear-gradient(130deg, #edf2f8, #e0e8f1); color: #b7c3d1; font: 800 62px Manrope, sans-serif; }
.market-product-art:after { position: absolute; right: -17px; bottom: -55px; width: 155px; height: 155px; border: 1px solid rgba(16,35,68,.1); border-radius: 50%; content: ''; }
.market-product-art i { position: absolute; right: 22px; bottom: 5px; z-index: 1; color: var(--orange); font-size: 28px; font-style: normal; }
.market-product-copy { padding: 14px; }
.market-product-copy h3 { margin: 4px 0 5px; font-size: 15px; }
.market-product-copy p { min-height: 34px; margin-bottom: 8px; color: #707c8f; font-size: 11px; }
.market-product-copy > small { min-height: 16px; font-size: 10px; }
.market-product-buy { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef0f4; }
.market-product-buy > strong { color: var(--navy); font-size: 17px; }
.market-product-buy > strong small { margin-top: 1px; font-size: 9px; font-weight: 500; }
.market-cart { position: sticky; top: 90px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.cart-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cart-heading h2 { margin-top: 4px; font-size: 18px; }
.cart-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; background: #fff2e9; color: var(--orange); font-size: 18px; }
.cart-items { display: grid; gap: 9px; max-height: 170px; overflow: auto; margin: 14px 0; padding: 0 0 0 18px; color: #57647a; font-size: 11px; }
.cart-items:empty { display: block; }
.cart-total { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid #eef0f4; color: #6b778b; font-size: 12px; }
.cart-total strong { color: var(--navy); font-size: 17px; }
.market-cart .form-stack { gap: 9px; }
.market-cart label { font-size: 10px; }
.market-cart input, .market-cart textarea { min-height: 36px; font-size: 12px; }
.cod-note { display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 8px; background: #f1faf6; color: var(--green); }
.cod-note > span:first-child { font-size: 17px; }
.cod-note strong, .cod-note small { display: block; }
.cod-note strong { font-size: 11px; }
.cod-note small { margin-top: 2px; font-size: 9px; }
.cart-footnote { margin: 12px 0 0; color: #8490a2; font-size: 9px; line-height: 1.5; }
.checkout-message { display: grid; gap: 8px; color: var(--green); font-size: 11px; }
.checkout-message:empty { display: none; }
.checkout-message p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.supervisor-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 11px; border: 1px dashed #f3c5a6; border-radius: 9px; background: #fff9f4; }
.supervisor-code strong { color: var(--navy); font: 800 22px Manrope, sans-serif; letter-spacing: .13em; }
.supervisor-code small { text-align: right; font-size: 9px; }
.order-card { display: grid; gap: 9px; padding: 14px 0; border-top: 1px solid var(--line); }
.order-card:first-child { border-top: 0; }
.order-card-heading { display: flex; justify-content: space-between; gap: 12px; }
.order-card-lines { display: grid; gap: 5px; color: #5e6a7d; font-size: 11px; }
.order-card .action-cell { margin-top: 3px; }
.inline-assign-form { display: flex; align-items: end; gap: 8px; margin-top: 10px; padding: 10px; border-radius: 9px; background: #f7f9fc; }
.inline-assign-form label { flex: 1; }
.live-update-banner { position: sticky; z-index: 15; top: 80px; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 15px; padding: 11px 14px; border: 1px solid #cde7dc; border-radius: 10px; background: #f1faf6; color: #27785f; font-size: 12px; font-weight: 700; }
.live-update-banner[hidden] { display: none; }
.brand-market-link { bottom: 26px; }

@media (max-width: 900px) {
  .market-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; }
  .market-cart { padding: 15px; }
  .market-product-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .brand-market-link { position: static; margin-top: 12px; }
  .login-brand { gap: 0; }
  .market-nav { display: none; }
  .marketplace-shell { width: calc(100% - 24px); padding-top: 13px; }
  .market-hero { min-height: 280px; padding: 27px 22px; border-radius: 16px; }
  .market-hero > div:first-child { width: 100%; }
  .market-hero h1 { font-size: 39px; }
  .market-hero p { max-width: 350px; font-size: 12px; }
  .market-hero-mark { position: absolute; right: -75px; bottom: -70px; width: 210px; height: 210px; opacity: .35; }
  .market-benefits { grid-template-columns: 1fr; gap: 8px; margin: 12px 0 23px; }
  .market-benefits > div { padding: 11px 13px; }
  .market-layout { grid-template-columns: 1fr; gap: 17px; }
  .market-section-heading h2 { font-size: 20px; }
  .market-filters { grid-template-columns: 1fr; }
  .market-product-grid { grid-template-columns: 1fr; gap: 10px; }
  .market-product { display: grid; grid-template-columns: 92px 1fr; }
  .market-product-art { height: 100%; min-height: 166px; font-size: 42px; }
  .market-product-art i { right: 10px; font-size: 22px; }
  .market-product-copy { padding: 11px; }
  .market-product-copy h3 { font-size: 13px; }
  .market-product-buy { align-items: end; }
  .market-product-buy > strong { font-size: 15px; }
  .market-product-buy .button { padding: 7px 8px; font-size: 10px; }
  .market-cart { position: static; padding: 16px; }
  .market-cart .button.wide { min-height: 46px; }
  .market-cart input, .market-cart textarea { min-height: 42px; }
  .supervisor-code { align-items: start; flex-direction: column; }
  .supervisor-code small { text-align: left; }
  .inline-assign-form { align-items: stretch; flex-direction: column; }
}

.forgot-password { margin-top: 12px; padding: 11px 0 0; border-top: 1px solid var(--line); }
.forgot-password summary { color: var(--navy); font-size: 12px; font-weight: 700; }
.forgot-password form { margin-top: 12px; }
.reset-request-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); align-items: end; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.reset-request-row strong, .reset-request-row small { display: block; }
.reset-request-row strong { color: var(--navy); }
.reset-password-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 9px; }
.workflow-inward { border-top: 4px solid #38896c; background: #f3faf6; }
.workflow-used { border-top: 4px solid var(--orange); background: #fff8f1; }
.workflow-report { border-top: 4px solid #466a91; background: #f4f7fb; }
.workflow-title { display: flex; align-items: center; gap: 11px; }
.workflow-title h2 { font-size: 21px; }
.workflow-number { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 50%; background: var(--navy); color: white; font: 800 13px Manrope, sans-serif; }
.workflow-subsection { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; border: 1px solid #dfe7ef; border-radius: 9px; }
.attendance-subsection { background: #f1f8f4; }
.progress-subsection { background: #fff5eb; }
.workflow-subheading { display: flex; grid-column: 1 / -1; align-items: center; gap: 10px; }
.workflow-subheading h3 { margin: 2px 0 0; font-size: 18px; }
.workflow-subheading .workflow-number { width: 30px; height: 30px; flex-basis: 30px; background: var(--orange); }
.material-use-submit { border-color: var(--orange); background: var(--orange); color: white; }
.material-use-submit:hover { background: #dc6419; }
.material-line { align-items: start; }
.material-label { display: grid; min-width: 0; gap: 2px; }
.material-line strong { color: var(--navy); font-size: 10px; }
.material-label small { color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.material-stock { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; white-space: normal; }
.material-line .material-stock .material-used { color: var(--red); font-weight: 700; }
.material-line .material-stock .material-left { color: var(--green); font-weight: 700; }
.site-completion { margin-top: 5px; color: var(--green); font-weight: 700; }
.site-lifecycle-actions, .team-account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.team-account-entry { padding: 10px; border: 1px solid #eef0f4; border-radius: 9px; background: #fff; }
.team-account-entry .team-account-row { padding: 0; border: 0; }
.team-account-copy { min-width: 90px; flex: 1; }
.team-account-edit { flex: 1 0 100%; }
.team-account-edit > summary { display: inline-flex; min-height: 34px; align-items: center; padding: 0 10px; list-style: none; }
.team-account-edit > summary::-webkit-details-marker { display: none; }
.team-account-edit[open] > summary { margin-bottom: 10px; }
.team-account-edit form { padding-top: 10px; border-top: 1px solid var(--line); }
.team-account-actions { margin: 0 0 0 auto; }
.material-history { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.material-history-heading h3 { margin: 3px 0 9px; font-size: 16px; }
.history-date-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) auto; align-items: end; gap: 9px; margin: 10px 0; padding: 10px; border-radius: 8px; background: #f5f7fa; }
.history-date-filter .form-actions { grid-column: auto; margin: 0; }
.history-report-entry { display: grid; grid-template-columns: 66px minmax(0, 1fr); gap: 4px 8px; padding: 8px 0; border-top: 1px solid #e8edf3; font-size: 10px; }
.history-report-entry > time { color: #647087; font-variant-numeric: tabular-nums; }
.history-report-entry > strong, .history-report-entry > p, .history-report-entry > small, .history-workers { grid-column: 2; }
.history-report-entry > strong { color: var(--navy); }
.history-report-entry > p { margin: 0; color: #526078; white-space: pre-line; }
.history-report-entry > small { font-size: 10px; }
.history-workers { display: grid; gap: 3px; }
.history-workers b { color: var(--navy); }
.history-workers small { font-size: 10px; }
.report-section-form + .report-section-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.attendance-submit { border-color: var(--orange); background: var(--orange); color: white; }
.attendance-submit:hover { background: #dc6419; }
.movement-day { margin-top: 8px; padding: 9px 10px; border-radius: 8px; background: #f5f7fa; }
.movement-day h4 { margin: 0 0 5px; color: var(--navy); font-size: 11px; }
.movement-entry { display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px solid #e8edf3; font-size: 10px; }
.movement-entry time { color: #647087; font-variant-numeric: tabular-nums; }
.movement-entry span strong, .movement-entry span small { display: block; }
.movement-entry span strong { color: var(--navy); font-size: 10px; }
.movement-entry span small { margin-top: 2px; font-size: 9px; }
.movement-quantity { white-space: nowrap; }
.movement-inward { color: var(--green); }
.movement-used { color: var(--red); }
input[readonly] { background: #f2f4f7; color: #647087; }

@media (max-width: 720px) {
  .reset-request-row, .reset-password-form { grid-template-columns: 1fr; }
  .workflow-subsection { grid-template-columns: 1fr; }
  .workflow-subheading, .workflow-subsection .full { grid-column: 1; }
  .material-stock { justify-content: flex-start; }
  .movement-entry { grid-template-columns: 1fr auto; }
  .movement-entry time { grid-column: 1 / -1; }
  .history-date-filter { grid-template-columns: 1fr; }
  .history-date-filter .form-actions { grid-column: 1; }
  .history-report-entry { grid-template-columns: 1fr; }
  .history-report-entry > strong, .history-report-entry > p, .history-report-entry > small, .history-workers { grid-column: 1; }
  .history-report-entry > time { grid-column: 1; }
  .team-account-actions { margin-left: 0; }
}
