/* Seite frontend/round-plan.php */
body {
    margin: 0;
    color: #e5e7eb;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    background-attachment: fixed;
}

main { max-width: 1400px; margin: 24px auto; padding: 0 20px 80px; }
.controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(8px);
    margin-bottom: 16px;
}
.control-group { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.control-group label { font-size: 13px; color: #e5e7eb; font-weight: 700; }
.control-group select {
    min-width: 200px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.18);
    color: #fff;
    padding: 8px 10px;
}
.controls-right {
    margin-left: auto;
    display: flex;
    align-items: flex-end;
}
.print-btn {
    border: 0;
    background: linear-gradient(90deg, #6366f1, #7c3aed);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    align-self: center;
}
.print-plan { display: grid; gap: 12px; }
.plan-table-wrap {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.18);
    overflow: auto;
}
.plan-caption {
    margin: 0 0 8px;
    color: #111827;
    font-weight: 800;
    font-size: 18px;
}
.plan-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    background: #fff;
    color: #111827;
    table-layout: fixed;
}
.plan-table th, .plan-table td {
    border: 1px solid #d1d5db;
    padding: 7px 8px;
    text-align: center;
}
.plan-table th { background: #eef2f7; font-weight: 800; }
.plan-table th:first-child,
.plan-table td:first-child {
    width: 140px;
}
.plan-table td.row-head {
    background: #f8fafc;
    font-weight: 700;
    text-align: left;
}
.plan-table td.empty { background: #f9fafb; color: #9ca3af; }
.status-chip {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.status-finished { background: #dcfce7; color: #166534; }
.status-pending { background: #e5e7eb; color: #374151; }
@page { size: A4 landscape; margin: 6mm; }
@media print {
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
        min-height: 0 !important;
        height: auto !important;
        overflow: visible !important;
    }
    .dashboard-header, .controls, .footer-fixed, #menuOverlay, #menuBackdrop { display: none !important; }
    main {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        overflow: hidden !important;
    }
    .print-plan {
        display: flex !important;
        flex-direction: column !important;
        gap: 1mm !important;
        height: calc(210mm - 12mm) !important;
    }
    .plan-table-wrap {
        background: #fff !important;
        box-shadow: none !important;
        border: 1px solid #000 !important;
        border-radius: 0 !important;
        margin: 0 !important;
        padding: 2px 3px !important;
        flex: 1 1 auto !important;
        display: flex !important;
        flex-direction: column !important;
        page-break-inside: avoid;
        break-inside: avoid-page;
    }
    .plan-caption {
        color: #000 !important;
        font-size: 10px !important;
        line-height: 1.1 !important;
        margin: 0 0 1px !important;
    }
    .plan-table {
        min-width: 0 !important;
        font-size: 9px !important;
        height: 100% !important;
    }
    .plan-table th, .plan-table td {
        padding: 2px 3px !important;
        line-height: 1.1 !important;
        border-color: #000 !important;
        vertical-align: middle !important;
    }
    .plan-table th:first-child,
    .plan-table td:first-child {
        width: 82px !important;
    }
}
