/* =========================================================
   MULTIPLE CASE RESULT
========================================================= */

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-count {
    background: #f3eee9;
    color: #5b4037;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}


/* TABLE */

.case-result-table {
    margin-bottom: 0;
    border-color: #dee2e6;
}

.case-result-table thead th {
    background: #f8f9fa;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 12px;
    vertical-align: middle;
    white-space: nowrap;
}

.case-result-table tbody td {
    padding: 14px 12px;
    font-size: 14px;
}

.case-result-table tbody tr:hover {
    background: #faf8f6;
}


/* CASE LINK */

.case-link {
    color: #0878e8;
    font-weight: 600;
    text-decoration: none;
}

.case-link:hover {
    text-decoration: underline;
}

.case-date {
    margin-top: 4px;
    font-weight: 600;
    color: #111;
    font-size: 13px;
}


/* PARTY */

.party-result-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.vs-small {
    color: #dc3545;
    font-style: italic;
    text-align: center;
    margin: 3px 0;
}


/* STATUS */

.case-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.case-status.pending {
    background: #fff3cd;
    color: #856404;
}

.case-status.disposed {
    background: #f8d7da;
    color: #dc3545;
}

.case-status.other {
    background: #e2e3e5;
    color: #41464b;
}


/* VIEW BUTTON */

.btn-view-detail {
    background: #5b4037;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.btn-view-detail:hover {
    background: #422d27;
    color: #fff;
}


/* =========================================================
   MODAL
========================================================= */

.case-modal-header {
    background: linear-gradient(
        135deg,
        #5b4037,
        #80665d
    );
    color: #fff;
}


.modal-case-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    text-align: center;
}

.modal-party {
    font-size: 18px;
    font-weight: 700;
}

.modal-vs {
    background: #ffc107;
    color: #212529;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}


.cnr-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid #ced4da;
    border-radius: 20px;
    background: #f8f9fa;
    color: #495057;
    font-size: 12px;
    font-weight: 600;
}


/* DETAIL SECTION */

.detail-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
}

.detail-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #5b4037;
    padding-bottom: 12px;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.detail-section-title i {
    margin-right: 7px;
}


.detail-label {
    color: #6c757d;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3px;
    margin-bottom: 4px;
}

.detail-value {
    color: #212529;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    word-break: break-word;
}


/* PARTY DETAIL */

.party-detail-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.party-detail-heading {
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 700;
}

.petitioner-detail .party-detail-heading {
    background: #e7f0ff;
    color: #4267a8;
}

.respondent-detail .party-detail-heading {
    background: #fde9eb;
    color: #dc3545;
}

.party-detail-body {
    padding: 18px;
}


/* MOBILE */

@media(max-width: 768px) {

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .case-result-table {
        min-width: 950px;
    }

    .modal-party {
        font-size: 15px;
    }

}


.case-header {

    background: linear-gradient(
        135deg,
        #5b4037,
        #9b877e
    );

    color: #fff;

    padding: 24px;

}


.case-parties {

    font-size: 20px;

    font-weight: 700;

    line-height: 1.5;

}


.vs-badge {

    display: inline-block;

    background: #ffc107;

    color: #222;

    font-size: 12px;

    padding: 4px 8px;

    border-radius: 20px;

    margin: 0 8px;

    vertical-align: middle;

}


.case-number {

    margin-top: 8px;

    font-size: 14px;

    opacity: .9;

}


.status-badge {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    padding: 7px 14px;

    border-radius: 20px;

    font-size: 13px;

    font-weight: 600;

}


.status-badge.pending {

    background: #ffc107;

    color: #212529;

}


.status-badge.disposed {

    background: #198754;

    color: white;

}


.cnr-number {

    font-size: 12px;

    padding: 6px 10px;

    border: 1px solid rgba(255,255,255,.5);

    border-radius: 20px;

}


.info-box {

    min-height: 125px;

    border: 1px solid #dee2e6;

    border-radius: 8px;

    padding: 18px;

    display: flex;

    gap: 14px;

    align-items: flex-start;

    background: #fafafa;

}


.info-icon {

    width: 40px;

    height: 40px;

    border-radius: 8px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    background: #f1f3f5;

}


.info-icon.blue {

    color: #0dcaf0;

}


.info-icon.orange {

    color: #fd7e14;

}


.info-icon.green {

    color: #198754;

}


.info-icon.purple {

    color: #6f42c1;

}


.info-label {

    font-size: 11px;

    font-weight: 600;

    color: #6c757d;

    letter-spacing: .5px;

}


.info-value {

    margin-top: 5px;

    font-weight: 600;

    font-size: 14px;

    color: #212529;

}


.green-text {

    color: #198754;

}


.case-meta {

    display: flex;

    flex-wrap: wrap;

    gap: 25px;

    border: 1px solid #dee2e6;

    border-radius: 7px;

    padding: 13px 16px;

    background: #fafafa;

    font-size: 13px;

}


.case-meta i {

    margin-right: 5px;

    color: #6c757d;

}


.party-card {

    border: 1px solid #dee2e6;

    border-radius: 7px;

    overflow: hidden;

}


.party-title {

    padding: 11px 14px;

    font-size: 13px;

    font-weight: 700;

}


.party-card.petitioner .party-title {

    background: #e7f0ff;

    color: #4267a8;

}


.party-card.respondent .party-title {

    background: #fde9eb;

    color: #dc3545;

}


.party-content {

    display: flex;

    gap: 12px;

    padding: 18px;

}


.party-number {

    width: 24px;

    height: 24px;

    min-width: 24px;

    background: #343a40;

    color: #fff;

    border-radius: 50%;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 12px;

    font-weight: 600;

}


.party-name {

    font-size: 13px;

    font-weight: 700;

    line-height: 1.5;

}


.party-advocate {

    margin-top: 10px;

    font-size: 12px;

    color: #6c757d;

}


.additional-details {

    display: flex;

    flex-wrap: wrap;

    gap: 25px;

}


.detail-item {

    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 13px;

}


.detail-item i {

    color: #6c757d;

}


.detail-item span {

    color: #6c757d;

}


.relief-box {

    border-left: 4px solid #6f42c1;

    background: #f8f5ff;

    padding: 15px 18px;

    border-radius: 5px;

}


.relief-title {

    font-size: 13px;

    font-weight: 700;

    color: #6f42c1;

    margin-bottom: 7px;

}


.relief-text {

    font-size: 13px;

    color: #495057;

    line-height: 1.6;

}


.no-result-icon {

    font-size: 55px;

    color: #adb5bd;

}


@media(max-width: 768px) {

    .case-parties {

        font-size: 16px;

    }


    .case-header .d-flex {

        flex-direction: column;

    }


    .case-header .text-end {

        text-align: left !important;

    }


    .case-meta,
    .additional-details {

        flex-direction: column;

        gap: 12px;

    }

}


    .nav-tabs .nav-link {

        color: #333;

        font-weight: 500;

        padding: 12px 18px;

        border: none;

    }


    .nav-tabs .nav-link:hover {

        background: #f5f5f5;

    }


    .nav-tabs .nav-link.active {

        color: #212529;

        font-weight: 600;

        border-bottom: 3px solid #212529;

    }


    .form-control,
    .form-select {

        min-height: 45px;

    }


    .search-section {

        min-height: 100px;

    }


    .table th {

        white-space: nowrap;

    }


    .table td {

        white-space: nowrap;

    }
