/* =========================================
   PATIENT DATA PAGE
========================================= */

.patient-intro{
    max-width:720px;
    margin:0 auto 45px;
    text-align:center;
    color:#777;
    line-height:1.8;
}


/* =========================================
   OVERVIEW
========================================= */

.patient-overview{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    margin-bottom:60px;
}

.patient-overview-card{
    display:flex;
    align-items:center;
    gap:18px;
    padding:24px;
    background:#fff;
    border:1px solid rgba(0,0,0,.07);
    border-radius:18px;
    box-shadow:0 12px 35px rgba(0,0,0,.06);
    transition:.3s ease;
}

.patient-overview-card:hover{
    transform:translateY(-5px);
    box-shadow:0 18px 40px rgba(0,0,0,.09);
}

.overview-icon{
    width:55px;
    height:55px;
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:15px;
    background:rgba(255,153,51,.12);
    color:var(--accent);
    font-size:22px;
}

.patient-overview-card span{
    display:block;
    font-size:13px;
    color:#777;
    margin-bottom:3px;
}

.patient-overview-card strong{
    display:block;
    font-family:var(--font-display);
    font-size:28px;
    color:var(--dark);
}

.patient-overview-card small{
    color:#999;
    font-size:11px;
}


/* =========================================
   PATIENT SECTION
========================================= */

.patient-section{
    margin-top:35px;
    padding:30px;
    background:#fff;
    border:1px solid rgba(0,0,0,.07);
    border-radius:22px;
    box-shadow:0 15px 45px rgba(0,0,0,.06);
}

.ipd-section{
    margin-top:45px;
}


/* =========================================
   SECTION HEADER
========================================= */

.patient-section-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
    margin-bottom:28px;
}

.patient-label{
    display:inline-block;
    margin-bottom:7px;
    color:var(--accent);
    font-size:12px;
    font-weight:700;
    text-transform:uppercase;
    letter-spacing:1.5px;
}

.patient-section-header h3{
    margin:0 0 7px;
    font-family:var(--font-display);
    font-size:32px;
    font-weight:600;
    color:var(--dark);
}

.patient-section-header p{
    margin:0;
    color:#777;
    font-size:14px;
}


/* =========================================
   TOTAL BOX
========================================= */

.patient-total-box{
    min-width:155px;
    padding:18px 22px;
    text-align:center;
    background:linear-gradient(
        135deg,
        rgba(255,153,51,.12),
        rgba(255,193,7,.05)
    );
    border:1px solid rgba(255,153,51,.25);
    border-radius:16px;
}

.patient-total-box span{
    display:block;
    color:#777;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1px;
}

.patient-total-box strong{
    display:block;
    margin:3px 0;
    color:var(--accent);
    font-size:27px;
}

.patient-total-box small{
    color:#999;
    font-size:11px;
}


/* =========================================
   TABLE
========================================= */

.patient-table-container{
    width:100%;
    overflow-x:auto;
    border-radius:14px;
    border:1px solid #eee;
}

.patient-table{
    width:100%;
    min-width:1250px;
    border-collapse:collapse;
    font-size:13px;
}

.patient-table th,
.patient-table td{
    padding:13px 11px;
    text-align:center;
    border-bottom:1px solid #eee;
    white-space:nowrap;
}

.patient-table thead th{
    background:var(--dark);
    color:#fff;
    font-weight:700;
    border-bottom:0;
}

.patient-table thead th:first-child{
    border-radius:12px 0 0 0;
}

.patient-table thead th:last-child{
    border-radius:0 12px 0 0;
}

.patient-table tbody td:nth-child(2){
    text-align:left;
    font-weight:600;
    color:var(--dark);
}

.patient-table tbody tr{
    transition:.2s ease;
}

.patient-table tbody tr:hover{
    background:rgba(255,153,51,.06);
}

.patient-table tbody td:last-child{
    font-weight:800;
    color:var(--accent);
}

.patient-table tfoot th{
    padding:15px 11px;
    background:rgba(255,153,51,.12);
    color:var(--dark);
    font-weight:800;
    border-top:2px solid var(--accent);
}

.patient-table tfoot th:last-child{
    color:var(--accent);
    font-size:16px;
}


/* =========================================
   SCROLLBAR
========================================= */

.patient-table-container::-webkit-scrollbar{
    height:8px;
}

.patient-table-container::-webkit-scrollbar-track{
    background:#f1f1f1;
    border-radius:10px;
}

.patient-table-container::-webkit-scrollbar-thumb{
    background:var(--accent);
    border-radius:10px;
}


/* =========================================
   RESPONSIVE
========================================= */

@media(max-width:900px){

    .patient-overview{
        grid-template-columns:1fr;
    }

    .patient-section-header{
        align-items:flex-start;
        flex-direction:column;
    }

    .patient-total-box{
        width:100%;
    }

}


@media(max-width:600px){

    .patient-section{
        padding:18px;
        border-radius:16px;
    }

    .patient-section-header h3{
        font-size:27px;
    }

    .patient-overview-card{
        padding:18px;
    }

}