:root {
    --ink: #1b2420;
    --ink-soft: #3d4a43;
    --paper: #f3efe6;
    --card: #fffcf8;
    --line: #e3daca;
    --sidebar: #14211c;
    --sidebar-2: #1c2e26;
    --gold: #e2a23a;
    --gold-deep: #b7791f;
    --pine: #2f6d4f;
    --clay: #9c4332;
    --muted: #6f675c;
    --shadow: 0 18px 40px rgba(40, 32, 18, 0.06);
    --radius: 18px;
    --font-sans: 'Times New Roman', Times, serif;
    --font-serif: 'Times New Roman', Times, serif;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-sans);
}

* { box-sizing: border-box; }
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
html, body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
}
img, video {
    max-width: 100%;
    height: auto;
}
a { color: inherit; text-decoration: none; font-family: inherit; }
button, input, select, textarea {
    font-family: 'Times New Roman', Times, serif;
    font-size: inherit;
    color: inherit;
}
input::placeholder, textarea::placeholder {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
    opacity: 0.75;
}
h1, h2, h3, h4, h5, h6, p { margin: 0; }
h1, h2, h3, h4, h5, h6 {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
}

.shell { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }
.sidebar {
    background:
        radial-gradient(1200px 400px at -20% -10%, rgba(226, 162, 58, 0.18), transparent 50%),
        linear-gradient(180deg, var(--sidebar), #0e1814 80%);
    color: #e7efe9;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 18px; }
.mark {
    width: 42px; height: 42px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(160deg, #f0c36a, #c47b2b);
    color: #1b1408; font-weight: 600; font-size: 22px;
}
.brand strong { display: block; font-size: 18px; letter-spacing: 0.01em; }
.brand small { color: #b7c6bc; letter-spacing: 0.08em; text-transform: uppercase; font-size: 10px; }
.nav-label { margin: 16px 10px 6px; color: #8ea195; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.nav a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: 12px; color: #d5e2da; margin-bottom: 2px;
}
.nav a:hover, .nav a.is-active { background: rgba(255,255,255,0.08); color: white; }
.nav a.is-active { box-shadow: inset 3px 0 0 var(--gold); }
.user-card { margin-top: auto; background: rgba(255,255,255,0.05); border-radius: 16px; padding: 14px; }
.user-card strong { display: block; }
.user-card span { color: #b7c6bc; font-size: 13px; }
.logout { margin-top: 10px; background: transparent; border: 1px solid rgba(255,255,255,0.15); color: #f4efe4; border-radius: 999px; padding: 6px 12px; cursor: pointer; }

.main { padding: 28px 32px 48px; }
.top { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 22px; }
.eyebrow { color: var(--gold-deep); letter-spacing: 0.14em; text-transform: uppercase; font-size: 11.5px; font-weight: 700; font-family: var(--font-sans); }
h1 { font-family: var(--font-serif); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; color: #171d18; }
h2 { font-family: var(--font-serif); font-weight: 700; letter-spacing: -0.015em; color: #171d18; }
h3 { font-family: var(--font-serif); font-weight: 700; color: #171d18; }
.sub { color: var(--muted); margin-top: 5px; font-family: var(--font-sans); font-size: 14px; line-height: 1.5; font-weight: 400; }

.btn, button.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: #0d2116; color: #ffffff; border: 0; border-radius: 9px;
    padding: 9.5px 18px; cursor: pointer; text-decoration: none;
    font-family: var(--font-sans); font-weight: 700; font-size: 14px;
    transition: all 0.18s ease;
    box-shadow: 0 2px 6px rgba(13, 33, 22, 0.15);
}
.btn:hover { background: #183d29; transform: translateY(-1px); }
.btn.secondary {
    background: #ffffff; color: #272e29; border: 1px solid #dfd8cc;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.btn.secondary:hover { background: #faf7f2; border-color: #cbbeaa; }
.btn.danger { background: #c93b32; color: #fff; }
.btn.danger:hover { background: #ab2820; }
.btn.gold {
    background: linear-gradient(145deg, #d89a32, #b7791f);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(183, 121, 31, 0.25);
}
.btn.gold:hover { background: linear-gradient(145deg, #e4a73e, #c48325); }
.btn.small { padding: 6px 12px; font-size: 12.5px; border-radius: 7px; }

.flash {
    background: #eaf5ee; color: #1e5e38; border: 1px solid #c2e5cf;
    border-radius: 12px; padding: 12px 16px; margin-bottom: 20px;
    font-size: 13.5px; font-weight: 500;
}
.flash.error { background: #faebe9; color: #a32d24; border-color: #f5c4bf; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.stat, .panel {
    background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 8px rgba(30, 24, 12, 0.03);
}
.stat { padding: 18px 20px; }
.stat span { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.stat strong { display: block; margin-top: 6px; font-size: 30px; font-weight: 600; font-family: var(--font-serif); color: #171d18; }
.stat em { font-style: normal; color: var(--gold-deep); font-size: 13px; font-weight: 500; margin-top: 4px; display: block; }

.layout-split { display: grid; grid-template-columns: 1.5fr 0.8fr; gap: 18px; }
.panel { padding: 20px 24px; margin-bottom: 20px; }
.panel h2 { font-size: 20px; margin-bottom: 16px; font-family: var(--font-serif); font-weight: 600; color: #171d18; }
.panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }

.table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
    border: 1px solid #ebd9c2;
    background: #ffffff;
}

table, table.grid {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}
table.grid th, table th {
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6a6760;
    padding: 12px 14px;
    border-bottom: 1px solid #ebd9c2;
    background: #faf7f2;
    font-weight: 700;
    white-space: nowrap;
    font-family: var(--font-sans);
}
table.grid td, table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f3ece0;
    vertical-align: middle;
    font-size: 14px;
    color: #272e29;
    font-weight: 400;
    font-family: var(--font-sans);
}
table.grid tr:hover td, table tr:hover td {
    background: #fbf7f0;
}
.right { text-align: right; }
.actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
td.actions,
table.grid td.actions,
table td.actions {
    display: table-cell !important;
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}
td.actions > * {
    display: inline-flex;
    vertical-align: middle;
}
td.actions > * + * {
    margin-left: 8px;
}
td.actions form {
    display: inline-flex;
    margin: 0;
    vertical-align: middle;
}

/* Global Form Controls & Layout */
.form-card {
    background: #faf7f2;
    border-radius: 14px;
    border: 1px solid #ebd9c2;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters input, .filters select,
.field input, .field select, .field textarea,
.form-input, .form-select, .form-textarea {
    background: #ffffff;
    border: 1px solid #dfd8cc;
    border-radius: 8px;
    padding: 9.5px 12px;
    font-size: 13.5px;
    color: #272e29;
    width: 100%;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    font-family: var(--font-sans);
}
.filters input, .filters select { width: auto; min-width: 160px; }

.filters input:focus, .filters select:focus,
.field input:focus, .field select:focus, .field textarea:focus,
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: #b78335;
    box-shadow: 0 0 0 3px rgba(183, 131, 53, 0.14);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.wide { grid-column: 1 / -1; }
.field span, .form-label {
    font-size: 13.5px;
    font-weight: 700;
    color: #272e29;
    display: inline-flex;
    align-items: center;
    font-family: var(--font-sans);
}
.field small, .form-error {
    color: #c93434;
    font-size: 12px;
    margin-top: 3px;
    font-weight: 500;
}
.form-actions { display: flex; gap: 12px; margin-top: 20px; align-items: center; }

.progress { height: 8px; background: #ebd9c2; border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #287d48, #c48833); border-radius: inherit; }
.progress-row { display: grid; grid-template-columns: minmax(180px, 34%) 1fr 52px; gap: 12px; align-items: center; margin: 12px 0; }
.progress-row strong { font-size: 14px; line-height: 1.25; }
.mini { color: var(--muted); font-size: 12.5px; display: flex; gap: 12px; margin-top: 4px; }

.check-list {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 6px;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}
.check-item:hover {
    background: #faf6ef;
}
.check-item input[type="checkbox"] {
    width: 18px !important;
    min-width: 18px;
    height: 18px;
    padding: 0 !important;
    margin: 0;
    accent-color: var(--gold-deep);
    cursor: pointer;
}
.check-item-label {
    font-size: 14px;
    color: var(--ink);
    font-weight: 500;
}
.check-empty {
    padding: 12px 10px;
    font-size: 13px;
    color: var(--muted);
    margin: 0;
}

.alert-list { display: flex; flex-direction: column; gap: 10px; }
.alert-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 14px; background: #faf6ef; }
.alert-item strong { font-size: 28px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.report-card, .work-card { display: block; padding: 16px; border-radius: 16px; background: #faf6ef; border: 1px solid transparent; }
.report-card:hover, .work-card:hover { border-color: var(--gold); }
.report-card small, .work-card small { color: var(--muted); }

.repeat { display: grid; gap: 8px; }
.repeat-row { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr auto; gap: 8px; align-items: center; }
.photos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.pager {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #ebd9c2;
}
.pager-info {
    font-size: 13px;
    font-weight: 500;
    color: #4e4a43;
}
.pager-info strong {
    color: #171d18;
    font-weight: 700;
}
.btn.disabled,
span.btn.disabled,
button.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    background: #faf7f2 !important;
    color: #8c857b !important;
    border-color: #e5dcce !important;
}
.badge, .status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    line-height: 1.2;
}
.badge[data-status="active"], .badge[data-status="submitted"], .badge[data-status="1"] {
    background: #fdf3e2;
    color: #9c6c24;
    border: 1px solid #ebd9c2;
}
.badge[data-status="approved"] {
    background: #eef6f0;
    color: #106b3a;
    border: 1px solid #c2e2cc;
}
.badge[data-status="draft"], .badge[data-status="0"], .badge[data-status="inactive"] {
    background: #f4eee3;
    color: #6a6760;
    border: 1px solid #dfd8cc;
}

.empty { color: var(--muted); padding: 20px 0; }


.guest {
    min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr;
    background: var(--paper);
}
.guest-hero {
    padding: 48px; color: #f6f1e6;
    background:
        radial-gradient(600px 300px at 20% 20%, rgba(226,162,58,.35), transparent 60%),
        linear-gradient(165deg, #1a2b24, #0e1814);
    display: flex; flex-direction: column; justify-content: space-between;
    font-family: 'Times New Roman', Times, serif;
}
.guest-hero h1 {
    font-size: 42px;
    max-width: 520px;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.18;
    margin-top: 12px;
    margin-bottom: 12px;
}
.guest-hero .sub {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.55;
    color: #d5e0d8;
}
.guest-hero p {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 400;
}
.guest-form { display: grid; place-items: center; padding: 32px; }
.login-card { width: min(440px, 100%); }
.demo { margin-top: 18px; font-size: 13px; color: var(--muted); }
.demo code { background: #fff; border-radius: 8px; padding: 1px 6px; }

.nav-toggle { display: none; }
.burger { display: none; }

/* Authenticated app shell (layouts/app) */
body.app-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    min-height: 100dvh;
}
@media (min-width: 981px) {
    body.app-body {
        height: 100vh;
        overflow: hidden;
    }
}
.shell-app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
    min-height: 100dvh;
    background: #f4eee3;
}
@media (min-width: 981px) {
    .shell-app {
        height: 100vh;
        overflow: hidden;
    }
}
.sidebar-app {
    background: #0d2116;
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow-y: auto;
}
@media (min-width: 981px) {
    .sidebar-app {
        height: 100vh;
    }
}
.main-app {
    padding: 0 32px 48px;
    background: #f4eee3;
    box-sizing: border-box;
    overflow-x: hidden;
}
@media (min-width: 981px) {
    .main-app {
        height: 100vh;
        overflow-y: auto;
    }
}
.app-top-layer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    margin: 0 0 4px;
    padding: 14px 0 10px;
    background: #f4eee3;
    border-bottom: 1px solid rgba(27, 36, 32, 0.08);
    box-sizing: border-box;
}
.app-top-layer__menu {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    display: none;
}
.app-top-layer .user-profile-wrapper {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    position: relative;
    flex-shrink: 0;
    z-index: 50;
}
.user-card-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 999px;
    padding: 4px 12px 4px 6px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}
.user-card-pill__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ad7c32;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 13px;
    flex-shrink: 0;
}
.user-card-pill__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    min-width: 0;
}
.user-card-pill__role {
    font-weight: 600;
    font-size: 13.5px;
    color: #222923;
}
.user-card-pill__name {
    font-size: 11px;
    color: #7a6a4d;
    font-weight: 500;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-card-pill__chevron {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.user-profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e7ded0;
    min-width: 220px;
    z-index: 100;
    padding: 8px 0;
}
.user-profile-dropdown__head {
    padding: 10px 16px;
    border-bottom: 1px solid #f0e9df;
}
.user-profile-dropdown__head strong {
    display: block;
    font-size: 14px;
    color: #171d18;
    font-weight: 600;
}
.user-profile-dropdown__head > span:not(.user-profile-dropdown__role) {
    display: block;
    font-size: 12px;
    color: #78736a;
    margin-top: 2px;
}
.user-profile-dropdown__role {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: #f3e9d8;
    color: #9c6c24;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.user-profile-dropdown form {
    margin: 0;
    padding: 6px 8px 2px;
}
.user-profile-dropdown__signout {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    color: #a33828;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s ease;
}
.user-profile-dropdown__signout:hover {
    background: #faf6ef;
}
.user-profile-dropdown[hidden] {
    display: none !important;
}
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
    padding-top: 6px;
    flex-wrap: wrap;
}
.top-bar-title {
    flex: 1 1 240px;
    min-width: 0;
}
.top-bar-page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1 1 200px;
    min-width: 0;
}
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13, 33, 22, 0.55);
    z-index: 18;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

@media (max-width: 980px) {
    .shell,
    .shell-app {
        grid-template-columns: 1fr;
    }
    .sidebar,
    .sidebar-app {
        position: fixed;
        z-index: 20;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-105%);
        transition: transform 0.2s ease;
        width: min(84vw, 300px);
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh;
    }
    .nav-toggle:checked ~ .sidebar-backdrop {
        display: block;
    }
    .nav-toggle:checked ~ .shell .sidebar,
    .nav-toggle:checked ~ .shell .sidebar-app {
        transform: none;
    }
    .app-top-layer__menu {
        display: inline-flex;
    }
    .burger {
        display: inline-flex;
    }
    .stats,
    .layout-split,
    .form-grid,
    .cards,
    .guest {
        grid-template-columns: 1fr !important;
    }
    .photos {
        grid-template-columns: 1fr 1fr;
    }
    h1 {
        font-size: 24px;
    }
    .main,
    .main-app {
        padding: 0 16px 28px;
        min-height: 100vh;
        min-height: 100dvh;
        height: auto !important;
        overflow-y: visible !important;
    }
    body.app-body {
        height: auto;
        overflow: visible;
    }
    .shell-app {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }
    .guest-hero {
        display: none;
    }
    .top:not(.top-bar),
    .top-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .top-bar-page-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .top-bar-actions {
        justify-content: flex-start;
        width: 100%;
    }
    .panel {
        padding: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .panel-box {
        padding: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    table.crm-table,
    table.reports-table,
    table.inventory-table {
        min-width: 520px;
    }
    .form-card {
        padding: 16px;
    }
    .panel-head {
        flex-direction: column;
        align-items: flex-start;
    }
    .filters {
        flex-direction: column;
        align-items: stretch;
    }
    .filters input,
    .filters select {
        width: 100%;
        min-width: 0;
    }
    .form-actions {
        flex-wrap: wrap;
    }
    .form-actions .btn {
        flex: 1 1 auto;
        min-width: min(100%, 140px);
    }
    .repeat-row {
        grid-template-columns: 1fr;
    }
    .progress-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .actions {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .pager {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .table-wrap {
        margin-left: -4px;
        margin-right: -4px;
        width: calc(100% + 8px);
        max-width: none;
    }
    .user-card-pill__name {
        max-width: 100px;
    }
}

@media (max-width: 640px) {
    .photos {
        grid-template-columns: 1fr;
    }
    h1 {
        font-size: 22px;
    }
    .stat strong {
        font-size: 26px;
    }
    .guest-form {
        padding: 20px 16px;
    }
    .login-card {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .responsive-grid-2 {
        grid-template-columns: 1fr !important;
    }
    .panel > div[style*="display: flex"],
    .panel-box > div[style*="display: flex"],
    .form-card > div[style*="display: flex"] {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    .guest-hero h1,
    .guest h1[style*="font-size"] {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }
    .panel [style*="justify-content: flex-end"],
    .form-card [style*="justify-content: flex-end"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .panel [style*="justify-content: flex-end"] .btn,
    .form-card [style*="justify-content: flex-end"] .btn {
        width: 100%;
        justify-content: center;
    }
}
@media print {
    .sidebar, .burger, .form-actions, .filters, .btn { display: none !important; }
    .shell { display: block; }
    .main { padding: 0; }
}

/* ==========================================================================
   Global Times New Roman Typography Hierarchy
   ========================================================================== */
html, body, button, input, select, textarea,
h1, h2, h3, h4, h5, h6,
p, span, a, label, table, th, td,
.sidebar, .nav, .brand, .panel, .stat, .card,
.modal, .dropdown, #userProfileDropdown, .btn,
.form-input, .form-select, .form-textarea, .form-label,
.panel-title, .card-title, .metric-data, .metric-data .value,
.tab-btn, .badge, .status-badge, .guest, .guest-hero, .guest-form {
    font-family: 'Times New Roman', Times, serif !important;
}

/* Main page headings & section headings: bold Times New Roman */
h1, h2, h3, h4, h5, h6,
.panel-title, .card-title, .section-title,
.stat strong, .metric-data .value {
    font-weight: 700 !important;
}

/* Form labels & Table headings: bold Times New Roman */
.form-label, label, .field span,
table th, table.grid th, th {
    font-weight: 700 !important;
}

/* Body text, descriptions, table cells: regular weight Times New Roman */
p, .sub, .desc, .description,
table td, table.grid td, td,
.check-item-label, .empty {
    font-weight: 400;
}

/* Input fields and placeholders: readable regular Times New Roman */
input, select, textarea,
.form-input, .form-select, .form-textarea {
    font-weight: 400;
    font-size: 14px;
}
input::placeholder, textarea::placeholder {
    font-weight: 400;
    font-family: 'Times New Roman', Times, serif !important;
}

/* Buttons and navigation text: bold / appropriate weight Times New Roman */
.btn, button.btn, .nav a, .btn-action-submit, .btn-action-cancel {
    font-family: 'Times New Roman', Times, serif !important;
}
