*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    min-height:100vh;
    background:url("https://mariterbang.io/download/NiTCMQJL.jpg") center/cover no-repeat;
    color:#fff;
    padding-top:72px;
}

/* NAVBAR */
.top-nav{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:72px;
    display:flex;
    align-items:center;
    padding:0 10px;
    background:rgba(0,20,80,0.95);
    border-bottom:1px solid rgba(0,255,255,0.3);
    z-index:999;
}

.menu{
    display:flex;
    gap:6px;
    width:100%;
}

.menu a{
    flex:1;
    text-align:center;
    padding:8px 4px;
    font-size:11px;
    color:#eaffff;
    text-decoration:none;
    background:rgba(0,255,255,0.15);
    border-radius:10px;
}

.menu a:hover,
.menu a.active{
    background:rgba(0,255,255,0.45);
}

/* CONTENT */
.container{
    padding:16px;
    display:flex;
    justify-content:center;
}

/* TABLE BOX */
.table-box{
    width:100%;
    max-width:1200px;
    background:rgba(0,0,0,0.6);
    backdrop-filter:blur(12px);
    border-radius:16px;
    padding:16px;
    box-shadow:0 8px 25px rgba(0,0,0,0.5);
}

.table-box h3{
    text-align:center;
    margin-bottom:10px;
}

.action-bar{
    display:flex;
    gap:8px;
    margin-bottom:10px;
}

/* TABLE */
.table-wrapper{
    width:100%;
    overflow-x:auto;
}

table{
    width:100%;
    min-width:750px;
    border-collapse:separate;
    border-spacing:0;
    font-size:12px;
}

/* HEADER */
thead th{
    position:sticky;
    top:0;
    background:linear-gradient(135deg,#ffd700,#ffb700);
    color:#000;
}

/* CELL – DEFAULT TENGAH */
th, td{
    padding:10px 6px;
    text-align:center;
    vertical-align:middle;   /* 🔑 TENGAH ATAS–BAWAH */
    border-bottom:1px solid rgba(255,255,255,0.15);
}

tbody tr:hover{
    background:rgba(0,255,255,0.15);
}

/* KOLOM NAMA (TETAP RAPI) */
td:nth-child(2){
    text-align:center;       /* sesuai permintaan: tengah */
    padding-left:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* CONTENTEDITABLE */
td[contenteditable="true"]{
    cursor:text;
}

/* SELECT */
select{
    -webkit-appearance:none;
    -moz-appearance:none;
    appearance:none;
    background:rgba(0,0,0,0.6);
    color:#fff;
    border:1px solid rgba(0,255,255,0.4);
    border-radius:20px;
    padding:6px 12px;
    min-width:90px;
    font-size:11px;
    font-weight:bold;
    text-align:center;
    text-align-last:center;
    cursor:pointer;
}

select option{
    text-align:center;
    background:#111;
    color:#fff;
    font-weight:bold;
}

select:focus{
    outline:none;
    box-shadow:0 0 0 2px rgba(0,255,255,0.4);
}

/* BADGE */
.shift-badge,
.status-badge{
    display:inline-block;
    min-width:90px;
    padding:6px 12px;
    border-radius:20px;
    text-align:center;
    font-weight:bold;
}

.PAGI{background:#4caf50;}
.MALAM{background:#3f51b5;}

.HEAD{background:#00ffff;color:#000;}
.SPV{background:#ffd700;color:#000;}
.WORKER{background:#4caf50;}
.DEPOSIT{background:#ff9800;}
.WD{background:#ff5252;}

/* BUTTON */
button{
    padding:6px 10px;
    border:none;
    border-radius:6px;
    background:rgba(0,255,255,0.3);
    color:#fff;
    cursor:pointer;
}

button:hover{
    background:rgba(0,255,255,0.6);
}

.action-btn{
    background:rgba(255,0,0,0.4);
    border-radius:50%;
    padding:6px;
}

.action-btn:hover{
    background:rgba(255,0,0,0.8);
}

/* RESPONSIVE */
@media(max-width:480px){
    th, td{
        font-size:10px;
        padding:6px 4px;
    }
}
