/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --color-bg: #f0f2f5;
    --color-surface: #ffffff;
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-light: #eff6ff;
    --color-text: #1e293b;
    --color-text-muted: #64748b;
    --color-text-faint: #94a3b8;
    --color-border: #e2e8f0;
    --color-border-light: #f1f5f9;
    --color-sidebar: #0f172a;
    --color-sidebar-text: #cbd5e1;
    --color-sidebar-hover: #1e293b;
    --color-sidebar-active: #2563eb;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --sidebar-width: 260px;
    --header-height: 60px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.06), 0 4px 6px rgba(0,0,0,0.04);
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-size: 14px;
}

/* === Login Page === */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}
.login-container { width: 100%; max-width: 420px; padding: 20px; }
.login-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-header { text-align: center; margin-bottom: 32px; }
.login-header h1 { font-size: 28px; font-weight: 700; color: var(--color-primary); }
.login-header p { color: var(--color-text-muted); margin-top: 4px; }
.login-form .form-group { margin-bottom: 20px; }
.login-form label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--color-text); }
.login-form input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 14px;
    transition: border-color var(--transition);
    outline: none;
}
.login-form input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.login-messages { margin-bottom: 20px; }
.alert { padding: 10px 14px; border-radius: var(--radius); font-size: 14px; }
.alert-error { background: #fef2f2; color: var(--color-danger); border: 1px solid #fecaca; }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); box-shadow: 0 2px 8px rgba(37,99,235,0.3); }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-outline { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); }
.btn-outline:hover { background: var(--color-bg); border-color: #cbd5e1; }
.btn-ghost { background: none; border: none; color: var(--color-text-muted); padding: 6px 12px; font-size: 12px; }
.btn-ghost:hover { color: var(--color-text); background: var(--color-bg); }

/* === App Layout === */
.app-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.app-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-height);
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-left { display: flex; align-items: center; gap: 16px; }
.header-title { font-size: 18px; font-weight: 700; color: var(--color-primary); letter-spacing: -0.02em; }
.header-right { display: flex; align-items: center; gap: 16px; }
.header-user { font-size: 13px; color: var(--color-text-muted); }
.sidebar-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.sidebar-toggle span { display: block; width: 20px; height: 2px; background: var(--color-text); border-radius: 2px; }
.app-body { display: flex; padding-top: var(--header-height); min-height: 100vh; }

/* === Sidebar === */
.sidebar {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--color-sidebar);
    overflow-y: auto;
    z-index: 90;
    transition: transform 0.3s ease;
}
.sidebar-nav { padding: 16px 0; }
.nav-section { margin-bottom: 8px; }
.nav-section-title {
    display: block;
    padding: 8px 20px 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    color: var(--color-sidebar-text);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
}
.nav-item:hover { background: var(--color-sidebar-hover); color: #fff; }
.nav-item.active { background: rgba(37,99,235,0.1); color: #fff; border-left-color: var(--color-sidebar-active); }
.nav-item.disabled { opacity: 0.35; pointer-events: none; }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* === Main Content === */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 28px 32px;
    transition: margin-left 0.3s ease;
    min-width: 0;
}
.content-header { margin-bottom: 24px; }
.content-header h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.text-muted { color: var(--color-text-muted); font-size: 13px; }

/* === Page Title Bar === */
.page-title-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 16px;
    flex-wrap: wrap;
}
.page-title-left h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.page-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.meta-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--color-border-light);
    color: var(--color-text-muted);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.meta-pill.accent { background: var(--color-primary-light); color: var(--color-primary); }
.meta-pill.sync-ok { background: #dcfce7; color: #15803d; }
.meta-pill.sync-err { background: #fef2f2; color: #dc2626; }

.page-title-right { display: flex; align-items: center; gap: 10px; }
.filter-count {
    background: var(--color-primary);
    color: #fff;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}
.per-page-select {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--color-text-muted);
}
.per-page-select select {
    padding: 5px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 12px;
    background: var(--color-surface);
    cursor: pointer;
    outline: none;
}

/* === Search Bar === */
.search-bar { margin-bottom: 16px; }
.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.search-icon {
    position: absolute;
    left: 14px;
    color: var(--color-text-faint);
    pointer-events: none;
}
.search-wrapper input {
    width: 100%;
    padding: 11px 40px 11px 44px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 14px;
    background: var(--color-surface);
    outline: none;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.search-wrapper input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08), var(--shadow);
}
.search-wrapper input::placeholder { color: var(--color-text-faint); }
.search-clear {
    position: absolute;
    right: 12px;
    background: var(--color-border-light);
    border: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.search-clear:hover { background: var(--color-border); color: var(--color-text); }

/* === Express Filters === */
.express-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.ef-select-group { flex-shrink: 0; }
.ef-select {
    padding: 7px 28px 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 8px center no-repeat;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
    appearance: none;
    -webkit-appearance: none;
    min-width: 0;
}
.ef-select:hover {
    border-color: #cbd5e1;
}
.ef-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.ef-select.has-value {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}
.ef-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-border-light);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition);
    flex-shrink: 0;
}
.ef-reset:hover {
    background: var(--color-danger);
    color: #fff;
}
.ef-date {
    padding: 6px 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-muted);
    background: var(--color-surface);
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
    width: 130px;
}
.ef-date:hover { border-color: #cbd5e1; }
.ef-date:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }
.ef-date.has-value {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 600;
}
.ef-date-sep {
    color: var(--color-text-faint);
    font-size: 13px;
    flex-shrink: 0;
}

/* === Filters Panel === */
.filters-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    margin-bottom: 0;
}
.filters-panel.open {
    max-height: 300px;
    opacity: 1;
    margin-bottom: 16px;
}
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    background: var(--color-surface);
    padding: 18px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}
.filter-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin-bottom: 5px;
}
.filter-group select,
.filter-group input[type="date"] {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-size: 13px;
    background: var(--color-surface);
    color: var(--color-text);
    outline: none;
    transition: border-color var(--transition);
}
.filter-group select:focus,
.filter-group input[type="date"]:focus {
    border-color: var(--color-primary);
}
.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-bottom: 1px;
}

/* === Active Filter Chips === */
.active-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}
.chip a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    opacity: 0.6;
    transition: opacity var(--transition);
}
.chip a:hover { opacity: 1; }

/* === Table Card === */
.table-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.table-scroll { overflow-x: auto; }

