/* ============================================================
   DMO ASSET MANAGEMENT SYSTEM
   MAIN APPLICATION STYLESHEET
============================================================ */


/* ============================================================
   ROOT VARIABLES
============================================================ */

:root {
    --navy: #0f2d52;
    --navy-dark: #091f3b;
    --navy-light: #173f70;

    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-soft: #eff6ff;

    --green: #067647;
    --green-dark: #05603a;
    --greenbg: #ecfdf3;

    --red: #b42318;
    --red-dark: #912018;
    --redbg: #fff1f0;

    --orange: #b54708;
    --orangebg: #fff7ed;

    --yellow: #a15c07;
    --yellowbg: #fffaeb;

    --text: #1f2937;
    --text-dark: #111827;

    --muted: #64748b;
    --muted-light: #94a3b8;

    --border: #dce4ed;
    --border-light: #e8edf3;

    --background: #f4f7fb;
    --soft: #f8fafc;
    --card: #ffffff;

    --sidebar-width: 250px;

    --radius-sm: 6px;
    --radius: 9px;
    --radius-lg: 12px;

    --shadow-sm:
        0 1px 3px rgba(15, 45, 82, 0.05);

    --shadow:
        0 6px 18px rgba(15, 45, 82, 0.07);
}


/* ============================================================
   RESET
============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text);
    font-size: 13px;

    overflow-x: hidden;
}

img,
svg,
canvas {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}


/* ============================================================
   APPLICATION LAYOUT
============================================================ */

.app {
    width: 100%;
    min-height: 100vh;
}

.main {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;

    transition:
        margin-left .2s ease,
        width .2s ease;
}

.content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 22px;
}


/* ============================================================
   SIDEBAR
============================================================ */

.sidebar {
    position: fixed;

    left: 0;
    top: 0;
    bottom: 0;

    width: var(--sidebar-width);

    background: var(--navy-dark);
    color: #ffffff;

    overflow-y: auto;
    overflow-x: hidden;

    z-index: 1000;

    transition:
        transform .25s ease;
}

.brand {
    min-height: 80px;

    padding: 16px;

    display: flex;
    align-items: center;
    gap: 11px;

    border-bottom:
        1px solid rgba(255, 255, 255, .08);
}

.brand .logo {
    width: 44px;
    height: 44px;

    border-radius: 9px;

    background: #ffffff;
    color: var(--navy);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
    font-weight: 900;

    flex-shrink: 0;
}

.brand h1 {
    margin: 0;

    font-size: 14px;
    font-weight: 800;

    color: #ffffff;
}

.brand p {
    margin: 3px 0 0;

    font-size: 9px;

    color:
        rgba(
            255,
            255,
            255,
            .65
        );
}

.nav-group {
    padding:
        20px
        17px
        7px;

    color:
        rgba(
            255,
            255,
            255,
            .42
        );

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
}

.nav-item {
    min-height: 42px;

    padding:
        9px
        15px;

    margin:
        2px
        9px;

    border-radius: 7px;

    display: flex;
    align-items: center;
    gap: 10px;

    color:
        rgba(
            255,
            255,
            255,
            .82
        );

    font-size: 11px;
    font-weight: 600;

    text-decoration: none !important;

    transition:
        background .15s ease,
        color .15s ease;
}

.nav-item:hover {
    background:
        rgba(
            255,
            255,
            255,
            .08
        );

    color: #ffffff;
}

.nav-item.active {
    background:
        rgba(
            255,
            255,
            255,
            .14
        );

    color: #ffffff;
}

.nav-item a {
    color: inherit !important;
    text-decoration: none !important;
}

.nav-icon {
    width: 20px;

    text-align: center;

    font-size: 15px;

    flex-shrink: 0;
}


/* ============================================================
   TOPBAR
============================================================ */

.topbar {
    min-height: 72px;

    padding:
        0
        22px;

    background: #ffffff;

    border-bottom:
        1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    position: sticky;
    top: 0;

    z-index: 900;
}

.topbar-left {
    display: flex;
    align-items: center;

    gap: 14px;

    min-width: 0;
}

.topbar-title {
    min-width: 0;
}

.topbar-title h2 {
    margin: 0;

    color: var(--navy);

    font-size: 18px;
    font-weight: 800;

    line-height: 1.2;
}

.topbar-title p {
    margin: 3px 0 0;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.3;
}

.topbar-right {
    display: flex;
    align-items: center;

    gap: 14px;
}

