/* GŁÓWNY UKŁAD SOR */

#sor-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;

    width: 100%;
}


/* KOLUMNY Z PACJENTAMI */

.patient-column {
    width: 350px;
    flex: 0 0 350px;
}


.patient-column h3 {
    margin: 0 0 10px 0;

    font-size: 18px;
    font-weight: bold;
}


/* LISTY PACJENTÓW */

#waiting-triage,
#triage-patients {

    display: flex;
    flex-direction: column;

    gap: 10px;

    width: 350px;
    height: 700px;

    padding: 10px;

    box-sizing: border-box;

    overflow-y: auto;

    background: #ececec;

    border: 2px solid #bdbdbd;
    border-radius: 8px;
}



/* KARTA PACJENTA */

.patient {

    display: flex;
    flex-direction: column;

    gap: 4px;

    width: 100%;

    padding: 10px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #cfcfcf;
    border-left: 6px solid #3498db;

    border-radius: 6px;

    cursor: pointer;

    transition: 0.15s;
}


.patient:hover {

    background: #f4f9ff;

    transform: translateX(3px);

}


.patient .name {

    font-size: 17px;
    font-weight: bold;

}


.patient .info {

    font-size: 13px;
    color: #666;

}


.patient .status {

    font-size: 13px;
    font-weight: bold;
    color: #0077cc;

}


.patient .timers {

    display: flex;
    justify-content: space-between;

    margin-top: 6px;

    font-size: 12px;
    color: #444;

}



/* STATYSTYKI */

.patient-stats {

    width: 180px;
    flex: 0 0 180px;

    display: flex;
    flex-direction: column;

    gap: 10px;
}



.stat-box {

    width: 180px;

    padding: 15px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #cfcfcf;

    border-radius: 8px;

    text-align: center;

}


.stat-title {

    font-size: 13px;

    color: #666;

    margin-bottom: 8px;

}


.stat-box > div:last-child {

    font-size: 30px;

    font-weight: bold;

}



.stat-box.dead {

    border-left: 6px solid #c0392b;

}



.stat-box.impatience {

    border-left: 6px solid #f39c12;

}

#triage-modal {
    display: none;

    position: fixed;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 500px;

    padding: 20px;

    background: #ffffff;

    border: 2px solid #bdbdbd;

    border-radius: 10px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.25);

    z-index: 1000;
}