/* ============================================================
   KI-Tools — Ohl Design System
   ============================================================ */

/* --- Web fonts --- */
@font-face { font-family: "Source Sans 3"; src: url("/static/fonts/SourceSans3-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/static/fonts/SourceSans3-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/static/fonts/SourceSans3-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/static/fonts/SourceSans3-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* --- Tokens --- */
:root {
    --ohl-navy:         #001734;
    --ohl-navy-deep:    #000d24;
    --ohl-navy-soft:    #002e54;
    --ohl-navy-hover:   #042a4d;

    --ohl-orange:       #ec602a;
    --ohl-orange-hover: #d64f1d;
    --ohl-orange-soft:  #fbe7df;

    --ohl-red:          #c0201c;
    --ohl-red-hover:    #a11814;

    --ohl-green:        #16a34a;
    --ohl-amber:        #f59e0b;

    --ohl-bg:           #f4f5f7;
    --ohl-surface:      #ffffff;
    --ohl-surface-alt:  #fafbfc;
    --ohl-border:       #d1d5db;
    --ohl-border-soft:  #e4e7eb;

    --ohl-fg:           #0b1423;
    --ohl-fg-muted:     #5c6675;
    --ohl-fg-subtle:    #8b94a3;

    --ohl-on-navy:       #ffffff;
    --ohl-on-navy-muted: #a8b4c4;

    --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --radius-sm:   4px;
    --radius-md:   6px;
    --radius-lg:   10px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(11, 20, 35, 0.06);
    --shadow-md: 0 8px 24px rgba(11, 20, 35, 0.12);

    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px;

    --dur-fast: 150ms;
    --dur-med:  200ms;
    --ease-out: cubic-bezier(.2, .7, .2, 1);
}

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

.role-hidden { display: none !important; }

body {
    font-family: var(--font-sans);
    background: var(--ohl-bg);
    color: var(--ohl-fg);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ohl-orange); color: #fff; }
:focus-visible { outline: 2px solid var(--ohl-orange); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ============================================================
   HEADER — logo on white + navy bar
   ============================================================ */
header {
    background: var(--ohl-navy);
    color: #fff;
    display: flex;
    align-items: stretch;
    min-height: 56px;
}

.header-logo-holder {
    background: #fff;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo-chip {
    height: 32px;
    width: auto;
    display: block;
}

.header-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 20px;
    max-width: none;
    margin: 0;
}

header h1 {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.subtitle {
    font-size: 12px;
    color: var(--ohl-on-navy-muted);
    opacity: 1;
}

.header-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-header {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 13px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: background var(--dur-fast);
}

.btn-header:hover { background: rgba(255,255,255,0.08); }
.btn-header svg { width: 14px; height: 14px; }

.header-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,0.22);
}

.user-display {
    font-size: 13px;
    color: var(--ohl-on-navy-muted);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================================
   TABS
   ============================================================ */
.tab-bar {
    background: #fff;
    border-bottom: 1px solid var(--ohl-border-soft);
}

.tab-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    padding: 0 24px;
}

.tab {
    background: transparent;
    border: none;
    padding: 16px 18px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ohl-fg-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
    font-weight: 500;
    transition: color var(--dur-fast);
}

.tab:hover { color: var(--ohl-navy); background: transparent; }
.tab.active { color: var(--ohl-navy); font-weight: 600; border-bottom-color: var(--ohl-orange); }

.tab-page { display: none; }
.tab-page.active { display: block; }

main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px 24px 40px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    padding: 9px 16px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--dur-fast);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: var(--ohl-orange);
    color: #fff;
}

.btn-primary:hover:not(:disabled) { background: var(--ohl-orange-hover); }

.btn-secondary {
    background: #fff;
    color: var(--ohl-fg);
    border-color: var(--ohl-border);
}

.btn-secondary:hover:not(:disabled) { background: var(--ohl-border-soft); }

.btn-danger {
    background: #fff;
    color: var(--ohl-red);
    border-color: var(--ohl-border);
}