/* === Orders Table === */
.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.orders-table thead {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    position: sticky;
    top: 0;
    z-index: 1;
}
.orders-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
    user-select: none;
}
.orders-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border-light);
    vertical-align: middle;
}
.orders-table tbody tr { transition: background var(--transition); }
.orders-table tbody tr:hover { background: #f8fafc; }
.orders-table tbody tr:last-child td { border-bottom: none; }

/* Sort headers */
.sort-header {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color var(--transition);
}
.sort-header:hover { color: var(--color-text); }
.sort-header.active { color: var(--color-primary); }

.sort-arrow { display: inline-block; width: 0; height: 0; }
.sort-header.active .sort-arrow {
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
}
.sort-header.active.asc .sort-arrow {
    border-bottom: 5px solid var(--color-primary);
}
.sort-header.active.desc .sort-arrow {
    border-top: 5px solid var(--color-primary);
}

/* Column widths */
.col-order-nr { width: 100px; }
.col-customer { min-width: 160px; }
.col-address { min-width: 160px; max-width: 200px; }
.col-value { width: 100px; text-align: right; }
.col-status { width: 110px; }
.col-date { width: 130px; }
.col-method { width: 130px; }

/* Cell styles */
.cell-mono {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--color-primary-dark);
    letter-spacing: -0.01em;
}
.customer-cell { display: flex; flex-direction: column; gap: 1px; }
.customer-name { font-weight: 500; white-space: nowrap; }
.customer-email { font-size: 11px; color: var(--color-text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }

.cell-address {
    font-size: 12px;
    color: var(--color-text-muted);
    line-height: 1.4;
}
.cell-address span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.addr-sub { color: var(--color-text-faint); font-size: 11px; }

.cell-value {
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.cell-date {
    white-space: nowrap;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
}
.cell-method {
    white-space: nowrap;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px !important;
    color: var(--color-text-muted);
}
.empty-state svg { margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* === Badges === */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.badge-success { background: #dcfce7; color: #15803d; }
.badge-warning { background: #fef3c7; color: #b45309; }
.badge-danger { background: #fef2f2; color: #dc2626; }
.badge-info { background: #dbeafe; color: #2563eb; }
.badge-default { background: #f1f5f9; color: #64748b; }
.badge-purple { background: #f3e8ff; color: #7c3aed; }

/* === Table Footer / Pagination === */
.table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid var(--color-border-light);
    background: #fafbfc;
}
.table-footer-info { font-size: 12px; color: var(--color-text-muted); }

.table-pagination { display: flex; align-items: center; gap: 4px; }
.pg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all var(--transition);
    border: 1px solid transparent;
}
.pg-btn:hover { background: var(--color-bg); color: var(--color-text); border-color: var(--color-border); }
.pg-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 2px 4px rgba(37,99,235,0.2);
}
.pg-ellipsis { padding: 0 4px; color: var(--color-text-faint); }

/* === Stats Grid (Dashboard) === */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}
.detail-stat {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}
.detail-stat:hover { box-shadow: var(--shadow-md); }
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.stat-icon svg { width: 24px; height: 24px; }
.stat-icon.shopware { background: #dbeafe; color: #2563eb; }
.stat-icon.lexware { background: #dcfce7; color: #16a34a; }
.stat-icon.dpd { background: #fef3c7; color: #d97706; }
.stat-icon.mail { background: #ede9fe; color: #7c3aed; }
.stat-info { display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 13px; font-weight: 500; color: var(--color-text-muted); }
.stat-value { font-size: 15px; font-weight: 600; }
.status-pending { color: var(--color-warning); }
.status-connected { color: var(--color-success); }
.status-error { color: var(--color-danger); }

/* === Activity === */
.content-section {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.content-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.activity-list { display: flex; flex-direction: column; gap: 16px; }
.activity-item { display: flex; align-items: flex-start; gap: 12px; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); margin-top: 6px; flex-shrink: 0; }
.activity-text p { font-size: 14px; }

/* === Content Header Row === */
.content-header-row { display: flex; justify-content: space-between; align-items: flex-start; }

/* === Detail Page === */
.detail-hero { margin-bottom: 24px; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition);
    margin-bottom: 8px;
}
.back-link:hover { color: var(--color-primary); }
.hero-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.hero-title h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 6px; }
.hero-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.hero-meta { text-align: right; }
.hero-date { font-size: 13px; color: var(--color-text-muted); }

/* Lifecycle progress bar */
.lifecycle-bar {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 24px 28px 20px;
    margin-bottom: 24px;
    box-shadow: none;
    position: relative;
}
.lifecycle-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}
.lifecycle-track {
    position: absolute;
    top: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    z-index: 0;
    /* left/right set by JS to match dot positions */
    left: 0;
    right: 0;
}
.lifecycle-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 2px;
    transition: width 0.8s ease;
}
.lifecycle-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}
.lifecycle-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e2e8f0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #e2e8f0;
    margin-bottom: 10px;
    transition: all 0.4s ease;
}
.lifecycle-step.done .lifecycle-dot {
    background: #22c55e;
    box-shadow: 0 0 0 2px #22c55e;
}
.lifecycle-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    max-width: 120px;
    line-height: 1.3;
}
.lifecycle-step.done .lifecycle-label {
    color: #22c55e;
}
.lifecycle-date {
    font-size: 11px;
    font-weight: 100;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.3;
    margin-top: 4px;
    min-height: 28px;
}
.lifecycle-step.done .lifecycle-date {
    color: #151515;
}
@media (max-width: 600px) {
    .lifecycle-label { font-size: 9px; }
    .lifecycle-date { font-size: 8px; }
    .lifecycle-bar { padding: 20px 16px 16px; }
    .lifecycle-track { left: 16px; right: 16px; }
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
@media (max-width: 1100px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-grid-half { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .detail-grid-half { grid-template-columns: 1fr; } }

.detail-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow var(--transition);
}
.detail-card:hover { box-shadow: var(--shadow-md); }
.card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
}
.card-header h3 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
}
.card-header svg { width: 16px; height: 16px; opacity: 1; }
.card-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }

.info-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.info-label { font-size: 12px; color: var(--color-text-faint); flex-shrink: 0; min-width: 90px; padding-top: 1px; }
.info-value { font-size: 13px; text-align: right; word-break: break-word; line-height: 1.4; }
.info-value.highlight { font-size: 18px; font-weight: 700; color: var(--color-text); }
.info-value.mono-sm { font-family: monospace; font-size: 11px; letter-spacing: -0.02em; }

/* Copyable values */
.copyable {
    cursor: pointer;
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: 4px;
    transition: all 0.15s;
    position: relative;
}
.copyable:hover { background: var(--color-primary-light); color: var(--color-primary); }
.copyable.copied { background: #dcfce7; color: #15803d; }

.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-sidebar);
    color: #fff;
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}
.copy-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Section headers */
.detail-section { margin-bottom: 24px; }
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.section-header h3 { font-size: 16px; font-weight: 700; }
.section-count {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: 12px;
}

