/* ── Page heading ── */
.pgttl-main {
    font-size: 22px;
    font-weight: 700;
    color: var(--mya-text);
    margin-bottom: 4px;
}

.pgttl-sub {
    font-size: 13px;
    color: var(--mya-muted);
    margin-bottom: 20px;
}

/* ── Status summary chips ── */
.summ-band {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.summ-tile {
    /*   background: var(--mya-white); */
    background-color: #FAEDFF;
    border: 0.5px solid var(--mya-border);
    border-radius: var(--mya-radius-lg);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--mya-shadow);
}

.summ-tile-left .summ-tile-caption {
    font-size: 11px;
    color: var(--mya-muted);
    margin-bottom: 4px;
}

.summ-tile-left .summ-tile-count {
    font-size: 22px;
    font-weight: 700;
    color: var(--mya-text);
}

.summ-tile-emblem {
    width: 38px;
    height: 38px;
    border-radius: var(--mya-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

    .summ-tile-emblem.violet {
        background: #ede9fe;
        color: #5b21b6;
    }

    .summ-tile-emblem.flame {
        background: #ffedd5;
        color: #9a3412;
    }

    .summ-tile-emblem.emerald {
        background: #dcfce7;
        color: #15803d;
    }

    .summ-tile-emblem.scarlet {
        background: #fee2e2;
        color: #b91c1c;
    }

    .summ-tile-emblem.gold {
        background: #fef9c3;
        color: #a16207;
    }

    .summ-tile-emblem.cobalt {
        background: #dbeafe;
        color: #1d4ed8;
    }

/* ── Toolbar ── */
.ctrl-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.ctrl-dropdown {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background-color: #F5FEFA;
    border: 0.5px solid #4DB385;
    border-radius: 20px;
    font-size: 13px;
    color: var(--mya-text);
    cursor: pointer;
    transition: background 0.15s;
}

    .ctrl-dropdown:hover {
        background: #f3f4f6;
    }

select.ctrl-dropdown {
    appearance: auto;
    -webkit-appearance: auto;
    -moz-appearance: auto;
    display: inline-block;
    min-width: 140px;
}

.ctrl-dropdown svg {
    width: 14px;
    height: 14px;
    stroke: var(--mya-muted);
    flex-shrink: 0;
}

.ctrl-searchbox {
    margin-left: auto;
    position: relative;
    min-width: 280px;
}

    .ctrl-searchbox svg {
        position: absolute;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        stroke: var(--mya-hint);
    }

    .ctrl-searchbox input {
        width: 100%;
        padding: 8px 12px 8px 34px;
        border: 0.5px solid var(--mya-border);
        border-radius: var(--mya-radius-md);
        font-size: 13px;
        color: var(--mya-text);
        background-color: #ffff;
        outline: none;
        transition: border-color 0.15s;
    }

        .ctrl-searchbox input::placeholder {
            color: var(--mya-hint);
        }

        .ctrl-searchbox input:focus {
            border-color: var(--mya-blue);
        }

/* ── Application card ── */
.apln-card {
    background-color: #FFFFFF;
    border: 0.5px solid var(--mya-border);
    border-radius: var(--mya-radius-lg);
    padding: 22px;
    margin-bottom: 16px;
    box-shadow: var(--mya-shadow);
}

.apln-card-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.apln-scheme-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--mya-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

    .apln-scheme-icon.medical {
        background: #dbeafe;
    }

    .apln-scheme-icon.wedding {
        background: #fce7f3;
    }

    .apln-scheme-icon.education {
        background: #d1fae5;
    }

.apln-scheme-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--mya-text);
}

.apln-scheme-ref {
    font-size: 12px;
    color: var(--mya-muted);
    margin-top: 3px;
}

/* 4-col meta row */
.apln-meta-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.apln-meta-box {
    background-color: #F8F8F8;
    /*   background: var(--mya-surface); */
    border: 0.5px solid #EDEDED;
    border-radius: 4px;
    padding: 10px 14px;
}

.apln-meta-caption {
    font-size: 11px;
    color: var(--mya-hint);
    margin-bottom: 5px;
}

.apln-meta-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--mya-text);
}

    .apln-meta-value.clr-green {
        color: #16a34a;
    }

    .apln-meta-value.clr-purple {
        color: #7c3aed;
    }

    .apln-meta-value.clr-blue {
        color: #2563eb;
    }

/* Workflow trail */
.apln-trail-box {
    background: var(--mya-surface);
    border: 0.5px solid var(--mya-border);
    border-radius: var(--mya-radius-md);
    padding: 16px 22px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.trail-waypoint {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.trail-bubble {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    border: 2.5px solid transparent;
}

    .trail-bubble.state-done {
        background: #dcfce7;
        border-color: #16a34a;
        color: #15803d;
    }

    .trail-bubble.state-orange {
        background: #fff7ed;
        border-color: #f97316;
        color: #ea580c;
    }

    .trail-bubble.state-blue {
        background: #dbeafe;
        border-color: #2563eb;
        color: #1d4ed8;
    }

    .trail-bubble.state-idle {
        background: #f3f4f6;
        border-color: #d1d5db;
        color: #9ca3af;
    }

.trail-waypoint-name {
    font-size: 11px;
    font-weight: 600;
    margin-top: 6px;
    text-align: center;
}

    .trail-waypoint-name.done {
        color: #16a34a;
    }

    .trail-waypoint-name.orange {
        color: #f97316;
    }

    .trail-waypoint-name.blue {
        color: #2563eb;
    }

    .trail-waypoint-name.idle {
        color: #9ca3af;
    }

.trail-waypoint-status {
    font-size: 10px;
    text-align: center;
    margin-top: 1px;
}

    .trail-waypoint-status.done {
        color: #16a34a;
    }

    .trail-waypoint-status.orange {
        color: #f97316;
    }

    .trail-waypoint-status.blue {
        color: #2563eb;
    }

    .trail-waypoint-status.idle {
        color: #9ca3af;
    }

.trail-connector {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    margin-bottom: 28px;
    min-width: 24px;
}

    .trail-connector.done {
        background: #16a34a;
    }

    .trail-connector.orange {
        background: #f97316;
    }

    .trail-connector.idle {
        background: #e5e7eb;
    }

/* Card footer actions */
.apln-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.apln-pdf-btn {
    padding: 9px 22px;
    background: var(--mya-white);
    border: 0.5px solid #666666;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    color: var(--mya-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.15s;
}

    .apln-pdf-btn:hover {
        background: #f3f4f6;
    }

    .apln-pdf-btn svg {
        width: 15px;
        height: 15px;
        stroke: var(--mya-muted);
    }

.apln-view-btn {
    padding: 9px 22px;
    background-color: #3372CF;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

    .apln-view-btn:hover {
        background: var(--mya-blue-hov);
    }

/* ── Responsive ── */
@media (max-width: 960px) {
    .summ-band {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    body {
        padding: 14px;
    }

    .summ-band {
        grid-template-columns: repeat(2, 1fr);
    }

    .apln-meta-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .ctrl-searchbox {
        min-width: 100%;
        margin-left: 0;
    }

    .ctrl-bar {
        flex-wrap: wrap;
    }

    .apln-trail-box {
        overflow-x: auto;
    }
}

@media (max-width: 420px) {
    .summ-band {
        grid-template-columns: 1fr 1fr;
    }

    .apln-meta-row {
        grid-template-columns: 1fr;
    }
}

/* Remove number spinners */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