.btn-danger:hover:not(:disabled) { background: #fff1f1; border-color: var(--ohl-red); }

.btn-small {
    padding: 5px 10px;
    font-size: 13px;
}

.btn-large {
    padding: 11px 24px;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ms-logo-bg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--ohl-border-soft);
}

/* ============================================================
   UPLOAD / DROP ZONE
   ============================================================ */
#upload-section { margin-bottom: 18px; }

#drop-zone {
    position: relative;
    background: #fff;
    border: 2px dashed var(--ohl-border);
    border-radius: var(--radius-lg);
    padding: 44px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--dur-fast);
}

#drop-zone:hover,
#drop-zone.dragover {
    border-color: var(--ohl-orange);
    background: var(--ohl-orange-soft);
}

.drop-icon { color: var(--ohl-fg-muted); margin-bottom: 10px; }
.drop-text { font-size: 17px; font-weight: 500; margin-bottom: 4px; }
.drop-hint { font-size: 13px; color: var(--ohl-fg-muted); }

/* ============================================================
   MANUAL ENTRY
   ============================================================ */
.model-select-row {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 2;
}

.model-select-row label {
    font-size: 12px;
    color: var(--text-light);
    white-space: nowrap;
}

.model-select-row select {
    font-size: 12px;
}

.manual-entry-trigger {
    text-align: center;
    margin-top: 12px;
}

.manual-entry-trigger .btn {
    padding: 11px 28px;
    font-size: 15px;
}

.manual-entry-card {
    background: var(--ohl-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.manual-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.manual-entry-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--ohl-navy);
}

/* ============================================================
   PROCESSING SPINNER
   ============================================================ */
.processing-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--ohl-border);
    border-top-color: var(--ohl-orange);
    border-radius: 50%;
    margin: 0 auto 1rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   SPLIT VIEW — Preview + Data
   ============================================================ */
.split-view {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.preview-panel,
.data-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.preview-panel h2,
.data-panel h2 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ohl-border-soft);
}

.page-block { margin-bottom: 24px; }
.page-block:last-child { margin-bottom: 12px; }

.page-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--ohl-navy);
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--ohl-border-soft);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--ohl-orange);
}

.image-container {
    max-height: 80vh;
    overflow-y: auto;
    border-radius: var(--radius-sm);
}

.image-container img { width: 100%; height: auto; display: block; }

/* ============================================================
   FORM FIELDS
   ============================================================ */
.field-row { display: flex; gap: 10px; margin-bottom: 10px; }

.field-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.field-group.flex-2 { flex: 2; }

.field-group label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ohl-fg-muted);
}

.field-input {
    padding: 7px 10px;
    border: 1px solid var(--ohl-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--ohl-fg);
    background: #fff;
    transition: border-color var(--dur-fast);
}

.field-input:focus {
    outline: none;
    border-color: var(--ohl-orange);
    box-shadow: 0 0 0 3px rgba(236, 96, 42, 0.15);
}

