:root {
    --jet-pink: #ef018d;
    --jet-red: #ed1b24;
    --jet-yellow: #f8c60f;
    --jet-orange: #f7941d;
    --ink: #22172a;
    --ink-soft: #5f5268;
    --muted: #82758a;
    --bg: #fff7fb;
    --bg-strong: #fff0f8;
    --card: #ffffff;
    --border: #f0d9e6;
    --shadow: 0 16px 40px rgba(76, 22, 54, .10);
    --shadow-strong: 0 24px 70px rgba(76, 22, 54, .18);
    --success: #23875c;
    --warning: #b26d00;
    --danger: #c72b39;
    --info: #7c2db5;
    --sidebar: #2a1430;
    --sidebar-soft: #44214c;
    --radius-lg: 24px;
    --radius-md: 16px;
    --focus: 0 0 0 4px rgba(239, 1, 141, .16);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 6% 4%, rgba(248,198,15,.18), transparent 28%),
        radial-gradient(circle at 92% 10%, rgba(239,1,141,.14), transparent 30%),
        linear-gradient(180deg, #fffafd 0%, var(--bg) 100%);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--jet-pink); text-decoration: none; }
a:hover { color: var(--jet-red); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.login-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 18% 14%, rgba(248,198,15,.55), transparent 21%),
        radial-gradient(circle at 84% 16%, rgba(239,1,141,.50), transparent 24%),
        radial-gradient(circle at 62% 88%, rgba(237,27,36,.25), transparent 26%),
        linear-gradient(135deg, #fffaf0 0%, #fff2fb 50%, #ffffff 100%);
    padding: 20px;
}
.login-card {
    width: 100%;
    max-width: 460px;
    background: rgba(255,255,255,.92);
    padding: 34px;
    border-radius: 30px;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255,255,255,.70);
    backdrop-filter: blur(10px);
    animation: riseIn .45s ease both;
}
.login-logo {
    width: 76px;
    height: 76px;
    border-radius: 24px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 34px rgba(239,1,141,.18);
    margin-bottom: 18px;
}
.login-logo img { width: 54px; height: 54px; object-fit: contain; }
.login-card h1 { margin: 0 0 8px; color: var(--ink); font-size: 30px; line-height: 1.15; }
.login-card p { margin: 0 0 24px; color: var(--ink-soft); line-height: 1.55; }
.demo-line { font-size: 13px; margin-top: 18px !important; background: #fff8df; border: 1px solid rgba(248,198,15,.45); border-radius: 14px; padding: 12px; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar-backdrop { display: none; }
.sidebar {
    width: 292px;
    background:
        radial-gradient(circle at 8% 6%, rgba(248,198,15,.20), transparent 28%),
        linear-gradient(180deg, var(--sidebar) 0%, #1f1024 100%);
    color: #fff4fb;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 40;
    box-shadow: 12px 0 36px rgba(42,20,48,.18);
}
.brand-block { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 8px 8px 12px; }
.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 30px rgba(0,0,0,.18);
    flex: 0 0 auto;
}
.brand-mark img { width: 42px; height: 42px; object-fit: contain; }
.brand-block strong { display: block; font-size: 18px; letter-spacing: .01em; }
.brand-block span { display: block; font-size: 12px; color: #f7cfe7; }
.sidebar-close { display: none; margin-left: auto; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.18); width: 42px; height: 42px; border-radius: 14px; padding: 0; }
.sidebar nav a, .logout-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    color: #fff4fb;
    border-radius: 15px;
    margin: 4px 0;
    font-size: 14px;
    transition: background .18s ease, transform .18s ease, color .18s ease;
}
.sidebar nav a:hover, .logout-link:hover, .sidebar nav a.is-active {
    background: rgba(255,255,255,.12);
    transform: translateX(3px);
    color: #fff;
}
.nav-section {
    color: #f5b8d9;
    font-size: 11px;
    margin: 19px 10px 8px;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 800;
}
.logout-link { margin-top: auto; background: rgba(255,255,255,.08); }
.main-content {
    flex: 1;
    margin-left: 292px;
    padding: 28px;
    animation: fadeIn .32s ease both;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 22px;
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 0;
    backdrop-filter: blur(14px);
}
.topbar-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar h1 { margin: 0; color: var(--ink); font-size: 26px; line-height: 1.2; }
.topbar p { margin: 5px 0 0; color: var(--muted); }
.mobile-menu-btn {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 15px;
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--border);
    box-shadow: 0 10px 24px rgba(76,22,54,.10);
}
.mobile-menu-btn span { display: block; width: 20px; height: 2px; background: currentColor; margin: 4px auto; border-radius: 999px; }
.topbar-user {
    background: rgba(255,255,255,.88);
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: right;
    min-width: 190px;
    box-shadow: 0 10px 24px rgba(76,22,54,.06);
}
.topbar-user span { display: block; font-weight: 800; }
.topbar-user small { color: var(--muted); }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
    background: rgba(255,255,255,.92);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    animation: riseIn .36s ease both;
}
.card h2, .card h3 { margin-top: 0; color: var(--ink); }
.card p { color: var(--ink-soft); line-height: 1.55; }
.hero-card {
    background:
        linear-gradient(135deg, rgba(239,1,141,.94), rgba(237,27,36,.90)),
        radial-gradient(circle at 12% 10%, rgba(248,198,15,.36), transparent 35%);
    color: #fff;
    border-radius: 32px;
    padding: 30px;
    margin-bottom: 22px;
    box-shadow: 0 24px 70px rgba(239,1,141,.22);
    position: relative;
    overflow: hidden;
}
.hero-card::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    right: -70px;
    top: -75px;
    background: rgba(248,198,15,.38);
}
.hero-card > * { position: relative; z-index: 1; }
.hero-card h2 { margin: 0 0 8px; font-size: 31px; line-height: 1.15; }
.hero-card p { margin: 0; color: #fff8fd; max-width: 820px; }
.hero-with-logo { display: flex; align-items: center; gap: 18px; }
.hero-logo {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: #fff;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    box-shadow: 0 16px 38px rgba(42,20,48,.20);
}
.hero-logo img { width: 56px; height: 56px; object-fit: contain; }
.module-card {
    min-height: 206px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    position: relative;
    overflow: hidden;
}
.module-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(239,1,141,.08), transparent 45%, rgba(248,198,15,.10));
    opacity: 0;
    transition: opacity .18s ease;
}
.module-card:hover, .module-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-strong); border-color: rgba(239,1,141,.28); }
.module-card:hover::before, .module-card:focus-visible::before { opacity: 1; }
.module-card > * { position: relative; z-index: 1; }
.module-icon {
    width: 50px;
    height: 50px;
    border-radius: 17px;
    background: linear-gradient(135deg, #fff3c5, #ffe5f5);
    color: var(--jet-pink);
    display: grid;
    place-items: center;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .04em;
    margin-bottom: 12px;
}
.module-card strong { color: var(--jet-pink); }

.btn, button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 15px;
    padding: 12px 18px;
    min-height: 46px;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--jet-pink), var(--jet-red));
    color: #fff;
    font-size: 14px;
    box-shadow: 0 12px 26px rgba(239,1,141,.20);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover, button:hover { opacity: .96; color: #fff; transform: translateY(-1px); box-shadow: 0 16px 30px rgba(239,1,141,.24); }
.btn:active, button:active { transform: translateY(0); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(76,22,54,.08); }
.btn-secondary:hover { color: var(--ink); }
.btn-gold { background: linear-gradient(135deg, var(--jet-yellow), var(--jet-orange)); color: #4a2400; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-small { padding: 7px 11px; min-height: 34px; font-size: 12px; border-radius: 10px; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-group { margin-bottom: 16px; }
label { display: block; font-weight: 800; margin-bottom: 7px; color: var(--ink); font-size: 14px; }
input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 13px 13px;
    min-height: 48px;
    font-size: 15px;
    background: #fff;
    color: var(--ink);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
input[type="file"] { padding: 11px; background: #fffafd; }
textarea { min-height: 108px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--jet-pink); box-shadow: var(--focus); background: #fff; }
.card > h2:not(:first-child), form.card > h2:not(:first-child) { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }
.form-help { color: var(--muted); font-size: 13px; margin-top: 6px; }
.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 9px;
    margin-top: 10px;
}
.upload-preview img, .upload-preview .file-pill {
    width: 100%;
    height: 76px;
    object-fit: cover;
    border-radius: 13px;
    border: 1px solid var(--border);
    background: #fff;
    padding: 4px;
}
.upload-preview .file-pill { display: grid; place-items: center; text-align: center; font-size: 12px; color: var(--ink-soft); }
.cash-row {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fffafd;
    margin-bottom: 12px;
    animation: riseIn .22s ease both;
}
.cash-live-summary {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff8df;
    border: 1px solid rgba(248,198,15,.42);
    color: #5d3b00;
    font-weight: 800;
}

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; }
th, td { padding: 13px 11px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; vertical-align: top; }
th { background: #fff2fb; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: 0; }
.checklist-table tr { transition: background .15s ease; }
.checklist-table tr.needs-attention { background: #fff1f1; }
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: capitalize; }
.badge-success { background: #e7f7ef; color: var(--success); }
.badge-warning { background: #fff4d7; color: var(--warning); }
.badge-danger { background: #ffe6e9; color: var(--danger); }
.badge-info { background: #f1e7ff; color: var(--info); }
.badge-muted { background: #f1edf3; color: var(--ink-soft); }
.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 18px; border: 1px solid transparent; animation: riseIn .25s ease both; }
.alert-success { background: #e7f7ef; color: var(--success); border-color: #bfebd4; }
.alert-danger { background: #ffe6e9; color: var(--danger); border-color: #ffc9d0; }
.alert-info { background: #f1e7ff; color: var(--info); border-color: #dcc5ff; }
.filter-bar { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.stat { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stat strong { font-size: 34px; color: var(--ink); line-height: 1; }
.stat span { color: var(--muted); font-weight: 700; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.photo-card { border: 1px solid var(--border); border-radius: 18px; padding: 10px; background: #fff; box-shadow: 0 10px 24px rgba(76,22,54,.06); }
.photo-card img { width: 100%; height: 154px; object-fit: cover; border-radius: 13px; display: block; cursor: zoom-in; }
.photo-card small { display: block; margin-top: 8px; color: var(--muted); word-break: break-word; }
.inline-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.checklist-table select { min-width: 118px; }

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(22, 10, 26, .84);
    display: grid;
    place-items: center;
    padding: 20px;
}
.image-lightbox img { max-width: min(940px, 96vw); max-height: 90vh; border-radius: 18px; box-shadow: var(--shadow-strong); }

@keyframes riseIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 1120px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photo-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 980px) {
    .app-shell { display: block; }
    .sidebar {
        transform: translateX(-105%);
        transition: transform .22s ease;
        width: min(88vw, 320px);
    }
    body.sidebar-open .sidebar { transform: translateX(0); }
    body.sidebar-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(31,16,36,.48); z-index: 30; }
    .sidebar-close { display: inline-grid; place-items: center; }
    .main-content { margin-left: 0; padding: 16px; padding-bottom: 28px; }
    .mobile-menu-btn { display: inline-block; flex: 0 0 auto; }
    .topbar { align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 8px 0 12px; }
    .topbar h1 { font-size: 22px; }
    .topbar p { font-size: 13px; }
    .topbar-user { display: none; }
    .grid-2, .grid-3, .grid-4, .form-grid, .filter-bar { grid-template-columns: 1fr; }
    .hero-card { padding: 22px; border-radius: 26px; }
    .hero-with-logo { align-items: flex-start; }
    .hero-logo { width: 58px; height: 58px; border-radius: 18px; }
    .hero-logo img { width: 44px; height: 44px; }
    .hero-card h2 { font-size: 24px; }
    .module-card { min-height: 176px; }
    .card { padding: 18px; border-radius: 22px; }
    .photo-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 560px) {
    body { background: #fffafd; }
    .login-body { align-items: flex-start; padding-top: 28px; }
    .login-card { padding: 24px; border-radius: 26px; }
    .login-card h1 { font-size: 26px; }
    .main-content { padding: 12px; }
    .topbar-title { gap: 10px; }
    .hero-with-logo { display: block; }
    .hero-logo { margin-bottom: 14px; }
    .card, .hero-card { border-radius: 20px; }
    input, select, textarea { font-size: 16px; }
    .btn, button { width: 100%; }
    .inline-actions .btn, .inline-actions button { width: 100%; }
    .photo-grid { grid-template-columns: 1fr; }
    .photo-card img { height: 220px; }
    th, td { padding: 11px 9px; }
    .report-meta { grid-template-columns: 1fr; }
}


/* V3 mobile usability, icon system and drag-drop evidence uploads */
.ui-icon, .nav-icon, .module-svg, .text-icon, .label-icon, .section-icon, .checklist-icon, .result-icon, .stat-svg {
    display: inline-block;
    vertical-align: middle;
    flex: 0 0 auto;
}
.nav-icon { width: 18px; height: 18px; opacity: .95; }
.text-icon { width: 17px; height: 17px; }
.label-icon { width: 16px; height: 16px; color: var(--jet-pink); margin-right: 5px; }
.section-icon { width: 25px; height: 25px; color: var(--jet-pink); }
.module-svg { width: 27px; height: 27px; }
.stat-svg { width: 24px; height: 24px; color: var(--jet-pink); }
.sidebar nav a span, .logout-link span { min-width: 0; }
.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.25;
}
label {
    display: flex;
    align-items: center;
    gap: 4px;
}
.module-icon {
    font-size: 0;
    box-shadow: inset 0 0 0 1px rgba(239,1,141,.12), 0 10px 24px rgba(239,1,141,.08);
}
.module-card strong { display: inline-flex; align-items: center; gap: 7px; }
.stat { justify-content: flex-start; }
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff3c5, #ffe5f5);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}
.auto-time-card {
    min-height: 58px;
    border-radius: 18px;
    border: 1px solid rgba(239,1,141,.20);
    background: linear-gradient(135deg, #fff8df, #fff3fb);
    padding: 12px 14px;
    display: grid;
    align-content: center;
    box-shadow: 0 10px 24px rgba(76,22,54,.06);
}
.auto-time-card strong { font-size: 16px; color: var(--ink); }
.auto-time-card span { font-size: 12px; color: var(--ink-soft); font-weight: 700; margin-top: 2px; }
.checklist-mobile-note, .upload-guidance {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -4px 0 14px;
    padding: 11px 13px;
    border-radius: 16px;
    background: #fff8df;
    color: #5d3b00;
    font-weight: 800;
    font-size: 13px;
    border: 1px solid rgba(248,198,15,.42);
}
.checklist-label {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    min-width: 250px;
}
.checklist-label strong { display: block; color: var(--ink); margin-bottom: 3px; }
.checklist-label small { color: var(--muted); line-height: 1.4; }
.checklist-icon-wrap {
    width: 39px;
    height: 39px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #fff2fb;
    color: var(--jet-pink);
    flex: 0 0 auto;
}
.checklist-icon { width: 21px; height: 21px; }
.checklist-table-modern td { vertical-align: middle; }
.checklist-table tr.is-ok { background: #fbfffd; }
.checklist-table tr.needs-attention { background: #fff1f1; }
.checklist-table tr.is-na { background: #faf7fc; }
.result-options {
    display: grid;
    gap: 7px;
    min-width: 210px;
}
.result-option { margin: 0; display: block; }
.result-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
}
.result-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink-soft);
    font-weight: 900;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.result-option span:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(76,22,54,.08); }
.result-option input:checked + span { color: #fff; border-color: transparent; box-shadow: 0 12px 24px rgba(76,22,54,.12); }
.result-yes input:checked + span { background: linear-gradient(135deg, #23875c, #2aae75); }
.result-no input:checked + span { background: linear-gradient(135deg, #c72b39, #ed1b24); }
.result-na input:checked + span { background: linear-gradient(135deg, #82758a, #5f5268); }
.result-icon { width: 16px; height: 16px; }
.drop-zone {
    border: 2px dashed rgba(239,1,141,.34);
    border-radius: 20px;
    background: linear-gradient(135deg, #fffafd, #fff7df);
    min-height: 132px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.drop-zone:hover, .drop-zone:focus-visible {
    border-color: var(--jet-pink);
    box-shadow: var(--focus);
    outline: none;
    transform: translateY(-1px);
}
.drop-zone.is-dragging {
    border-color: var(--jet-red);
    background: #fff0f8;
    transform: scale(1.01);
}
.drop-zone.has-files {
    border-color: rgba(35,135,92,.50);
    background: #f3fff8;
}
.drop-zone-visual { pointer-events: none; }
.drop-zone-icon {
    width: 45px;
    height: 45px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin: 0 auto 9px;
    background: #fff;
    color: var(--jet-pink);
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(239,1,141,.12);
}
.drop-zone strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.35;
}
.drop-zone small {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 700;
}
.file-input-hidden {
    position: absolute !important;
    opacity: 0 !important;
    width: 1px !important;
    height: 1px !important;
    pointer-events: none !important;
    padding: 0 !important;
    min-height: 0 !important;
}
.mobile-first-form { padding-bottom: 28px; }
.sticky-mobile-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.sticky-mobile-actions .btn-secondary { flex: 0 0 auto; }

@media (max-width: 980px) {
    .checklist-table-modern,
    .checklist-table-modern thead,
    .checklist-table-modern tbody,
    .checklist-table-modern tr,
    .checklist-table-modern th,
    .checklist-table-modern td { display: block; }
    .checklist-table-modern thead { display: none; }
    .checklist-table-modern tr {
        border: 1px solid var(--border);
        border-radius: 20px;
        margin-bottom: 13px;
        overflow: hidden;
        box-shadow: 0 8px 20px rgba(76,22,54,.05);
    }
    .checklist-table-modern td { border-bottom: 1px solid var(--border); }
    .checklist-table-modern td:last-child { border-bottom: 0; }
    .result-options { grid-template-columns: repeat(3, minmax(0,1fr)); min-width: 0; }
    .checklist-label { min-width: 0; }
    .drop-zone { min-height: 120px; }
}
@media (max-width: 560px) {
    .section-title { font-size: 20px; }
    .result-options { gap: 6px; }
    .result-option span { min-height: 46px; font-size: 13px; padding: 0 4px; }
    .checklist-mobile-note, .upload-guidance { align-items: flex-start; line-height: 1.35; }
    .sticky-mobile-actions {
        position: sticky;
        bottom: 0;
        z-index: 19;
        background: rgba(255,250,253,.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding: 10px 0 0;
        margin-left: -18px;
        margin-right: -18px;
        padding-left: 18px;
        padding-right: 18px;
    }
    .drop-zone { min-height: 116px; padding: 15px; }
    .drop-zone-icon { width: 40px; height: 40px; }
}

/* V4 representative system-button portal and PDF download actions */
.rep-hero { margin-bottom: 16px; }
.rep-launch-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.rep-system-button {
    min-height: 218px;
    border-radius: 28px;
    padding: 22px;
    color: var(--ink);
    background: linear-gradient(145deg, #ffffff 0%, #fff4fb 60%, #fff8df 100%);
    border: 1px solid rgba(239,1,141,.18);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rep-system-button::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -42px;
    top: -42px;
    border-radius: 999px;
    background: rgba(248,198,15,.30);
    transition: transform .18s ease;
}
.rep-system-button:hover, .rep-system-button:focus-visible {
    color: var(--ink);
    transform: translateY(-4px) scale(1.01);
    box-shadow: var(--shadow-strong);
    border-color: rgba(239,1,141,.36);
}
.rep-system-button:hover::after, .rep-system-button:focus-visible::after { transform: scale(1.2); }
.rep-system-button > * { position: relative; z-index: 1; }
.rep-system-icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--jet-pink), var(--jet-red));
    box-shadow: 0 14px 30px rgba(239,1,141,.24);
}
.rep-system-title {
    font-size: 23px;
    font-weight: 900;
    line-height: 1.1;
}
.rep-system-copy {
    color: var(--ink-soft);
    line-height: 1.45;
    font-size: 14px;
}
.rep-system-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 10px 13px;
    border-radius: 999px;
    background: #fff;
    color: var(--jet-pink);
    font-weight: 900;
    border: 1px solid rgba(239,1,141,.18);
}
.record-button-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.record-button {
    min-height: 64px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fffafd;
    border: 1px solid var(--border);
    color: var(--ink);
    font-weight: 800;
    transition: transform .15s ease, box-shadow .15s ease;
}
.record-button:hover, .record-button:focus-visible {
    color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(76,22,54,.10);
}
.record-button strong {
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--jet-yellow), var(--jet-orange));
    color: #4a2400;
}
.record-action-bar {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
@media (max-width: 980px) {
    .rep-launch-grid, .record-button-grid { grid-template-columns: 1fr; }
    .rep-system-button { min-height: 156px; border-radius: 24px; }
    .rep-system-title { font-size: 21px; }
    .record-action-bar { justify-content: stretch; }
    .record-action-bar .btn { flex: 1 1 180px; }
}
@media (max-width: 560px) {
    .rep-launch-grid { gap: 12px; }
    .rep-system-button { min-height: 150px; padding: 18px; }
    .rep-system-icon { width: 58px; height: 58px; border-radius: 20px; }
    .rep-system-copy { font-size: 13px; }
    .record-button { grid-template-columns: auto 1fr auto; }
}

/* V5 clean mobile and report action refinements */
.mobile-clean-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 18px;
    background: #fff8df;
    border: 1px solid rgba(248,198,15,.38);
    color: #5d3b00;
    font-weight: 800;
    margin-bottom: 14px;
}
.portal-quick-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 19px;
}
.rep-system-button .rep-system-top {
    display: flex;
    align-items: center;
    gap: 14px;
}
.rep-system-arrow {
    margin-left: auto;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #fff;
    color: var(--jet-pink);
    display: grid;
    place-items: center;
    border: 1px solid rgba(239,1,141,.16);
    font-weight: 900;
}
.compact-action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 720px) {
    :root {
        --shadow: 0 8px 22px rgba(76, 22, 54, .08);
        --shadow-strong: 0 12px 30px rgba(76, 22, 54, .14);
    }
    body {
        background: #fffafd;
    }
    .main-content {
        padding: 10px;
        padding-bottom: 24px;
    }
    .topbar {
        margin: -10px -10px 10px;
        padding: 10px;
        background: rgba(255,250,253,.96);
        border-bottom: 1px solid var(--border);
        align-items: center;
    }
    .mobile-menu-btn {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }
    .topbar-title > div {
        min-width: 0;
    }
    .topbar h1 {
        font-size: 18px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: calc(100vw - 78px);
    }
    .topbar p {
        display: none;
    }
    .hero-card,
    .card {
        box-shadow: 0 8px 22px rgba(76,22,54,.07);
        border-radius: 18px;
    }
    .hero-card {
        padding: 16px;
        margin-bottom: 12px;
    }
    .hero-card::after {
        width: 120px;
        height: 120px;
        right: -52px;
        top: -54px;
    }
    .hero-with-logo {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .hero-logo {
        width: 50px;
        height: 50px;
        border-radius: 16px;
        margin: 0;
    }
    .hero-logo img {
        width: 38px;
        height: 38px;
    }
    .hero-card h2 {
        font-size: 20px;
        margin-bottom: 3px;
    }
    .hero-card p {
        font-size: 13px;
        line-height: 1.35;
    }
    .rep-launch-grid {
        gap: 10px;
    }
    .rep-system-button {
        min-height: 96px;
        padding: 14px;
        border-radius: 20px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        background: #fff;
    }
    .rep-system-button::after {
        display: none;
    }
    .rep-system-icon {
        width: 50px;
        height: 50px;
        border-radius: 17px;
        box-shadow: 0 10px 20px rgba(239,1,141,.18);
    }
    .rep-system-title {
        font-size: 18px;
        line-height: 1.12;
    }
    .rep-system-copy {
        font-size: 12.5px;
        line-height: 1.35;
        margin-left: 64px;
        margin-top: -8px;
    }
    .rep-system-cta {
        display: none;
    }
    .record-button-grid {
        gap: 8px;
    }
    .record-button {
        min-height: 52px;
        padding: 11px 12px;
        border-radius: 15px;
        font-size: 14px;
    }
    .rep-record-panel,
    .rep-mobile-guide {
        margin-top: 12px !important;
    }
    .section-title,
    .card h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }
    .form-grid {
        gap: 10px;
    }
    .form-group {
        margin-bottom: 11px;
    }
    label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    input,
    select,
    textarea {
        min-height: 46px;
        border-radius: 14px;
        padding: 11px 12px;
        font-size: 16px;
    }
    textarea {
        min-height: 86px;
    }
    .auto-time-card {
        padding: 12px 13px;
        border-radius: 14px;
    }
    .auto-time-card strong {
        font-size: 15px;
    }
    .checklist-mobile-note,
    .upload-guidance,
    .mobile-clean-note {
        padding: 10px 11px;
        border-radius: 15px;
        font-size: 13px;
        margin-bottom: 10px;
    }
    .table-wrap {
        overflow: visible;
    }
    .checklist-table-modern tr {
        border-radius: 16px;
        margin-bottom: 10px;
        background: #fff;
    }
    .checklist-table-modern td {
        padding: 10px;
    }
    .checklist-label {
        gap: 9px;
    }
    .checklist-icon-wrap {
        width: 38px;
        height: 38px;
        border-radius: 13px;
    }
    .checklist-label strong {
        font-size: 14px;
        line-height: 1.2;
    }
    .checklist-label small {
        display: none;
    }
    .result-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }
    .result-option span {
        min-height: 42px;
        border-radius: 13px;
        font-size: 13px;
    }
    .drop-zone {
        min-height: 92px;
        border-radius: 16px;
        padding: 12px;
        background: #fff;
    }
    .drop-zone-icon {
        width: 34px;
        height: 34px;
        border-radius: 12px;
        font-size: 20px;
        margin-bottom: 6px;
    }
    .drop-zone strong {
        font-size: 13px;
    }
    .drop-zone small {
        font-size: 12px;
    }
    .upload-preview {
        grid-template-columns: repeat(3, minmax(0,1fr));
        gap: 7px;
    }
    .upload-preview img,
    .upload-preview .file-pill {
        height: 70px;
        border-radius: 11px;
    }
    .cash-row {
        padding: 12px;
        border-radius: 16px;
        margin-bottom: 10px;
    }
    .cash-live-summary {
        border-radius: 15px;
        padding: 12px;
        font-size: 13px;
    }
    .filter-bar {
        gap: 9px;
    }
    .record-action-bar {
        gap: 8px;
        margin-bottom: 10px;
    }
    .record-action-bar .btn,
    .inline-actions .btn,
    .sticky-mobile-actions .btn,
    .sticky-mobile-actions button {
        min-height: 44px;
        border-radius: 14px;
    }
    .sticky-mobile-actions {
        position: sticky;
        bottom: 0;
        z-index: 19;
        background: rgba(255,250,253,.97);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding: 9px 10px env(safe-area-inset-bottom);
        margin: 16px -18px -18px;
    }
    .photo-grid {
        gap: 10px;
    }
}

@media (max-width: 430px) {
    .card {
        padding: 14px;
    }
    .hero-card {
        padding: 14px;
    }
    .hero-card h2 {
        font-size: 18px;
    }
    .hero-card p {
        font-size: 12.5px;
    }
    .rep-system-copy {
        margin-left: 61px;
    }
    .btn,
    button {
        padding: 11px 13px;
        font-size: 13px;
    }
    .sticky-mobile-actions {
        margin-left: -14px;
        margin-right: -14px;
        margin-bottom: -14px;
    }
}

.report-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}
.report-tab {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
}
.report-tab.active {
    background: linear-gradient(135deg, var(--pink), var(--red));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 28px rgba(239,1,141,.18);
}
.settlement-panel {
    border: 1px solid var(--border);
    background: #fffafd;
    border-radius: 22px;
    padding: 18px;
    margin: 12px 0;
}
.settlement-panel h3 {
    margin-top: 0;
    color: var(--ink);
}
table input,
table select {
    min-width: 110px;
    padding: 9px 10px;
    border-radius: 12px;
}
@media (max-width: 620px) {
    .report-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }
    .report-tab {
        justify-content: center;
        border-radius: 16px;
    }
    .settlement-panel {
        padding: 13px;
        border-radius: 16px;
    }
}

/* V9 master data CRUD action polish */
.master-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 170px;
}
.master-actions .btn-small {
    min-width: 76px;
    box-shadow: 0 8px 18px rgba(239,1,141,.14);
}
.master-actions .btn-danger {
    box-shadow: 0 8px 18px rgba(199,43,57,.16);
}
@media (max-width: 760px) {
    .master-actions { min-width: 150px; }
    .master-actions .btn-small { min-width: 68px; padding: 7px 9px; }
}

/* V10 system clean-up UI */
.muted-text { color: var(--ink-soft); line-height: 1.55; margin-top: 0; }
.clean-panel { padding: 22px; }
.clean-panel p { max-width: 900px; }
.compact-stat-grid { margin-top: 14px; }
.mini-stat {
    background: #fffafd;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 16px;
}
.mini-stat span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.mini-stat strong { display: block; margin-top: 5px; font-size: 18px; color: var(--ink); }
.compact-details { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 14px; margin: 12px 0 0; }
.compact-details dt { color: var(--muted); font-weight: 800; }
.compact-details dd { margin: 0; color: var(--ink); }
.master-data-shell .report-tabs { margin-top: 0; }
.master-data-shell .card h3 { margin-top: 0; }
.master-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.master-actions .btn, .master-actions button { min-height: 34px; padding: 7px 10px; }
.form-card-title { margin-top: 0; display: flex; align-items: center; gap: 9px; }

@media (max-width: 980px) {
}
@media (max-width: 560px) {
    .clean-panel { padding: 16px; }
    .topbar h1 { font-size: 19px; }
    .topbar p { display: none; }
    .rep-system-copy { display: none; }
    .rep-system-button { min-height: auto; padding: 16px; border-radius: 20px; }
    .rep-system-cta { margin-top: 4px; }
    .compact-details { grid-template-columns: 1fr; gap: 3px; }
}

/* V11 full UI wording and formatting polish */
:root {
    --page-gap: 18px;
}
.topbar h1,
.card h2,
.card h3,
.section-title,
.portal-quick-title {
    letter-spacing: -.01em;
}
.card p,
.muted-text,
.form-help,
.rep-system-copy {
    line-height: 1.48;
}
.clean-panel {
    border-radius: 24px;
}
.report-tab.active {
    background: linear-gradient(135deg, var(--jet-pink), var(--jet-red));
}
.form-section-note {
    margin: -4px 0 16px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.45;
}
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
.list-header h2 { margin: 0 0 4px; }
.list-header p { margin: 0; color: var(--ink-soft); }
.empty-state {
    padding: 22px;
    text-align: center;
    color: var(--ink-soft);
    background: #fffafd;
    border: 1px dashed var(--border);
    border-radius: 18px;
}
.master-overview-grid,
.master-record-list {
    display: grid;
    gap: 12px;
}
.master-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 16px;
}
.master-record-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(76,22,54,.05);
}
.master-record-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.master-record-header strong {
    font-size: 16px;
    line-height: 1.25;
}
.master-record-fields {
    margin: 0;
}
.master-record-fields .form-group {
    margin-bottom: 0;
}
.master-actions {
    justify-content: flex-end;
}
.master-actions .btn-small,
.master-actions .btn-danger {
    min-width: 96px;
}
.master-delete-note {
    color: var(--muted);
    font-size: 12px;
    margin-top: -4px;
}
.report-summary-card {
    background: #fffafd;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 14px 16px;
}
.report-summary-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.report-summary-card strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
    color: var(--ink);
}
.table-clean th,
.table-clean td {
    white-space: nowrap;
}
.table-clean td:nth-child(2),
.table-clean td:nth-child(4),
.table-clean td:nth-child(5) {
    white-space: normal;
}
.detail-table td:first-child {
    color: var(--muted);
    font-weight: 800;
    width: 38%;
}
.detail-table td:last-child {
    color: var(--ink);
}
@media (max-width: 980px) {
    .master-overview-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .list-header { display: block; }
    .list-header .btn { margin-top: 12px; }
}
@media (max-width: 720px) {
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .checklist-table-modern.table-wrap,
    .checklist-table-modern { overflow: visible; }
    table { min-width: 720px; }
    .checklist-table-modern { min-width: 0; }
    .detail-table { min-width: 0; }
    .detail-table tr,
    .detail-table td { display: block; width: 100% !important; }
    .detail-table td:first-child { padding-bottom: 2px; border-bottom: 0; }
    .detail-table td:last-child { padding-top: 2px; }
    .master-overview-grid { grid-template-columns: 1fr; }
    .master-record-card { padding: 14px; border-radius: 18px; }
    .master-record-header { align-items: flex-start; }
    .master-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .master-actions .btn-small,
    .master-actions .btn-danger { width: 100%; min-width: 0; }
    .report-tabs { gap: 8px; }
    .report-tab { min-height: 40px; padding: 9px 12px; }
}
@media (max-width: 560px) {
    .hero-card p { max-width: 100%; }
    .rep-system-title { font-size: 17px; }
    .rep-system-icon { width: 46px; height: 46px; }
    .rep-system-arrow { width: 32px; height: 32px; }
    .portal-quick-title { font-size: 18px; }
    .list-header .btn { width: 100%; }
    .table-clean th, .table-clean td { font-size: 13px; }
}

/* V12 clean usability pass */
.page-hero,
.dashboard-hero {
    background:
        linear-gradient(135deg, rgba(239,1,141,.96), rgba(237,27,36,.92)),
        radial-gradient(circle at 90% 12%, rgba(248,198,15,.42), transparent 30%);
    color: #fff;
    border-radius: 28px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 24px 60px rgba(239,1,141,.18);
    margin-bottom: 18px;
}
.page-hero h2,
.dashboard-hero h2 { margin: 6px 0 6px; font-size: 30px; color: #fff; }
.page-hero p,
.dashboard-hero p { margin: 0; color: rgba(255,255,255,.88); max-width: 720px; }
.eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.small-hero { padding: 24px; }
.dashboard-date-card {
    min-width: 180px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 22px;
    padding: 16px;
    text-align: right;
}
.dashboard-date-card span { display: block; font-size: 12px; opacity: .86; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.dashboard-date-card strong { display: block; margin-top: 4px; font-size: 22px; }
.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.metric-card {
    background: rgba(255,255,255,.94);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: var(--shadow);
    min-height: 150px;
}
.metric-icon,
.module-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: #fff0f8;
    color: var(--jet-pink);
    margin-bottom: 12px;
}
.metric-icon svg,
.module-icon svg { width: 23px; height: 23px; }
.metric-card span,
.module-stats-row span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .045em;
}
.metric-card strong {
    display: block;
    margin-top: 6px;
    font-size: 32px;
    color: var(--ink);
    line-height: 1;
}
.metric-card small { display: block; margin-top: 10px; color: var(--ink-soft); line-height: 1.35; }
.dashboard-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}
.module-card-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.module-card-head h3 { margin: 0 0 4px; }
.module-card-head p { margin: 0; color: var(--ink-soft); }
.module-icon { flex: 0 0 50px; width: 50px; height: 50px; margin: 0; }
.module-icon.pink { background: #fff0f8; color: var(--jet-pink); }
.module-icon.yellow { background: #fff9df; color: #9c6200; }
.module-stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 18px;
}
.module-stats-row div {
    background: #fffafd;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
}
.module-stats-row strong { display: block; margin-top: 5px; font-size: 22px; }
.clean-actions { gap: 10px; }
.clean-actions .btn { flex: 1; justify-content: center; }
.card-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.card-title-row h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-title-row a { font-size: 13px; font-weight: 800; }
.simple-record-list { display: grid; gap: 10px; }
.simple-record-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #fffafd;
    color: var(--ink);
}
.simple-record-item:hover { border-color: rgba(239,1,141,.35); background: #fff4fb; }
.simple-record-item strong { display: block; font-size: 14px; }
.simple-record-item span { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.simple-record-item em {
    font-style: normal;
    background: #fff;
    border: 1px solid var(--border);
    padding: 5px 9px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 12px;
    white-space: nowrap;
}

.md-v12-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; align-items: start; }
.md-v12-nav { padding: 14px; position: sticky; top: 100px; display: grid; gap: 8px; }
.md-v12-nav-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    color: var(--ink);
    border: 1px solid transparent;
}
.md-v12-nav-item:hover { background: #fff4fb; }
.md-v12-nav-item.active {
    background: linear-gradient(135deg, rgba(239,1,141,.12), rgba(248,198,15,.16));
    border-color: rgba(239,1,141,.20);
}
.md-v12-nav-item span {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff0f8;
    color: var(--jet-pink);
}
.md-v12-nav-item strong { font-size: 14px; }
.md-v12-nav-item em {
    font-style: normal;
    min-width: 28px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 8px;
    color: var(--muted);
    font-size: 12px;
}
.md-v12-content { display: grid; gap: 18px; min-width: 0; }
.md-v12-panel,
.md-v12-table-card { padding: 20px; }
.md-v12-header,
.md-v12-table-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 16px;
}
.md-v12-header h2,
.md-v12-table-head h3 { margin: 0 0 4px; display: flex; align-items: center; gap: 9px; }
.md-v12-header p,
.md-v12-table-head span { margin: 0; color: var(--ink-soft); }
.md-add-box,
.md-edit-box {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 16px;
    background: #fffafd;
    margin-top: 12px;
}
.md-edit-box { background: #fff8df; border-color: rgba(248,198,15,.46); }
.md-add-box h3,
.md-edit-box h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; }
.md-action-form { align-items: end; }
.md-form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 1px;
}
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}
.status-active { background: #effff6; color: #146944; border: 1px solid rgba(35,135,92,.22); }
.status-inactive { background: #f7f3f7; color: var(--muted); border: 1px solid var(--border); }
.md-v12-table { min-width: 760px; }
.md-v12-table th { font-size: 12px; }
.md-v12-table td { vertical-align: middle; }
.actions-col { width: 190px; }
.md-row-actions { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.inline-delete-form { display: inline; margin: 0; }
.btn-small.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 7px 10px;
    font-weight: 800;
}
.btn-danger.btn-small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 1100px) {
    .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md-v12-layout { grid-template-columns: 1fr; }
    .md-v12-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .dashboard-hero,
    .page-hero { display: block; padding: 22px; }
    .dashboard-date-card { margin-top: 14px; text-align: left; width: 100%; }
    .dashboard-section-grid { grid-template-columns: 1fr; }
    .md-v12-header,
    .md-v12-table-head { display: block; }
    .md-v12-header .btn { margin-top: 12px; width: 100%; }
}
@media (max-width: 620px) {
    .dashboard-metrics { grid-template-columns: 1fr; }
    .metric-card { min-height: auto; }
    .dashboard-hero h2,
    .page-hero h2 { font-size: 24px; }
    .module-card-head { display: block; }
    .module-icon { margin-bottom: 12px; }
    .module-stats-row { grid-template-columns: 1fr; }
    .clean-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
    .simple-record-item { align-items: flex-start; }
    .simple-record-item em { margin-top: 2px; }
    .md-v12-nav { grid-template-columns: 1fr; }
    .md-action-form { grid-template-columns: 1fr; }
    .md-form-actions, .md-form-actions button, .md-form-actions .btn { width: 100%; }
    .md-row-actions { display: grid; grid-template-columns: 1fr; }
    .md-row-actions .btn-small, .md-row-actions button { width: 100%; justify-content: center; }
}

.card-subsection {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fffafd;
}
.final-status-note {
    display: grid;
    gap: 6px;
    color: var(--muted);
    line-height: 1.45;
}
.final-status-note strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink);
}
