/* --- DESKTOP STYLE --- */
.table-inline {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.table-inline th {
    background: #f4f7f9;
    padding: 12px 8px;
    border: 1px solid #dee2e6;
    text-align: center;
}
.table-inline td {
    border: 1px solid #dee2e6;
    padding: 6px;
    vertical-align: middle;
}
.shift-select {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 5px;
}
.note-input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #eee;
    padding: 5px;
}
.is-invalid { border-color: #dc3545 !important; background-color: #fff8f8; }

/* --- MOBILE RESPONSIVE (Card Mode) --- */
@media (max-width: 768px) {
    .hide-on-mobile { display: none; }
    
    .table-inline, .table-inline tbody, .table-inline tr, .table-inline td {
        display: block;
        width: 100%;
    }
    
    .row-item {
        margin-bottom: 15px;
        border: 1px solid #007bff !important;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    }

    .cell-date {
        background: #007bff;
        color: white;
        padding: 8px 15px !important;
        display: flex;
        justify-content: space-between;
        font-weight: bold;
    }

    .cell-shift, .cell-note {
        display: flex;
        align-items: center;
        padding: 10px 15px !important;
        border: none !important;
        border-bottom: 1px solid #f0f0f0 !important;
    }

    /* Hiển thị nhãn dựa trên data-label trong JS */
    .cell-shift::before, .cell-note::before {
        content: attr(data-label);
        width: 80px;
        font-weight: 600;
        color: #555;
        font-size: 13px;
        flex-shrink: 0;
    }
    
    .xoay-ca-card {
        width: min(1400px, 96vw);
    }
    
    @media (max-width: 768px) {

        .xoay-ca-card {
            width: 100%;
            border-radius: 0;
            min-height: 100vh;
        }
    }
}

.xoay-ca-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.xoay-ca-title {
    font-size: 16px;
    font-weight: 700;
    color: #2563eb;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.xoay-ca-month {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;

    flex-shrink: 0;
}

@media (max-width: 768px) {

    .xoay-ca-header {
        padding: 12px 14px;
    }

    .xoay-ca-title {
        font-size: 15px;
    }

    .xoay-ca-month {
        font-size: 13px;
    }
}