.field-input[readonly] { background: var(--ohl-surface-alt); color: var(--ohl-fg); }
.field-input.validation-error { border-color: var(--ohl-red); background: #fff5f5; }

.validation-msg {
    position: absolute;
    bottom: -1.1rem;
    left: 0;
    font-size: 11px;
    color: var(--ohl-red);
    font-weight: 500;
    white-space: nowrap;
}

.field-input.match-high { border-color: var(--ohl-green); }
.field-input.match-medium { border-color: var(--ohl-amber); }
.field-input.match-none { border-color: var(--ohl-red); }

select.field-input { appearance: auto; cursor: pointer; }

/* ============================================================
   CUSTOMER SEARCH DROPDOWN
   ============================================================ */
.customer-search-group { position: relative; padding-bottom: 2px; }
.customer-input-wrapper { position: relative; }

.customer-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--ohl-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.customer-option {
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 13px;
    border-bottom: 1px solid var(--ohl-border-soft);
}

.customer-option:last-child { border-bottom: none; }
.customer-option:hover { background: var(--ohl-orange-soft); }

.customer-option .nr {
    font-family: var(--font-mono);
    font-weight: 600;
    min-width: 50px;
    color: var(--ohl-navy);
}

.customer-option .name {
    color: var(--ohl-fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-info {
    font-size: 11px;
    font-weight: 500;
    min-height: 1rem;
    line-height: 1rem;
    margin-top: -4px;
    color: var(--ohl-fg-muted);
    grid-column: 1 / -1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-info.good { color: var(--ohl-green); }
.match-info.warn { color: var(--ohl-amber); }
.match-info.bad  { color: var(--ohl-red); }

/* ============================================================
   TOUR CARDS
   ============================================================ */
.tour-card {
    border: 1px solid var(--ohl-border-soft);
    border-radius: var(--radius-md);
    padding: 12px;
    margin-bottom: 10px;
    background: var(--ohl-bg);
}

.tour-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 12px;
}

.tour-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ohl-navy);
}

/* ============================================================
   EXPORT SECTION
   ============================================================ */
#export-section {
    margin-top: 24px;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.export-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.export-header h2 {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.export-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    align-items: center;
}

.export-toolbar .field-input { flex: 1; }
.status-filter-select { flex: 0 0 auto; width: auto; max-width: 170px; }

.export-select-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.selected-info {
    font-size: 13px;
    color: var(--ohl-fg-muted);
    white-space: nowrap;
    margin-left: 4px;
}

.badge {
    background: var(--ohl-orange);
    color: #fff;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    font-weight: 600;
}

/* ============================================================
   EXPORT TABLE
   ============================================================ */
.table-wrapper { overflow-x: auto; }

#export-table { width: 100%; border-collapse: collapse; font-size: 13px; }

#export-table th {
    background: var(--ohl-border-soft);
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ohl-fg-muted);
}

#export-table td {
    padding: 10px 12px;
    border-top: 1px solid var(--ohl-border-soft);
}

#export-table tbody tr:nth-child(even) td { background: var(--ohl-orange-soft); }

#export-table .empty-row td {
    text-align: center;
    padding: 32px;
    color: var(--ohl-fg-muted);
    background: transparent !important;
}

.col-check { width: 36px; text-align: center; }
.col-status { width: 80px; text-align: center; }
.col-img { width: 44px; position: relative; }

.status-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-badge.new { background: #d9e6fa; color: #002e54; }
.status-badge.exported { background: #dcfce7; color: #15803d; }

/* Mono class for tabular data */
.mono { font-family: var(--font-mono); }

/* --- Row action buttons --- */
.col-info { width: 36px; text-align: center; }
.col-entry-actions { width: 80px; }

.entry-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
}

.edit-entry-btn {
    background: transparent;
    border: 1px solid var(--ohl-border);
    border-radius: var(--radius-sm);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ohl-fg-muted);
    font-size: 14px;
    transition: all var(--dur-fast);
}

.edit-entry-btn:hover { color: var(--ohl-orange); border-color: var(--ohl-orange); }

.save-entry-btn {
    background: var(--ohl-orange);
    color: #fff;
    border: 1px solid var(--ohl-orange);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    font-family: inherit;
    transition: all var(--dur-fast);
}

.save-entry-btn:hover { background: var(--ohl-orange-hover); }

.cancel-entry-btn {
    background: transparent;
    border: 1px solid var(--ohl-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 4px 8px;
    font-size: 12px;
    font-family: inherit;
    color: var(--ohl-fg-muted);
    transition: all var(--dur-fast);
}

.cancel-entry-btn:hover { background: var(--ohl-border-soft); }

.delete-btn {
    background: transparent;
    border: 1px solid var(--ohl-border);
    border-radius: var(--radius-sm);
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--ohl-fg-muted);
    font-size: 16px;
    line-height: 1;
    transition: all var(--dur-fast);
}

.delete-btn:hover { color: var(--ohl-red); border-color: var(--ohl-red); background: #fff1f1; }

/* --- Info popover --- */
.info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--ohl-border);
    border-radius: 50%;
    background: var(--ohl-surface-alt);
    cursor: pointer;
    color: var(--ohl-fg-muted);
    font-size: 11px;
    font-weight: 700;
    font-family: inherit;
    transition: all var(--dur-fast);
    position: relative;
}

