/* ==========================================
   ADMIN CLEARANCE PAGE
========================================== */

.admin-clearance-page {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
}


/* ==========================================
   HEADER
========================================== */

.admin-clearance-header {
    margin-bottom: 25px;
}

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

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

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


/* ==========================================
   SUMMARY CARDS
========================================== */

.admin-clearance-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.admin-clearance-summary-card {
    background: #ffffff;
    border-radius: 17px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .06);
}

.admin-clearance-summary-card span {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}

.admin-clearance-summary-card h2 {
    margin: 0;
    font-size: 21px;
    color: #111827;
}

.admin-clearance-summary-icon {
    width: 47px;
    min-width: 47px;
    height: 47px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.admin-clearance-summary-icon.completed {
    background: #ecfdf5;
    color: #16a34a;
}

.admin-clearance-summary-icon.awaiting {
    background: #fff7ed;
    color: #f97316;
}

.admin-clearance-summary-icon.ready {
    background: #eff6ff;
    color: #2563eb;
}

.admin-clearance-summary-icon.money {
    background: #f5f3ff;
    color: #7c3aed;
}


/* ==========================================
   SEARCH
========================================== */

.admin-clearance-search-card {
    background: #ffffff;
    padding: 17px;
    border-radius: 15px;
    margin-bottom: 22px;
    box-shadow: 0 5px 20px rgba(15, 23, 42, .05);
}

.admin-clearance-search-form {
    display: flex;
    gap: 10px;
}

.admin-clearance-search-box {
    flex: 1;
    height: 46px;
    border: 1px solid #dce1e7;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
}

.admin-clearance-search-box i {
    color: #9ca3af;
}

.admin-clearance-search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
}

.admin-clearance-search-form button,
.clear-search-btn {
    min-height: 46px;
    border: none;
    border-radius: 10px;
    padding: 0 18px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.admin-clearance-search-form button {
    background: #2563eb;
    color: #ffffff;
}

.clear-search-btn {
    background: #f3f4f6;
    color: #374151;
}


/* ==========================================
   RECORD CARD
========================================== */

.admin-clearance-record-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(15, 23, 42, .06);
}

.admin-clearance-record-header {
    padding: 23px 24px;
    border-bottom: 1px solid #edf0f3;
}

.admin-clearance-record-header h2 {
    margin: 0 0 5px;
    font-size: 19px;
    color: #1f2937;
}

.admin-clearance-record-header p {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
}


/* ==========================================
   TABLE
========================================== */

.admin-clearance-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-clearance-table {
    width: 100%;
    min-width: 1300px;
    border-collapse: collapse;
}

.admin-clearance-table th {
    padding: 15px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e8ecf1;
    text-align: left;
    font-size: 11px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.admin-clearance-table td {
    padding: 17px 16px;
    border-bottom: 1px solid #eef1f4;
    vertical-align: middle;
    font-size: 13px;
    color: #374151;
}

.admin-clearance-table tbody tr:hover {
    background: #fafbfc;
}


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

.admin-clearance-member {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-clearance-member-icon {
    width: 38px;
    min-width: 38px;
    height: 38px;
    border-radius: 11px;
    background: #eef4ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-clearance-member strong {
    display: block;
    margin-bottom: 3px;
    color: #1f2937;
}

.admin-clearance-member small,
.admin-clearance-subtext {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: #8b95a5;
}

.danger-text {
    color: #dc2626;
}


/* ==========================================
   CHECKS
========================================== */

.admin-clearance-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
}

.admin-clearance-check.good {
    color: #15803d;
}

.admin-clearance-check.bad {
    color: #dc2626;
}


/* ==========================================
   STATUS
========================================== */

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

.admin-clearance-status.completed {
    background: #ecfdf5;
    color: #15803d;
}

.admin-clearance-status.ready {
    background: #eff6ff;
    color: #1d4ed8;
}

.admin-clearance-status.ongoing {
    background: #f3f4f6;
    color: #4b5563;
}

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


/* ==========================================
   CODE
========================================== */

.admin-clearance-code {
    display: inline-block;
    padding: 7px 9px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-family: monospace;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-clearance-empty-value {
    color: #9ca3af;
}


/* ==========================================
   EMPTY
========================================== */

.admin-clearance-empty {
    padding: 70px 20px;
    text-align: center;
}

.admin-clearance-empty-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

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

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


/* ==========================================
   VERIFY BUTTON
========================================== */

.admin-clearance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.clearance-verify-btn {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}