.topbar-user {
    display: flex;
    align-items: center;

    gap: 9px;
}

.user-avatar {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: var(--navy);
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 800;

    flex-shrink: 0;
}

.user-details {
    min-width: 0;
}

.user-details strong {
    display: block;

    color: var(--text);

    font-size: 11px;

    white-space: nowrap;
}

.user-details span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;

    white-space: nowrap;
}

.menu-toggle {
    display: none;

    border:
        1px solid var(--border);

    background: #ffffff;
    color: var(--navy);

    border-radius: 7px;

    padding: 7px 9px;

    font-size: 16px;
}

.topbar-logout {
    white-space: nowrap;
}


/* ============================================================
   PAGE HEADER
============================================================ */

.page-head {
    width: 100%;

    margin-bottom: 18px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;
}

.page-head h3 {
    margin: 0;

    color: var(--navy);

    font-size: 20px;
    font-weight: 800;
}

.page-head p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.45;
}


/* ============================================================
   ACTION GROUPS
============================================================ */

.inline-actions,
.actions {
    display: flex;
    align-items: center;

    gap: 7px;

    flex-wrap: wrap;
}


/* ============================================================
   BUTTONS
============================================================ */

.btn {
    min-height: 36px;

    padding:
        8px
        13px;

    border:
        1px solid transparent;

    border-radius: 7px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    font-size: 11px;
    font-weight: 700;

    line-height: 1;

    text-decoration: none !important;

    transition:
        background .15s ease,
        border-color .15s ease,
        transform .05s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--blue);
    color: #ffffff;

    border-color: var(--blue);
}

.btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
}

.btn-secondary {
    background: #ffffff;
    color: var(--text);

    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--soft);
}

.btn-success {
    background: var(--green);
    color: #ffffff;

    border-color: var(--green);
}

.btn-success:hover {
    background: var(--green-dark);
    border-color: var(--green-dark);
}

.btn-danger {
    background: var(--red);
    color: #ffffff;

    border-color: var(--red);
}

.btn-danger:hover {
    background: var(--red-dark);
}

.btn-sm {
    min-height: 29px;

    padding:
        5px
        9px;

    font-size: 10px;
}

.link-btn {
    color: var(--blue);

    font-size: 11px;
    font-weight: 700;

    text-decoration: none;
}

.link-btn:hover {
    text-decoration: underline;
}


/* ============================================================
   METRIC CARDS
============================================================ */

.grid-5 {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            5,
            minmax(
                0,
                1fr
            )
        );

    gap: 12px;
}

.metric {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    padding: 15px;

    box-shadow: var(--shadow-sm);
}

.metric::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;
    bottom: 0;

    width: 3px;

    background: var(--blue);
}

.metric.good::before {
    background: var(--green);
}

.metric.warn::before {
    background: var(--orange);
}

.metric.bad::before {
    background: var(--red);
}

.metric .k {
    color: var(--muted);

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: .35px;
}

.metric .v {
    margin-top: 7px;

    color: var(--navy);

    font-size: 25px;
    font-weight: 850;

    line-height: 1.1;

    overflow-wrap: anywhere;
}

.metric .s {
    margin-top: 5px;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.35;
}


/* ============================================================
   MINI KPI STRIP
============================================================ */

.kpi-strip {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(
                0,
                1fr
            )
        );

    gap: 10px;
}

.mini-kpi {
    min-width: 0;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    padding: 13px;
}

.mini-kpi span {
    display: block;

    color: var(--muted);

    font-size: 9px;
    font-weight: 700;
}

.mini-kpi strong {
    display: block;

    margin-top: 5px;

    color: var(--navy);

    font-size: 13px;

    line-height: 1.3;

    overflow-wrap: anywhere;
}


/* ============================================================
   GENERIC CARDS
============================================================ */

.card,
.form-card,
.table-card {
    width: 100%;
    max-width: 100%;

    margin: 0;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);

    overflow: hidden;
}