.info-btn:hover { border-color: var(--ohl-navy); color: var(--ohl-navy); background: #fff; }

.info-popover {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 6px;
    background: #fff;
    border: 1px solid var(--ohl-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 12px 14px;
    z-index: 200;
    min-width: 220px;
    text-align: left;
    font-weight: 400;
    white-space: nowrap;
}

.info-popover.active { display: block; }

.info-popover-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 3px 0;
    font-size: 13px;
    color: var(--ohl-fg);
}

.info-popover-row + .info-popover-row {
    border-top: 1px solid var(--ohl-border-soft);
    margin-top: 3px;
    padding-top: 6px;
}

.info-popover-label {
    color: var(--ohl-fg-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.info-popover-value { font-size: 13px; }

/* --- Export pagination --- */
.export-pagination {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--ohl-border-soft);
    position: relative;
}

.export-page-info {
    font-size: 13px;
    color: var(--ohl-fg-muted);
    order: 0;
    white-space: nowrap;
}

.export-page-size {
    display: flex;
    align-items: center;
    order: 2;
    margin-left: auto;
}

.page-size-select {
    padding: 4px 8px;
    border: 1px solid var(--ohl-border);
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    color: var(--ohl-fg);
}

.export-page-nav {
    order: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    align-items: center;
}

.page-nav-btn {
    padding: 4px 10px;
    border: 1px solid var(--ohl-border);
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all var(--dur-fast);
}

.page-nav-btn:hover:not(:disabled) { border-color: var(--ohl-orange); color: var(--ohl-orange); }
.page-nav-btn.active { background: var(--ohl-orange); color: #fff; border-color: var(--ohl-orange); }
.page-nav-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.page-dots {
    font-size: 13px;
    color: var(--ohl-fg-muted);
    padding: 0 4px;
}

/* --- Inline editing row --- */
#export-table tr.editing-row td {
    background: var(--ohl-orange-soft) !important;
    padding: 6px 8px;
}

#export-table .edit-field {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid var(--ohl-orange);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
}

/* --- Thumb preview button --- */
.thumb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--ohl-border);
    border-radius: var(--radius-sm);
    background: var(--ohl-surface-alt);
    cursor: pointer;
    color: var(--ohl-navy);
    transition: all var(--dur-fast);
    padding: 0;
}

.thumb-btn:hover { border-color: var(--ohl-orange); color: var(--ohl-orange); background: var(--ohl-orange-soft); }
.thumb-btn svg { width: 16px; height: 16px; }

.manual-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    background: var(--ohl-navy);
    color: #fff;
    white-space: nowrap;
}

.manual-info-btn {
    cursor: pointer;
    position: relative;
}

.manual-info-btn > .info-popover {
    left: 0;
    right: auto;
}

/* ============================================================
   IMAGE MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-md);
}

.modal-content img { display: block; max-width: 100%; height: auto; }

.modal-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background var(--dur-fast);
}

.modal-close:hover { background: rgba(0, 0, 0, 0.8); }

.datafiles-modal-content {
    width: 700px;
    padding: 24px;
}

.datafiles-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.datafiles-hint {
    font-size: 12px;
    color: var(--ohl-fg-muted);
}

#datafiles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

#datafiles-table th {
    background: var(--ohl-border-soft);
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ohl-fg-muted);
}

#datafiles-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ohl-border-soft);
}

#datafiles-table tbody tr:nth-child(even) td { background: var(--ohl-orange-soft); }
#datafiles-table tr:hover td { background: var(--ohl-border-soft); }
#datafiles-table .col-actions { width: 140px; text-align: right; }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 10px 18px;
    border-radius: var(--radius-md);
    color: white;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: slideIn 0.2s ease-out;
    max-width: 400px;
}

.toast.success { background: var(--ohl-green); }
.toast.error   { background: var(--ohl-red); }
.toast.info    { background: var(--ohl-navy); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   KUNDEN / USER EDITOR (shared)
   ============================================================ */
