:root {
    --navy: #0f2d52;
    --navy-mid: #1a3f6f;
    --navy-light: #e8f0f9;
    --amber: #e8850a;
    --amber-light: #fff7ed;
    --amber-border: #fcd9a0;
    --bg: #f1f4f8;
    --surface: #fff;
    --border: #dde3ed;
    --border-mid: #c8d2e0;
    --text: #1a2535;
    --text-mid: #4a5568;
    --text-light: #8a96a8;
    --green: #16a34a;
    --green-light: #f0fdf4;
    --green-border: #bbf7d0;
    --red: #dc2626;
    --red-light: #fef2f2;
    --blue: #2563eb;
    --blue-light: #eff6ff;
    --shadow:
        0 1px 3px rgba(15, 45, 82, 0.08), 0 1px 2px rgba(15, 45, 82, 0.05);
    --shadow-md: 0 4px 16px rgba(15, 45, 82, 0.12);
}
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html,
body {
    height: 100%;
    overflow: hidden;
}
body {
    font-family: "Montserrat", sans-serif;
    /* background: var(--bg); */
    color: var(--text);
    display: flex;
    flex-direction: column;
}
input,
select,
textarea,
button {
    font-family: inherit;
}
button {
    cursor: pointer;
}
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--border-mid);
    border-radius: 4px;
}
input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--amber) !important;
    box-shadow: 0 0 0 3px rgba(232, 133, 10, 0.12) !important;
}
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in {
    animation: fadeIn 0.25s ease both;
}

/* ══ HEADER ══ */
.hdr {
    background: linear-gradient(45deg, #11578d -73%, #00082e 100%);
    height: 78px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    z-index: 200;
    flex-shrink: 0;
    /* box-shadow: 0 2px 12px rgba(15, 45, 82, 0.28); */
}
.hdr-logo {
    display: flex;
    align-items: center;
    gap: 11px;
}
.hdr-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(232, 133, 10, 0.25);
    border: 1.5px solid rgba(232, 133, 10, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.hdr-brand-name {
    font-family: "Montserrat", sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}
.hdr-brand-sub {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}
.hdr-sep {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
    flex-shrink: 0;
}
.stall-pill {
    padding: 3px 11px;
    border-radius: 20px;
    background: rgba(22, 163, 74, 0.2);
    border: 1px solid rgba(22, 163, 74, 0.4);
    color: #4ade80;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}
.stall-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
}
.stall-info {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}
.stall-info strong {
    color: #fff;
}
.hdr-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hdr-uname {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: right;
}
.hdr-uemail {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: right;
}
.hdr-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ══ LAYOUT ROW ══ */
.layout {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* ══ SIDEBAR ══ */
.sidebar {
    width: 228px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1.5px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.sb-nav-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 16px 8px;
}
.sb-nav {
    padding: 4px 10px 10px;
}

/* top-level nav button */
.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 9px;
    border: none;
    text-align: left;
    background: transparent;
    color: var(--text-mid);
    font-weight: 500;
    font-size: 13.5px;
    margin-bottom: 2px;
    transition:
        background 0.15s,
        color 0.15s;
    border-left: 3px solid transparent;
}
.nav-btn:hover {
    background: var(--navy-light);
    color: var(--navy);
}
.nav-btn .nb-icon {
    font-size: 17px;
    flex-shrink: 0;
    opacity: 0.7;
    transition:
        color 0.15s,
        opacity 0.15s;
}
.nav-btn:hover .nb-icon {
    color: var(--amber);
    opacity: 1;
}
.nav-btn .nb-label {
    flex: 1;
}
.nav-btn .nb-arrow {
    font-size: 10px;
    margin-left: auto;
    transition: transform 0.22s;
    line-height: 1;
}
.nav-btn.active {
    background: var(--navy-light);
    color: var(--navy);
    font-weight: 700;
    border-left-color: var(--amber);
}
.nav-btn.active .nb-icon {
    color: var(--amber);
    opacity: 1;
}
/* parent open state: rotate arrow */
.nav-btn.co-open .nb-arrow {
    transform: rotate(180deg);
}

/* sub-menu */
.sub-menu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.sub-menu.open {
    max-height: 300px;
}
.sub-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 12px 9px 36px;
    border: none;
    text-align: left;
    background: transparent;
    color: var(--text-mid);
    font-weight: 500;
    font-size: 13px;
    border-left: 3px solid transparent;
    transition:
        background 0.15s,
        color 0.15s;
    cursor: pointer;
}
.sub-btn:hover {
    background: var(--navy-light);
    color: var(--navy);
}
.sub-btn.active {
    background: var(--amber-light);
    color: var(--amber);
    font-weight: 700;
    border-left-color: var(--amber);
}
.sub-btn .sb-icon {
    font-size: 14px;
    flex-shrink: 0;
}

/* sidebar footer */
.sb-footer {
    margin-top: auto;
    padding: 14px 16px;
    border-top: 1.5px solid var(--border);
    background: var(--bg);
}
.sb-footer-ttl {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
}
.sb-footer-row {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin-bottom: 5px;
    font-size: 11.5px;
    color: var(--text-mid);
}
.sb-footer-icon {
    font-size: 13px;
    flex-shrink: 0;
}

/* ══ MAIN ══ */
.main {
    flex: 1;
    overflow-y: auto;
    padding: 28px 30px;
}
.page {
    display: none;
}
.page.active {
    display: block;
}

/* ══ PAGE HEADER ══ */
.pg-hdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1.5px solid var(--border);
}
.pg-hdr-left {
    display: flex;
    gap: 14px;
    align-items: center;
}
.pg-hdr-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--amber-light);
    border: 1.5px solid var(--amber-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.pg-hdr-title {
    font-family: "Montserrat", sans-serif;
    font-size: 21px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}
.pg-hdr-sub {
    font-size: 13px;
    color: var(--text-mid);
    margin-top: 3px;
}

/* ══ CARD ══ */
.card {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 22px;
    box-shadow: var(--shadow);
    transition:
        box-shadow 0.2s,
        transform 0.2s;
}
.card-hover:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.sc-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid var(--border);
}
.sc-icon {
    font-size: 17px;
}
.sc-title {
    font-weight: 700;
    font-size: 14px;
    color: var(--navy);
}
.sc-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 1px;
}
.sc-accent {
    margin-left: auto;
    width: 28px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--amber), var(--amber-border));
}