.card-head {
    min-height: 52px;

    padding:
        12px
        15px;

    border-bottom:
        1px solid var(--border-light);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.card-head h4 {
    margin: 0;

    color: var(--navy);

    font-size: 13px;
    font-weight: 800;
}

.card-body {
    padding: 15px;
}


/* ============================================================
   FORMS
============================================================ */

.form-section {
    width: 100%;

    margin: 0;

    padding: 20px;

    border-bottom:
        1px solid var(--border-light);
}

.form-section:last-child {
    border-bottom: 0;
}

.form-section + .form-section {
    margin-top: 0;
}

.form-title {
    margin:
        0
        0
        18px
        0;

    display: flex;
    align-items: flex-start;

    gap: 10px;
}

.form-title .num {
    width: 28px;
    height: 28px;

    border-radius: 50%;

    background: var(--blue-soft);
    color: var(--blue);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 11px;
    font-weight: 800;

    flex-shrink: 0;
}

.form-title h4 {
    margin: 0;

    color: var(--navy);

    font-size: 13px;
    font-weight: 800;
}

.form-title p {
    margin: 3px 0 0;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.45;
}

.form-grid {
    width: 100%;

    margin: 0;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap:
        18px
        20px;

    align-items: start;
}

.form-grid.two {
    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );
}

.form-group {
    width: 100%;
    min-width: 0;

    margin: 0;
}

.form-group.span-2 {
    grid-column: span 2;
}

.form-group.span-3 {
    grid-column: span 3;
}

.form-group label {
    display: block;

    margin:
        0
        0
        7px
        0;

    color: var(--text-dark);

    font-size: 10px;
    font-weight: 700;
}

