/* CZRM - modern dark UI, self-hosted fonts, no build step */

@font-face {
    font-family: 'Bebas Neue';
    src: url('/fonts/bebas-neue-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/inter-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #0b0d0f;
    --surface: #131619;
    --surface-2: #1a1e22;
    --surface-3: #2b3137;
    --border: #262b30;
    --border-strong: #383e45;
    --text: #f1f3f2;
    --text-muted: #99a1a6;
    --text-faint: #626a70;
    --accent: #27d894;
    --green: #27d894;
    --accent-strong: #1fae78;
    --accent-soft: rgba(39, 216, 148, 0.12);
    --accent-contrast: #04150f;
    --amber: #f5a524;
    --amber-soft: rgba(245, 165, 36, 0.14);
    --red: #f2555f;
    --red-soft: rgba(242, 85, 95, 0.14);
    --blue: #4c9ffe;
    --blue-soft: rgba(76, 159, 254, 0.14);
    --purple: #a78bfa;
    --purple-soft: rgba(167, 139, 250, 0.14);
    --teal: #2dd4bf;
    --teal-soft: rgba(45, 212, 191, 0.14);
    --pink: #f472b6;
    --pink-soft: rgba(244, 114, 182, 0.14);
    --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    --nav-h: 60px;
    --bottom-nav-h: calc(58px + env(safe-area-inset-bottom));
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    color-scheme: dark;
    -webkit-text-size-adjust: 100%;
    /* Unterdrueckt das elastische "Ueberziehen" am Seitenrand (besonders
       spuerbar als Homescreen-App im Standalone-Modus, s. CLAUDE.md
       "iOS-Homescreen-App" - ohne Browser-Chrome drumherum wirkt das
       Gummiband-Verhalten sonst wie ein Bug statt wie normales Scrollen). */
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overscroll-behavior-y: none;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.3px;
    margin: 0;
}

/* ---------- Topbar ---------- */

.topbar {
    height: var(--nav-h);
    border-bottom: 1px solid var(--border);
    background: rgba(11, 13, 15, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 20;
}

.topbar-inner {
    max-width: 1180px;
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.brand {
    display: flex;
    align-items: center;
    line-height: 1;
}

.brand-logo {
    height: 30px;
    width: auto;
    display: block;
}

@media (max-width: 420px) {
    .brand-logo { height: 24px; }
}

.nav {
    display: flex;
    gap: 4px;
}

.nav a {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
}

.nav a:hover {
    color: var(--text);
    background: var(--surface-2);
}

.nav a.active {
    color: var(--accent);
    background: var(--accent-soft);
}

/* ---------- Bottom nav (mobile) ---------- */

.bottom-nav {
    display: none;
}

@media (max-width: 780px) {
    .topbar .nav { display: none; }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: var(--bottom-nav-h);
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(19, 22, 25, 0.96);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        z-index: 30;
        /* Bei vielen Nav-Punkten reicht die Breite nicht mehr fuer flex:1 pro
           Eintrag (Labels liefen ineinander) - stattdessen horizontal
           scrollbar mit fester Mindestbreite pro Eintrag. */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .bottom-nav a {
        flex: 0 0 auto;
        min-width: 62px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        color: var(--text-faint);
        font-size: 11px;
        font-weight: 500;
        padding: 0 3px;
    }

    .bottom-nav a.active {
        color: var(--accent);
    }

    body {
        padding-bottom: var(--bottom-nav-h);
    }
}

/* ---------- Layout ---------- */

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

@media (max-width: 560px) {
    .wrap { padding: 0 14px 40px; }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 14px;
    margin: 26px 0 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.back-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.back-link .icon {
    width: 16px;
    height: 16px;
}

.page-header h1 {
    font-size: 32px;
    color: var(--text);
}

.page-header .eyebrow {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 2px;
    display: block;
}

.subtitle {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-top: 2px;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    border-color: var(--text-faint);
    text-decoration: none;
}

.btn .icon {
    width: 16px;
    height: 16px;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}

.btn-danger {
    border-color: transparent;
    color: var(--red);
    background: var(--red-soft);
}

.btn-danger:hover {
    background: var(--red);
    color: #2a0509;
}

/* ---------- Angenommen/Abgelehnt-Umschalter (Angebotsanfragen) ---------- */

.decision-toggle {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.decision-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 14px;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-muted);
    cursor: pointer;
}

.decision-btn:hover {
    border-color: var(--text-faint);
}

.decision-btn .icon {
    width: 15px;
    height: 15px;
}

/* Immer farbig (nicht nur im aktiven Zustand), damit auf einen Blick klar
   ist, welcher Knopf "Angenommen" bzw. "Abgelehnt" bedeutet - der aktive
   Zustand wird zusaetzlich durch die volle Flaechenfarbe hervorgehoben. */
.decision-btn.decision-accept {
    border-color: rgba(39, 216, 148, 0.35);
    color: var(--accent);
}

.decision-btn.decision-reject {
    border-color: rgba(242, 85, 95, 0.35);
    color: var(--red);
}

.decision-btn.decision-accept.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-contrast);
}

.decision-btn.decision-reject.active {
    background: var(--red);
    border-color: var(--red);
    color: #2a0509;
}

.decision-btn.decision-ordered {
    border-color: rgba(76, 159, 254, 0.35);
    color: var(--blue);
}

.decision-btn.decision-ordered.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #04101f;
}

.decision-toggle-compact .decision-btn {
    padding: 6px 10px;
    font-size: 13px;
}

.btn-sm {
    padding: 6px 11px;
    font-size: 13px;
}

.btn-icon {
    padding: 8px;
    width: 34px;
    height: 34px;
    justify-content: center;
}

/* Floating action button (mobile) */
.fab {
    display: none;
}

