/* ======================================
   Workshop Control Centre
   Version 0.1
====================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Segoe UI, Arial, sans-serif;
}

body{

    background:#0F172A;
    color:rgb(255, 255, 255);

}

/* ================= HEADER ================= */

header{

    height:90px;
    background:#16213E;
    border-bottom:4px solid #00B4FF;

    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:0 30px;

}

.company{
    width:500px;
}

.company h1{
    font-size:34px;
    margin:0;
}

.company p{
    color:#31be15;
    font-size:18px;
}

.header-right{

    width:380px;

    text-align:right;

}

#clock{

    font-size:40px;

    font-weight:bold;

}

#date{

    font-size:18px;

    color:#CBD5E1;

}

/* ================= MAIN ================= */

main{

    padding:30px;

}

.today h2{

    margin-bottom:15px;

    color:#00B4FF;

}

/* ================= TABLE ================= */

table{

    width:100%;

    border-collapse:collapse;

    background:#16213E;

    border-radius:10px;

    overflow:hidden;

}

th{

    background:#1E3A5F;

    padding:15px;

    text-align:left;

    font-size:18px;

}

td{

    padding:14px;

    border-bottom:1px solid #25354D;

    font-size:17px;

}

tbody tr:hover{

    background:#20304A;

}

/* ================= PANELS ================= */

.bottom{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:25px;

    margin-top:30px;

}

.panel{

    background:#16213E;

    padding:20px;

    border-radius:10px;

}

.panel h2{

    color:#00B4FF;

    margin-bottom:15px;

}

.panel ul{

    list-style:none;

}

.panel li{

    margin-bottom:12px;

    font-size:18px;

}

/* ================= FOOTER ================= */

footer{

    margin-top:30px;

    background:#16213E;

    padding:20px;

    border-left:6px solid #00B4FF;

    border-radius:10px;

}
.worker-card{
    background:white;
    border-radius:8px;
    margin-bottom:10px;
    box-shadow:0 1px 4px rgba(0,0,0,.12);
    overflow:hidden;
}

.worker-header{
    background:#003b71;
    color:white;
    padding:8px 14px;
    font-size:17px;
    font-weight:bold;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.worker-table{
    width:100%;
    table-layout:fixed;
    border-collapse:collapse;
}
.worker-table th:nth-child(1),
.worker-table td:nth-child(1){
    width:120px;
}

.worker-table th:nth-child(2),
.worker-table td:nth-child(2){
    width:150px;
}

.worker-table th:nth-child(4),
.worker-table td:nth-child(4){
    width:180px;
    text-align:center;
}
.worker-table th{

    background:#d8e2f0;

    color:#003b71;

    font-size:14px;

    font-weight:700;

    padding:6px;

    text-align:left;

}

.worker-table td{
    padding:5px 6px;
    border-bottom:1px solid #ddd;
}
.worker-table td:nth-child(3){
    white-space:normal;
    word-break:break-word;
}
/* ===========================================
   Dashboard Layout
=========================================== */

.dashboard-layout{

    display:grid;

    grid-template-columns: 4fr 380px;

    gap:15px;

    padding:10px;

    align-items:start;

}

.today{

    width:100%;

}

.sidebar{

    position:sticky;

    top:20px;

}

.panel{

    background:white;

    border-radius:10px;

    padding:20px;

    margin-bottom:20px;

    box-shadow:0 2px 8px rgba(0,0,0,.15);

}

.panel h2{

    margin-top:0;

    color:#003b71;

}

.panel ul{

    padding-left:20px;

}

.panel li{

    margin-bottom:12px;

}
.panel{
    color:#0f172a;
}

.panel ul{
    color:#0f172a;
}

.panel li{
    color:#0f172a;
    margin-bottom:10px;
}

#safetyMessage{
    color:#0f172a;
    font-weight:600;
}
.no-jobs{
    padding:12px;
    text-align:center;
    font-style:italic;
    color:#666;
    background:#f8f8f8;
}
.worker-card{
    align-self:start;
}
/* Worker card layout */

#jobTable{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:15px;

    align-items:start;

}
#safetyBanner{

    position:absolute;

    left:50%;
    transform:translateX(-50%);

    background:#DC2626;
    color:white;

    padding:8px 22px;

    border-radius:8px;

    font-size:18px;
    font-weight:bold;

    min-width:380px;

    text-align:center;

}
header{
    position:relative;
}