/* ==========================================================================
   DIGITALER EINSATZBERICHT - FREIWILLIGE FEUERWEHR MARKDORF
   Screen & DIN A4 Print Design System
   ========================================================================== */

:root {
    --bg-dark: #0f141c;
    --bg-card: #171f2b;
    --bg-card-hover: #1e2838;
    --bg-input: #232d3d;
    --border-color: #2e3b4e;
    --border-focus: #e63946;
    
    --primary-color: #e63946;
    --primary-hover: #d62828;
    --secondary-color: #457b9d;
    --accent-color: #f4a261;
    --accent-green: #2a9d8f;
    --submit-color: #2563eb;
    --submit-hover: #1d4ed8;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Source Code Pro', monospace;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.dark-theme {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-family);
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* App Header */
.app-header {
    background: linear-gradient(135deg, #131a24 0%, #1c2636 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-badge {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #e63946 0%, #b81d24 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
}

.logo-badge.lg {
    width: 60px;
    height: 60px;
    font-size: 2rem;
    margin: 0 auto 16px auto;
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #fff;
}

.brand-text span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-status {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge {
    background: rgba(42, 157, 143, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.report-id-tag {
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent-color);
    border: 1px solid rgba(244, 162, 97, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Workspace Layout */
.workspace {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Navigation */
.sidebar-nav {
    width: 240px;
    background: #121822;
    border-right: 1px solid var(--border-color);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
    width: 100%;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
}

.nav-tab.active {
    background: rgba(230, 57, 70, 0.12);
    border-color: rgba(230, 57, 70, 0.4);
    color: #fff;
}

.tab-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.nav-tab.active .tab-num {
    background: var(--primary-color);
    color: #fff;
}

.tab-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--accent-color);
}

.tab-info {
    display: flex;
    flex-direction: column;
}

.tab-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.tab-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Content Area */
.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-dark);
}

.tab-content {
    display: none;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.25s ease-in-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Cards */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h2 i {
    color: var(--primary-color);
}

.card-body {
    padding: 20px;
}

/* Buttons */
.btn {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.btn-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
    font-weight: 700;
    letter-spacing: 0.2px;
}
.btn-submit:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.6);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}
.btn-secondary:hover {
    background: #3a6886;
}

.btn-accent {
    background: linear-gradient(135deg, #f4a261 0%, #e76f51 100%);
    color: #fff;
}
.btn-accent:hover {
    opacity: 0.95;
    box-shadow: 0 4px 12px rgba(244, 162, 97, 0.3);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--text-muted);
}

.btn-icon-only {
    padding: 9px 12px;
}

.btn-block {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 1rem;
}

.btn-ghost {
    background: transparent;
    color: var(--accent-color);
}
.btn-ghost:hover {
    background: rgba(244, 162, 97, 0.1);
}

.btn-sm {
    padding: 5px 10px;
    font-size: 0.8rem;
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 0.8rem;
}
.btn-text:hover { text-decoration: underline; }

/* Form Controls */
.form-grid {
    display: grid;
    gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.col-1 { grid-column: span 1; }
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }

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

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.form-control {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: #fff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.form-control-sm {
    padding: 6px 10px;
    font-size: 0.85rem;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}
textarea.rows-3 { min-height: 80px; }
textarea.rows-4 { min-height: 100px; }
textarea.rows-6 { min-height: 140px; }

.input-with-suffix {
    display: flex;
    align-items: center;
    position: relative;
}

.input-with-suffix span {
    position: absolute;
    right: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
    pointer-events: none;
}

.input-with-toggle {
    display: flex;
    position: relative;
}

.input-with-toggle .btn-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.input-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* MODAL OVERLAY & LOGIN */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 23, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 36px 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.login-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.login-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 580px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-card.sm { max-width: 400px; }

.modal-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
}
.btn-close:hover { color: #fff; }

.modal-body { padding: 20px; }
.modal-footer {
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.alert {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-top: 10px;
}
.alert-error {
    background: rgba(230, 57, 70, 0.15);
    border: 1px solid rgba(230, 57, 70, 0.4);
    color: #f87171;
}

.smtp-details summary {
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
}

.style-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

/* Custom Checkbox Grid */
.checkbox-category-group h3 {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin: 16px 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-category-group h3:first-child {
    margin-top: 0;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.custom-checkbox.sm {
    padding: 6px 10px;
}

.custom-checkbox:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
}

.custom-checkbox input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #fff;
    font-size: 0.75rem;
    display: none;
}

.custom-checkbox input[type="radio"] ~ .checkmark {
    border-radius: 50%;
}

.custom-checkbox input[type="radio"] ~ .checkmark::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
}

.custom-checkbox input:checked ~ .checkmark::after {
    display: block;
}

.label-text {
    font-size: 0.88rem;
    color: var(--text-main);
}

.label-text small {
    color: var(--text-muted);
    font-weight: normal;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.data-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.table-input {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    width: 80px;
    text-align: center;
}

/* Signature Box */
.signature-box {
    background: var(--bg-input);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px;
}

.signature-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

#signature-pad {
    background: #fff;
    border-radius: 4px;
    width: 100%;
    height: 100px;
    cursor: crosshair;
}

/* Vehicles Grid (Page 3) */
.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 18px;
}

.vehicle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.vehicle-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vehicle-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vehicle-times {
    display: flex;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
}

.vehicle-time-group {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
}
.vehicle-time-group input {
    width: 105px;
    padding: 4px 6px;
    font-size: 0.85rem;
}

.roster-table {
    width: 100%;
    border-collapse: collapse;
}

.roster-table th, .roster-table td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.roster-table th {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.roster-role {
    font-weight: 700;
    color: var(--primary-color);
    width: 45px;
}

.roster-input {
    background: transparent;
    border: 1px solid transparent;
    color: #fff;
    width: 100%;
    padding: 4px 6px;
    border-radius: 4px;
}

.roster-input:focus {
    background: var(--bg-input);
    border-color: var(--border-color);
}

.roster-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

/* Material equipment list box */
.equipment-list-card {
    grid-column: 1 / -1;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.equipment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

/* Archive Grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.archive-card {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.archive-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.archive-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.archive-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.archive-location {
    font-size: 0.88rem;
    color: var(--accent-color);
}

.archive-actions {
    display: flex;
    gap: 8px;
}

/* Preview Toolbar */
.preview-toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 14px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
}
.preview-info i { font-size: 1.3rem; color: var(--accent-color); }

/* DIN A4 Paper Preview Wrapper */
.paper-preview-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding-bottom: 40px;
}

/* PRINT ONLY & FORM STYLES (DIN A4 Form Structure) */
.print-only {
    display: none;
}

.din-a4-page {
    width: 210mm;
    min-height: 297mm;
    background: #ffffff;
    color: #000000;
    padding: 12mm 15mm 12mm 15mm;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10pt;
    line-height: 1.2;
    position: relative;
    box-sizing: border-box;
}

/* Page Header */
.p-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 4px;
    height: 35px;
}