@media (max-width: 780px) {
    .fab {
        display: flex;
        position: fixed;
        right: 16px;
        bottom: calc(var(--bottom-nav-h) + 14px);
        width: 52px;
        height: 52px;
        border-radius: 50%;
        background: var(--accent);
        color: var(--accent-contrast);
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 24px rgba(39, 216, 148, 0.35);
        z-index: 25;
    }

    .fab .icon { width: 24px; height: 24px; }

    .page-header .btn-primary.hide-on-mobile-fab { display: none; }
}

/* ---------- Panels / cards ---------- */

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 18px;
}

.panel-title {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-faint);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-title .icon { width: 14px; height: 14px; }

/* ---------- Flash / errors ---------- */

.flash, .errors {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 13.5px;
}

.flash {
    border: 1px solid rgba(39, 216, 148, 0.35);
    background: var(--accent-soft);
    color: var(--accent);
}

.errors {
    border: 1px solid rgba(242, 85, 95, 0.35);
    background: var(--red-soft);
    color: var(--red);
}

.flash .icon, .errors .icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Formular-Entwurf-Wiederherstellen / Kollisions-Warnung, s. form-draft.js */
.draft-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    font-size: 13.5px;
    border: 1px solid var(--blue);
    background: var(--blue-soft);
    color: var(--blue);
}

.draft-banner-collision {
    border-color: var(--amber);
    background: var(--amber-soft);
    color: var(--amber);
}

.draft-banner button {
    font-size: 12.5px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.errors ul {
    margin: 2px 0 0;
    padding-left: 16px;
}

/* ---------- Tables ---------- */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

th, td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

th {
    color: var(--text-faint);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--surface-2);
}

td.wrap-cell, th.wrap-cell {
    white-space: normal;
}

.row-link {
    color: var(--text);
    font-weight: 500;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-faint);
}

.empty-state .icon {
    width: 34px;
    height: 34px;
    color: var(--text-faint);
    margin-bottom: 10px;
}

.empty-row td {
    padding: 0;
    border: none;
}

/* Responsive table -> stacked cards below 680px */
@media (max-width: 680px) {
    .table-wrap { border: none; background: none; }

    table, thead, tbody, th, td, tr { display: block; }

    thead { display: none; }

    tbody tr {
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        margin-bottom: 10px;
        padding: 4px 14px;
    }

    tbody tr.empty-row {
        border: none;
        background: none;
    }

    td {
        border: none;
        padding: 8px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        white-space: normal;
    }

    td:not(:last-child) {
        border-bottom: 1px solid var(--border);
    }

    td::before {
        content: attr(data-label);
        color: var(--text-faint);
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
    }

    td[data-label=""]::before,
    td.card-title::before {
        display: none;
    }

    td.card-title {
        font-family: var(--font-body);
        font-weight: 600;
        font-size: 15px;
        justify-content: flex-start;
        padding-top: 12px;
    }
}

/* ---------- Badges ---------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-2);
    white-space: nowrap;
}

.badge-green { color: var(--accent); background: var(--accent-soft); }
.badge-amber { color: var(--amber); background: var(--amber-soft); }
.badge-red { color: var(--red); background: var(--red-soft); }
.badge-blue { color: var(--blue); background: var(--blue-soft); }
.badge-dim { color: var(--text-faint); }
.badge-neutral { color: var(--text); background: var(--surface-2); }
.badge-purple { color: var(--purple); background: var(--purple-soft); }
.badge-teal { color: var(--teal); background: var(--teal-soft); }
.badge-pink { color: var(--pink); background: var(--pink-soft); }

.badge-aussendienst {
    background: var(--blue);
    color: #04101f;
    font-weight: 700;
}

.board-card-aussendienst {
    border-left: 3px solid var(--blue);
}

/* ---------- Forms ---------- */

form .grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (max-width: 640px) {
    form .grid { grid-template-columns: 1fr; }
}

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

.field.full {
    grid-column: 1 / -1;
}

.field.checkbox-field {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

input, select, textarea {
    font-family: var(--font-body);
    font-size: 14.5px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    color: var(--text);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    width: 100%;
}

input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
    resize: vertical;
    min-height: 90px;
    font-family: var(--font-body);
}

.hint {
    font-size: 12px;
    color: var(--text-faint);
}

.hint a { color: var(--accent); }

.btn-plain-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    text-decoration: none;
}

.btn-plain-link:hover { text-decoration: underline; }

/* Groessere, kartenartige Marge-Anzeige (marginHintId-Variante von
   <x-price-input>, z.B. product-units/_form.blade.php "Marge" neben dem
   Verkaufspreis) - statt eines schmalen Hinweistexts ein eigener Kasten mit
   Betrag, Prozent und Preset-Buttons ("Preis fuer +30%"). */
.margin-box {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface-2);
    transition: background-color .15s ease, border-color .15s ease;
}

.margin-box-empty {
    font-size: 12.5px;
    color: var(--text-faint);
}

.margin-box-value {
    font-family: var(--font-display);
    font-size: 26px;
    letter-spacing: 0.3px;
    line-height: 1.1;
}

.margin-box-percent {
    font-size: 12.5px;
    color: var(--text-muted);
}

.margin-box-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.margin-preset-btn {
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 11.5px;
    padding: 4px 9px;
    border-radius: 999px;
    cursor: pointer;
    font-family: var(--font-body);
}

.margin-preset-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.margin-box-positive {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.margin-box-positive .margin-box-value { color: var(--accent); }

.margin-box-negative {
    border-color: var(--red);
    background: var(--red-soft);
}

.margin-box-negative .margin-box-value { color: var(--red); }

.quick-customer-form {
    margin-top: 10px;
    padding: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}

.quick-customer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.quick-customer-full { grid-column: 1 / -1; }

.distance-hint-error {
    color: var(--amber);
}

.distance-manual-input {
    margin-top: 6px;
    max-width: 160px;
}

.actions-row {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ---------- Filter bar ---------- */

.filter-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
    align-items: center;
}

.filter-bar .search-field {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.filter-bar .search-field .icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
    color: var(--text-faint);
    pointer-events: none;
}

.filter-bar .search-field input {
    padding-left: 34px;
}

.filter-bar input, .filter-bar select {
    padding: 8px 12px;
    font-size: 13.5px;
    width: auto;
}

.filter-bar label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    text-transform: none;
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13.5px;
}

