﻿
:root {
    --text-1: #1c2130;
    --text-2: #5b6272;
    --text-3: #8b91a0;
    --glass-bg: rgba(248,249,251,0.65);
    --glass-bg-strong: rgba(255,255,255,0.85);
    --glass-border: rgba(255,255,255,0.9);
    --accent: #3d5af1;
    --accent-tint: rgba(61,90,241,0.14);
    --green: #0f9d67;
    --green-tint: rgba(15,157,103,0.14);
    --amber: #b8790c;
    --amber-tint: rgba(184,121,12,0.16);
    --red: #d1453b;
    --red-tint: rgba(209,69,59,0.14);
    --purple: #7a5af8;
    --purple-tint: rgba(122,90,248,0.14);
    --radius-lg: 20px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/*html,
body {
    margin: 0;
    min-height: 100%;
    width: 100%;
    font-family: "Vazirmatn","Segoe UI",Tahoma,sans-serif;
    color: var(--text-1);
    background: #e2e8ef;
}

body {
    min-height: 100vh;
    padding: 32px 24px;
    background: linear-gradient(135deg, #e2e8ef 0%, #f4f7fb 52%, #dce5ef 100%);
    background-attachment: fixed;
}*/
.quick-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    user-select: none;
}
.pageShipmentDetail {
    
    min-height: 100vh;
    padding: 32px 24px;
    background: linear-gradient(135deg, #e2e8ef 0%, #f4f7fb 52%, #dce5ef 100%);
    background-attachment: fixed;
    margin: 0;
    width: 100%;
    font-family: "Vazirmatn","Segoe UI",Tahoma,sans-serif;
    color: var(--text-1);
}

/* ---------- glass base ---------- */

.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    box-shadow: 0 10px 30px rgba(31,41,64,0.08), inset 0 1px 0 rgba(255,255,255,0.95), inset 0 0 0 1px rgba(255,255,255,0.4);
}

/* ---------- Header card ---------- */