.p-header-logo {
    text-align: right;
}

.p-header-logo img, .p-header-logo svg {
    height: 28px;
}

.p-header-text {
    font-size: 8pt;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #000;
}

/* Form Tables & Layout */
.form-box {
    border: 1.5pt solid #000;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.form-row {
    display: flex;
    border-bottom: 1pt solid #000;
}
.form-row:last-child {
    border-bottom: none;
}

.form-cell {
    padding: 3px 6px;
    border-right: 1pt solid #000;
    box-sizing: border-box;
}
.form-cell:last-child {
    border-right: none;
}

.cell-lbl {
    font-size: 8.5pt;
    font-weight: bold;
    display: block;
    margin-bottom: 2px;
}

.cell-val {
    font-size: 10pt;
    font-weight: normal;
    min-height: 14pt;
    word-break: break-word;
}

.cell-val-bold {
    font-weight: bold;
    font-size: 11pt;
}

/* Page 1 Grid specific */
.p1-top-grid {
    display: grid;
    grid-template-columns: 28% 38% 34%;
    border: 1.5pt solid #000;
}

.p1-times-table {
    width: 100%;
    border-collapse: collapse;
}

.p1-times-table td {
    padding: 2px 4px;
    border-bottom: 1pt solid #000;
    border-right: 1pt solid #000;
    font-size: 9pt;
}
.p1-times-table tr:last-child td {
    border-bottom: none;
}

.p1-checkbox-section {
    border: 1.5pt solid #000;
    border-top: none;
    padding: 4px 6px;
}

.p1-cb-title {
    font-size: 9.5pt;
    font-weight: bold;
    margin-bottom: 4px;
}

.p1-cb-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px 2px;
    margin-bottom: 4px;
}

.p1-cb-item {
    font-size: 7pt;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cb-box {
    width: 10px;
    height: 10px;
    border: 1pt solid #000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8pt;
    font-weight: bold;
    margin-bottom: 2px;
}

.cb-box.checked::after {
    content: '✕';
}

/* Footer Page Numbering */
.p-footer {
    position: absolute;
    bottom: 8mm;
    right: 15mm;
    font-size: 8.5pt;
    font-weight: bold;
}

/* Page 2 Specific */
.p2-materials-table, .p2-org-table {
    width: 100%;
    border-collapse: collapse;
}

.p2-materials-table th, .p2-materials-table td,
.p2-org-table th, .p2-org-table td {
    border: 1pt solid #000;
    padding: 2px 6px;
    font-size: 8.5pt;
}

.p2-materials-table th, .p2-org-table th {
    background: #f0f0f0;
    text-align: left;
}

/* Page 3 Roster Grid */
.p3-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border: 1.5pt solid #000;
    padding: 4px;
}

.p3-vehicle-block {
    border: 1pt solid #000;
    margin-bottom: 6px;
}

.p3-vehicle-head {
    background: #e6e6e6;
    border-bottom: 1pt solid #000;
    padding: 2px 6px;
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 9pt;
}

.p3-vehicle-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 8pt;
}

.p3-vehicle-table td, .p3-vehicle-table th {
    border: 0.5pt solid #000;
    padding: 1px 4px;
}

/* DRAG & DROP ZONE */
.drop-zone {
    border: 2px dashed var(--accent-color);
    border-radius: var(--radius-md);
    padding: 24px 16px;
    text-align: center;
    background: rgba(42, 157, 143, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.drop-zone:hover, .drop-zone.dragover {
    background: rgba(42, 157, 143, 0.18);
    border-color: #264653;
    transform: scale(1.01);
}

.drop-zone-icon {
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.drop-zone-text {
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0;
}

/* PRINT MEDIA QUERIES */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    .din-a4-page {
        box-shadow: none !important;
        margin: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        page-break-after: always;
        break-after: page;
        padding: 10mm 12mm;
    }
    
    .din-a4-page:last-child {
        page-break-after: avoid;
        break-after: avoid;
    }
}
