/* ==========================================
   MEMBER CLEARANCE
========================================== */

.member-clearance-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px;
}


/* HEADER */

.clearance-page-header {
    margin-bottom: 22px;
}

.clearance-page-header h1 {
    margin: 0 0 7px;
    font-size: 28px;
    color: #1f2937;
}

.clearance-page-header h1 i {
    margin-right: 8px;
    color: #2563eb;
}

.clearance-page-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}


/* INFO */

.clearance-info-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 17px 18px;
    margin-bottom: 24px;
    border-radius: 14px;
    background: #eff6ff;
    color: #1e40af;
}

.clearance-info-icon {
    font-size: 20px;
    padding-top: 2px;
}

.clearance-info-box strong {
    display: block;
    margin-bottom: 4px;
}

.clearance-info-box p {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
}


/* CARDS */

.clearance-schemes {
    display: grid;
    gap: 20px;
}

.clearance-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 23px;
    box-shadow: 0 5px 22px rgba(15, 23, 42, 0.06);
}


/* CARD HEADER */

.clearance-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf0f3;
}

.clearance-scheme-info {
    display: flex;
    align-items: center;
    gap: 13px;
}

.clearance-scheme-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eef4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.clearance-scheme-info h2 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #1f2937;
}

.clearance-scheme-info p {
    margin: 0;
    font-size: 12px;
    color: #7b8492;
}


/* BADGES */

.clearance-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.clearance-badge.completed,
.clearance-badge.ready {
    background: #ecfdf5;
    color: #15803d;
}

.clearance-badge.waiting {
    background: #f3f4f6;
    color: #6b7280;
}

.clearance-badge.action {
    background: #fff7ed;
    color: #c2410c;
}


/* PERIOD */

.clearance-period {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 18px 0;
}

.clearance-period div {
    background: #f8fafc;
    padding: 13px 15px;
    border-radius: 12px;
}

.clearance-period span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #7b8492;
}

.clearance-period strong {
    font-size: 13px;
    color: #1f2937;
}


/* CHECKS */

.clearance-check-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 18px;
}

.clearance-check-item {
    padding: 16px;
    border: 1px solid #e8ecf1;
    border-radius: 13px;
}

.clearance-check-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.clearance-check-top span {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.clearance-check-item strong {
    display: block;
    font-size: 15px;
}

.clearance-check-item small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: #7b8492;
}

.check-good,
.check-good-text {
    color: #16a34a;
}

.check-bad,
.check-bad-text {
    color: #dc2626;
}


/* ACTION */

.clearance-action-area {
    padding-top: 4px;
}

.clearance-message {
    padding: 13px 15px;
    border-radius: 11px;
    margin: 0 0 13px;
    font-size: 12px;
    line-height: 1.6;
}

.clearance-message i {
    margin-right: 6px;
}

.clearance-message.neutral {
    background: #f3f4f6;
    color: #4b5563;
}

.clearance-message.danger {
    background: #fef2f2;
    color: #b91c1c;
}

.clearance-message.warning {
    background: #fff7ed;
    color: #c2410c;
}

.clearance-message.success {
    background: #ecfdf5;
    color: #15803d;
}

.clearance-btn {
    width: 100%;
    min-height: 48px;
    border: none;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.disabled-btn {
    background: #e5e7eb;
    color: #6b7280;
    cursor: not-allowed;
}

.settle-btn {
    background: #f59e0b;
    color: #ffffff;
}

.ready-btn {
    background: #2563eb;
    color: #ffffff;
}

.completed-btn {
    background: #16a34a;
    color: #ffffff;
}


/* COMPLETED */

.clearance-completed-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 13px;
}

.clearance-completed-info div {
    padding: 12px 14px;
    background: #ecfdf5;
    border-radius: 11px;
}

.clearance-completed-info span {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: #6b7280;
}

.clearance-completed-info strong {
    font-size: 13px;
    color: #15803d;
}


/* EMPTY */

.clearance-empty {
    background: #ffffff;
    padding: 70px 20px;
    border-radius: 18px;
    text-align: center;
}

.clearance-empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #eef4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
}

.clearance-empty h3 {
    margin: 0 0 6px;
}

.clearance-empty p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}


/* ==========================================
   CLEARANCE CERTIFICATE BUTTON
========================================== */

.certificate-btn {
    margin-top: 10px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.certificate-btn:hover {
    background: #1d4ed8;
}