@media (max-width: 560px) {
    .filter-bar { flex-direction: column; align-items: stretch; }
    .filter-bar .search-field { min-width: 0; }
    .filter-bar select, .filter-bar .btn { width: 100%; }
}

/* ---------- Detail layout ---------- */

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
}

@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
}

.kv {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 9px 12px;
    font-size: 13.5px;
    margin: 0;
}

.kv dt {
    color: var(--text-faint);
    display: flex;
    align-items: center;
    gap: 6px;
}

.kv dt .icon { width: 14px; height: 14px; }

.kv dd {
    margin: 0;
}

.service-time-form {
    display: flex;
    align-items: center;
    gap: 2px;
}

.service-time-form input[type="datetime-local"] {
    font-size: 12.5px;
    padding: 5px 6px;
    min-width: 0;
}

.password-field {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: var(--amber);
    display: inline-block;
    font-size: 13px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-faint);
    margin: 22px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.section-title .icon { width: 14px; height: 14px; }

.section-title:first-child {
    margin-top: 0;
}

.list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.list-item:last-child {
    border-bottom: none;
}

.pagination {
    margin-top: 16px;
}

.pagination nav > div {
    color: var(--text-faint);
    font-size: 12px;
}

/* ---------- Autocomplete ---------- */

.autocomplete {
    position: relative;
}

.autocomplete-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    max-height: 280px;
    overflow-y: auto;
    z-index: 40;
    box-shadow: var(--shadow);
}

.autocomplete-menu.open {
    display: block;
}

.autocomplete-item {
    padding: 10px 12px;
    font-size: 13.5px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.autocomplete-item-create {
    color: var(--accent);
    font-weight: 600;
}

.autocomplete-group-label {
    padding: 7px 12px 5px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-faint);
    background: var(--surface);
    position: sticky;
    top: 0;
}

/* Zeigt an, dass eine Ticket-Position mit einem Lagerartikel/Build
   verknuepft ist - der Titel bleibt dabei frei editierbar (s.
   wireStockAutocomplete()), die Verknuepfung wird nur ueber diesen Button
   explizit geloest, nicht mehr automatisch beim Tippen. */
.item-link-indicator {
    display: none;
    align-items: center;
    gap: 4px;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 3px 9px;
    border: none;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.item-link-indicator:hover {
    background: var(--red-soft);
    color: var(--red);
}

.item-description-autocomplete.is-linked .item-link-indicator {
    display: inline-flex;
}

.item-description-autocomplete.is-linked .item-description {
    padding-right: 104px;
}

/* ---------- Inline "new device" ---------- */

.new-device-toggle {
    margin-top: 10px;
}

.new-device-toggle summary {
    cursor: pointer;
    font-size: 12.5px;
    color: var(--accent);
    list-style: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.new-device-toggle summary::-webkit-details-marker {
    display: none;
}

.new-device-toggle summary::before {
    content: '+';
    font-weight: 700;
}

.new-device-toggle[open] summary::before {
    content: '\2212';
}

.new-device-fields {
    margin-top: 10px;
    padding: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.new-device-fields .field {
    margin-bottom: 0;
}

.new-device-fields .hint {
    grid-column: 1 / -1;
    margin: 0;
}

/* ---------- Ticket line items (Positionen) ---------- */

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

.item-group {
    padding: 10px;
    background: var(--surface-3);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.items-row {
    display: grid;
    grid-template-columns: 1fr 70px 100px 100px 26px;
    gap: 8px;
    align-items: center;
}

.items-row input {
    padding: 7px 9px;
    font-size: 13px;
}

.items-row-head {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-faint);
    padding: 0 0 2px;
}

.item-value-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.item-total {
    font-size: 13px;
    color: var(--text-muted);
    text-align: right;
    padding-right: 4px;
}

.item-margin {
    font-size: 10.5px;
    padding-right: 4px;
    white-space: nowrap;
}

.item-detail {
    width: 100%;
    padding: 7px 9px;
    font-size: 12.5px;
    color: var(--text-muted);
    background: var(--surface);
    resize: vertical;
    min-height: 44px;
}

.item-remove {
    font-size: 18px;
    line-height: 1;
    color: var(--text-faint);
}

.item-remove:hover {
    color: var(--red);
}

.items-summary {
    margin-top: 12px;
    padding: 10px 12px;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
}

.items-summary strong {
    color: var(--text);
}

@media (max-width: 640px) {
    .items-row {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "desc desc"
            "qty price"
            "total remove";
        gap: 6px;
        padding: 10px;
        background: var(--surface-2);
        border-radius: var(--radius-sm);
        margin-bottom: 4px;
    }

    .items-row-head { display: none; }

    .items-row .item-description-autocomplete { grid-area: desc; }
    .items-row .item-qty { grid-area: qty; }
    .items-row .item-price { grid-area: price; }
    .items-row .item-value-wrap { grid-area: total; align-items: flex-start; }
    .items-row .item-total { text-align: left; }
    .items-row .item-remove { grid-area: remove; justify-self: end; }
}

/* ---------- Quick status select ---------- */

.status-select-form {
    display: inline-block;
}

.status-select {
    appearance: none;
    -webkit-appearance: none;
    width: auto;
    max-width: none;
    padding: 3px 26px 3px 10px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    font-family: var(--font-body);
    border: 1px solid transparent;
    cursor: pointer;
    background-color: var(--surface-2);
    color: var(--text-muted);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2399a1a6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px center;
    background-size: 12px;
}

.status-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.status-select-neutral { color: var(--text); background-color: var(--surface-2); }
.status-select-blue { color: var(--blue); background-color: var(--blue-soft); }
.status-select-amber { color: var(--amber); background-color: var(--amber-soft); }
.status-select-green { color: var(--accent); background-color: var(--accent-soft); }
.status-select-dim { color: var(--text-faint); background-color: var(--surface-2); }

.status-select option {
    background: var(--surface-2);
    color: var(--text);
}

/* ---------- Board / Kanban ---------- */

.view-toggle {
    display: inline-flex;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-toggle a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

.view-toggle a.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.view-toggle a .icon { width: 15px; height: 15px; }

.board {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 1fr);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 8px;
    align-items: start;
}

@media (max-width: 780px) {
    .board {
        grid-auto-flow: row;
        grid-auto-columns: unset;
        grid-template-columns: 1fr;
    }
}

.board-column {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 12px;
    min-width: 270px;
}

.board-column-accent-neutral { border-top-color: var(--text-muted); }
.board-column-accent-blue { border-top-color: var(--blue); }
.board-column-accent-amber { border-top-color: var(--amber); }
.board-column-accent-green { border-top-color: var(--accent); }
.board-column-accent-dim { border-top-color: var(--text-faint); }

.text-neutral { color: var(--text); }
.text-blue { color: var(--blue); }
.text-amber { color: var(--amber); }
.text-green { color: var(--accent); }
.text-dim { color: var(--text-faint); }

.board-column-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 12px;
}

.board-column-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.board-column-count {
    font-size: 11.5px;
    color: var(--text-faint);
    background: var(--surface-2);
    padding: 2px 8px;
    border-radius: 999px;
}

.board-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 40px;
}

.board-card {
    display: block;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 13px;
    color: var(--text);
}

.board-card:hover {
    border-color: var(--border-strong);
    text-decoration: none;
}

.board-card-number {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 3px;
}

.board-card-title {
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.35;
}

.board-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: var(--text-faint);
}