.req {
    color: var(--red);

    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea,
.toolbar input,
.toolbar select,
.lookup-form input {
    display: block;

    width: 100%;
    max-width: 100%;

    border:
        1px solid var(--border);

    background: #ffffff;
    color: var(--text);

    border-radius: 7px;

    padding:
        9px
        10px;

    font-size: 11px;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.form-group input,
.form-group select {
    min-height: 42px;
}

.form-group textarea {
    min-height: 90px;

    resize: vertical;

    line-height: 1.45;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.toolbar input:focus,
.toolbar select:focus,
.lookup-form input:focus {
    border-color: #8db5ff;

    box-shadow:
        0 0 0 3px
        rgba(37, 99, 235, .08);
}

.readonly,
input[readonly],
textarea[readonly] {
    background: #f8fafc !important;

    color: #475569 !important;

    cursor: default;
}

.hint {
    margin-top: 5px;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.4;
}

.form-footer {
    width: 100%;

    padding:
        16px
        20px;

    background: var(--soft);

    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;
}


/* ============================================================
   INPUT WITH BUTTON
============================================================ */

.input-action {
    width: 100%;

    display: flex;
    align-items: stretch;

    gap: 10px;
}

.input-action input,
.input-action select {
    flex: 1;

    min-width: 0;
}

.input-action .btn {
    flex:
        0
        0
        auto;

    white-space: nowrap;
}


/* ============================================================
   TOOLBAR
============================================================ */

.toolbar {
    width: 100%;

    margin-bottom: 14px;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    padding: 10px;

    display: flex;
    align-items: center;

    gap: 9px;

    flex-wrap: wrap;
}

.toolbar .search {
    flex: 1;

    min-width: 240px;

    position: relative;

    display: flex;
    align-items: center;
}

.toolbar .search span {
    position: absolute;

    left: 10px;

    color: var(--muted);

    pointer-events: none;

    font-size: 14px;
}

.toolbar .search input {
    padding-left: 30px;
}

.toolbar select {
    width: auto;

    min-width: 150px;
}


/* ============================================================
   TABLES
============================================================ */

.table-card {
    width: 100%;
}

.table-card > div {
    max-width: 100%;
}

table {
    width: 100%;

    border-collapse: collapse;

    font-size: 10px;
}

thead {
    background: #f8fafc;
}

th {
    padding:
        10px
        11px;

    border-bottom:
        1px solid var(--border);

    color: #475569;

    text-align: left;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .25px;

    white-space: nowrap;
}

td {
    padding: 11px;

    border-bottom:
        1px solid var(--border-light);

    color: var(--text);

    vertical-align: middle;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fafcff;
}

td.amount {
    text-align: right;

    white-space: nowrap;

    font-variant-numeric:
        tabular-nums;
}

.empty {
    padding:
        30px
        !important;

    text-align: center;

    color: var(--muted);

    font-size: 11px;
}


/* ============================================================
   BADGES
============================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 22px;

    padding:
        3px
        7px;

    border-radius: 999px;

    font-size: 9px;
    font-weight: 800;

    white-space: nowrap;
}

.badge.good {
    background: var(--greenbg);

    color: var(--green);
}

.badge.warn {
    background: var(--yellowbg);

    color: var(--yellow);
}

.badge.bad {
    background: var(--redbg);

    color: var(--red);
}

.badge.info {
    background: var(--blue-soft);

    color: var(--blue);
}


/* ============================================================
   NOTES
============================================================ */

.note {
    width: 100%;

    margin-top: 12px;

    padding:
        11px
        13px;

    border:
        1px solid #bfdbfe;

    border-radius: var(--radius);

    background: #eff6ff;

    color: #315f9b;

    font-size: 10px;

    line-height: 1.55;
}


/* ============================================================
   VERIFICATION
============================================================ */

.verify-layout {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(
            270px,
            .7fr
        )
        minmax(
            0,
            1.3fr
        );

    gap: 16px;

    align-items: start;
}

.scanner {
    width: 100%;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    overflow: hidden;
}

.scan-box {
    min-height: 220px;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #0f2d52,
            #1b4d82
        );

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.scan-box .qr {
    width: 90px;
    height: 90px;

    margin:
        0
        auto
        12px;

    border:
        2px dashed
        rgba(
            255,
            255,
            255,
            .7
        );

    border-radius: 8px;
}

.scan-box h4 {
    margin: 0;

    font-size: 13px;
}

.scan-box p {
    margin:
        5px
        auto
        0;

    max-width: 210px;

    font-size: 9px;

    opacity: .8;
}

.asset-summary {
    padding: 14px;
}

.summary-line {
    padding:
        8px
        0;

    border-bottom:
        1px solid var(--border-light);

    display: grid;

    grid-template-columns:
        100px
        minmax(0, 1fr);

    gap: 8px;

    font-size: 10px;
}

.summary-line:last-child {
    border-bottom: 0;
}

.summary-line span {
    color: var(--muted);

    font-weight: 700;
}

.summary-line strong {
    color: var(--text);

    overflow-wrap: anywhere;
}

.radio-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 10px;
}

.choice {
    border:
        1px solid var(--border);

    border-radius: var(--radius);

    padding: 12px;

    display: flex;
    align-items: center;

    gap: 8px;

    font-size: 10px;

    cursor: pointer;

    transition:
        background .15s,
        border-color .15s;
}

.choice:hover {
    border-color: #93b4e8;

    background: #f8fbff;
}


/* ============================================================
   TIMELINE
============================================================ */

.timeline {
    position: relative;
}

.timeline-item {
    display: grid;

    grid-template-columns:
        120px
        20px
        minmax(0, 1fr);

    gap: 10px;

    min-height: 50px;
}

.timeline-item .time {
    padding-top: 3px;

    color: var(--muted);

    font-size: 9px;

    text-align: right;
}

.dot-col {
    position: relative;

    display: flex;
    justify-content: center;
}

.dot-col::after {
    content: "";

    position: absolute;

    top: 15px;
    bottom: -5px;

    width: 1px;

    background: var(--border);
}

.timeline-item:last-child
.dot-col::after {
    display: none;
}

.dot {
    position: relative;

    z-index: 2;

    width: 9px;
    height: 9px;

    margin-top: 5px;

    border-radius: 50%;

    background: var(--blue);

    box-shadow:
        0 0 0 3px
        var(--blue-soft);
}

.event {
    padding-bottom: 17px;
}

.event strong {
    font-size: 10px;

    color: var(--text);
}

.event p {
    margin:
        4px
        0
        0;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.4;
}


/* ============================================================
   REPORTS
============================================================ */

.report-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 12px;
}

.report-card {
    min-width: 0;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: var(--radius-lg);

    padding: 16px;

    transition:
        box-shadow .15s,
        transform .15s,
        border-color .15s;
}

.report-card:hover {
    transform:
        translateY(-1px);

    border-color: #b8cdf0;

    box-shadow: var(--shadow);
}

.report-card .icon {
    width: 36px;
    height: 36px;

    margin-bottom: 10px;

    border-radius: 8px;

    background: var(--blue-soft);

    color: var(--blue);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 17px;
    font-weight: 700;
}

.report-card h4 {
    margin: 0;

    color: var(--navy);

    font-size: 12px;
}

.report-card p {
    margin:
        5px
        0
        0;

    color: var(--muted);

    font-size: 9px;

    line-height: 1.45;
}


/* ============================================================
   USER MANAGEMENT
============================================================ */

.user-cell {
    display: flex;
    align-items: center;

    gap: 9px;
}

.user-avatar-small {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: var(--navy);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 10px;
    font-weight: 800;

    flex-shrink: 0;
}

.user-main {
    min-width: 0;
}

.user-main strong {
    display: block;

    font-size: 10px;
}

.user-main span {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 9px;
}


/* ============================================================
   LOGIN SUPPORT
============================================================ */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 430px;

    background: #ffffff;

    border:
        1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 12px 35px
        rgba(15, 45, 82, .12);
}