.header-card {
    padding: 22px 24px;
    margin-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.shipment-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.shipment-date {
    font-size: 13px;
    color: var(--text-2);
    margin-top: 4px;
}

.status-pill {
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid rgba(61,90,241,0.22);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.info-box {
    background: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.info-label {
    font-size: 11.5px;
    color: var(--text-3);
}

.info-value {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    gap: 10px;
}

.quick-btn {
    text-align: center;
    padding: 14px 4px;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.65);
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}

    .quick-btn:hover,
    .quick-btn:focus-visible {
        background: rgba(255,255,255,0.78);
        transform: translateY(-3px);
        box-shadow: 0 12px 24px rgba(31,41,64,0.14), inset 0 1px 0 rgba(255,255,255,0.95);
        outline: none;
    }

    .quick-btn:active {
        background: rgba(255,255,255,0.85);
        transform: scale(0.96);
    }

    .quick-btn .icon {
        font-size: 21px;
        line-height: 1;
    }

    .quick-btn .label {
        font-size: 12px;
        margin-top: 8px;
        color: var(--text-2);
        font-weight: 600;
    }

    .quick-btn.danger {
        background: var(--red-tint);
        border-color: rgba(209,69,59,0.25);
    }

        .quick-btn.danger .label {
            color: var(--red);
        }

/* ---------- Section title ---------- */

.section-title {
    font-size: 13px;
    color: var(--text-3);
    font-weight: 600;
    margin: 26px 6px 12px;
}

/* ---------- Action grid ---------- */

.action-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 14px;
    align-items: start;
}

.action-divider {
    grid-column: 1 / -1;
    height: 1px;
    margin: 4px 0 2px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 1px 0 rgba(91,98,114,0.12);
}

.action-card {
    padding: 18px;
    min-height: 108px;
    cursor: pointer;
    touch-action: manipulation;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

    .action-card:hover,
    .action-card:focus-within {
        background: var(--glass-bg-strong);
        transform: translateY(-4px);
        box-shadow: 0 18px 38px rgba(31,41,64,0.16), inset 0 1px 0 rgba(255,255,255,0.98), inset 0 0 0 1px rgba(255,255,255,0.45);
    }

    .action-card button,
    .action-expand button {
        width: 100%;
        border: 0;
        padding: 0;
        margin: 0;
        color: inherit;
        font: inherit;
        text-align: inherit;
        background: transparent;
        cursor: pointer;
    }

    .action-card:active {
        background: var(--glass-bg-strong);
        transform: scale(0.98);
    }

.action-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 13px;
    backdrop-filter: blur(6px);
    flex-shrink: 0;
}

.action-title {
    font-size: 14.5px;
    font-weight: 700;
}

.action-desc {
    font-size: 12px;
    color: var(--text-2);
    margin-top: 5px;
    line-height: 1.6;
}

.c-green .action-icon {
    background: var(--green-tint);
    color: var(--green);
}

.c-amber .action-icon {
    background: var(--amber-tint);
    color: var(--amber);
}

.c-accent .action-icon {
    background: var(--accent-tint);
    color: var(--accent);
}

.c-purple .action-icon {
    background: var(--purple-tint);
    color: var(--purple);
}

.c-red .action-icon {
    background: var(--red-tint);
    color: var(--red);
}

/* ---------- Expandable card (details/summary, no JS) ---------- */

.action-expand {
    overflow: hidden;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
}

    .action-expand:hover,
    .action-expand:focus-within {
        background: var(--glass-bg-strong);
        transform: translateY(-4px);
        box-shadow: 0 18px 38px rgba(31,41,64,0.16), inset 0 1px 0 rgba(255,255,255,0.98), inset 0 0 0 1px rgba(255,255,255,0.45);
    }

    .action-expand[open] {
        box-shadow: 0 16px 38px rgba(31,41,64,0.14), inset 0 1px 0 rgba(255,255,255,0.98);
        background: var(--glass-bg-strong);
    }

    .action-expand:active {
        background: var(--glass-bg-strong);
        transform: scale(0.98);
    }

    .action-expand summary {
        list-style: none;
        cursor: pointer;
        touch-action: manipulation;
        padding: 18px;
        min-height: 64px;
        display: flex;
        align-items: center;
        gap: 13px;
    }

        .action-expand summary:active {
            background: rgba(255,255,255,0.5);
        }

        .action-expand summary::-webkit-details-marker {
            display: none;
        }

        .action-expand summary .action-icon {
            margin-bottom: 0;
            flex-shrink: 0;
        }

        .action-expand summary .titles {
            flex: 1;
            min-width: 0;
        }

        .action-expand summary .action-title {
            font-size: 14.5px;
            font-weight: 700;
        }

        .action-expand summary .action-desc {
            margin-top: 3px;
        }

        .action-expand summary .chevron {
            font-size: 13px;
            color: var(--text-3);
            transition: transform .2s ease;
            flex-shrink: 0;
        }

    .action-expand[open] summary .chevron {
        transform: rotate(180deg);
    }

.sub-list {
    border-top: 1px solid rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.3);
}

.sub-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 18px;
    min-height: 52px;
    font-size: 13.5px;
    border-top: 1px solid rgba(255,255,255,0.5);
    cursor: pointer;
    touch-action: manipulation;
    transition: background .12s ease;
}

    .sub-item:first-child {
        border-top: none;
    }

    .sub-item:active {
        background: rgba(255,255,255,0.7);
    }

    .sub-item .sub-icon {
        font-size: 15px;
        flex-shrink: 0;
    }

    .sub-item .sub-name {
        flex: 1;
    }

    .sub-item .sub-go {
        font-size: 13px;
        color: var(--text-3);
        flex-shrink: 0;
    }

.c-green .sub-icon,
.c-green summary .action-title {
    color: var(--green);
}

.c-amber .sub-icon,
.c-amber summary .action-title {
    color: var(--amber);
}

.c-accent .sub-icon,
.c-accent summary .action-title {
    color: var(--accent);
}

.c-purple .sub-icon,
.c-purple summary .action-title {
    color: var(--purple);
}