.kunden-section {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px;
}

.kunden-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.kunden-search-wrapper { flex: 1; }
.kunden-search-wrapper .field-input { width: 100%; }

.kunden-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.kunden-import-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.kunden-edit-card {
    background: var(--ohl-orange-soft);
    border: 1px solid #f5cdb8;
    border-radius: var(--radius-md);
    padding: 14px;
    margin-bottom: 12px;
}

.kunden-edit-card h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--ohl-navy);
}

.kunden-count {
    font-size: 13px;
    color: var(--ohl-fg-muted);
    margin-bottom: 10px;
}

#kunden-table,
#user-table,
#ips-titel-table,
#feiertage-table,
#adressen-result-table,
#stellplatz-result-table,
#remi-result-table { width: 100%; border-collapse: collapse; font-size: 13px; }

#kunden-table th,
#user-table th,
#ips-titel-table th,
#feiertage-table th,
#adressen-result-table th,
#stellplatz-result-table th,
#remi-result-table th {
    background: var(--ohl-border-soft);
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ohl-fg-muted);
}

#kunden-table td,
#user-table td,
#ips-titel-table td,
#feiertage-table td,
#adressen-result-table td,
#stellplatz-result-table td,
#remi-result-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ohl-border-soft);
}

#kunden-table tbody tr:nth-child(even) td,
#user-table tbody tr:nth-child(even) td,
#ips-titel-table tbody tr:nth-child(even) td,
#feiertage-table tbody tr:nth-child(even) td,
#adressen-result-table tbody tr:nth-child(even) td,
#stellplatz-result-table tbody tr:nth-child(even) td,
#remi-result-table tbody tr:nth-child(even) td { background: var(--ohl-orange-soft); }

#kunden-table tr:hover td,
#user-table tr:hover td,
#ips-titel-table tr:hover td,
#feiertage-table tr:hover td,
#adressen-result-table tr:hover td,
#stellplatz-result-table tr:hover td,
#remi-result-table tr:hover td { background: var(--ohl-border-soft); }

#kunden-table .col-nr { width: 140px; }
#kunden-table .col-actions,
#user-table .col-actions,
#ips-titel-table .col-actions { width: 100px; text-align: right; }

#kunden-table .editing td,
#user-table .editing td,
#ips-titel-table .editing-row td { background: var(--ohl-orange-soft); padding: 6px 8px; }

#kunden-table .editing .edit-input,
#user-table .editing .edit-input,
#ips-titel-table .editing-row .edit-field {
    width: 100%;
    padding: 5px 8px;
    border: 1px solid var(--ohl-orange);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
}

.row-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
}

.row-actions button {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ohl-border);
    background: white;
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    transition: all var(--dur-fast);
}

.row-actions .edit-btn:hover,
.row-actions .edit-user-btn:hover { border-color: var(--ohl-orange); color: var(--ohl-orange); }
.row-actions .delete-row-btn:hover,
.row-actions .delete-user-btn:hover { border-color: var(--ohl-red); color: var(--ohl-red); background: #fff1f1; }

.row-actions .save-btn,
.row-actions .save-user-btn { background: var(--ohl-orange); color: white; border-color: var(--ohl-orange); }
.row-actions .save-btn:hover,
.row-actions .save-user-btn:hover { background: var(--ohl-orange-hover); }
.row-actions .cancel-btn:hover,
.row-actions .cancel-user-btn:hover { background: var(--ohl-border-soft); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    position: relative;
    gap: 4px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--ohl-border-soft);
}

.pagination button {
    padding: 5px 10px;
    border: 1px solid var(--ohl-border);
    background: white;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
    transition: all var(--dur-fast);
}

.pagination button:hover:not(:disabled) { border-color: var(--ohl-orange); color: var(--ohl-orange); }
.pagination button.active { background: var(--ohl-orange); color: white; border-color: var(--ohl-orange); }
.pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.pagination .page-info { font-size: 13px; color: var(--ohl-fg-muted); margin: 0 4px; }

