.haccp-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.card-panel,
.summary-card,
.record-section {
    background: var(--card-bg);
    border: 1px solid rgba(226, 232, 240, 0.7);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.card-panel {
    padding: 28px;
}

.toolbar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.field span {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 16px;
    background: #fff;
    padding: 14px 16px;
    font-size: 15px;
    color: var(--text-main);
}

.toolbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.summary-card {
    padding: 24px;
}

.summary-card strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 34px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
}

.summary-label {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.08);
    color: #166534;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.summary-card p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.6;
}

.record-section {
    padding: 28px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.section-head h2 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
}

.section-head h2 i {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #84cc16);
}

.section-head p {
    margin: 0;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.7;
}

.table-shell {
    overflow-x: auto;
}

.record-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.record-table th,
.record-table td {
    border: 1px solid #1e293b;
    padding: 10px;
    text-align: left;
    font-size: 14px;
}

.record-table th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}

.text-center {
    text-align: center !important;
}

.bg-blue {
    background-color: #3b82f6 !important;
    color: white !important;
}

.bg-blue th {
    background-color: #3b82f6 !important;
    color: white !important;
    border-color: #1e40af;
}

.col-day {
    width: 120px;
    text-align: center !important;
    font-weight: bold;
}

.col-daynum {
    width: 60px;
    text-align: center !important;
}

.w-25 {
    width: 25%;
}

.border-right-heavy {
    border-right: 2px solid #1e293b !important;
}

.record-table input[type="text"] {
    width: 100%;
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    padding: 2px 4px;
}

.record-table td .compact-input {
    min-width: 84px;
}

.cleaning-table td {
    text-align: center;
}

.cleaning-table td:first-child,
.cleaning-table td:nth-child(2),
.cleaning-table td:nth-child(3),
.cleaning-table td:last-child {
    text-align: left;
}

.cleaning-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: auto;
}

@media (max-width: 768px) {
    .card-panel,
    .record-section {
        padding: 20px;
    }

    .section-head h2 {
        font-size: 24px;
    }

    .toolbar-actions {
        justify-content: stretch;
    }

    .toolbar-actions .btn-primary,
    .toolbar-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   HACCP MINTÁK - NYOMTATÁSI NÉZET (A4 FEKVŐ)
   ========================================= */

.haccp-doc-header {
    border: 2px solid #1e293b;
    border-bottom: none;
    display: flex;
    background: #fff;
}

.haccp-doc-info {
    width: 30%;
    border-right: 2px solid #1e293b;
    padding: 10px;
    font-size: 14px;
}

.haccp-doc-info p {
    margin: 4px 0;
}

.haccp-doc-title {
    width: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.haccp-doc-title.full-width {
    width: 100%;
    padding: 10px;
}

.haccp-doc-title h2 {
    margin: 0;
    font-size: 22px;
    text-transform: uppercase;
}

.cleaning-header {
    flex-direction: column;
}

.cleaning-meta {
    border-top: 2px solid #1e293b;
    font-size: 14px;
}

.meta-row {
    display: flex;
    width: 100%;
}

.meta-row.border-top {
    border-top: 1px solid #1e293b;
}

.meta-cell {
    padding: 6px 10px;
    flex: 1;
}

.meta-cell.border-right {
    border-right: 1px solid #1e293b;
}

.haccp-doc-footer {
    border: 2px solid #1e293b;
    border-top: none;
    background: #fff;
    margin-bottom: 40px;
}

.footer-note-box {
    padding: 10px;
    border-bottom: 1px solid #1e293b;
    min-height: 80px;
}

.footer-note-box p {
    margin: 0 0 10px 0;
}

.footer-meta {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 12px;
}

.text-right {
    text-align: right;
}

.mt-4 { margin-top: 16px; }

/* ═══════════════════════════════════════════════════════════════
   NYOMTATÁSI STÍLUSOK (A4 FEKVŐ / ÁLLÓ)
   ═══════════════════════════════════════════════════════════════ */

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

    .main-header,
    .main-footer,
    .hero-section,
    .haccp-toolbar,
    .summary-grid,
    .info-box {
        display: none !important;
    }

    body {
        background: #fff;
        margin: 0;
        padding: 0;
    }

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

    .print-page {
        page-break-after: always;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .print-page:last-child {
        page-break-after: avoid;
    }

    .table-shell {
        overflow: visible;
        border: none;
        border-radius: 0;
    }

    .record-table {
        border: 2px solid #000;
    }

    .record-table th, 
    .record-table td,
    .haccp-doc-header,
    .haccp-doc-footer,
    .haccp-doc-info,
    .cleaning-meta,
    .meta-row.border-top,
    .meta-cell.border-right,
    .footer-note-box {
        border-color: #000 !important;
    }

    .bg-blue {
        background-color: #e2e8f0 !important;
        color: #000 !important;
    }

    .bg-blue th {
        background-color: #e2e8f0 !important;
        color: #000 !important;
        border-color: #000 !important;
    }
    
    input[type="text"] {
        display: none;
    }
}
