/* Műszak Beosztás Teljes Képernyős Naptár (Kép alapján) */
.shift-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    background-color: #ffffff;
    max-width: 100% !important;
}

/* Felső eszköztár */
.dashboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Új: Drag-and-Drop Forrás Konténer a felső sávban */
.drag-source-container {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-right: 16px;
}

.drag-source-container .shift-block {
    margin-bottom: 0;
    padding: 6px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: grab;
    user-select: none;
}

.drag-source-container .shift-title {
    margin-bottom: 0;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #fff;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

#currentMonthTitle {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
}

#currentMonthTitle span {
    color: #22c55e;
}

.month-nav {
    display: flex;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
}

.nav-btn {
    background: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
}

.nav-btn:not(:last-child) {
    border-right: 1px solid #cbd5e1;
}

.nav-btn:hover {
    background: #f1f5f9;
}

.current-btn {
    color: #0f172a;
}

/* Beállítások panel */
.settings-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}

.planner-grid, .textareas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field span {
    font-size: 12px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
}

.field input, .field select, .field textarea {
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-family: inherit;
}

/* Naptár Táblázat */
.board-shell {
    width: 100%;
    overflow-x: auto;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
    table-layout: fixed;
}

.board-table th, .board-table td {
    border: 1px solid #e2e8f0;
    padding: 8px;
    vertical-align: top;
}

.board-table th {
    background: #fff;
    text-align: center;
    font-weight: 700;
    color: #0f172a;
}

.col-name { width: 220px; text-align: left !important; }
.col-hours { width: 120px; }
.col-total { width: 80px; }

/* Fejléc napok */
.day-header {
    background: #1e293b;
    color: #fff;
    border-radius: 4px;
    padding: 6px;
    font-size: 13px;
    margin-bottom: 4px;
    text-transform: capitalize;
}

.day-header.weekend {
    background: #22c55e;
}

/* Dolgozó cella */
.emp-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.emp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
}

.emp-name {
    font-weight: 600;
    font-size: 14px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.emp-copy {
    margin-left: auto;
    color: #cbd5e1;
    cursor: pointer;
}

.emp-copy:hover { color: #64748b; }

/* Óra cellák */
.hours-cell {
    text-align: center;
    font-size: 12px;
    color: #475569;
}

.hours-cell i {
    margin-right: 4px;
    color: #94a3b8;
}

.total-cell {
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    vertical-align: middle !important;
}

/* Napi cellák & Műszakok */
.day-cell {
    background: #f8fafc;
    min-height: 60px;
    position: relative;
}

.day-cell.weekend-cell {
    background: #dcfce7;
}

.empty-shift {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    display: block;
    margin-top: 4px;
    margin-left: 4px;
}

.shift-block {
    border-radius: 6px;
    padding: 8px;
    color: #fff;
    font-size: 12px;
    margin-bottom: 4px;
    cursor: grab;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.shift-block:active { cursor: grabbing; }

.shift-morning { background: #f97316; } /* Narancs a képen */
.shift-evening { background: #0ea5e9; } /* Kék a képen */
.shift-long { background: #8b5cf6; } /* Lila a hosszú műszakhoz */
.shift-leave { background: #ef4444; } /* Piros szabadság */

.shift-title {
    font-weight: 700;
    margin-bottom: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shift-delete {
    display: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    padding: 2px;
}

.shift-delete:hover {
    color: #fff;
    transform: scale(1.1);
}

.shift-block:not(.drag-source):hover .shift-delete {
    display: inline-block;
}

.shift-desc {
    font-size: 11px;
    opacity: 0.9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Drag and Drop kiemelés */
.drag-over {
    background: #e2e8f0 !important;
    border: 2px dashed #94a3b8 !important;
}

/* Tfoot */
#boardFooter th {
    text-align: left;
    background: #fff;
    border-top: 2px solid #cbd5e1;
}

#boardFooter .total-label {
    color: #64748b;
    font-weight: 600;
}

#boardFooter .total-value {
    text-align: center;
    font-weight: 700;
    color: #0f172a;
}

@media print {
    @page {
        size: landscape;
        margin: 10mm;
    }

    .main-header,
    .main-footer,
    .dashboard-toolbar,
    .settings-panel,
    .emp-copy {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .container {
        margin: 0;
        padding: 0;
        max-width: none;
    }

    .shift-container {
        padding: 0;
    }

    .board-shell {
        overflow: visible;
    }

    .board-table {
        border-collapse: collapse;
        width: 100%;
        min-width: 0;
    }
    
    .board-table th, .board-table td {
        border: 1px solid #cbd5e1;
        padding: 4px;
        font-size: 11px;
    }

    .day-cell {
        min-height: 40px;
    }

    .col-name { width: 140px; }
    .col-hours { width: 80px; }
    .col-total { width: 60px; }

    .shift-block {
        padding: 4px;
        margin-bottom: 2px;
        border: 1px solid rgba(0,0,0,0.1);
    }

    .shift-title {
        font-size: 10px;
    }

    .shift-desc {
        font-size: 9px;
    }

    .shift-delete {
        display: none !important;
    }

    .emp-avatar {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .emp-name {
        font-size: 12px;
    }

    /* Színek nyomtatáshoz, ha a böngésző engedi a háttérszínt */
    .shift-morning, .shift-evening, .shift-long, .shift-leave {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