.board-card-customer {
    display: flex;
    align-items: center;
    gap: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-card-customer .icon { width: 13px; height: 13px; flex-shrink: 0; }

.board-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.board-empty {
    text-align: center;
    padding: 20px 10px;
    color: var(--text-faint);
    font-size: 12.5px;
}

.board-card[draggable="true"] {
    cursor: grab;
}

.board-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.board-cards.drag-over {
    outline: 2px dashed var(--accent);
    outline-offset: -4px;
    border-radius: var(--radius);
    background: var(--accent-soft);
}

/* ---------- Sortable table headers ---------- */

th a {
    display: flex;
    align-items: center;
    gap: 4px;
    color: inherit;
}

th a:hover {
    color: var(--text);
}

th a .icon {
    width: 12px;
    height: 12px;
    opacity: 0.6;
}

/* ---------- Credentials ---------- */

.credential-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.credential-row:last-child {
    border-bottom: none;
}

.credential-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.password-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}

.password-toggle input {
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    color: var(--amber);
    padding: 5px 8px;
    font-size: 12.5px;
    width: auto;
    flex: 1;
    min-width: 0;
    border-radius: var(--radius-sm);
}

.btn-plain {
    background: none;
    border: none;
    color: var(--text-faint);
    cursor: pointer;
    padding: 4px;
    display: flex;
    flex-shrink: 0;
}

.btn-plain:hover {
    color: var(--text);
}

/* ---------- Documents ---------- */

.upload-form {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.upload-form select {
    width: auto;
    font-size: 12.5px;
    padding: 7px 8px;
}

.upload-form input[type="file"] {
    flex: 1;
    min-width: 140px;
    font-size: 12px;
    padding: 6px;
    background: var(--surface-2);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.document-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.document-row:last-child {
    border-bottom: none;
}

.document-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.document-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    flex-shrink: 0;
}

.document-meta {
    flex: 1;
    min-width: 0;
}

.document-name {
    display: block;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.document-name:hover {
    color: var(--accent);
}

/* ---------- Color swatch picker (labels) ---------- */

.swatch-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.swatch {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.swatch.active {
    border-color: var(--text);
}

.swatch .icon { width: 13px; height: 13px; color: #04140c; }

/* ---------- Icons ---------- */

.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- Dashboard ---------- */

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

/* Ab Tablet-Breite fest auf 4 Spalten (statt frei "auto-fit", das auf
   breiten Monitoren sonst 5-6 duenne Kacheln nebeneinander quetscht) -
   macht jede Kachel spuerbar breiter UND sorgt dafuer, dass immer genau
   4 Kacheln pro Zeile stehen (z.B. rutscht "Tickets offen" dadurch
   automatisch in die zweite Zeile, statt neben die Umsatzzahlen). */
@media (min-width: 860px) {
    .kpi-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.kpi-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--kpi-accent, var(--accent));
}

.kpi-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--kpi-accent-soft, var(--accent-soft));
    color: var(--kpi-accent, var(--accent));
}

.kpi-icon .icon {
    width: 16px;
    height: 16px;
}

.kpi-label {
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-faint);
    max-width: 75%;
}

.kpi-value {
    font-family: var(--font-display);
    font-size: 30px;
    letter-spacing: 0.3px;
    margin-top: 8px;
    line-height: 1.1;
}

.kpi-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-trend-up { color: var(--accent); }
.kpi-trend-down { color: var(--red); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    align-items: start;
}