/* ============================================================
   SCROLLBAR
============================================================ */

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background:
        rgba(
            255,
            255,
            255,
            .15
        );

    border-radius: 10px;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (
    max-width: 1250px
) {

    .grid-5 {
        grid-template-columns:
            repeat(
                3,
                minmax(
                    0,
                    1fr
                )
            );
    }

    .report-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

}


@media (
    max-width: 1100px
) {

    .form-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

    .form-group.span-3 {
        grid-column: span 2;
    }

    .kpi-strip {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

}


@media (
    max-width: 900px
) {

    .sidebar {
        transform:
            translateX(
                -100%
            );

        box-shadow:
            10px 0 30px
            rgba(
                0,
                0,
                0,
                .15
            );
    }

    .sidebar.open {
        transform:
            translateX(0);
    }

    .main {
        margin-left: 0;

        width: 100%;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .user-details {
        display: none;
    }

    .topbar {
        padding:
            0
            14px;
    }

    .content {
        padding: 16px;
    }

    .verify-layout {
        grid-template-columns: 1fr;
    }

}


@media (
    max-width: 700px
) {

    .grid-5 {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );
    }

    .form-grid,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

    .form-group.span-2,
    .form-group.span-3 {
        grid-column: span 1;
    }

    .report-grid {
        grid-template-columns: 1fr;
    }

    .page-head {
        flex-direction: column;

        align-items: stretch;
    }

    .page-head
    .inline-actions {
        width: 100%;
    }

    .toolbar {
        align-items: stretch;
    }

    .toolbar .search {
        min-width: 100%;
    }

    .toolbar select {
        width: 100%;
    }

    .radio-grid {
        grid-template-columns: 1fr;
    }

    .form-footer {
        flex-direction: column;

        align-items: stretch;
    }

    .form-footer .btn,
    .form-footer .inline-actions {
        width: 100%;
    }

    .form-footer
    .inline-actions
    .btn {
        flex: 1;
    }

    .timeline-item {
        grid-template-columns:
            80px
            16px
            minmax(0, 1fr);
    }

    .input-action {
        flex-direction: column;
    }

    .input-action .btn {
        width: 100%;
    }

}


@media (
    max-width: 500px
) {

    .grid-5,
    .kpi-strip {
        grid-template-columns: 1fr;
    }

    .topbar-title h2 {
        font-size: 15px;
    }

    .topbar-title p {
        display: none;
    }

    .topbar-right {
        gap: 7px;
    }

    .user-avatar {
        width: 32px;
        height: 32px;

        font-size: 9px;
    }

    .topbar-logout {
        min-height: 32px;

        padding:
            6px
            8px;

        font-size: 9px;
    }

    .content {
        padding: 12px;
    }

    .form-section {
        padding: 15px;
    }

    .page-head h3 {
        font-size: 17px;
    }

    .metric .v {
        font-size: 22px;
    }

}


/* ============================================================
   PRINT
============================================================ */

@media print {

    body {
        background: #ffffff;
    }

    .sidebar,
    .topbar,
    .toolbar,
    .page-head .inline-actions,
    .btn,
    .link-btn {
        display: none !important;
    }

    .main {
        margin-left: 0 !important;

        width: 100% !important;
    }

    .content {
        max-width: none;

        padding: 0;
    }

    .card,
    .form-card,
    .table-card,
    .metric,
    .mini-kpi {
        box-shadow: none;

        break-inside: avoid;
    }

}
/* ============================================================
   DASHBOARD VERIFICATION AREA
   MATCHES MAIN APPLICATION STYLE
============================================================ */

.dashboard-verification-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.5fr)
        minmax(360px, 1fr);

    gap: 16px;

    align-items: stretch;

    margin-top: 16px;
}


/* ============================================================
   DASHBOARD PANELS
============================================================ */

.dashboard-panel {
    width: 100%;
    min-width: 0;

    background: #ffffff;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: var(--shadow-sm);
}


.dashboard-panel-header {
    min-height: 52px;

    padding:
        13px
        16px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    border-bottom:
        1px solid
        var(--border-light);
}