/* Parcel cards */
.parcel-cards { display: flex; flex-direction: column; gap: 8px; }
.parcel-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 18px;
    transition: box-shadow var(--transition);
}
.parcel-card:hover { box-shadow: var(--shadow-md); }
.parcel-main { display: flex; flex-direction: column; gap: 4px; }
.parcel-nr {
    font-size: 15px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--color-primary-dark);
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 2px 6px;
    margin: -2px -6px;
    border-radius: 4px;
    transition: all 0.15s;
}
.parcel-nr:hover { background: var(--color-primary-light); }
.parcel-nr.copied { background: #dcfce7; color: #15803d; }
.parcel-meta { display: flex; gap: 12px; font-size: 12px; color: var(--color-text-faint); }
.parcel-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.parcel-updated { font-size: 11px; color: var(--color-text-faint); }

/* Link in list */
.link-mono {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.link-mono:hover { text-decoration: underline; }

/* === Timeline === */
.timeline-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow);
}
.card-body .timeline-card {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}
.tl-item {
    display: flex;
    gap: 16px;
    min-height: 56px;
}
.tl-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    width: 20px;
    padding-top: 4px;
}
.tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid var(--color-border);
    background: var(--color-surface);
    flex-shrink: 0;
    z-index: 1;
}
.tl-success { border-color: var(--color-success); background: #dcfce7; }
.tl-info { border-color: var(--color-primary); background: #dbeafe; }
.tl-warning { border-color: var(--color-warning); background: #fef3c7; }
.tl-danger { border-color: var(--color-danger); background: #fef2f2; }
.tl-neutral { border-color: #cbd5e1; background: #f1f5f9; }

.tl-line {
    width: 2px;
    flex: 1;
    background: linear-gradient(180deg, var(--color-border) 0%, var(--color-border-light) 100%);
    margin: 4px 0;
}

.tl-content {
    flex: 1;
    padding-bottom: 16px;
    min-width: 0;
}
.tl-last .tl-content { padding-bottom: 0; }

.tl-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 4px;
}
.tl-status { font-size: 14px; font-weight: 600; color: var(--color-text); }
.tl-time { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; }
.tl-time strong { color: var(--color-text); }
.tl-sub {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.tl-tag {
    font-size: 11px;
    padding: 2px 8px;
    background: var(--color-border-light);
    color: var(--color-text-faint);
    border-radius: 4px;
}

/* Hero value */
.hero-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; display: block; text-align: right; }

/* Address block */
.address-block {
    font-size: 14px;
    line-height: 1.6;
    padding: 0;
    background: transparent;
    border: none;
    transition: all 0.15s;
}
.address-block { margin: 0; }
.address-block:hover { border: none; background: transparent; }
.address-block.copied { border: none; background: transparent; }

/* Section badge muted */
.section-badge-muted {
    font-size: 11px;
    color: var(--color-text-faint);
    background: var(--color-border-light);
    padding: 3px 10px;
    border-radius: 12px;
}

/* Placeholder card */
.placeholder-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 20px;
    background: var(--color-surface);
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}
.placeholder-sub { font-size: 12px; color: var(--color-text-faint); }

/* Shipment block */
.shipment-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}
.shipment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
    flex-wrap: wrap;
}
.shipment-title { display: flex; align-items: center; gap: 10px; }
.shipment-link {
    font-size: 12px;
    font-family: monospace;
    color: var(--color-text-muted);
    text-decoration: none;
}
.shipment-link:hover { color: var(--color-primary); text-decoration: underline; }
.shipment-date { font-size: 12px; color: var(--color-text-faint); }

.empty-state-small {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
    font-size: 14px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .sidebar-toggle { display: flex; }
    .sidebar { transform: translateX(-100%); }
    .sidebar:not(.collapsed) { transform: translateX(0); }
    .sidebar.collapsed { transform: translateX(-100%); }
    .main-content { margin-left: 0; padding: 16px; }
    .main-content.expanded { margin-left: 0; }
    .header-user { display: none; }
    .page-title-bar { flex-direction: column; }
    .page-title-right { width: 100%; justify-content: space-between; }
    .filters-grid { grid-template-columns: 1fr 1fr; }
    .table-footer { flex-direction: column; gap: 10px; text-align: center; }
}

/* Bestellpositionen */
.line-items-table { font-size: 13px; }
.line-items-table th { font-size: 11px; }
.line-item-qty { font-weight: 600; color: var(--color-primary); }
.line-item-sku { font-size: 12px; color: var(--color-text-muted); font-family: 'SF Mono', 'Consolas', monospace; }

/* Stat Grid (Mini-Karten im Bestelldetails-Container) */
.order-kpis { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 10px; }
.order-kpi {
    background: var(--color-bg, #f8fafc);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
}
.order-kpi-label { display: block; font-size: 11px; color: var(--color-text-muted, #64748b); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.order-kpi-value { display: block; font-size: 14px; font-weight: 600; color: var(--color-text, #1e293b); }
.order-kpi-value.highlight { color: var(--color-primary, #2563eb); }

/* Dokumente im Bestelldetails-Container */
.docs-label { font-size: 11px; color: var(--color-text-muted, #64748b); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.docs-grid { display: flex; gap: 16px; flex-wrap: wrap; }
.doc-item {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 12px 16px; border-radius: 8px;
    background: var(--color-bg, #f8fafc); border: 1px solid var(--color-border, #e2e8f0);
    text-decoration: none; color: var(--color-text, #1e293b);
    transition: all 0.15s; cursor: pointer; min-width: 90px;
}
.doc-item:hover { border-color: var(--color-primary, #2563eb); box-shadow: 0 2px 8px rgba(37,99,235,0.12); }
.doc-icon { width: 32px; height: 32px; color: #ef4444; }
.doc-name { font-size: 12px; font-weight: 600; }
.doc-nr { font-size: 11px; color: var(--color-text-muted, #64748b); }
.docs-empty { font-size: 12px; color: var(--color-text-muted, #94a3b8); font-style: italic; }

/* Order main grid: Positionen links (volle Hoehe), Details+Dokumente rechts gestapelt */
.order-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
    margin-bottom: 16px;
}
.order-positions { grid-row: 1 / -1; }
.order-right-stack { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) {
    .order-main-grid { grid-template-columns: 1fr; }
}

/* Updates Timeline */
.updates-timeline { max-width: 800px; }
.update-day { margin-bottom: 32px; }
.update-date-header {
    padding: 8px 0;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--color-primary, #2563eb);
}
.update-date {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text, #1e293b);
}
.update-entries { display: flex; flex-direction: column; gap: 12px; }
.update-entry {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    padding: 16px 20px;
    transition: box-shadow 0.15s;
}
.update-entry:hover { box-shadow: var(--shadow-md, 0 4px 6px rgba(0,0,0,0.07)); }
.update-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text, #1e293b);
    margin-bottom: 6px;
}
.update-details {
    font-size: 13px;
    color: var(--color-text-muted, #64748b);
    line-height: 1.5;
}

/* Historie Timeline */
.tl-actor { font-weight: 400; color: var(--color-text-muted, #64748b); font-style: italic; }
.tl-tag-success { background: #dcfce7 !important; color: #166534 !important; }

/* Order detail: left stack (Details+Historie+Versand) */
.order-left-stack { display: flex; flex-direction: column; gap: 16px; }

/* Versandapi Logs */
.log-row.log-error { background: #fef2f2; }
.log-row.log-warning { background: #fffbeb; }
.log-details { font-size: 12px; color: var(--color-text-muted, #64748b); font-family: 'SF Mono', 'Consolas', monospace; }

/* Dashboard Grid */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-kpis { display: flex; gap: 16px; justify-content: space-around; text-align: center; }
.dash-kpi { flex: 1; }
.dash-kpi-value { display: block; font-size: 28px; font-weight: 700; color: var(--color-text, #1e293b); }
.dash-kpi-value.highlight { color: var(--color-primary, #2563eb); }
.dash-kpi-label { display: block; font-size: 12px; color: var(--color-text-muted, #64748b); margin-top: 4px; }
.dash-kpi-label small { font-size: 11px; opacity: 0.7; }

/* Dashboard Hero Cards */
.dash-hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 1000px) { .dash-hero-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dash-hero-grid { grid-template-columns: 1fr; } }
.dash-hero-card {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 12px;
    padding: 20px 24px;
    text-align: center;
    transition: box-shadow 0.15s, transform 0.15s;
}
.dash-hero-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }
.dash-today { border-left: 4px solid #2563eb; }
.dash-yesterday { border-left: 4px solid #64748b; }
.dash-compare { border-left: 4px solid #a78bfa; }
.dash-shipping { border-left: 4px solid #22c55e; }
.dash-hero-label { font-size: 12px; color: var(--color-text-muted, #64748b); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.dash-hero-number { font-size: 36px; font-weight: 800; color: var(--color-text, #1e293b); line-height: 1; }
.dash-hero-sub { font-size: 13px; color: var(--color-text-muted, #94a3b8); margin-top: 4px; }
.dash-hero-value { font-size: 14px; font-weight: 600; color: var(--color-primary, #2563eb); margin-top: 8px; }

/* Bestellkommentar */
.order-comment { font-size: 14px; color: var(--color-text, #1e293b); line-height: 1.5; margin: 0; white-space: pre-line; }
.order-comment-empty { font-size: 13px; color: var(--color-text-muted, #94a3b8); font-style: italic; margin: 0; }

/* Column Dropdown */
.col-dropdown-wrapper { position: relative; }
.col-dropdown-btn {
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 8px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--color-text-muted, #64748b);
    transition: all 0.15s;
}
.col-dropdown-btn:hover { border-color: var(--color-primary, #2563eb); color: var(--color-primary, #2563eb); }
.col-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: var(--color-surface, #fff);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 8px 0;
    min-width: 200px;
    z-index: 100;
}
.col-dropdown.open { display: block; }
.col-dropdown-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-muted, #94a3b8);
    padding: 6px 16px 8px;
    border-bottom: 1px solid var(--color-border, #e2e8f0);
    margin-bottom: 4px;
}
.col-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    font-size: 13px;
    color: var(--color-text, #1e293b);
    cursor: pointer;
    transition: background 0.1s;
}
.col-dropdown-item:hover { background: var(--color-bg, #f8fafc); }
.col-dropdown-item input { margin: 0; cursor: pointer; accent-color: var(--color-primary, #2563eb); }

/* Gewichtsvergleich */
.weight-compare-title { font-size: 11px; color: var(--color-text-muted, #64748b); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.weight-ok { color: var(--color-success, #22c55e); }
.weight-notice { color: var(--color-warning, #f59e0b); }
.weight-warn { color: var(--color-danger, #ef4444); font-weight: 600; }

/* Ticket System */
.ticket-row-highlight { background: #fff !important; }
.ticket-msg { padding: 16px 20px; border-bottom: 1px solid var(--color-border, #e2e8f0); }
.ticket-msg-in { background: var(--color-bg, #f8fafc); }
.ticket-msg-out { background: #eff6ff; }
.ticket-msg-internal { background: #fefce8; }
.ticket-msg-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 13px; }
.ticket-msg-header time { color: var(--color-text-muted); font-size: 12px; }
.ticket-msg-body { font-size: 14px; line-height: 1.6; color: var(--color-text); white-space: pre-line; }
.ticket-reply { padding: 16px 20px; background: var(--color-surface, #fff); }
.ticket-reply-input { width: 100%; border: 1px solid var(--color-border, #e2e8f0); border-radius: 8px; padding: 12px; font-size: 14px; font-family: inherit; resize: vertical; background: var(--color-bg, #f8fafc); }
.ticket-reply-input:focus { outline: none; border-color: var(--color-primary, #2563eb); }
.ticket-reply-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.ticket-reply-btn { background: var(--color-primary, #2563eb); color: #fff; border: none; border-radius: 8px; padding: 8px 24px; font-size: 14px; font-weight: 600; cursor: pointer; }
.ticket-reply-btn:hover { opacity: 0.9; }

/* Ticket Table: compact */
.ticket-table td { padding: 6px 10px !important; font-size: 13px; }
.ticket-table th { padding: 6px 10px !important; font-size: 11px; }

/* Ticket Badge Colors */
.ticket-badge-new { background: rgb(252, 163, 71) !important; color: rgb(76, 44, 23) !important; }
.ticket-badge-open { background: rgb(205, 54, 66) !important; color: rgb(255, 255, 255) !important; }
.ticket-badge-pending { background: rgb(31, 115, 183) !important; color: rgb(255, 255, 255) !important; }
/* Read/Unread */
.ticket-unread td a[href*="ticket"] { font-weight: 600; }
.ticket-table td { font-weight: 300; }
.ticket-read td a[href*="ticket"] { font-weight: 300; }

/* Bulk Action Bar */
.bulk-bar {
    position: fixed;
    bottom: -60px;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--color-text, #1e293b);
    z-index: 200;
    transition: bottom 0.25s ease;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.bulk-bar.show { bottom: 0; }
.bulk-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
}
.bulk-count { color: #fff; font-size: 14px; font-weight: 600; }
.bulk-actions { display: flex; gap: 8px; }
.bulk-btn {
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #fff;
}
.bulk-btn-edit { background: #3b82f6; }
.bulk-btn-merge { background: #8b5cf6; }
.bulk-btn-spam { background: #f59e0b; color: #000; }
.bulk-btn-delete { background: #ef4444; }
.bulk-btn-cancel { background: #475569; }
.bulk-btn:hover { opacity: 0.9; }
.ticket-cb { cursor: pointer; accent-color: var(--color-primary, #2563eb); }
.bulk-btn-unread { background: #6366f1; }

/* Ticket group headers */
.group-header {
    padding: 14px 14px 14px 24px;
    background: var(--color-bg-alt, #f7f8fa);
    border-bottom: 1px solid var(--color-border);
    font-size: 13px;
    color: var(--color-text-muted);
}
.group-header strong { color: var(--color-text); }

/* Bulk assign dropdown */
.bulk-assign-wrap { position: relative; display: inline-block; }
.bulk-assign-menu {
    display: none; position: absolute; bottom: 100%; left: 0;
    background: var(--color-bg, #fff); border: 1px solid var(--color-border);
    border-radius: 6px; box-shadow: 0 4px 12px rgba(0,0,0,.15);
    min-width: 160px; z-index: 1000; margin-bottom: 6px;
    overflow: hidden;
}
.bulk-assign-menu.show { display: block; }
.bulk-assign-menu a {
    display: block; padding: 8px 14px; color: var(--color-text);
    text-decoration: none; font-size: 13px;
}
.bulk-assign-menu a:hover { background: var(--color-bg-alt, #f5f5f5); }
.bulk-btn-assign { background: #5b6abf; color: #fff; }
.bulk-btn-assign:hover { background: #4a59a8; }

/* ── Ticket Detail Redesign ── */
.td-topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 20px; border-bottom: 1px solid var(--color-border);
    background: var(--color-bg); flex-shrink: 0; gap: 12px; min-height: 48px;
}
.td-topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.td-topbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.td-back { color: var(--color-text-muted); display: flex; align-items: center; }
.td-back:hover { color: var(--color-text); }
.td-ticket-nr { font-weight: 600; font-size: 14px; color: var(--color-text-muted); white-space: nowrap; }
.td-subject { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-select {
    padding: 5px 8px; border: 1px solid var(--color-border); border-radius: 4px;
    font-size: 12px; background: var(--color-bg); color: var(--color-text); cursor: pointer;
}
.td-select-sm { font-size: 11px; padding: 4px 6px; }
.td-btn {
    padding: 7px 16px; border-radius: 4px; font-size: 13px; font-weight: 500;
    text-decoration: none; cursor: pointer; border: 1px solid var(--color-border);
    white-space: nowrap; box-sizing: border-box;
}
.td-btn-primary { background: #1a73e8; color: #fff; border-color: #1a73e8; height: 33px; display: inline-flex; align-items: center; justify-content: center; }
.td-btn-primary:hover { background: #1557b0; }
.td-btn-success { background: #34a853; color: #fff; border-color: #34a853; }
.td-btn-success:hover { background: #2d8f47; }
.td-btn-warning { background: #ea8600; color: #fff; border-color: #ea8600; }
.td-btn-default { background: var(--color-bg-alt, #f5f5f5); color: var(--color-text); }

/* Main + Sidebar (full height split) */
.td-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; max-height: 100%; }
.td-sidebar-right {
    width: 300px; flex-shrink: 0; border-left: 1px solid var(--color-border);
    overflow-y: auto; overflow-x: hidden; background: #f0f1f3; padding-top: 32px;
}

/* Messages */
.td-messages { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 20px; background: #fff; min-width: 0; }
.td-msg { padding: 16px 0; border-bottom: 1px solid var(--color-border); }
.td-msg:last-child { border-bottom: none; }
.td-msg-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.td-msg-author { display: flex; align-items: center; gap: 10px; }
.td-avatar {
    width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 13px; font-weight: 600; color: #fff;
    background: #6b7280; flex-shrink: 0; text-transform: uppercase;
}
.td-avatar-agent { background: #1a73e8; }
.td-avatar-lg { width: 40px; height: 40px; font-size: 15px; }
.td-msg-badge { font-size: 10px; background: #e3f2fd; color: #1a73e8; padding: 2px 6px; border-radius: 3px; margin-left: 6px; }
.td-msg-badge-internal { background: #fff3e0; color: #e65100; }
.td-msg-time { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; }
.td-msg-body { font-size: 13px; line-height: 1.6; color: var(--color-text); padding-left: 42px; word-break: break-word; }
.td-msg-out .td-msg-body { background: #f5f6f7; border-radius: 6px; padding: 12px 16px; }
.td-msg-internal .td-msg-body { background: #fffde7; border-radius: 6px; padding: 12px 16px; }

/* Reply Editor */
.td-reply {
    flex-shrink: 0; border-top: 1px solid var(--color-border); height: 240px;
    display: flex; flex-direction: column; position: relative; background: #fff;
}
.td-reply-handle {
    height: 5px; cursor: ns-resize; background: transparent; position: absolute;
    top: -3px; left: 0; right: 0; z-index: 5;
}
.td-reply-handle:hover { background: var(--color-border); }
.td-reply-header { padding: 8px 16px; font-size: 12px; color: var(--color-text-muted); border-bottom: 1px solid var(--color-border); flex-shrink: 0; background-color: #f0f1f3; }
.td-reply-form { display: flex; flex-direction: column; flex: 1; overflow: hidden; background: #fff; min-width: 0; }
.td-reply-form textarea {
    flex: 1; border: none; padding: 12px 16px; resize: none; font-size: 13px;
    font-family: inherit; outline: none; background-color: #fff; color: var(--color-text);
}
.td-reply-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 16px 14px; border-top: 1px solid var(--color-border); flex-shrink: 0; background-color: #fff;
}
.td-reply-hint { font-size: 11px; color: var(--color-text-muted); }
.td-reply-actions { display: flex; gap: 8px; align-items: center; }

/* Right Sidebar */
.td-sidebar-section { border-bottom: none; margin-bottom: 0; }
.td-sidebar-title { padding: 4px 16px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--color-text-muted); letter-spacing: 0.5px; }
.td-sidebar-content { padding: 0 16px 14px; }
.td-customer-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.td-customer-name { font-weight: 600; font-size: 14px; }
.td-customer-email { font-size: 12px; color: var(--color-text-muted); cursor: pointer; }
.td-customer-email:hover { color: var(--color-text); }
.td-info-row { display: flex; justify-content: space-between; font-size: 12px; padding: 3px 0; }
.td-info-label { color: var(--color-text-muted); }

/* Orders list */
.td-orders-list { display: flex; flex-direction: column; gap: 2px; }
.td-order-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 6px 8px; border-radius: 4px; text-decoration: none; color: var(--color-text); font-size: 12px;
}
.td-order-item:hover { background: var(--color-bg-alt, #f5f5f5); }
.td-order-nr { font-weight: 500; }
.td-order-meta { display: flex; gap: 10px; color: var(--color-text-muted); }
.td-order-amount { font-weight: 500; color: var(--color-text); }

/* Ticket history */
.td-history-item { display: block; padding: 6px 8px; border-radius: 4px; text-decoration: none; color: var(--color-text); }
.td-history-item:hover { background: var(--color-bg-alt, #f5f5f5); }
.td-history-subject { font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.td-history-meta { font-size: 11px; color: var(--color-text-muted); display: flex; justify-content: space-between; align-items: center; }

/* Fix: ticket detail page must not scroll the outer frame */

/* td-fullscreen (ticket_detail) — robust ohne :has() */
.app-wrapper.td-fullscreen { min-height: 0; height: 100vh; overflow: hidden; }
.app-body.td-fullscreen { min-height: 0; height: calc(100vh - var(--header-height)); overflow: hidden; }
.main-content.td-fullscreen {
    display: flex; flex-direction: row; flex-wrap: nowrap;
    padding: 0; margin-left: var(--sidebar-width);
    height: calc(100vh - var(--header-height));
    overflow: hidden; min-width: 0;
}
.main-content:has(.td-main) { overflow: hidden; padding: 0; flex-wrap: nowrap; }
.app-body:has(.td-main) { min-height: 0; height: 100vh; overflow: hidden; }
.app-wrapper:has(.td-main) { min-height: 0; height: 100vh; overflow: hidden; }

/* Message body backgrounds */
.td-msg-in .td-msg-body { background: #eef6fc; border-radius: 6px; padding: 12px 16px; }

/* Email quote collapse */
.td-quote-toggle {
    display: inline-block; margin-top: 10px; padding: 4px 10px;
    font-size: 11px; color: var(--color-text-muted); cursor: pointer;
    border: 1px solid var(--color-border); border-radius: 4px;
    background: #fff; user-select: none;
}
.td-quote-toggle:hover { background: #f5f5f5; color: var(--color-text); }
.td-quote-body { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--color-border); opacity: 0.6; }
.td-quote-body.show { display: block; }

/* Ticket detail: customer pills & details */
.td-pill {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 11px; font-weight: 500; background: #e8e8e8; color: #555;
}
.td-pill-blue { background: #dbeafe; color: #1e40af; }
.td-pill-green { background: #dcfce7; color: #166534; }
.td-customer-badges { margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.td-customer-detail { font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.td-customer-contact { font-size: 12px; line-height: 1.6; color: var(--color-text-muted); }
.td-customer-contact a { color: var(--color-text); }
.td-external-link { float: right; color: var(--color-text-muted); }
.td-external-link:hover { color: var(--color-text); }

.td-sidebar-content-kunde {
    margin: 0 10px 10px 10px;
    background-color: #fff;
    padding: 15px;
    border-radius: 6px;
}

/* Signature preview in reply editor */
.td-sig-preview {
    padding: 0 16px 12px; overflow-y: auto; max-height: 200px;
    background: #fff; font-size: 12px;
}
.td-sig-divider {
    border-top: 1px solid #ddd; margin: 8px 0 12px; width: 60px;
}

/* Contenteditable reply editor */
.td-editor {
    flex: 1; padding: 12px 16px; overflow-y: auto;
    font-size: 13px; font-family: inherit; outline: none;
    background: #fff; color: var(--color-text);
    line-height: 1.6; min-height: 0;
}
.td-editor:empty:before {
    content: 'Antwort schreiben...';
    color: #aaa;
}
.td-editor .td-sig-divider {
    border-top: 1px solid #ddd; margin: 12px 0; width: 60px;
}

/* Signature placeholder line */
.td-sig-line {
    border-top: 1px solid #ddd; padding: 8px 16px; background: #fff; flex-shrink: 0;
}
.td-sig-label {
    font-size: 11px; color: #999; font-style: italic;
}

/* Signature insert button */
.td-sig-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border: 1px solid var(--color-border); border-radius: 4px;
    background: #fff; color: var(--color-text-muted); font-size: 11px;
    cursor: pointer;
}
.td-sig-btn:hover { background: #f5f5f5; color: var(--color-text); }
.td-reply-hint-row { display: flex; align-items: center; gap: 12px; }

/* Customer popup modal */
.popup-overlay {
    display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4);
    z-index: 999;
}
.popup-overlay.show { display: block; }
.popup-modal {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff; border-radius: 8px; box-shadow: 0 8px 30px rgba(0,0,0,.2);
    z-index: 1000; width: 900px; max-height: 80vh;
    overflow: hidden; flex-direction: column;
}
.popup-modal.show { display: flex; }
.popup-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px; border-bottom: 1px solid var(--color-border);
}
.popup-header h3 { margin: 0; font-size: 16px; }
.popup-close {
    background: none; border: none; font-size: 22px; cursor: pointer;
    color: var(--color-text-muted); padding: 0 4px; line-height: 1;
}
.popup-close:hover { color: var(--color-text); }
.popup-body { padding: 20px; overflow-y: auto; }
.customer-name-link {
    color: var(--color-text); text-decoration: none; font-weight: 500;
}
.customer-name-link:hover { color: #1a73e8; }

/* Popup tabs */
.popup-tabs {
    display: flex; border-bottom: 1px solid var(--color-border);
    padding: 0 20px; gap: 0; flex-shrink: 0;
}
.popup-tab {
    padding: 10px 16px; border: none; background: none; cursor: pointer;
    font-size: 13px; font-weight: 500; color: var(--color-text-muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.popup-tab:hover { color: var(--color-text); }
.popup-tab.active { color: #1a73e8; border-bottom-color: #1a73e8; }
.popup-tab-content { display: none; }
.popup-tab-content.active { display: block; }

/* Popup customer details */
.popup-customer-info { margin-bottom: 20px; }
.popup-customer-name { font-size: 16px; font-weight: 600; }
.popup-customer-company { font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }
.popup-customer-contact { font-size: 13px; margin-top: 8px; color: var(--color-text-muted); }
.popup-details { border-top: 1px solid var(--color-border); padding-top: 12px; }
.popup-detail-row {
    display: flex; justify-content: space-between; padding: 6px 0;
    font-size: 13px; border-bottom: 1px solid #f0f0f0;
}
.popup-detail-row span:first-child { color: var(--color-text-muted); }
.popup-detail-row span:last-child { font-weight: 500; }

/* Popup orders table */
.popup-orders-table {
    width: 100%; border-collapse: collapse; font-size: 12px;
}
.popup-orders-table th {
    text-align: left; padding: 8px 6px; border-bottom: 2px solid var(--color-border);
    font-size: 11px; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase;
    white-space: nowrap;
}
.popup-orders-table td {
    padding: 6px; border-bottom: 1px solid #f0f0f0; vertical-align: top;
}
.popup-orders-table a { color: #1a73e8; text-decoration: none; }
.popup-orders-table a:hover { text-decoration: underline; }
.popup-items-cell { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; color: var(--color-text-muted); }

/* Customer detail tabs */
.cd-tabs {
    display: flex; border-bottom: 2px solid var(--color-border);
    margin-bottom: 20px; gap: 0;
}
.cd-tab {
    padding: 10px 20px; border: none; background: none; cursor: pointer;
    font-size: 13px; font-weight: 500; color: var(--color-text-muted);
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.cd-tab:hover { color: var(--color-text); }
.cd-tab.active { color: #1a73e8; border-bottom-color: #1a73e8; }
.cd-tab-content { display: none; }
.cd-tab-content.active { display: block; }
.cell-items { font-size: 11px; color: var(--color-text-muted); max-width: 250px; }
.cell-items span { white-space: nowrap; }

.cell-items-stacked { font-size: 11px; color: var(--color-text-muted); }
.cell-items-stacked div { white-space: nowrap; line-height: 1.6; }

/* Password reset result */
.pw-result { font-size: 13px; }
.pw-code {
    background: #e8f5e9; padding: 6px 14px; border-radius: 4px;
    font-family: monospace; font-size: 16px; font-weight: 600;
    cursor: pointer; user-select: all;
}
.pw-code:hover { background: #c8e6c9; }
.pw-error { color: #c62828; }

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

/* Statistik triple row */
.stat-row-triple {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
    margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0;
}
.stat-box { text-align: center; }
.stat-label { font-size: 11px; color: var(--color-text-muted); margin-bottom: 4px; }
.stat-value { font-size: 15px; font-weight: 600; }

/* Customer detail: order cards */
.cd-section-title {
    font-size: 16px; font-weight: 600; margin: 40px 0 14px; padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border);
}
.order-card {
    background: #fff; border: 1px solid var(--color-border); border-radius: 8px;
    margin-bottom: 14px; overflow: hidden;
}
.order-card-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 18px; background: #fafbfc; border-bottom: 1px solid var(--color-border);
    flex-wrap: wrap; gap: 10px;
}
.order-card-meta { display: flex; align-items: center; gap: 12px; }
.order-card-nr {
    font-size: 15px; font-weight: 700; color: #1a73e8; text-decoration: none;
    font-family: var(--font-mono, monospace);
}
.order-card-nr:hover { text-decoration: underline; }
.order-card-date { font-size: 13px; color: var(--color-text-muted); }
.order-card-badge {
    font-size: 11px; padding: 3px 10px; border-radius: 12px;
    background: #e8eaf6; color: #283593; font-weight: 500;
}
.order-card-summary { display: flex; align-items: center; gap: 14px; }
.order-card-pill {
    font-size: 12px; color: var(--color-text-muted);
}
.order-card-pill-label { font-weight: 600; color: var(--color-text); margin-right: 3px; }
.order-card-total {
    font-size: 16px; font-weight: 700; color: var(--color-text);
    padding-left: 14px; border-left: 1px solid var(--color-border);
}
.order-card-items { padding: 0; }
.order-items-table { width: 100%; border-collapse: collapse; }
.order-items-table th {
    padding: 8px 18px; font-size: 11px; font-weight: 600;
    color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.3px;
    border-bottom: 1px solid #f0f0f0; text-align: left;
}
.order-items-table td {
    padding: 10px 18px; border-bottom: 1px solid #f5f5f5; font-size: 13px;
}
.order-items-table tr:last-child td { border-bottom: none; }
.oi-name { display: block; font-weight: 500; }
.oi-sku { display: block; font-size: 11px; color: var(--color-text-muted); margin-top: 2px; font-family: var(--font-mono, monospace); }
.oc-toggle { cursor: pointer; user-select: none; }
.oc-toggle:hover { background: #f0f1f3; }
.oc-arrow { transition: transform .2s; opacity: .55; flex-shrink: 0; }
.order-card.oc-collapsed .oc-arrow { transform: rotate(-90deg); }
.order-card.oc-collapsed .oc-body { display: none; }
.order-card:not(.oc-collapsed) .order-card-header { border-bottom: 1px solid var(--color-border); }
.order-card.oc-collapsed .order-card-header { border-bottom: none; }
.oc-status {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; padding: 5px 12px; border-radius: 14px; font-weight: 600;
    border: 1px solid transparent; line-height: 1.2;
}
.oc-status::before {
    content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
}
.oc-status.paid    { background: #d4edda; color: #155724; border-color: #a3d9a5; }
.oc-status.paid::before    { background: #28a745; }
.oc-status.partial { background: #fff3cd; color: #856404; border-color: #f0d97a; }
.oc-status.partial::before { background: #f0ad4e; }
.oc-status.open    { background: #f8d7da; color: #842029; border-color: #f1aeb5; }
.oc-status.open::before    { background: #dc3545; }
.oc-status.unknown { background: #eef0f3; color: #495057; border-color: #d0d7de; }
.oc-status.unknown::before { background: #adb5bd; }
.search-override-hint {
    display: flex; align-items: center; gap: 10px;
    background: #fff8e1; border: 1px solid #f0d97a; color: #8a6d1d;
    padding: 8px 14px; border-radius: 6px; font-size: 13px;
    margin: 0 0 14px 0;
}
.search-override-hint svg { flex-shrink: 0; }
.search-override-hint a { margin-left: auto; color: #8a6d1d; font-weight: 600; text-decoration: underline; }
.search-override-hint a:hover { color: #5d4910; }

/* Order-Card Tabellen-Grid (Spalten in jeder Zeile ausgerichtet) */
.order-card-header {
    display: grid;
    grid-template-columns: 18px 220px 150px 140px 280px 110px 1fr;
    align-items: center;
    column-gap: 18px;
    padding: 14px 22px;
}
.oc-col { display: flex; flex-direction: column; min-width: 0; }
.oc-col-label {
    font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
    color: var(--color-text-muted); margin-bottom: 4px;
}
.oc-col-value { font-size: 13px; line-height: 1.3; color: var(--color-text); }
.oc-col-sub { font-size: 12px; color: var(--color-text-muted); margin-left: 8px; }
.order-card-total {
    font-size: 16px; font-weight: 700;
    text-align: right; padding-left: 16px; border-left: 1px solid var(--color-border);
}


/* Rendered signature placeholder in conversation */
.td-sig-rendered {
    margin-top: 12px; padding-top: 32px; border-top: 1px solid #ddd;
    font-size: 13px; line-height: 1.6;
}

.bulk-btn-resolved { background: #34a853; color: #fff; }
.bulk-btn-resolved:hover { background: #2d8f47; }

/* Ticket detail: orders sidebar (Zendesk style) */
.td-sidebar-content-orders {
    margin: 0 10px 10px 10px; background-color: #fff;
    padding: 5px 15px 10px; border-radius: 6px;
}
.td-order-count {
    display: inline-block; background: #e8eaf6; color: #283593;
    font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 10px;
    margin-left: 4px; vertical-align: middle;
}
.tdo-row {
    padding: 10px 0; border-bottom: 1px solid #eee;
}
.tdo-row:last-child { border-bottom: none; }
.tdo-main {
    display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px;
}
.tdo-nr {
    font-weight: 600; font-size: 13px; color: #1a73e8; text-decoration: none;
    min-width: 65px;
}
.tdo-nr:hover { text-decoration: underline; }
.tdo-date { font-size: 12px; color: var(--color-text-muted); flex: 1; }
.tdo-date small { font-size: 10px; color: #aaa; }
.tdo-amount { font-size: 12px; font-weight: 500; white-space: nowrap; }
.tdo-status { padding-left: 0; }
.tdo-badge {
    display: inline-block; font-size: 10px; padding: 2px 8px; border-radius: 3px;
    background: #fff3cd; color: #856404; font-weight: 500;
}

/* Drag & drop + attachments */
.td-dragover { background: #e3f2fd !important; border: 2px dashed #1a73e8 !important; }
.td-reply-hint-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; flex: 1; }
.td-attachments { display: flex; gap: 6px; flex-wrap: wrap; }
.td-att-item {
    display: inline-flex; align-items: center; gap: 4px;
    background: #e8eaf6; padding: 3px 8px; border-radius: 4px;
    font-size: 11px; color: #283593; white-space: nowrap;
}
.td-att-item small { color: #666; }
.td-att-remove {
    background: none; border: none; cursor: pointer; color: #999;
    font-size: 14px; padding: 0 2px; line-height: 1;
}
.td-att-remove:hover { color: #c62828; }

/* DB Browser */
.db-layout { display: flex; gap: 0; min-height: calc(100vh - 160px); }
.db-sidebar {
    width: 240px; flex-shrink: 0; border-right: 1px solid var(--color-border);
    overflow-y: auto; background: #fafbfc;
}
.db-sidebar-title {
    padding: 12px 14px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; color: var(--color-text-muted); letter-spacing: 0.5px;
    border-bottom: 1px solid var(--color-border);
}
.db-table-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 7px 14px; cursor: pointer; font-size: 12px; border-bottom: 1px solid #f0f0f0;
}
.db-table-item:hover { background: #eef; }
.db-table-item.active { background: #e3f2fd; font-weight: 600; }
.db-table-name { font-family: var(--font-mono, monospace); }
.db-table-count { font-size: 10px; color: var(--color-text-muted); }
.db-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.db-toolbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 16px; border-bottom: 1px solid var(--color-border); flex-shrink: 0;
}
.db-toolbar-left { display: flex; align-items: center; gap: 10px; }
.db-toolbar-right { display: flex; align-items: center; gap: 8px; }
.db-record-count { font-size: 11px; color: var(--color-text-muted); }
.db-search {
    padding: 5px 10px; border: 1px solid var(--color-border); border-radius: 4px;
    font-size: 12px; width: 200px;
}
.db-fields { padding: 0 16px; border-bottom: 1px solid var(--color-border); flex-shrink: 0; }
.db-fields-title {
    padding: 8px 0; font-size: 11px; font-weight: 600; color: var(--color-text-muted);
    display: flex; align-items: center; gap: 6px;
}
.db-fields-toggle { background: none; border: none; cursor: pointer; font-size: 14px; color: #999; }
.db-fields-table { width: 100%; font-size: 11px; margin-bottom: 8px; border-collapse: collapse; }
.db-fields-table th { text-align: left; padding: 4px 8px; color: var(--color-text-muted); font-weight: 600; }
.db-fields-table td { padding: 3px 8px; border-top: 1px solid #f0f0f0; }
.db-fields-table a { color: #1a73e8; }
.db-data { flex: 1; overflow: auto; }
.db-table td { font-size: 11px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.db-table th { font-size: 10px; white-space: nowrap; }
.db-empty { text-align: center; padding: 60px; color: var(--color-text-muted); }
.db-pagination {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 16px; border-top: 1px solid var(--color-border); flex-shrink: 0;
}

/* Sidebar category titles */
.nav-category {
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px;
}

.cell-date-3l { font-size: 11px; text-align: left; line-height: 1.5; white-space: nowrap; }

.bulk-btn-approve { background: #1a73e8; color: #fff; }
.bulk-btn-approve:hover { background: #1557b0; }
.bulk-btn-revoke { background: #c62828; color: #fff; }
.bulk-btn-revoke:hover { background: #a01e1e; }

/* VPN Monitoring Widget */
.vpn-visual {
    display: flex; align-items: center; justify-content: center;
    gap: 0; padding: 20px 10px;
}
.vpn-node {
    display: flex; flex-direction: column; align-items: center;
    min-width: 140px;
}
.vpn-server {
    width: 64px; height: 64px; border-radius: 12px; display: flex;
    align-items: center; justify-content: center;
    border: 2px solid var(--color-border);
    transition: all 0.3s;
}
.vpn-online { border-color: #34a853; color: #34a853; background: #f0faf3; }
.vpn-offline { border-color: #c62828; color: #c62828; background: #fef0f0; }
.vpn-node-label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.vpn-node-ips { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.vpn-ip { font-size: 10px; color: var(--color-text-muted); font-family: var(--font-mono, monospace); }
.vpn-node-status { margin-top: 6px; }

.vpn-tunnel {
    display: flex; align-items: center; flex: 1;
    max-width: 300px; margin: 0 10px;
}
.vpn-line {
    flex: 1; height: 3px; border-radius: 2px;
}
.vpn-line-up { background: #34a853; }
.vpn-line-restart { background: #ea8600; animation: vpn-pulse 1s infinite; }
.vpn-line-down { background: #c62828; }

.vpn-cloud {
    display: flex; flex-direction: column; align-items: center;
    padding: 8px 16px; border-radius: 12px; margin: 0 8px;
    border: 2px solid var(--color-border);
    min-width: 100px;
}
.vpn-cloud-up { border-color: #34a853; color: #34a853; background: #f0faf3; }
.vpn-cloud-restart { border-color: #ea8600; color: #ea8600; background: #fff8f0; }
.vpn-cloud-down { border-color: #c62828; color: #c62828; background: #fef0f0; }
.vpn-tunnel-status { font-size: 11px; font-weight: 600; margin-top: 2px; }

@keyframes vpn-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Fortgeführt zu column */
.cell-fortgefuehrt { font-size: 11px; white-space: nowrap; }
.fortgefuehrt-re { color: #1a73e8; font-weight: 500; }
.fortgefuehrt-gs { color: #c62828; font-weight: 500; }

/* Versand Widget */
.versand-table { width: 100%; border-collapse: collapse; }
.versand-num { font-size: 28px; font-weight: 700; text-align: center; width: 50%; padding: 4px 0; }
.versand-label { font-size: 11px; color: var(--color-text-muted); text-align: center; }
.versand-sub { font-size: 11px; color: var(--color-text-muted); text-align: center; margin-top: 6px; }

/* Support Tickets */
.nav-item-highlight {
    background: linear-gradient(135deg, #1a73e8 0%, #4a90d9 100%) !important;
    color: #fff !important; margin: 4px 8px; border-radius: 6px;
    font-weight: 600 !important;
}
.nav-item-highlight:hover { opacity: 0.9; }
.nav-item-highlight .nav-icon { stroke: #fff !important; }
.support-ticket {
    background: #fff; border: 1px solid var(--color-border); border-radius: 8px;
    margin-bottom: 12px; overflow: hidden;
}
.support-open { border-left: 4px solid #ea8600; }
.support-resolved { border-left: 4px solid #34a853; opacity: 0.8; }
.support-ticket-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 14px 18px; background: #fafbfc; border-bottom: 1px solid #f0f0f0;
    flex-wrap: wrap; gap: 8px;
}
.support-ticket-meta { display: flex; align-items: center; gap: 10px; }
.support-ticket-nr { font-weight: 700; font-family: var(--font-mono, monospace); color: var(--color-text-muted); }
.support-ticket-subject { font-weight: 600; font-size: 14px; }
.support-ticket-info { font-size: 12px; color: var(--color-text-muted); display: flex; gap: 6px; }
.support-ticket-body { padding: 14px 18px; font-size: 13px; line-height: 1.6; }
.support-ticket-resolution {
    padding: 12px 18px; background: #f0faf3; border-top: 1px solid #dcfce7;
    font-size: 13px; line-height: 1.6;
}
.support-ticket-actions { padding: 10px 18px; border-top: 1px solid #f0f0f0; }

/* Collapsible nav section */
.nav-collapsible { cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.nav-collapse-arrow { transition: transform 0.2s; opacity: 0.5; }
.nav-section.collapsed .nav-collapse-content { display: none !important; }
.nav-section:not(.collapsed) .nav-collapse-content { display: block !important; }
.nav-section:not(.collapsed) .nav-collapse-arrow { transform: rotate(180deg); }

/* Support ticket accordion */
.st-accordion { cursor: pointer; user-select: none; }
.st-accordion:hover { background: #f0f1f3; }
.st-arrow { transition: transform 0.2s; flex-shrink: 0; }
.st-expanded .st-arrow { transform: rotate(180deg); }
.st-collapse-body { display: none; }
.st-expanded .st-collapse-body { display: block; }

/* Ticket list: subject + preview */
.tl-subject { display: block; font-weight: 600; font-size: 12px; }
.tl-preview {
    display: block; font-weight: 300; font-size: 11px; color: var(--color-text-muted);
    margin-top: 2px; line-height: 1.4; text-align: justify;
    overflow: hidden; text-overflow: ellipsis;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.td-status-group {
    display: flex; align-items: center; gap: 6px;
    background: rgba(26, 115, 232, 0.1); padding: 4px 10px;
    border-radius: 4px;
}

.td-reply-extra {
    display: flex; align-items: center; gap: 6px; margin-left: auto;
}

/* Reply actions 2-line grid */
.td-reply-actions-grid { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; }
.td-reply-col { display: flex; flex-direction: column; gap: 4px; }
.td-btn-full { width: 100%; text-align: center; }
.td-reply-label { font-size: 11px; color: var(--color-text-muted); padding: 0 2px; }
.td-btn-resolved-bottom { align-self: center; white-space: nowrap; }

.td-assign-group {
    background: rgba(234, 134, 0, 0.1); padding: 6px 10px;
    border-radius: 4px;
}
.td-assign-label { font-size: 11px; color: #ea8600; font-weight: 500; padding: 0 2px; }
.td-assign-select { border-color: rgba(234, 134, 0, 0.3); }

.td-btn-orange { background: #ed6f00; color: #fff; border-color: #ed6f00; cursor: default; display: inline-flex; align-items: center; justify-content: center; height: 33px; }

.td-assign-wrap {
    background: rgba(237, 111, 0, 0.1); padding: 4px 10px;
    border-radius: 4px;
}

.parcel-dpd-btn { font-size: 11px; margin-left: 8px; display: inline-flex; align-items: center; gap: 4px; }

/* Image lightbox popup */
.img-lightbox {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,.85); cursor: pointer;
    justify-content: center; align-items: center;
}
.img-lightbox.show { display: flex; }
.img-lightbox img {
    max-width: 90vw; max-height: 90vh; border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,.5); cursor: default;
}
.td-msg-body img { cursor: pointer; max-width: 100%; height: auto; }

/* Sidebar navigation badges */
.nav-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: 9px; font-size: 10px; font-weight: 600;
    background: rgba(255,255,255,0.2); color: #fff;
    margin-left: auto;
}
.nav-badge-new { background: #ef4444; }
.nav-badge-warn { background: #ea8600; }
.nav-badge-ok { background: #22c55e; }
.nav-item { display: flex; align-items: center; gap: 4px; }

/* Mail Templates */
.mt-layout { display: flex; gap: 0; min-height: calc(100vh - 160px); }
.mt-sidebar {
    width: 250px; flex-shrink: 0; border-right: 1px solid var(--color-border);
    overflow-y: auto; background: #fafbfc;
}
.mt-sidebar-title {
    padding: 12px 14px; font-size: 11px; font-weight: 600;
    text-transform: uppercase; color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-border);
}
.mt-event-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; cursor: pointer; font-size: 12px;
    border-bottom: 1px solid #f0f0f0; text-decoration: none; color: var(--color-text);
}
.mt-event-item:hover { background: #eef; }
.mt-event-item.active { background: #e3f2fd; font-weight: 600; }
.mt-event-name { flex: 1; }
.mt-editor { flex: 1; padding: 20px; overflow-y: auto; }
.mt-editor-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 16px;
}
.mt-editor-header h3 { margin: 0; }
.mt-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.mt-toggle input { width: 18px; height: 18px; cursor: pointer; }
.mt-toggle-label { font-weight: 500; }
.mt-field { margin-bottom: 16px; }
.mt-field label { display: block; font-size: 12px; font-weight: 600; color: var(--color-text-muted); margin-bottom: 4px; }
.mt-input {
    width: 100%; padding: 8px 12px; border: 1px solid var(--color-border);
    border-radius: 4px; font-size: 13px;
}
.mt-placeholders { display: flex; flex-wrap: wrap; gap: 6px; }
.mt-placeholder {
    display: inline-block; padding: 3px 8px; border-radius: 4px;
    background: #e8eaf6; color: #283593; font-size: 11px;
    font-family: var(--font-mono, monospace); cursor: pointer;
}
.mt-placeholder:hover { background: #c5cae9; }
.mt-actions { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.mt-updated { font-size: 11px; color: var(--color-text-muted); }
.mt-empty { text-align: center; padding: 60px; color: var(--color-text-muted); }

/* Order detail: Versandkommunikation */
.notif-card {
    padding: 12px 14px; margin-bottom: 10px; border: 1px solid var(--color-border);
    border-radius: 6px; cursor: pointer; background: #fff;
    transition: background 0.15s;
}
.notif-card:last-of-type { margin-bottom: 0; }
.notif-card:hover { background: #f5f8ff; }
.notif-row { font-size: 12px; line-height: 1.6; }
.notif-label { color: var(--color-text-muted); display: inline-block; width: 100px; }
.notif-preview {
    font-size: 11px; color: var(--color-text-muted); margin-top: 6px;
    font-weight: 300; line-height: 1.4; text-align: justify;
}

.notif-card-inner { display: flex; justify-content: space-between; align-items: flex-start; }
.notif-card-left { flex: 1; min-width: 0; }
.notif-card-right {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    color: var(--color-text-muted); font-size: 10px; padding: 4px 8px;
    flex-shrink: 0;
}
.notif-card:hover .notif-card-right { color: #1a73e8; }

.vm-preview-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; border-radius: 4px;
    background: #f0f4ff; border: 1px solid #d0daf0;
    color: #1a73e8; font-size: 11px; font-weight: 500;
    text-decoration: none; white-space: nowrap;
    transition: all 0.15s;
}
.vm-preview-btn:hover {
    background: #1a73e8; color: #fff; border-color: #1a73e8;
}
.vm-preview-btn:hover svg { stroke: #fff; }

/* Header support ticket button */
.header-support-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 6px;
    background: linear-gradient(135deg, #1a73e8 0%, #4a90d9 100%);
    color: #fff; font-size: 12px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
    transition: opacity 0.15s;
}
.header-support-btn:hover { opacity: 0.85; }
.header-support-btn svg { stroke: #fff; }

/* Wunschversand-Modal (Bestelldetail) */
.card-action-link { font-size: 13px; color: var(--color-primary, #1a73e8); text-decoration: none; font-weight: 500; }
.card-action-link:hover { text-decoration: underline; }
.wunsch-date { font-size: 22px; font-weight: 600; margin: 0; color: var(--color-text, #222); }
.wv-modal-backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 9999;
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.wv-modal {
    background: #fff; border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.25);
    width: 100%; max-width: 420px; overflow: hidden;
}
.wv-modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid #eee;
}
.wv-modal-header h3 { margin: 0; font-size: 16px; }
.wv-modal-close {
    background: none; border: none; font-size: 24px; cursor: pointer;
    color: #666; padding: 0; line-height: 1; width: 28px; height: 28px;
}
.wv-modal-close:hover { color: #000; }
.wv-modal-body { padding: 16px 18px 18px; }
.wv-month-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; font-weight: 600; font-size: 15px;
}
.wv-nav-btn {
    background: #f3f4f6; border: 1px solid #ddd; border-radius: 6px;
    width: 32px; height: 32px; cursor: pointer; font-size: 18px; line-height: 1;
}
.wv-nav-btn:hover { background: #e5e7eb; }
.wv-calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.wv-weekday { font-size: 11px; font-weight: 600; color: #888; text-align: center; padding: 4px 0; }
.wv-empty { /* spacer cell */ }
.wv-day {
    aspect-ratio: 1; border: 1px solid #e5e7eb; border-radius: 6px;
    background: #fafafa; cursor: pointer; font-size: 13px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    color: #999;
}
.wv-day.wv-shipping { background: #e6f4ea; color: #155724; border-color: #b7dfc4; font-weight: 600; }
.wv-day.wv-shipping:hover { background: #cfe9d8; cursor: pointer; }
.wv-day.wv-disabled { background: #fafafa; color: #ccc; cursor: not-allowed; }
.wv-day.wv-past { opacity: 0.4; }
.wv-day.wv-today { outline: 2px solid #1a73e8; outline-offset: -2px; }
.wv-day:disabled { cursor: not-allowed; }
.wv-modal-footer {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; gap: 12px;
}
.wv-btn {
    border: 1px solid #ddd; background: #f3f4f6; border-radius: 6px;
    padding: 6px 12px; font-size: 13px; cursor: pointer;
}
.wv-btn-secondary { color: #555; }
.wv-btn:hover { background: #e5e7eb; }
.wv-feedback { font-size: 12px; color: #666; }
.dash-hero-date { font-size: 13px; color: var(--color-text-muted); font-weight: 500; margin-left: 4px; }

/* Vorlauf-Tabelle in der Versandlauf-Card */
.vorlauf-table { width: 100%; margin: 0; font-size: 14px; border-collapse: collapse; }
.vorlauf-table td { padding: 8px 6px; border-bottom: 1px solid #eee; }
.vorlauf-table tr:last-child td { border-bottom: none; }
.vorlauf-day { font-weight: 600; }
.vorlauf-count { white-space: nowrap; }
.vorlauf-pakete { font-weight: 700; }
.vorlauf-row-next .vorlauf-day,
.vorlauf-row-next .vorlauf-pakete { color: #1a73e8; }
.vorlauf-row-next td { background: #f5faff; }
.vorlauf-row-spaeter td { color: #888; font-style: italic; }
.vorlauf-row-spaeter .vorlauf-pakete { font-weight: 600; }

/* Ticket-anlegen-Modal */
.tk-row { margin-bottom: 12px; }
.tk-label { display: block; font-size: 12px; font-weight: 600; color: #555; margin-bottom: 4px; }
.tk-input { width: 100%; padding: 7px 10px; border: 1px solid #d6d6d6; border-radius: 6px; font: inherit; box-sizing: border-box; }
.tk-input:focus { outline: none; border-color: #1a73e8; box-shadow: 0 0 0 2px rgba(26,115,232,0.15); }
textarea.tk-input { resize: vertical; min-height: 110px; font-family: inherit; }

/* Aktionen-Container: Aktionen vertikal stapeln, jede Zeile darf intern flex-wrap */
.actions-stack { display: flex; flex-direction: column; gap: 12px; }
.action-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.action-label { font-weight: 600; color: #555; min-width: 110px; }

/* Aktionen-Tabelle: zwei Spalten Label/Aktion, jede Aktion in eigener Zeile */
.actions-table { width: 100%; border-collapse: collapse; }
.actions-table th, .actions-table td { padding: 10px 0; text-align: left; vertical-align: middle; border-bottom: 1px solid #f0f0f0; font-weight: normal; }
.actions-table tr:last-child th, .actions-table tr:last-child td { border-bottom: none; }
.actions-table th { width: 160px; color: #555; font-weight: 600; padding-right: 16px; }
.actions-table td { display: table-cell; }

/* iOS-style Toggle Switch */
.toggle-switch { position: relative; display: inline-block; width: 44px; height: 24px; vertical-align: middle; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc; transition: background-color .2s; border-radius: 24px;
}
.toggle-slider::before {
    position: absolute; content: ""; height: 18px; width: 18px;
    left: 3px; bottom: 3px; background-color: #fff; transition: transform .2s;
    border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch input:checked + .toggle-slider { background-color: #28a745; }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }
.toggle-label { margin-left: 10px; font-size: 13px; color: #555; vertical-align: middle; }

/* Ticket-Detail Sidebar Aktionen */
.td-action-link { display: inline-block; font-size: 13px; color: #1a73e8; text-decoration: none; padding: 4px 0; }
.td-action-link:hover { text-decoration: underline; }
.td-action-danger { color: #cd3642; }
.td-action-result { font-size: 12px; }

.td-sidebar-content-aktionen {
    margin: 0 10px 10px 10px;
    background-color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
}

/* ─── Versandstatistik (Erkenntnisse) ─── */
.page-title-sub { display:block; font-size: 13px; color: #888; margin-top: 2px; font-weight: 500; }
.vs-filterbar { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.vs-quick { background:#fff; border:1px solid #d6d6d6; border-radius:6px; padding:6px 12px; font-size:13px; cursor:pointer; transition:all .15s; }
.vs-quick:hover { background:#f0f4ff; border-color:#1a73e8; }
.vs-quick.active { background:#1a73e8; color:#fff; border-color:#1a73e8; }
.vs-sep { color:#bbb; margin:0 4px; }
.vs-dash { color:#999; }
.vs-date { padding:5px 8px; border:1px solid #d6d6d6; border-radius:6px; font-size:13px; }
.vs-btn { background:#1a73e8; color:#fff; border:none; border-radius:6px; padding:6px 14px; font-size:13px; cursor:pointer; font-weight:500; }
.vs-btn:hover { background:#1557b0; }

.vs-kpi-grid { display:grid; grid-template-columns: repeat(6, 1fr); gap:14px; margin: 14px 0 20px; }
.vs-kpi {
    background:#fff; border-radius:10px; padding:16px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #eee;
    position:relative; overflow:hidden;
}
.vs-kpi-primary { background: linear-gradient(135deg, #1a73e8 0%, #4a90e2 100%); color:#fff; border:none; }
.vs-kpi-primary .vs-kpi-label, .vs-kpi-primary .vs-kpi-delta { color: rgba(255,255,255,0.85); }
.vs-kpi-accent { background: linear-gradient(135deg, #34a853 0%, #4ec57d 100%); color:#fff; border:none; }
.vs-kpi-accent .vs-kpi-label, .vs-kpi-accent .vs-kpi-delta { color: rgba(255,255,255,0.85); }
.vs-kpi-label { font-size:11px; text-transform:uppercase; letter-spacing:0.5px; font-weight:600; color:#888; margin-bottom:6px; }
.vs-kpi-value { font-size:30px; font-weight:700; line-height:1.1; color:#222; }
.vs-kpi-primary .vs-kpi-value, .vs-kpi-accent .vs-kpi-value { color:#fff; }
.vs-kpi-delta { font-size:11px; margin-top:6px; color:#666; min-height: 14px; }
.vs-delta.up { color:#34a853; font-weight:600; }
.vs-delta.down { color:#cd3642; font-weight:600; }
.vs-kpi-primary .vs-delta.up, .vs-kpi-accent .vs-delta.up { color:#b9f5cd; }
.vs-kpi-primary .vs-delta.down, .vs-kpi-accent .vs-delta.down { color:#ffd0c5; }

.vs-insights { display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap; }
.vs-insight {
    flex: 1 1 280px; background:#fff; border:1px solid #eee; border-radius:8px;
    padding:12px 16px; font-size:13px; color:#333; display:flex; align-items:center; gap:10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.vs-insight-icon { font-size:22px; line-height:1; }
.vs-insight-best { border-left: 3px solid #34a853; }
.vs-insight-slow { border-left: 3px solid #fbbc04; }
.vs-insight-avg  { border-left: 3px solid #1a73e8; }

.vs-card { background:#fff; border-radius:10px; box-shadow:0 1px 3px rgba(0,0,0,0.04); border:1px solid #eee; margin-bottom:20px; }
.vs-card-header { display:flex; align-items:center; justify-content:space-between; padding: 14px 20px; border-bottom: 1px solid #f0f0f0; }
.vs-card-header h3 { margin:0; font-size:15px; font-weight:600; color:#222; }
.vs-card-sub { font-size:12px; color:#888; }
.vs-card-toolbar { display:flex; gap:6px; }
.vs-toggle { background:#f4f5f7; border:1px solid #e6e6e6; border-radius:6px; padding:5px 12px; font-size:12px; cursor:pointer; color:#555; }
.vs-toggle.active { background:#1a73e8; color:#fff; border-color:#1a73e8; }
.vs-card-body { padding: 16px 20px 20px; }
.vs-chart-wrap { position: relative; height: 360px; }

.vs-heatmap { overflow-x:auto; }
.vs-heatmap-table { border-collapse: separate; border-spacing: 2px; font-size: 12px; }
.vs-heatmap-table th { font-weight:600; color:#666; padding:4px 8px; font-size:11px; text-align:center; }
.vs-heatmap-table th:first-child { text-align:right; min-width:90px; }
.vs-heatmap-table td { padding:8px 10px; text-align:center; min-width:34px; border-radius:4px; font-weight:600; }

.vs-detail-table { width:100%; font-size:13px; border-collapse:collapse; }
.vs-detail-table th, .vs-detail-table td { padding:8px 10px; border-bottom:1px solid #f0f0f0; }
.vs-detail-table th { font-weight:600; color:#555; text-align:left; font-size:12px; text-transform:uppercase; letter-spacing:0.4px; }
.vs-detail-table .text-right { text-align:right; }
.vs-td-time { font-family: ui-monospace,Menlo,Consolas,monospace; font-weight:600; }
.vs-td-pakete { font-weight:700; }
.vs-trend.up { color:#34a853; font-weight:600; }
.vs-trend.down { color:#cd3642; font-weight:600; }
.vs-trend.neutral { color:#aaa; }
.vs-trend { font-family: ui-monospace,Menlo,Consolas,monospace; font-size:12px; }

@media (max-width: 1300px) { .vs-kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .vs-kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.vs-filter-label { font-size:12px; color:#555; font-weight:600; }
.vs-select { padding:5px 8px; border:1px solid #d6d6d6; border-radius:6px; font-size:13px; background:#fff; cursor:pointer; }
.vs-select:focus { outline:none; border-color:#1a73e8; }