@media (max-width: 900px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

.chart-legend {
    display: flex;
    gap: 18px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 2.5px;
    display: inline-block;
}

.bar-chart {
    width: 100%;
    height: auto;
    overflow: visible;
    display: block;
}

.bar-chart rect.bar {
    transform-origin: bottom;
    animation: barGrow 0.6s cubic-bezier(.22, 1, .36, 1) backwards;
    transition: opacity 0.15s;
}

.bar-chart rect.bar:hover {
    opacity: 0.78;
}

.bar-chart text {
    font-family: var(--font-body);
    fill: var(--text-faint);
    font-size: 10.5px;
}

.bar-chart text.bar-value {
    fill: var(--text-muted);
    font-size: 10px;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

.hbar-list {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.hbar-row {
    display: grid;
    grid-template-columns: 108px 1fr auto;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.hbar-name {
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hbar-track {
    background: var(--surface-2);
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.hbar-fill {
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--accent-strong), var(--accent));
    transform-origin: left;
    animation: hbarGrow 0.7s cubic-bezier(.22, 1, .36, 1) backwards;
}

.hbar-value {
    text-align: right;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 12.5px;
}

@keyframes hbarGrow {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-row .stat-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.decision-bar {
    display: flex;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--surface-2);
    margin: 10px 0 12px;
}

.decision-bar-segment {
    height: 100%;
    animation: hbarGrow 0.7s cubic-bezier(.22, 1, .36, 1) backwards;
    transform-origin: left;
}

/* ---------- Dashboard v2 (Heute/Zahlen) ---------- */

/* Grid-Spalten duerfen schmaler als ihr laengster nicht umbrechender Inhalt werden
   (Termintitel etc. werden per ellipsis gekuerzt) - sonst ragte die Spalte auf dem
   Handy rechts aus dem Bildschirm. */
.dashboard-grid > * { min-width: 0; }

/* Klickbare KPI-Kacheln */
a.kpi-card { display: block; color: inherit; text-decoration: none; }
.kpi-card-link { transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; }
.kpi-card-link:hover {
    transform: translateY(-2px);
    border-color: var(--kpi-accent);
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

/* Grosse Verlaufs-Kacheln (wichtigste Kennzahlen) */
.kpi-card-hero {
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--kpi-accent) 38%, transparent) 0%, transparent 60%),
        linear-gradient(135deg, color-mix(in srgb, var(--kpi-accent) 22%, var(--surface)) 0%, var(--surface) 75%);
    border-color: color-mix(in srgb, var(--kpi-accent) 35%, var(--border));
}
.kpi-card-hero::before { display: none; }
.kpi-card-hero .kpi-value { font-size: 36px; }
.kpi-card-hero .kpi-icon { background: color-mix(in srgb, var(--kpi-accent) 25%, transparent); }

/* "Heute"-Leiste mit 4 Schnellzahlen */
.today-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 22px;
}
@media (max-width: 860px) { .today-strip { grid-template-columns: repeat(2, 1fr); } }

.today-card {
    --tc: var(--accent);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid color-mix(in srgb, var(--tc) 32%, var(--border));
    background:
        radial-gradient(130% 150% at 100% 0%, color-mix(in srgb, var(--tc) 30%, transparent) 0%, transparent 62%),
        linear-gradient(140deg, color-mix(in srgb, var(--tc) 16%, var(--surface)) 0%, var(--surface) 80%);
    color: var(--text);
    text-decoration: none;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.today-card:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35); }
.today-card-accent { --tc: var(--accent); }
.today-card-blue { --tc: var(--blue); }
.today-card-amber { --tc: var(--amber); }
.today-card-pink { --tc: var(--pink); }
.today-card-icon {
    position: absolute; top: 14px; right: 14px;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--tc) 22%, transparent);
    color: var(--tc);
}
.today-card-icon .icon { width: 15px; height: 15px; }
.today-card-value { font-family: var(--font-display); font-size: 38px; line-height: 1; letter-spacing: 0.4px; }
.today-card-label { font-size: 12.5px; color: var(--text-muted); }

/* Ladeanimation fuer nachgeladene Kacheln */
.widget-loading { display: flex; flex-direction: column; gap: 9px; }
.widget-loading span {
    height: 38px; border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
    background-size: 200% 100%;
    animation: widgetShimmer 1.3s ease-in-out infinite;
}
.widget-loading span:nth-child(2) { width: 82%; }
.widget-loading span:nth-child(3) { width: 64%; }
@keyframes widgetShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Gemeinsame Listenzeile (Hinweise, Lexware) */
.hint-group-title {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    font-size: 12.5px; font-weight: 600; color: var(--text-muted);
    margin-bottom: 6px;
}
.hint-group-title > span:first-child { display: flex; align-items: center; gap: 6px; }
.hint-group-title .icon { width: 14px; height: 14px; }
.lex-sum { font-size: 12px; color: var(--red); font-weight: 600; white-space: nowrap; }

.dash-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 10px; margin: 0 -10px;
    border-radius: var(--radius-sm);
    color: var(--text); text-decoration: none;
    transition: background 0.12s;
}
.dash-row:hover { background: var(--surface-2); }
.dash-row-main { display: flex; flex-direction: column; min-width: 0; }
.dash-row-title { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row-sub { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-row-meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
    font-size: 12px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0;
}
.dash-row-meta strong { color: var(--text); font-size: 13px; font-variant-numeric: tabular-nums; }
.dash-row-warn { color: var(--amber); font-weight: 600; }
.dash-empty { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-faint); padding: 6px 0; }
.dash-empty .icon { width: 15px; height: 15px; color: var(--accent); }