/* ============================================================
   ROLE BADGES
   ============================================================ */
.role-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.role-badge.admin { background: #d9e6fa; color: var(--ohl-navy); }
.role-badge.user  { background: #dcfce7; color: #166534; }
.role-badge.readonly { background: var(--ohl-border-soft); color: var(--ohl-fg-muted); }

/* ============================================================
   LOGIN OVERLAY — navy + network-dot pattern
   ============================================================ */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    background: var(--ohl-navy);
    background-image: url("/static/assets/network-bg.svg");
    background-size: cover;
    background-position: center;
}

.login-overlay[hidden] { display: none; }

.login-logo-bar {
    background: #fff;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.login-logo-bar img {
    height: 32px;
    width: auto;
}

.login-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
    text-align: center;
    max-width: 420px;
    width: 90%;
}

.login-card h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ohl-navy);
}

.login-msg {
    color: var(--ohl-fg-muted);
    margin-bottom: 24px;
    font-size: 15px;
}

.login-error {
    color: var(--ohl-red);
    margin-top: 12px;
    font-size: 14px;
}

/* ============================================================
   IPS ZOLL
   ============================================================ */
.sub-tab-bar {
    display: flex;
    background: var(--ohl-surface);
    border: 1px solid var(--ohl-border-soft);
    border-radius: var(--radius-lg);
    padding: 4px;
    gap: 4px;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.sub-tab {
    flex: 1;
    padding: 9px 18px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--ohl-fg-muted);
    cursor: pointer;
    transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast);
}
.sub-tab:hover {
    color: var(--ohl-fg);
    background: var(--ohl-surface-alt);
}
.sub-tab.active {
    color: var(--ohl-on-navy);
    background: var(--ohl-navy);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}
.sub-tab-page {
    display: none;
}
.sub-tab-page.active {
    display: block;
}
.btn-icon {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--ohl-border);
    background: white;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: all var(--dur-fast);
}
.btn-icon:hover {
    border-color: var(--ohl-orange);
    color: var(--ohl-orange);
}
.btn-icon-danger:hover {
    border-color: var(--ohl-red);
    color: var(--ohl-red);
    background: #fff1f1;
}

#zoll-drop-zone {
    position: relative;
    border: 2px dashed var(--ohl-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    background: var(--ohl-surface);
}
#zoll-drop-zone:hover, #zoll-drop-zone.dragover {
    border-color: var(--ohl-orange);
    background: var(--ohl-orange-soft);
}