.dashboard-panel-header h3,
.dashboard-panel-header h4 {
    margin: 0;

    color: var(--navy);

    font-size: 13px;

    font-weight: 800;

    line-height: 1.25;
}


.exercise-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        5px
        9px;

    border-radius: 999px;

    background: #eaf3ff;

    color: #1755a5;

    font-size: 9px;

    font-weight: 800;

    white-space: nowrap;
}


.dashboard-panel-body {
    padding: 16px;
}


/* ============================================================
   VERIFICATION PROGRESS
============================================================ */

.verification-progress-list {
    width: 100%;

    display: flex;

    flex-direction: column;

    gap: 15px;
}


.verification-progress-item {
    width: 100%;
}


.verification-progress-head {
    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-bottom: 6px;
}


.verification-progress-head span {
    color: var(--text);

    font-size: 11px;

    font-weight: 500;

    line-height: 1.3;
}


.verification-progress-head strong {
    color: var(--navy);

    font-size: 11px;

    font-weight: 800;

    line-height: 1;

    white-space: nowrap;
}


.progress-track {
    width: 100%;

    height: 8px;

    background: #e8edf3;

    border-radius: 999px;

    overflow: hidden;
}


.progress-fill {
    height: 100%;

    background: #2869b7;

    border-radius: inherit;

    transition:
        width .3s ease;
}


/* ============================================================
   VERIFICATION STATUS
============================================================ */

.verification-status-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 10px;
}


.verification-status-box {
    min-width: 0;

    min-height: 110px;

    padding: 14px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background: #ffffff;
}


.verification-status-box .status-label {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding:
        4px
        8px;

    margin-bottom: 10px;

    border-radius: 999px;

    font-size: 9px;

    font-weight: 800;

    line-height: 1;
}


.verification-status-box .status-number {
    display: block;

    margin-bottom: 5px;

    color: var(--navy);

    font-size: 17px;

    font-weight: 800;

    line-height: 1;
}


.verification-status-box .status-percent {
    display: block;

    color: var(--navy);

    font-size: 11px;

    line-height: 1.2;
}


/* ============================================================
   STATUS COLOURS
============================================================ */

.status-label.verified {
    background: #e6f6ee;

    color: #067647;
}


.status-label.pending {
    background: #fff4dc;

    color: #b26a00;
}


.status-label.not-found {
    background: #fde9e8;

    color: #c4322b;
}


.status-label.mismatch {
    background: #eaf3ff;

    color: #1755a5;
}


/* ============================================================
   VERIFICATION NOTE
============================================================ */

.verification-note {
    margin-top: 12px;

    padding:
        11px
        13px;

    border-left:
        3px solid
        #2869b7;

    border-radius: 6px;

    background: #f5f8fc;

    color: #334f73;

    font-size: 10px;

    line-height: 1.5;
}


/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 1100px) {

    .dashboard-verification-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .verification-status-grid {
        grid-template-columns: 1fr;
    }


    .dashboard-panel-header {
        padding: 12px;
    }


    .dashboard-panel-body {
        padding: 12px;
    }

}
.card-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.4;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}
/* ============================================================
   DEPRECIATION SCHEDULE
   Match Movement History typography
============================================================ */

.depreciation-schedule-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.depreciation-schedule-table th,
.depreciation-schedule-table td {
    padding: 16px 18px;
    vertical-align: middle;
}

/* Same heading size as Movement History */

.depreciation-schedule-table thead th {
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    white-space: nowrap;
}

/* Same body size as other application tables */

.depreciation-schedule-table tbody td {
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.4;
    white-space: nowrap;
}

/* Financial year */

.depreciation-schedule-table th:first-child,
.depreciation-schedule-table td:first-child {
    text-align: left;
}

/* Monetary columns */

.depreciation-schedule-table th:nth-child(n+2),
.depreciation-schedule-table td:nth-child(n+2) {
    text-align: right;
}
.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.sidebar .brand .logo {
    width: 78px;
    height: 78px;
    min-width: 78px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;
    border-radius: 14px;

    overflow: hidden;
}

.sidebar-logo-image {
    width: 68px;
    height: 68px;

    object-fit: contain;
    display: block;
}

.sidebar .brand h1 {
    margin: 0;

    font-size: 17px;
    line-height: 1.3;

    font-weight: 800;
}

.sidebar .brand p {
    margin: 5px 0 0;

    font-size: 11px;
    line-height: 1.4;
}