/* Termin-Agenda */
.agenda-day { margin-bottom: 14px; }
.agenda-day:last-child { margin-bottom: 0; }
.agenda-day-label {
    font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-faint); margin-bottom: 6px;
}
.agenda-day-label.is-today { color: var(--accent); }
.agenda-event {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; margin-bottom: 6px;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    border-left: 3px solid var(--blue);
    color: var(--text); text-decoration: none;
    transition: background 0.12s, transform 0.12s;
}
.agenda-event:hover { background: var(--surface-3); transform: translateX(2px); }
.agenda-event-privat { border-left-color: var(--purple); }
.agenda-event.is-past { opacity: 0.5; }
.agenda-time {
    display: flex; flex-direction: column; min-width: 44px;
    font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.agenda-time small { font-size: 11px; font-weight: 400; color: var(--text-faint); }
.agenda-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.agenda-title { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-loc { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-loc .icon { width: 12px; height: 12px; }
.agenda-event .badge .icon { width: 13px; height: 13px; }

/* ToDos / Einkaufsliste */
.todo-count {
    margin-left: 2px; padding: 1px 7px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent);
    font-size: 11px; letter-spacing: 0;
}
.todo-clear { margin-left: auto; font-size: 11.5px; text-transform: none; letter-spacing: 0; font-weight: 500; }
.todo-add { display: flex; gap: 8px; margin-bottom: 10px; }
.todo-add input[type="text"] { flex: 1; min-width: 0; }
.todo-add input[type="date"] { width: 138px; flex-shrink: 0; }
.todo-add .btn { height: auto; min-height: 38px; width: 38px; flex-shrink: 0; }
@media (max-width: 480px) { .todo-add input[type="date"] { width: 118px; } }

.todo-list { display: flex; flex-direction: column; }
.todo-item {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 4px; border-bottom: 1px solid var(--border);
    font-size: 13.5px;
}
.todo-item:last-child { border-bottom: none; }
.todo-check {
    width: 20px; height: 20px; flex-shrink: 0; padding: 0;
    border-radius: 6px; border: 1.5px solid var(--border-strong);
    background: transparent; color: transparent; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s;
}
.todo-check .icon { width: 13px; height: 13px; stroke-width: 2.6; }
.todo-check:hover { border-color: var(--accent); }
.todo-item.is-done .todo-check { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.todo-title { flex: 1; min-width: 0; word-break: break-word; }
.todo-item.is-done .todo-title { text-decoration: line-through; color: var(--text-faint); }
.todo-due { font-size: 11.5px; color: var(--text-muted); background: var(--surface-2); padding: 2px 7px; border-radius: 999px; flex-shrink: 0; }
.todo-due.is-overdue { color: var(--red); background: var(--red-soft); }
.todo-item.is-done .todo-due { opacity: 0.5; }
.todo-delete {
    background: none; border: none; padding: 2px; cursor: pointer;
    color: var(--text-faint); opacity: 0; transition: opacity 0.12s, color 0.12s;
}
.todo-delete .icon { width: 15px; height: 15px; }
.todo-item:hover .todo-delete { opacity: 1; }
.todo-delete:hover { color: var(--red); }
@media (hover: none) { .todo-delete { opacity: 1; } }

/* Flaechendiagramm Umsatz/EK */
.area-chart { width: 100%; height: auto; display: block; overflow: visible; }
.area-chart text { font-family: var(--font-body); font-size: 10.5px; fill: var(--text-faint); }
.area-chart .grid-line { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.area-line { fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.area-line-vk { stroke: var(--accent); filter: drop-shadow(0 0 6px rgba(39, 216, 148, 0.45)); }
.area-line-ek { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 5 5; }
.area-line, .area-fill { animation: areaFade 0.9s ease-out backwards; }
@keyframes areaFade { from { opacity: 0; } to { opacity: 1; } }
.area-dot { stroke: var(--surface); stroke-width: 2; opacity: 0; transition: opacity 0.12s; }
.area-dot-vk { fill: var(--accent); }
.area-dot-ek { fill: var(--blue); }
.area-guide { stroke: var(--border-strong); stroke-width: 1; opacity: 0; transition: opacity 0.12s; }
.area-tip { opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.area-tip rect { fill: var(--surface-3); stroke: var(--border-strong); }
.area-chart .area-tip .tip-vk { fill: var(--text); font-size: 12px; font-weight: 600; }
.area-chart .area-tip .tip-ek { fill: var(--text-muted); font-size: 10.5px; }
.area-hit { fill: transparent; }
.area-col:hover .area-dot, .area-col:hover .area-guide, .area-col:hover .area-tip { opacity: 1; }
.area-col:hover .area-month { fill: var(--text); }
.area-col.is-future .area-month { opacity: 0.45; }

/* Donut Tickets nach Status */
.donut-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.donut { width: 170px; height: 170px; flex-shrink: 0; }
.donut-track { fill: none; stroke: var(--surface-2); stroke-width: 20; }
.donut-seg {
    fill: none; stroke-width: 20;
    transform: rotate(-90deg); transform-origin: 85px 85px;
    cursor: pointer; transition: stroke-width 0.15s;
    animation: areaFade 0.7s ease-out backwards;
}
.donut-seg:hover { stroke-width: 26; }
.donut .donut-total { font-family: var(--font-display); font-size: 34px; fill: var(--text); }
.donut .donut-caption { font-family: var(--font-body); font-size: 11px; fill: var(--text-faint); text-transform: uppercase; letter-spacing: 0.6px; }
.donut-legend { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 2px; }
.donut-legend-row {
    display: flex; align-items: center; gap: 9px;
    padding: 6px 8px; border-radius: var(--radius-sm);
    font-size: 13px; color: var(--text-muted); text-decoration: none;
}
.donut-legend-row:hover { background: var(--surface-2); color: var(--text); }
.donut-legend-label { flex: 1; }
.donut-legend-row strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------- Technik-Bot Chat ---------- */

.chat-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--nav-h) - 210px);
    min-height: 420px;
    padding: 0;
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-msg {
    max-width: 78%;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.chat-msg-user {
    align-self: flex-end;
    background: var(--accent);
    color: var(--accent-contrast);
    border-bottom-right-radius: 4px;
}

.chat-msg-assistant {
    align-self: flex-start;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-msg-error {
    align-self: flex-start;
    background: var(--red-soft);
    border: 1px solid rgba(242, 85, 95, 0.35);
    color: var(--red);
}

.chat-kb-hits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.chat-kb-hits a {
    font-size: 11.5px;
    color: var(--text-muted);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.chat-kb-hits a:hover {
    color: var(--accent);
    border-color: var(--accent);
    text-decoration: none;
}

.chat-typing {
    align-self: flex-start;
    display: flex;
    gap: 4px;
    padding: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    border-bottom-left-radius: 4px;
}

.chat-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-faint);
    animation: chatTyping 1.2s infinite ease-in-out;
}

.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chatTyping {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--border);
    padding: 14px;
}

.chat-input-main {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.chat-input-row textarea {
    flex: 1;
    min-width: 0;
    resize: none;
    min-height: 44px;
    max-height: 160px;
}

.chat-input-hint {
    padding: 0 2px;
}

.code-block {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-empty {
    margin: auto;
    text-align: center;
    color: var(--text-faint);
    font-size: 13.5px;
    padding: 30px;
}

@media (max-width: 560px) {
    .chat-panel { height: calc(100vh - var(--nav-h) - var(--bottom-nav-h) - 190px); }
    .chat-msg { max-width: 88%; }
}

/* ---------- Auth (Login, Einladung, Passwort, 2FA) ---------- */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.auth-card .brand-logo {
    height: 34px;
    display: block;
    margin: 0 auto 24px;
}

.auth-card h1 {
    font-size: 24px;
    text-align: center;
    margin: 0 0 6px;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 13.5px;
    margin: 0 0 24px;
}

.auth-card .field {
    margin-bottom: 16px;
}

.auth-card .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 11px 16px;
    margin-top: 4px;
}

.auth-links {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-links a {
    color: var(--text-muted);
}

.auth-links a:hover {
    color: var(--accent);
}

.two-factor-qr {
    display: flex;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius);
    padding: 16px;
    margin: 0 0 18px;
}

.two-factor-qr svg {
    width: 200px;
    height: 200px;
}

.two-factor-secret {
    text-align: center;
    font-family: monospace;
    font-size: 14px;
    letter-spacing: 1px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin-bottom: 18px;
    word-break: break-all;
}

.recovery-codes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-family: monospace;
    font-size: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 18px;
}

.user-menu {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    padding: 6px 0;
}

.user-menu-trigger:hover {
    color: var(--text);
}

.user-menu-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    flex-shrink: 0;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 180px;
    padding: 6px;
    z-index: 40;
}

.user-menu-dropdown a,
.user-menu-dropdown button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 13.5px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: var(--font-body);
}

.user-menu-dropdown a:hover,
.user-menu-dropdown button:hover {
    background: var(--surface-2);
    text-decoration: none;
}

/* ---------- Markdown-Notizfelder (Schreiben/Vorschau) ---------- */

.markdown-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

.markdown-toolbar {
    display: flex;
    gap: 2px;
    margin-left: auto;
}

.markdown-toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-faint);
    cursor: pointer;
}