.zoll-vorgang-card {
    background: var(--ohl-surface);
    border: 1px solid var(--ohl-border-soft);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.zoll-vorgang-card.zoll-stop {
    border-left: 4px solid var(--ohl-red);
}
.zoll-vorgang-card.zoll-ok {
    border-left: 4px solid var(--ohl-green);
}
.zoll-vorgang-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}
.zoll-vorgang-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.zoll-vorgang-info strong {
    font-size: 1rem;
    color: var(--ohl-fg);
}
.zoll-meta {
    font-size: 0.85rem;
    color: var(--ohl-fg-muted);
}
.zoll-status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.zoll-badge-stop {
    background: #fde8e8;
    color: var(--ohl-red);
}
.zoll-badge-ok {
    background: #dcfce7;
    color: var(--ohl-green);
}
.zoll-stop-detail {
    background: #fff5f5;
    border: 1px solid #fecaca;
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    color: var(--ohl-red);
    margin-bottom: 0.75rem;
}
.zoll-vorgang-details {
    margin-top: 0.5rem;
}
.zoll-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.4rem 1.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
.zoll-label {
    font-weight: 600;
    color: var(--ohl-fg-muted);
}
.zoll-detail-grid code {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    background: var(--ohl-surface-alt);
    padding: 1px 5px;
    border-radius: var(--radius-sm);
}
.zoll-titles-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.zoll-titles-table th {
    text-align: left;
    padding: 6px 10px;
    background: var(--ohl-surface-alt);
    border-bottom: 2px solid var(--ohl-border);
    font-weight: 600;
    color: var(--ohl-fg-muted);
    font-size: 0.8rem;
}
.zoll-titles-table td {
    padding: 5px 10px;
    border-bottom: 1px solid var(--ohl-border-soft);
}
.zoll-title-match td:nth-child(3) {
    color: var(--ohl-green);
    font-weight: 500;
}
.zoll-title-nomatch td:nth-child(3) {
    color: var(--ohl-amber);
    font-style: italic;
}
.zoll-issue-ok {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}
.zoll-issue-bad {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--ohl-red);
    font-weight: 600;
}
.zoll-header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.zoll-edit-field {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 3px 6px;
    border: 1px solid var(--ohl-border);
    border-radius: var(--radius-sm);
    background: var(--ohl-surface);
    outline: none;
    transition: border-color 0.15s;
}
.zoll-edit-field:focus {
    border-color: var(--ohl-orange);
}
.zoll-edit-meta {
    width: 140px;
}
.zoll-edit-title {
    width: 100%;
}
.zoll-input-error {
    border-color: var(--ohl-red) !important;
    background: #fff5f5;
}
.zoll-remove-title-btn {
    background: none;
    border: none;
    color: var(--ohl-fg-subtle);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    line-height: 1;
}
.zoll-remove-title-btn:hover {
    color: var(--ohl-red);
    background: #fde8e8;
}
.zoll-titles-table th:last-child,
.zoll-titles-table td:last-child {
    width: 30px;
    text-align: center;
}
.empty-hint {
    text-align: center;
    color: var(--ohl-fg-muted);
    padding: 2rem;
}
.zoll-progress-wrapper {
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}
.zoll-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--ohl-border-soft);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.zoll-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--ohl-orange);
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}
.zoll-progress-label {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--ohl-fg-muted);
    margin-top: 0.4rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .split-view { grid-template-columns: 1fr; }
}

/* Catlon Liste */
#catlon-drop-zone {
    position: relative;
    border: 2px dashed var(--ohl-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--dur-fast);
    background: var(--ohl-surface);
}
#catlon-drop-zone:hover,
#catlon-drop-zone.drag-over {
    border-color: var(--ohl-orange);
    background: var(--ohl-orange-soft);
}

.catlon-vorgang-card {
    background: white;
    border: 1px solid var(--ohl-border-soft);
    border-left: 4px solid var(--ohl-border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}
.catlon-vorgang-card.status-ok { border-left-color: var(--ohl-green); }
.catlon-vorgang-card.status-blockiert { border-left-color: var(--ohl-red); }
.catlon-vorgang-card.status-manuelle-pruefung { border-left-color: var(--ohl-amber); }

.catlon-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.catlon-header h3 { margin: 0; }

.catlon-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}
.catlon-badge.ok { background: #d4edda; color: #155724; }
.catlon-badge.blockiert { background: #f8d7da; color: #721c24; }
.catlon-badge.manuelle-pruefung { background: #fff3cd; color: #856404; }

.catlon-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px 16px;
    margin-bottom: 12px;
}
.catlon-detail-grid label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ohl-fg-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}
.catlon-detail-grid .field-value {
    font-size: 13px;
    padding: 4px 0;
}
.catlon-detail-grid input,
.catlon-detail-grid select {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--ohl-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
}
.catlon-detail-grid input:focus,
.catlon-detail-grid select:focus {
    border-color: var(--ohl-orange);
    outline: none;
}

.catlon-errors {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fff8f8;
    border-radius: var(--radius-sm);
    border: 1px solid #f5c6cb;
}
.catlon-errors.warnings {
    background: #fffdf5;
    border-color: #ffc107;
}
.catlon-error-item {
    font-size: 12px;
    padding: 2px 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.catlon-error-code {
    font-weight: 700;
    font-size: 11px;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    background: #f8d7da;
    color: #721c24;
}
.catlon-error-code.r-code {
    background: #fff3cd;
    color: #856404;
}

#monatskurse-table,
#monatskurse-table th,
#monatskurse-table td { /* shares pattern with kunden-table */ }

#monatskurse-table { width: 100%; border-collapse: collapse; font-size: 13px; }
#monatskurse-table th {
    background: var(--ohl-border-soft);
    padding: 10px 12px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ohl-fg-muted);
}
#monatskurse-table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--ohl-border-soft);
}
#monatskurse-table tbody tr:nth-child(even) td { background: var(--ohl-orange-soft); }
#monatskurse-table tr:hover td { background: var(--ohl-border-soft); }
#monatskurse-table .col-actions { width: 140px; text-align: right; }