/* ══ ALERT ══ */
.alert {
    border-radius: 9px;
    padding: 11px 15px;
    font-size: 12.5px;
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin-bottom: 16px;
}
.alert-amber {
    background: var(--amber-light);
    border: 1px solid var(--amber-border);
    color: #92400e;
}
.alert-green {
    background: var(--green-light);
    border: 1px solid var(--green-border);
    color: #15803d;
}
.alert-blue {
    background: var(--blue-light);
    border: 1px solid #bfdbfe;
    color: #1e40af;
}
.alert-icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ══ STATUS BADGE ══ */
.bs {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.bs-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.bs-approved {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid var(--green-border);
}
.bs-approved .bs-dot {
    background: var(--green);
}
.bs-pending {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}
.bs-pending .bs-dot {
    background: #b45309;
}
.bs-paid {
    background: var(--green-light);
    color: var(--green);
    border: 1px solid var(--green-border);
}
.bs-paid .bs-dot {
    background: var(--green);
}

/* ══ FIELD ══ */
.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.field-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-mid);
    letter-spacing: 0.3px;
}
.req {
    color: var(--red);
    margin-left: 3px;
}
.fi {
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 9px 13px;
    color: var(--text);
    font-size: 13.5px;
    width: 100%;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
textarea.fi {
    resize: vertical;
}
.fi-ro {
    background: #f8fafc;
    cursor: not-allowed;
}
.field-note {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 1px;
}

/* ══ BUTTONS ══ */
.btn {
    padding: 10px 22px;
    border-radius: 9px;
    border: none;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.18s;
}
.btn-p {
    background: var(--amber);
    color: #fff;
}
.btn-p:hover {
    background: #c4720a;
}
.btn-s {
    background: var(--navy-light);
    color: var(--navy);
    border: 1.5px solid var(--border);
}
.btn-s:hover {
    background: #d8e6f5;
}
.btn-full {
    width: 100%;
    justify-content: center;
    padding: 12px 22px;
}

/* ══ UPLOAD ══ */
.upload-zone {
    border: 2px dashed var(--border-mid);
    border-radius: 10px;
    padding: 22px 18px;
    text-align: center;
    cursor: pointer;
    background: #fafbfd;
    transition:
        border-color 0.2s,
        background 0.2s;
}
.upload-zone:hover {
    border-color: var(--amber);
    background: var(--amber-light);
}

/* ══ PROGRESS ══ */
.progress-wrap {
    background: var(--bg);
    border-radius: 20px;
    height: 7px;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--amber), #f5a623);
    transition: width 0.4s;
}

