/* 
  body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--pg-bg);
    color: var(--pg-text);
    font-size: 14px;
    min-height: 100vh;
    padding: 20px;
  }
 */
/* ── Page title ── */
.pgr-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--pg-text);
    margin-bottom: 16px;
}

/* ── Top header row ── */
.hdr-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
    align-items: stretch;
}

/* Welcome tile */
.wlc-tile {
    background: linear-gradient(135deg, #FFFFFF 0%, #FCF5FF 100%);
    border: 1.5px solid #FBCFE8; /* Soft pink border matching Figma */
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.wlc-avatar-img {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.wlc-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wlc-name {
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 6px;
}

.wlc-greeting {
    color: #4C1D95; /* Deep Purple */
}

.wlc-user-name {
    color: #16A34A; /* Solid Green */
}

.wlc-sub {
    font-size: 12px;
    font-weight: 500;
    color: #475569;
}

/* Dealer info tile */
.dlr-tile {
    background: linear-gradient(135deg, #FFFFFF 0%, #FCF5FF 100%);
    border: 1.5px solid #FBCFE8;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    min-width: 160px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.dlr-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dlr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .dlr-icon svg {
        width: 38px;
        height: 38px;
    }

.dlr-caption {
    font-size: 11px;
    font-weight: 500;
    color: #64748B;
    margin-bottom: 2px;
}

.dlr-val {
    font-size: 14px;
    font-weight: 600;
    color: #1E293B;
}

/* Profile completion tile */
.prf-tile {
    background: linear-gradient(135deg, #FFFFFF 0%, #FCF5FF 100%);
    border: 1.5px solid #FBCFE8;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-width: 175px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.prf-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.prf-label {
    font-size: 12px;
    font-weight: 600;
    color: #7C3AED;
}

.prf-pct {
    font-size: 14px;
    font-weight: 700;
    color: #475569;
}

.prf-bar-track {
    width: 100%;
    height: 8px;
    background: #E2E8F0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 4px;
}

.prf-bar-fill {
    height: 100%;
    width: 80%;
    background: #7C3AED;
    border-radius: 999px;
}

.prf-cta-btn {
    width: 100%;
    padding: 10px 0;
    background-color: #2D72D9;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

    .prf-cta-btn:hover {
        background-color: #235BB3;
    }

/* ── Quick Actions ── */
.wht-panel-qa {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.qa-panel-ttl {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
}

.qact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.qact-cell {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #E2E8F0; /* Default border */
    transition: box-shadow 0.2s, transform 0.2s;
}

    .qact-cell:hover {
        box-shadow: 0 4px 12px rgba(0,0,0,0.04);
        transform: translateY(-2px);
    }

    /* Specific Colored Borders matching Figma */
    .qact-cell.theme-yellow {
        border-color: #FEF08A;
    }

    .qact-cell.theme-cyan {
        border-color: #A5F3FC;
    }

    .qact-cell.theme-pink {
        border-color: #FBCFE8;
    }

    .qact-cell.theme-purple {
        border-color: #E9D5FF;
    }

    .qact-cell.theme-red {
        border-color: #FECACA;
    }

    .qact-cell.theme-green {
        border-color: #BBF7D0;
    }

.qact-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

    .qact-icon-wrap svg {
        /* The SVGs already have width="56" height="56" and their own backgrounds */
        display: block;
    }

.qact-lbl {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 6px;
}

.qact-hint {
    font-size: 12px;
    color: #64748B;
    line-height: 1.4;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the button perfectly to the bottom */
}

.qact-go-btn {
    width: 100%;
    padding: 10px 0;
    background-color: #2D72D9;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

    .qact-go-btn:hover {
        background-color: #235BB3;
    }
/* ── Application Status Overview ── */
.wht-panel-sts {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.sts-panel-ttl {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    margin-bottom: 20px;
}

.sts-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sts-chip {
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid transparent;
}

    /* Specific Card Themes matching Figma */
    .sts-chip.yell {
        background: linear-gradient(90deg, #FFFEF2 0%, #FEF9C3 100%);
        border-color: #FEF08A;
    }

    .sts-chip.grn {
        background: linear-gradient(90deg, #F4FDF6 0%, #DCFCE7 100%);
        border-color: #BBF7D0;
    }

    .sts-chip.scarl {
        background: linear-gradient(90deg, #FFF5F5 0%, #FEE2E2 100%);
        border-color: #FECACA;
    }

    .sts-chip.indg { /* Processing (Orange Theme) */
        background: linear-gradient(90deg, #FFF7ED 0%, #FFEDD5 100%);
        border-color: #FED7AA;
    }

.sts-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sts-lbl {
    font-size: 13px;
    font-weight: 600;
    color: #64748B;
}

.sts-num {
    font-size: 26px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1;
}

.sts-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    /* This adds the soft shadow to the white box inside your SVGs */
    filter: drop-shadow(0px 2px 6px rgba(0,0,0,0.06));
}

    .sts-ico svg {
        width: 48px;
        height: 48px;
        display: block;
    }

@media (max-width: 1024px) {
    .sts-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .sts-row {
        grid-template-columns: 1fr;
    }
}

/* ── Two Column Layout ── */
.split-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Left column slightly wider */
    gap: 24px;
    margin-bottom: 24px;
}

.rht-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Panel Shared Styles ── */
.wht-panel-split {
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.wht-panel-ttl {
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    margin: 0;
}

.dark-view-btn {
    background-color: #1E293B;
    color: #FFFFFF;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .dark-view-btn:hover {
        background-color: #0F172A;
    }

/* ── Recent Applications Cards ── */
.appl-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 16px;
}

    .appl-card:last-of-type {
        margin-bottom: 0;
    }

.appl-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.appl-name {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 8px;
}

.appl-ref {
    font-size: 12px;
    color: #64748B;
    line-height: 1.6;
}

.appl-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

    .appl-tag.orange {
        background-color: #FFF7ED;
        color: #EA580C;
    }

    .appl-tag.green {
        background-color: #DCFCE7;
        color: #16A34A;
    }

/* Trail / Stepper */
.appl-trail-wrapper {
    position: relative;
    margin: 0 10px 24px 10px;
}

.trail-bg-line {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: #E2E8F0;
    z-index: 1;
}

.appl-trail {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.trail-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #FFFFFF; /* Masks the line behind it */
    padding: 0 4px;
}

.trail-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .trail-node.done {
        background-color: #16A34A;
        color: #FFFFFF;
    }

    .trail-node.active {
        background-color: #F97316;
        color: #FFFFFF;
    }

    .trail-node.idle {
        background-color: #CBD5E1;
    }

    .trail-node svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.5;
    }

.trail-step-lbl {
    font-size: 11px;
    font-weight: 500;
    color: #64748B;
    white-space: nowrap;
}

.appl-detail-btn {
    width: 100%;
    padding: 10px 0;
    background-color: #2D72D9;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

    .appl-detail-btn:hover {
        background-color: #235BB3;
    }

/* ── Guest House Booking ── */
.ghb-card {
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 20px;
}

.ghb-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.ghb-title {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
}

.ghb-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    background-color: #DCFCE7;
    color: #16A34A;
    border-radius: 6px;
}

.ghb-ref {
    font-size: 12px;
    color: #64748B;
    margin-bottom: 20px;
}

.ghb-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 12px 16px;
    margin-bottom: 24px;
    font-size: 12px;
}

.ghb-lbl {
    color: #64748B;
}

.ghb-val {
    color: #1E293B;
    font-weight: 500;
}

.ghb-btn-row {
    display: flex;
    gap: 12px;
}

.ghb-outline-btn {
    flex: 1;
    padding: 10px 0;
    border: 1px solid #CBD5E1;
    background-color: #FFFFFF;
    color: #475569;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.15s;
}

    .ghb-outline-btn:hover {
        background-color: #F8FAFC;
        color: #1E293B;
    }

    .ghb-outline-btn svg {
        width: 16px;
        height: 16px;
    }

.ghb-fill-btn {
    flex: 1;
    padding: 10px 0;
    background-color: #2D72D9;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

    .ghb-fill-btn:hover {
        background-color: #235BB3;
    }

/* ── Notifications ── */
.ntf-list {
    display: flex;
    flex-direction: column;
}

.ntf-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #F1F5F9;
}

    .ntf-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.ntf-icon {
    color: #4F46E5; /* Indigo */
    margin-top: 2px;
}

    .ntf-icon svg {
        width: 18px;
        height: 18px;
        stroke-width: 2;
    }

.ntf-content {
    flex: 1;
}

.ntf-txt {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 4px;
    line-height: 1.4;
}

.ntf-time {
    font-size: 12px;
    color: #64748B;
}

.ntf-dot {
    width: 8px;
    height: 8px;
    background-color: #4F46E5;
    border-radius: 50%;
    margin-top: 8px;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .split-row {
        grid-template-columns: 1fr;
    }
}

/* ── Recent Activity Timeline ── */
.actvt-list {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
}

.actvt-item {
    position: relative;
    padding-left: 20px; /* Space for the dot */
    padding-bottom: 20px;
}

    /* The vertical line */
    .actvt-item::before {
        content: '';
        position: absolute;
        left: 3px;
        top: 6px;
        bottom: -6px;
        width: 2px;
        background-color: #E2E8F0;
    }

    /* Remove line from the very last item */
    .actvt-item:last-child::before {
        display: none;
    }

/* The dot */
.actvt-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 8px;
    height: 8px;
    background-color: #2D72D9;
    border-radius: 50%;
    z-index: 1;
}

.actvt-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.actvt-txt {
    font-size: 13px;
    font-weight: 700;
    color: #1E293B;
    line-height: 1.2;
}

.actvt-when {
    font-size: 12px;
    color: #64748B;
}