/* Stellplatzberechnung */
.stellplatz-upload-form {
    background: var(--ohl-surface);
    border: 1px solid var(--ohl-border-soft);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.stellplatz-file-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.stellplatz-file-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ohl-fg-muted);
}
.stellplatz-file-pick input[type="file"] {
    font-size: 13px;
}
.stellplatz-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.stellplatz-stat-card {
    background: var(--ohl-surface);
    border: 1px solid var(--ohl-border-soft);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    flex: 1;
    text-align: center;
}
.stellplatz-stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ohl-orange);
}
.stellplatz-stat-card .stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ohl-fg-muted);
    margin-top: 2px;
}

/* Remi Protokoll */
#remi-drop-zone {
    position: relative;
    border: 2px dashed var(--ohl-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--dur-fast);
    background: var(--ohl-surface);
}
#remi-drop-zone:hover,
#remi-drop-zone.drag-over {
    border-color: var(--ohl-orange);
    background: var(--ohl-orange-soft);
}
.remi-unsicher-card {
    background: #fff8e1;
    border: 1px solid #ffe082;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    font-size: 13px;
}
.remi-unsicher-card ul { margin: 6px 0 0 16px; padding: 0; }
.remi-unsicher-card li { margin-bottom: 4px; }
.remi-edit-input {
    width: 90px;
    padding: 4px 8px;
    border: 1px solid var(--ohl-border-soft);
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: right;
    background: white;
}
.remi-edit-input:focus { border-color: var(--ohl-orange); outline: none; }
.remi-row-unsicher td { background: #fff0f0 !important; }
.remi-row-unsicher:hover td { background: #ffe0e0 !important; }
.remi-warn-badge {
    display: inline-block;
    background: #e53935;
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    margin-left: 4px;
    cursor: help;
}

.remi-preview-modal-content {
    max-width: 900px;
    width: 90vw;
}

/* Adressen Check */
#adressen-drop-zone {
    border: 2px dashed var(--ohl-border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--dur-fast);
    background: var(--ohl-surface);
}
#adressen-drop-zone:hover,
#adressen-drop-zone.dragover {
    border-color: var(--ohl-orange);
    background: var(--ohl-orange-soft);
}

/* --- Packlisten Optimierung --- */
.packliste-drop-zone {
    border: 2px dashed var(--ohl-border);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--dur-fast);
    background: var(--ohl-surface);
}
.packliste-drop-zone:hover,
.packliste-drop-zone.drag-over {
    border-color: var(--ohl-orange);
    background: var(--ohl-orange-soft);
}
.packliste-file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: 10px;
}
.packliste-file-chip {
    display: inline-block;
    background: var(--ohl-navy);
    color: var(--ohl-on-navy);
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.packliste-table {
    font-size: 13px;
}
.packliste-table th {
    white-space: nowrap;
    font-size: 12px;
}
.packliste-pos-row td {
    background: #d9d9d9 !important;
    font-weight: 700;
    border-top: 2px solid #333;
    border-bottom: 2px solid #333;
    padding: 6px 8px;
}
.packliste-zebra td {
    background: #efefef;
}
.packliste-highlight {
    background: #ffc7ce !important;
    font-weight: 500;
}

@media (max-width: 640px) {
    .field-row { flex-direction: column; }
    .tour-grid { grid-template-columns: 1fr; }
    header { flex-direction: column; }
    .header-content { padding: 8px 16px; flex-wrap: wrap; }
    main { padding: 16px; }
    .catlon-detail-grid { grid-template-columns: 1fr; }
}