/* ══ GRID HELPERS ══ */
.g2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.g3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}
.g4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.g2c {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.cs2 {
    grid-column: 1/-1;
}
.fc {
    display: flex;
    flex-direction: column;
}
.gap-8 {
    gap: 8px;
}
.gap-12 {
    gap: 12px;
}
.gap-14 {
    gap: 14px;
}
.gap-16 {
    gap: 16px;
}
.gap-18 {
    gap: 18px;
}
.gap-20 {
    gap: 20px;
}
.mt-18 {
    margin-top: 18px;
}
.mb-6 {
    margin-bottom: 6px;
}
.mb-8 {
    margin-bottom: 8px;
}
.mb-12 {
    margin-bottom: 12px;
}
.mb-14 {
    margin-bottom: 14px;
}

/* ══ DASHBOARD SPECIFICS ══ */
.stat-card {
    padding: 18px;
    border-top-width: 3px;
    border-top-style: solid;
}
.stat-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.stat-value {
    font-size: 22px;
    font-weight: 800;
    font-family: "Montserrat", sans-serif;
}
.checklist-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 13px;
    border-radius: 9px;
    cursor: pointer;
    border: 1px solid;
    margin-bottom: 8px;
    transition: background 0.15s;
}
.checklist-item.done {
    background: var(--green-light);
    border-color: var(--green-border);
}
.checklist-item.todo {
    background: var(--bg);
    border-color: var(--border);
}
.ci-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
}
.ci-circle.done {
    background: var(--green);
    border: 2px solid var(--green);
    color: #fff;
}
.ci-circle.todo {
    background: var(--surface);
    border: 2px solid var(--border-mid);
    color: transparent;
}
.done .ci-label {
    color: var(--green);
    font-weight: 600;
    font-size: 13px;
}
.todo .ci-label {
    color: var(--text);
    font-size: 13px;
}
.ci-cta {
    margin-left: auto;
    font-size: 11px;
    color: var(--amber);
    font-weight: 600;
}
.dl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 11px;
    border-radius: 8px;
    border: 1px solid;
    margin-bottom: 7px;
}
.dl-urgent {
    background: #fffbeb;
    border-color: #fde68a;
}
.dl-normal {
    background: var(--bg);
    border-color: var(--border);
}
.dl-label {
    font-size: 12.5px;
    color: var(--text);
}
.dl-date {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    margin-left: 8px;
}
.dl-urgent .dl-date {
    color: #b45309;
}
.dl-normal .dl-date {
    color: var(--text-mid);
}
.pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 13px;
    border-radius: 8px;
    margin-bottom: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
}
.contact-card {
    background: linear-gradient(135deg, var(--navy), var(--navy-mid));
    border: none;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.contact-title {
    font-family: "Montserrat", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

/* ══ DOWNLOADS ══ */
.dld-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
}
.dld-name {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dld-meta {
    font-size: 11.5px;
    color: var(--text-light);
    margin-top: 3px;
}
.dld-type {
    padding: 2px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 4px;
}

/* ══ COST TABLE ══ */
.cost-table {
    background: var(--bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.cost-row {
    display: flex;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
}
.cost-row:last-child {
    border-bottom: none;
}
.cost-hi {
    background: var(--amber-light);
}
.cost-lbl {
    font-size: 13px;
    color: var(--text-mid);
}
.cost-hi .cost-lbl {
    color: var(--amber);
    font-weight: 700;
}
.cost-val {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}
.cost-hi .cost-val {
    color: var(--amber);
    font-weight: 800;
}
.cost-bold .cost-lbl,
.cost-bold .cost-val {
    font-weight: 700;
}

/* ══ EQUIP ══ */
.equip-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 24px;
    gap: 7px;
    align-items: center;
}

/* ══ FASCIA ══ */
.fascia-wrap {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.fascia-hdr-bar {
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}
.fascia-interior {
    background: #e5e7eb;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
    color: #9ca3af;
    font-size: 12px;
}
.preset-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.preset-btn {
    padding: 5px 11px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 600;
    border: 1.5px solid var(--border);
    cursor: pointer;
}
.color-swatch {
    width: 40px;
    height: 36px;
    border-radius: 7px;
    border: 1.5px solid var(--border);
    cursor: pointer;
    padding: 2px;
}
.color-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* ══ BADGES ══ */
.badge-mini {
    width: 130px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border);
}
.bm-header {
    padding: 7px 10px;
    text-align: center;
}
.bm-body {
    background: #fff;
    padding: 8px 10px;
    text-align: center;
}
.bm-photo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg);
    margin: 0 auto 5px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}
.bm-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--navy);
}
.bm-desig {
    font-size: 9px;
    color: var(--text-mid);
    margin-top: 1px;
}
.bm-type {
    margin-top: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 700;
    color: #fff;
    display: inline-block;
}

/* ══ LOGO ══ */
.logo-preview-box {
    border-radius: 10px;
    padding: 24px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    min-height: 90px;
    border: 1.5px solid var(--border);
}
.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 11px;
    background: var(--bg);
    border-radius: 7px;
    margin-bottom: 5px;
}