.markdown-toolbar button:hover {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--accent);
}

.markdown-tab {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text-faint);
    cursor: pointer;
}

.markdown-tab.active {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.markdown-preview {
    min-height: 90px;
    padding: 10px 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    color: var(--text);
    font-size: 14.5px;
    line-height: 1.5;
}

.markdown-preview p {
    margin: 0 0 8px;
}

.markdown-preview p:last-child {
    margin-bottom: 0;
}

.markdown-preview ul {
    margin: 0 0 8px 18px;
    padding: 0;
}

.markdown-preview ul:last-child {
    margin-bottom: 0;
}

.markdown-preview a {
    color: var(--accent);
    text-decoration: underline;
    overflow-wrap: break-word;
}

.markdown-preview a:hover {
    color: var(--accent-strong);
}

/* ---------- Box-Look (vom Dashboard uebernommen, bewusst dezent) ----------
   Ein Prinzip fuers ganze Tool: alle Boxen bekommen denselben weichen Glanz oben
   rechts wie die Dashboard-Kacheln, aber FARBNEUTRAL. Farbe nur dort, wo sie
   etwas bedeutet (Board-Spalte = Status, Login = Marke, KPI = Kennzahlart) -
   sonst wirkt es schnell ueberladen. Steht absichtlich am Dateiende, damit es
   die Basis-Definitionen weiter oben ueberschreibt. */

:root {
    --box-sheen: rgba(255, 255, 255, 0.04);
    --box-top: #171a1e; /* knapp heller als --surface, aber dunkler als Eingabefelder (--surface-2) */
}

.panel,
.table-wrap {
    background:
        radial-gradient(120% 100% at 100% 0%, var(--box-sheen) 0%, transparent 55%),
        linear-gradient(165deg, var(--box-top) 0%, var(--surface) 55%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 6px 22px rgba(0, 0, 0, 0.18);
}

.panel-title .icon { color: var(--accent); }

/* Board-Spalten: Schimmer in der Statusfarbe statt des 3px-Strichs oben */
.board-column {
    --glow: var(--text-muted);
    border: 1px solid color-mix(in srgb, var(--glow) 28%, var(--border));
    background:
        radial-gradient(130% 50% at 100% 0%, color-mix(in srgb, var(--glow) 16%, transparent) 0%, transparent 65%),
        linear-gradient(180deg, color-mix(in srgb, var(--glow) 7%, var(--surface)) 0%, var(--surface) 240px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.board-column-accent-neutral { --glow: var(--text-muted); }
.board-column-accent-blue { --glow: var(--blue); }
.board-column-accent-amber { --glow: var(--amber); }
.board-column-accent-green { --glow: var(--accent); }
.board-column-accent-dim { --glow: var(--text-faint); }

.board-column-count {
    background: color-mix(in srgb, var(--glow) 18%, transparent);
    color: color-mix(in srgb, var(--glow) 80%, var(--text));
    font-weight: 600;
}

.board-card {
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.board-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Kennzahl-Kacheln: schwacher Schimmer in ihrer Farbe statt des Strichs oben
   (die grossen "hero"-Kacheln behalten ihren kraeftigeren Verlauf) */
.kpi-card:not(.kpi-card-hero) {
    border-color: color-mix(in srgb, var(--kpi-accent) 20%, var(--border));
    background:
        radial-gradient(120% 120% at 100% 0%, color-mix(in srgb, var(--kpi-accent) 14%, transparent) 0%, transparent 55%),
        linear-gradient(165deg, var(--box-top) 0%, var(--surface) 60%);
}
.kpi-card:not(.kpi-card-hero)::before { display: none; }

/* Login/Einladung/2FA: Marken-Schimmer */
.auth-card {
    border-color: color-mix(in srgb, var(--accent) 24%, var(--border));
    background:
        radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent) 0%, transparent 60%),
        linear-gradient(160deg, color-mix(in srgb, var(--accent) 6%, var(--surface)) 0%, var(--surface) 70%);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
}

/* Termine heute: der naechste anstehende Termin hebt sich ab */
.agenda-event.is-next {
    border-left-color: var(--accent);
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--accent) 14%, transparent) 0%, transparent 60%),
        var(--surface-2);
}
.agenda-event .badge { flex-shrink: 0; }

