/* ===== Document Approval Page ===== */

.approval-wrap {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    padding: 100px 0 48px;
}

/* Header */
.approval-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.approval-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3657CD 0%, #12294B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.approval-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: #12294B;
    margin: 0;
    line-height: 1.3;
}

.approval-header-sub {
    font-size: 14px;
    color: #5a6a7e;
    font-weight: 400;
}

/* Back link */
.approval-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #5a6a7e;
    text-decoration: none;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.approval-back:hover {
    color: #3657CD;
}

/* Body layout */
.approval-body {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

/* Preview (left) */
.approval-preview {
    flex: 1;
    min-width: 0;
}

.approval-preview-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(18, 41, 75, 0.06);
    box-shadow: 0 2px 8px rgba(18, 41, 75, 0.04);
    padding: 32px;
    overflow: auto;
}

.approval-preview-card img {
    max-width: 100%;
    height: auto;
}

/* Sidebar (right) */
.approval-sidebar {
    width: 340px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Cards in sidebar */
.approval-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(18, 41, 75, 0.06);
    box-shadow: 0 2px 8px rgba(18, 41, 75, 0.04);
    padding: 20px;
}

.approval-card-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #9aa5b4;
    margin-bottom: 10px;
}

.approval-card-name {
    font-size: 15px;
    font-weight: 600;
    color: #12294B;
    margin-bottom: 4px;
}

.approval-card-phone {
    font-size: 14px;
    color: #5a6a7e;
}

/* Status badges */
.approval-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin-top: 12px;
}

.approval-status--approved {
    background: #e8f5e9;
    color: #2e7d32;
}

.approval-status--pending {
    background: #fff3e0;
    color: #e65100;
}

.approval-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.approval-status--approved .approval-status-dot {
    background: #2e7d32;
}

.approval-status--pending .approval-status-dot {
    background: #e65100;
}

/* Action buttons */
.approval-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.approval-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-decoration: none;
    flex: 1;
}

.approval-btn:active {
    transform: scale(0.97);
}

.approval-btn--primary {
    background: linear-gradient(135deg, #3657CD 0%, #12294B 100%);
    color: #fff;
}

.approval-btn--primary:hover {
    opacity: 0.9;
}

.approval-btn--danger {
    background: #fdecea;
    color: #c62828;
    border: 1px solid rgba(198, 40, 40, 0.15);
}

.approval-btn--danger:hover {
    background: #f9d6d2;
}

.approval-btn--outline {
    background: #fff;
    color: #12294B;
    border: 1px solid #e0e6ee;
}

.approval-btn--outline:hover {
    background: #f8f9fb;
    border-color: #c8d0dc;
}

/* Download button */
.approval-download {
    width: 100%;
}

.approval-download .approval-btn {
    width: 100%;
}

/* Zoom bar */
.approval-zoom {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f7;
}

.approval-zoom-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #e0e6ee;
    background: #f8f9fb;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5a6a7e;
    transition: background 0.15s, border-color 0.15s;
    padding: 0;
}

.approval-zoom-btn:hover {
    background: #eef1f6;
    border-color: #c8d0dc;
}

.approval-zoom-value {
    font-size: 13px;
    font-weight: 600;
    color: #12294B;
    min-width: 42px;
    text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
    .approval-body {
        flex-direction: column;
    }

    .approval-sidebar {
        width: 100%;
    }

    .approval-wrap {
        width: 95%;
    }
}

@media (max-width: 640px) {
    .approval-wrap {
        padding-top: 80px;
    }

    .approval-header h1 {
        font-size: 18px;
    }

    .approval-preview-card {
        padding: 16px;
    }

    .approval-actions {
        flex-direction: column;
    }

    .approval-btn {
        width: 100%;
    }
}