/* Dashboard: Hinweise-Box mit Reitern (Werkstatt / Lexware-Rechnungen / -Angebote) */
.dash-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    margin-bottom: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.dash-tab {
    flex: 1 1 0;
    min-width: 0;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 7px 10px;
    border: none; border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font: inherit; font-size: 12.5px; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.dash-tab:hover { color: var(--text); }
.dash-tab.is-active {
    background: var(--surface-3);
    color: var(--text);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.dash-tab-count {
    min-width: 20px; padding: 1px 6px; border-radius: 999px;
    background: var(--border); color: var(--text-muted);
    font-size: 11px; text-align: center;
}
.dash-tab-count.warn-amber { background: var(--amber-soft); color: var(--amber); }
.dash-tab-count.warn-red { background: var(--red-soft); color: var(--red); }
@media (max-width: 420px) {
    .dash-tab { padding: 7px 6px; font-size: 12px; gap: 4px; }
}
.dash-pane { display: none; }
.dash-pane.is-active { display: block; animation: paneIn 0.2s ease-out; }
@keyframes paneIn { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }

.donut-legend-archived { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 9px; border-radius: 0 0 var(--radius-sm) var(--radius-sm); color: var(--text-faint); }
.donut-legend-archived .icon { width: 13px; height: 13px; }

/* ---------- Einkauf: Pruefansicht / Seriennummern (s. CLAUDE.md "Einkauf: Status, Entwuerfe, Import") ---------- */
.purchase-line-unassigned { border-color: var(--red) !important; box-shadow: inset 3px 0 0 var(--red); }
.purchase-row-unassigned td { background: var(--red-soft); }
.purchase-line-hint {
    margin: 6px 0 8px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--amber-soft);
    color: var(--amber);
    font-size: 13px;
}
.line-meta { margin-bottom: 8px; }

/* ---------- Seitennavigation (resources/views/pagination/czrm.blade.php) ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
}
.pager-info { color: var(--text-faint); font-size: 13px; }
.pager-links { display: flex; flex-wrap: wrap; gap: 4px; }
.pager-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface-2);
    color: var(--text);
    font-size: 13px;
}
.pager-btn .icon { width: 14px; height: 14px; }
a.pager-btn:hover { border-color: var(--text-faint); text-decoration: none; }
.pager-btn.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.pager-btn.is-disabled { opacity: .35; }
.pager-btn.is-gap { border-color: transparent; background: none; }
.pager-perpage { display: flex; align-items: center; gap: 8px; margin: 0; }
.pager-perpage label { margin: 0; font-size: 13px; color: var(--text-faint); text-transform: none; letter-spacing: normal; white-space: nowrap; }
.pager-perpage select { width: auto; padding: 5px 28px 5px 10px; font-size: 13px; }
/* Live-Suche (public/js/live-filter.js): Ergebnisbereich waehrend des Ladens leicht abblenden. */
.is-loading { opacity: .55; transition: opacity .15s; }
.board-card[hidden] { display: none !important; }

/* Dashboard: Hinweis "Einkaeufe zu verbuchen" (dashboard/_purchase-banner.blade.php) */
.purchase-banner { border-color: var(--amber); color: var(--amber); margin-bottom: 18px; align-items: center; animation: purchaseBannerPulse 2.4s ease-in-out infinite; }
.purchase-banner > .icon { animation: purchaseBannerIcon 2.4s ease-in-out infinite; }
/* Dezentes Pulsieren: amberfarbener Schein um den Rahmen + leicht "atmendes" Icon. */
@keyframes purchaseBannerPulse {
    0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--amber) 0%, transparent); }
    50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 22%, transparent), 0 0 18px color-mix(in srgb, var(--amber) 28%, transparent); }
}
@keyframes purchaseBannerIcon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
    .purchase-banner, .purchase-banner > .icon { animation: none; }
}
.purchase-banner-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.purchase-banner-links { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.purchase-banner-links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Manueller EK je Ticket-Position (Software/Fremdleistung ohne Wareneingang) */
.item-ek-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}
.item-ek-row label {
    margin: 0;
    font-size: 11.5px;
    color: var(--text-faint);
    text-transform: none;
    letter-spacing: normal;
    flex: 1 1 260px;
}
.item-ek-row .item-ek {
    width: 120px;
    padding: 6px 9px;
    font-size: 12.5px;
}
