/* ======================================================================
   OMNIPLAN – GESAMTES STYLESHEET
   Vollständig zusammengeführt aus allen hochgeladenen CSS-Dateien.
   Reihenfolge: Basis → UI → Auth → Seitenmodule.
   ====================================================================== */

/* ======================================================================
   GRUNDLAGEN / APP
   Quelle: app.css
   ====================================================================== */
:root {
  --navy: #10243a;
  --blue: #1769aa;
  --bg: #f4f7fb;
  --card: #fff;
  --text: #17212b;
  --muted: #6c7885;
  --border: #dfe6ee;
  --red: #ba2d35;
  --green: #18794e;
  --amber: #9a6700;
}

* {
  box-sizing: border-box
}

html{
  background-color: white;
}

html:not(.app-ready) body {
  visibility: hidden;
}

html.app-ready body {
  visibility: visible;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  width: 100dvw;
  height: 100dvh;
}

button,
input,
select,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

.toast {
  position: fixed;
  right: 18px;
  top: 18px;
  background: #17212b;
  color: white;
  padding: 12px 16px;
  border-radius: 10px;
  z-index: 99
}

.toast-stack {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 9px;
  pointer-events: none;
  width: min(390px, calc(100vw - 36px))
}

.toast {
  position: static !important;
  right: auto !important;
  top: auto !important;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  color: #fff !important;
  box-shadow: 0 12px 32px rgba(20, 30, 45, .18);
  opacity: 0;
  transform: translateY(-8px);
  transition: .18s ease
}

.toast.show {
  opacity: 1;
  transform: translateY(0)
}

.toast-success {
  background: #198754 !important
}

.toast-error {
  background: #c43d47 !important
}

.toast-info {
  background: #2563a8 !important
}

.toast-icon {
  font-weight: 900;
  font-size: 16px;
  line-height: 1.2
}

/* ======================================================================
   APP-LAYOUT / SIDEBAR / UI
   Quelle: ui.css
   ====================================================================== */
#app{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 15px;
    gap: 10px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -270px;
    width: 240px;
    min-height: 100dvh;
    background: var(--navy);
    color: #ffffff;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    gap: 12px;
    transition: left 0.25s ease;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.sidebar.open {
    left: 0;
}

.side-nav {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.side-nav button {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    min-height: 42px;
    padding: 9px 12px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    border: none;
    background: transparent;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.15s ease;
}

.side-nav button img {
    width: 20px;
    height: 20px;

    object-fit: contain;
}

.side-nav button:hover {
    background: rgba(255, 255, 255, 0.10);

    color: #ffffff;

    transform: translateX(2px);
}

.side-nav button.active {
    background: rgba(255, 255, 255, 0.16);

    color: #ffffff;

    font-weight: 700;
}

.brand {
    display: flex;
    flex-direction: column;

    gap: 5px;

    margin: 4px 8px 18px;

    color: inherit;

    text-decoration: none;
}

.brand img {
    display: block;

    width: 100%;
    max-width: 180px;
    height: auto;

    margin: auto;

    padding: 7px;

    background: #ffffff;

    border-radius: 12px;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.12);
}

.brand small {
    margin-top: 3px;

    text-align: center;

    color: rgba(255, 255, 255, 0.55);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}

.sidebar-user {
    margin-top: auto;

    padding: 12px;

    border-top: 1px solid rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.8);

    font-size: 13px;
}

#menuBtn, #refreshBtn {
    display: inline-flex;
    position: absolute;
    top: 10px;
}

#menuBtn{
    left: 10px;
}

#refreshBtn{
    right: 10px;
}

.icon-only-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.icon-only-btn img {
    width: 22px;
    height: 22px;
    padding: 0;
    object-fit: contain;
}

#connectionStatusIndicator{
    height: 15px;
    z-index: 9999;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    pointer-events: none;
    opacity: 0.8;
    transition: background 0.3s;
}

#statusDot{
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ecc71;
    display: inline-block;
}

.page-head {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    height: 55px;
}

.headername {
    color: #0f172a;
    text-align: center;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 750;
    line-height: 1.2;
}

.muted {
    color: #64748b;
    text-align: center;
    font-size: 13px;
}

.content {
    width: 100%;
    height: calc(100% - 100px);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* ======================================================================
   AUTH / LOGIN / REGISTER
   Quelle: auth.css
   ====================================================================== */
.login,
.auth-page,
.password-page,
.register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.loginbox,
.auth-card,
.password-card,
.register-card {
    width: 100%;
    max-width: 430px;

    padding: 28px;

    background: rgba(255, 255, 255, .97);

    border: 1px solid #e2e8f0;
    border-radius: 18px;

    box-shadow:
        0 10px 25px rgba(15, 23, 42, .06),
        0 30px 70px rgba(15, 23, 42, .10);

    backdrop-filter: blur(8px);
}

.login-brand,
.auth-brand,
.password-brand,
.register-brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 6px;

    margin-bottom: 24px;

    text-align: center;
}

.login-brand img,
.auth-brand img,
.password-brand img,
.register-brand img {
    display: block;

    width: 100%;
    max-width: 190px;
    height: auto;

    padding: 8px;

    background: #ffffff;

    border: 1px solid #eef2f7;
    border-radius: 14px;

    box-shadow:
        0 5px 14px rgba(15, 23, 42, .05);
}

.login-brand small,
.auth-brand small,
.password-brand small,
.register-brand small {
    color: #64748b;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .12em;

    text-transform: uppercase;
}

.loginbox h3,
.auth-head h2,
.password-head h2,
.register-head h2 {
    margin:
        0
        0
        8px;

    color: #0f172a;

    font-size: 22px;
    font-weight: 800;

    text-align: center;
}

.auth-head,
.password-head,
.register-head {
    margin-bottom: 22px;
}

.auth-head p,
.password-head p,
.register-head p {
    margin: 0;

    color: #64748b;

    font-size: 13px;

    line-height: 1.55;

    text-align: center;
}

.modern-form,
.auth-form,
.password-card form,
.register-form {
    display: flex;
    flex-direction: column;

    gap: 14px;
}

.field,
.auth-field,
.password-field,
.register-field {
    display: flex;
    flex-direction: column;

    gap: 6px;
}

.field label,
.auth-field label,
.password-field label,
.register-field label {
    color: #475569;

    font-size: 12px;
    font-weight: 700;
}

.field input,
.auth-field input,
.password-field input,
.register-field input {
    width: 100%;
    height: 44px;

    padding:
        0
        12px;

    background: #f8fafc;

    color: #0f172a;

    border: 1px solid #dbe1e8;
    border-radius: 10px;

    outline: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.field input::placeholder,
.auth-field input::placeholder,
.password-field input::placeholder,
.register-field input::placeholder {
    color: #94a3b8;

    font-weight: 500;
}

.field input:hover,
.auth-field input:hover,
.password-field input:hover,
.register-field input:hover {
    background: #ffffff;

    border-color: #94a3b8;
}

.field input:focus,
.auth-field input:focus,
.password-field input:focus,
.register-field input:focus {
    background: #ffffff;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .10);
}

.btn,
.auth-btn,
.password-primary-btn,
.register-btn {
    min-height: 44px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        8px
        14px;

    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.btn.primary,
.auth-btn.primary,
.password-primary-btn,
.register-btn.primary {
    width: 100%;

    background: #2563eb;

    color: #ffffff;

    border: 1px solid #2563eb;

    box-shadow:
        0 5px 14px rgba(37, 99, 235, .20);
}

.btn.primary:hover,
.auth-btn.primary:hover,
.password-primary-btn:hover:not(:disabled),
.register-btn.primary:hover {
    background: #1d4ed8;

    border-color: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(37, 99, 235, .24);
}

.btn.primary:active,
.auth-btn.primary:active,
.password-primary-btn:active:not(:disabled),
.register-btn.primary:active {
    transform: translateY(0);
}

.btn:disabled,
.auth-btn:disabled,
.password-primary-btn:disabled,
.register-btn:disabled {
    opacity: .55;

    cursor: wait;

    box-shadow: none;
}

.btn.secondary,
.auth-btn.secondary,
.register-btn.secondary {
    width: 100%;

    background: #ffffff;

    color: #475569;

    border: 1px solid #dbe1e8;
}

.btn.secondary:hover,
.auth-btn.secondary:hover,
.register-btn.secondary:hover {
    background: #f8fafc;

    color: #2563eb;

    border-color: #bfdbfe;
}

.login-register,
.login-password-actions,
.auth-actions,
.password-actions,
.register-actions {
    margin-top: 12px;

    text-align: center;
}

.login-password-actions {
    margin-top: 14px;
}

.login-password-actions a,
.auth-actions a,
.password-back,
.register-actions a {
    color: #2563eb;

    font-size: 12px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color .15s ease;
}

.login-password-actions a:hover,
.auth-actions a:hover,
.password-back:hover,
.register-actions a:hover {
    color: #1d4ed8;

    text-decoration: underline;
}

.password-back {
    display: block;

    margin-top: 22px;

    text-align: center;
}

.password-back.success-link {
    padding: 10px;

    background: #eff6ff;

    color: #1d4ed8;

    border-radius: 9px;

    text-decoration: none;
}

#loginMessage,
.auth-message,
.password-message,
.register-message {
    min-height: 18px;

    margin:
        14px
        0
        0;

    font-size: 12px;

    line-height: 1.45;

    text-align: center;
}

#loginMessage:empty,
.auth-message:empty,
.password-message:empty,
.register-message:empty {
    display: none;
}

#loginMessage.success,
.auth-message.success,
.password-message.success,
.register-message.success {
    padding: 10px 12px;

    background: #f0fdf4;

    color: #166534;

    border: 1px solid #bbf7d0;
    border-radius: 9px;
}

#loginMessage.error,
.auth-message.error,
.password-message.error,
.register-message.error {
    padding: 10px 12px;

    background: #fff1f2;

    color: #be123c;

    border: 1px solid #fecdd3;
    border-radius: 9px;
}

.password-requirements,
.auth-requirements,
.register-requirements {
    display: flex;
    flex-direction: column;

    gap: 3px;

    color: #94a3b8;

    font-size: 10px;

    line-height: 1.4;
}

.password-requirements .valid,
.auth-requirements .valid,
.register-requirements .valid {
    color: #16a34a;
}

.password-requirements .invalid,
.auth-requirements .invalid,
.register-requirements .invalid {
    color: #dc2626;
}

.auth-divider {
    display: flex;
    align-items: center;

    gap: 10px;

    margin: 16px 0;

    color: #94a3b8;

    font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';

    flex: 1;

    height: 1px;

    background: #e2e8f0;
}

.google-btn {
    width: 100%;

    background: #ffffff;

    color: #334155;

    border: 1px solid #dbe1e8;
}

.google-btn:hover {
    background: #f8fafc;

    border-color: #cbd5e1;
}

.muted {
    color: #64748b;
}

@media (max-width: 500px) {

    .login,
    .auth-page,
    .password-page,
    .register-page {
        padding: 12px;
    }

    .loginbox,
    .auth-card,
    .password-card,
    .register-card {
        padding: 21px;

        border-radius: 15px;
    }

    .login-brand,
    .auth-brand,
    .password-brand,
    .register-brand {
        margin-bottom: 20px;
    }

    .login-brand img,
    .auth-brand img,
    .password-brand img,
    .register-brand img {
        max-width: 165px;
    }

    .loginbox h3,
    .auth-head h2,
    .password-head h2,
    .register-head h2 {
        font-size: 20px;
    }

}

/* ======================================================================
   PASSWORT ÄNDERN
   Quelle: changepassword.css
   ====================================================================== */
.change-password-page {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.change-password-card {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, .03), 0 14px 32px rgba(15, 23, 42, .06);
}

.change-password-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.change-password-field label {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.change-password-field input {
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding: 0 12px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.change-password-field input:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.change-password-field input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.change-password-field input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.change-password-btn {
    width: fit-content;
    min-width: 180px;
    min-height: 42px;
    align-self: flex-end;
    margin-top: 6px;
    padding: 8px 16px;
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(37, 99, 235, .18);
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.change-password-btn:hover:not(:disabled) {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(37, 99, 235, .22);
}

.change-password-btn:active:not(:disabled) {
    transform: translateY(0);
}

.change-password-btn:disabled {
    opacity: .55;
    cursor: wait;
    box-shadow: none;
}

.change-password-info {
    padding: 11px 12px;
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    font-size: 11px;
    line-height: 1.5;
}

.change-password-requirements {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 9px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.4;
}

.change-password-requirements .valid {
    color: #16a34a;
}

.change-password-requirements .invalid {
    color: #dc2626;
}

.password-input-wrap {
    position: relative;
    width: 100%;
}

.password-input-wrap input {
    padding-right: 44px;
}

.password-toggle-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    background: transparent;
    color: #64748b;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

.password-toggle-btn:hover {
    background: #f1f5f9;
    color: #2563eb;
}

@media (max-width: 650px) {
    .change-password-page {
        padding: 10px 0;
    }
    .change-password-card {
        padding: 16px;
        border-radius: 13px;
    }
    .change-password-btn {
        width: 100%;
        align-self: stretch;
    }
}

/* ======================================================================
   DASHBOARD
   Quelle: dashboard.css
   ====================================================================== */
#dashboardStats {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(180px,1fr));

    gap: 12px;

    margin-bottom: 14px;
}

#dashboardStats .stat {
    min-height: 90px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 3px 8px rgba(15,23,42,.03),
        0 10px 25px rgba(15,23,42,.05);
}

#dashboardStats .stat small {
    color: #64748b;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
}

#dashboardStats .stat strong {
    font-size: 26px;
    font-weight: 800;
}

#dashboardStats .stat:nth-child(1) strong {
    color: #2563eb;
}

#dashboardStats .stat:nth-child(2) strong {
    color: #d97706;
}

#dashboardStats .stat:nth-child(3) strong {
    color: #16a34a;
}

.dashboard-table-wrapper {
    width: 100%;

    max-height: 34dvh;

    min-height: 120px;

    overflow: auto;

    margin-bottom: 16px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 3px 8px rgba(15,23,42,.03),
        0 10px 25px rgba(15,23,42,.05);

    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.dashboard-table-wrapper::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.dashboard-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.dashboard-table-wrapper::-webkit-scrollbar-thumb {
    background: #cbd5e1;

    border: 2px solid #ffffff;
    border-radius: 999px;
}

.dashboard-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.dashboard-order-table {
    width: 100%;

    min-width: 1050px;

    border-collapse: separate;
    border-spacing: 0;

    font-size: 12px;
}

.dashboard-order-table thead {
    position: sticky;

    top: 0;

    z-index: 10;
}

.dashboard-order-table th {
    position: sticky;

    top: 0;

    z-index: 10;

    padding: 10px;

    background: #f8fafc;

    color: #475569;

    border-bottom: 1px solid #e2e8f0;

    text-align: left;

    font-size: 9px;
    font-weight: 800;

    text-transform: uppercase;

    white-space: nowrap;
}

.dashboard-order-table td {
    padding: 8px 9px;

    border-bottom: 1px solid #f1f5f9;

    color: #334155;

    vertical-align: middle;

    white-space: nowrap;
}

.dashboard-order-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-order-row {
    cursor: pointer;
}

.dashboard-order-row:hover {
    background: #f8fafc;
}

.dashboard-time {
    min-width: 75px;

    white-space: nowrap;
}

.dashboard-time strong {
    display: block;

    color: #0f172a;

    font-size: 13px;
}

.dashboard-time small {
    color: #94a3b8;

    font-size: 9px;
}

.dashboard-customer {
    min-width: 130px;
}

.dashboard-customer strong {
    display: block;

    color: #0f172a;
}

.dashboard-customer small {
    display: block;

    color: #94a3b8;

    font-size: 9px;
}

.dashboard-route {
    min-width: 140px;
    max-width: 220px;

    overflow: hidden;

    text-overflow: ellipsis;

    font-weight: 600;
}

.dashboard-inline-field {
    width: 100%;
    min-width: 120px;
    height: 33px;

    padding: 5px 8px;

    box-sizing: border-box;

    background: #f8fafc;

    color: #334155;

    border: 1px solid #dbe1e8;
    border-radius: 8px;

    outline: none;

    font-family: inherit;

    font-size: 10px;
    font-weight: 650;

    cursor: pointer;
}

.dashboard-driver-select {
    min-width: 140px;

    background:
        color-mix(
            in srgb,
            var(--driver-color,#e2e8f0) 23%,
            white
        );

    border-color:
        color-mix(
            in srgb,
            var(--driver-color,#cbd5e1) 50%,
            #dbe1e8
        );

    color: #0f172a;

    font-weight: 750;
}

.dashboard-driver-select:focus {
    border-color:
        var(--driver-color,#2563eb);

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--driver-color,#2563eb) 20%,
            transparent
        );
}

.driver-readonly {
    display: inline-flex;

    padding: 5px 8px;

    background:
        color-mix(
            in srgb,
            var(--driver-color,#e2e8f0) 20%,
            white
        );

    border: 1px solid
        color-mix(
            in srgb,
            var(--driver-color,#cbd5e1) 45%,
            #e2e8f0
        );

    border-radius: 8px;

    font-size: 10px;
    font-weight: 700;
}

.dashboard-vehicle-select {
    min-width: 145px;
}

.dashboard-status-select {
    min-width: 125px;

    font-weight: 750;
}

.order-status-offen {
    background: #fef3c7 !important;

    color: #92400e !important;

    border-color: #fde68a !important;
}

.order-status-bestaetigt,
.order-status-bestatigt {
    background: #dbeafe !important;

    color: #1d4ed8 !important;

    border-color: #bfdbfe !important;
}

.order-status-geplant {
    background: #e0e7ff !important;

    color: #4338ca !important;

    border-color: #c7d2fe !important;
}

.order-status-unterwegs,
.order-status-in-bearbeitung {
    background: #cffafe !important;

    color: #0e7490 !important;

    border-color: #a5f3fc !important;
}

.order-status-abgeschlossen {
    background: #dcfce7 !important;

    color: #166534 !important;

    border-color: #bbf7d0 !important;
}

.order-status-storniert {
    background: #fee2e2 !important;

    color: #991b1b !important;

    border-color: #fecaca !important;
}

.dashboard-invoice-status {
    min-width: 125px;

    font-weight: 750;
}

.invoice-status-offen {
    background: #fef3c7 !important;

    color: #92400e !important;

    border-color: #fde68a !important;
}

.invoice-status-vorbereitet {
    background: #e0e7ff !important;

    color: #4338ca !important;

    border-color: #c7d2fe !important;
}

.invoice-status-erstellt {
    background: #dbeafe !important;

    color: #1d4ed8 !important;

    border-color: #bfdbfe !important;
}

.invoice-status-versendet {
    background: #cffafe !important;

    color: #0e7490 !important;

    border-color: #a5f3fc !important;
}

.invoice-status-bezahlt {
    background: #dcfce7 !important;

    color: #166534 !important;

    border-color: #bbf7d0 !important;
}

.invoice-status-ueberfaellig,
.invoice-status-uberfallig {
    background: #fee2e2 !important;

    color: #991b1b !important;

    border-color: #fecaca !important;
}

.invoice-status-storniert {
    background: #f1f5f9 !important;

    color: #64748b !important;

    border-color: #cbd5e1 !important;
}

.dashboard-invoice-no {
    min-width: 105px;

    cursor: text;
}

.dashboard-money {
    color: #15803d !important;

    font-weight: 750;

    white-space: nowrap;
}

.dashboard-inline-field.is-saving {
    opacity: .45;

    cursor: wait;
}

.dashboard-inline-field.is-saved {
    box-shadow:
        0 0 0 2px rgba(34,197,94,.22);
}

.dashboard-inline-field.is-error {
    border-color: #ef4444 !important;

    box-shadow:
        0 0 0 2px rgba(239,68,68,.15);
}

.dashboard-empty {
    min-height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ffffff;

    border: 1px dashed #cbd5e1;
    border-radius: 12px;

    color: #64748b;

    font-size: 12px;
}

.cancelled-row {
    opacity: .55;

    background: #fafafa;
}

@media(max-width:1100px) {

    .dashboard-order-table {
        min-width: 1050px;
    }

    .dashboard-table-wrapper {

        max-height: 38dvh;
    }

}

@media(max-width:650px) {

    #dashboardStats {
        grid-template-columns:
            repeat(3,1fr);

        gap: 7px;
    }

    #dashboardStats .stat {
        min-height: 70px;

        padding: 10px;
    }

    #dashboardStats .stat strong {
        font-size: 20px;
    }

    .dashboard-table-wrapper {

        max-height: 42dvh;

        border-radius: 10px;
    }

    .dashboard-order-table {
        min-width: 1000px;
    }

}

/* ======================================================================
   AUFTRÄGE
   Quelle: orders.css
   ====================================================================== */
.orders-page, .orders-page { width: 100%; }

.order-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .03), 0 10px 25px rgba(15, 23, 42, .05);
}

.orders-date-navigation,
.orders-toolbar-actions,
.orders-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

.orders-toolbar-actions{
    flex: 1;
}

.orders-date-navigation{ flex: 1;}
.orders-filters { flex: 2;}

#ordersRange,
#search,
#status,
.order-table input,
.order-table select {
    height: 40px;
    width: 100%;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#ordersRange {
    width: 170px;
    height: 38px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
}

.form-control{
    flex: 1;
    min-height: 38px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#status {
    width: 165px;
    height: 38px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

#search {
    min-width: 180px;
    height: 38px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    flex: 1;
}

#ordersRange:focus,
#search:focus,
#status:focus,
.order-table input:focus,
.order-table select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.order-table input:hover,
.order-table select:hover {
    border-color: #cbd5e1;
}

.order-table input:focus,
.order-table select:focus {
    background: #fff;
}

.orders-secondary-btn,
.orders-primary-btn,
#addNewOrderBtn,
#sortToggleBtn,
#applyFilter,
#exportBtn {
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 750;
    text-decoration: none;
    width: 110px;
}

.orders-secondary-btn,
#sortToggleBtn,
#exportBtn {
    background: #f8fafc;
    color: #334155;
}

#addNewOrderBtn,
#applyFilter {
    background: #2563eb;
    color: #fff;
    white-space: nowrap;
}

.orders-secondary-btn{
    flex: 1;
}

.orders-secondary-btn:hover,
#sortToggleBtn:hover,
#exportBtn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.orders-primary-btn:hover,
#addNewOrderBtn:hover,
#applyFilter:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
}

.orders-secondary-btn:active,
.orders-primary-btn:active,
#addNewOrderBtn:active,
#sortToggleBtn:active,
#applyFilter:active,
#exportBtn:active {
    transform: translateY(1px);
}

.orders-secondary-btn:disabled,
.orders-primary-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.order-table-wrapper {
    width: 100%;
    max-height: 75dvh;
    min-height: 150px;
    overflow: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .03), 0 10px 25px rgba(15, 23, 42, .05);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.order-table-wrapper::-webkit-scrollbar { width: 10px; height: 10px; }
.order-table-wrapper::-webkit-scrollbar-track { background: transparent; }
.order-table-wrapper::-webkit-scrollbar-thumb { background: #cbd5e1; border: 2px solid #fff; border-radius: 999px; }
.order-table-wrapper::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.order-table {
    width: 100%;
    min-width: 1380px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
}

.order-table thead,
.order-table th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.order-table th {
    padding: 10px 8px;
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.order-table td, .order-table th {
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.order-table td {
    padding: 6px;
    background: #fff;
    color: #334155;
    vertical-align: middle;
    white-space: nowrap;
    transition: background .12s ease, opacity .12s ease, box-shadow .12s ease;
}

.order-table tbody tr:hover td { background: rgba(240, 128, 128, 0.24); }

.order-table td:nth-child(1), .order-table th:nth-child(1) { width: 125px; }
.order-table td:nth-child(2), .order-table th:nth-child(2) { width: 75px; }
.order-table td:nth-child(6), .order-table th:nth-child(6),
.order-table td:nth-child(7), .order-table th:nth-child(7) { width: 110px; font-weight: 600; text-align: center; }

.cancelled-row {
    background-color: #ffeeec !important;
    opacity: 0.75;
}

.is-completed {
    opacity: .78;
}
.is-completed td {
    background: #f0fdf4 !important;
}

.order-table tbody tr.is-saving td { opacity: .58; }
.order-table tbody tr.is-saved td { box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .22); }
.order-table tbody tr.is-error td { background: #fef2f2; }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    padding: 24px;
    animation: modalFadeIn 0.2s ease-out;
}

.file-modal-trigger {
    position: relative;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.has-files-pulse {
    background-color: #dbeafe !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
    font-weight: 800 !important;
    animation: filePulseAnim 2s infinite ease-in-out;
}

.order-row.new-order,
.order-row.new-order td {
  background-color: rgba(144, 238, 144, 0.3);
}

@keyframes filePulseAnim {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.has-files-pulse:hover {
    background-color: #bfdbfe !important;
    border-color: #2563eb !important;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 700px) {
    .orders-toolbar { flex-direction: column; align-items: stretch; padding: 9px; border-radius: 10px; }
    .orders-date-navigation, .orders-toolbar-actions, .orders-filters { width: 100%; }
    #ordersRange { flex: 1; width: auto; }
    #search, #status { flex: 1; min-width: 0; }
    .orders-toolbar-actions .orders-primary-btn { flex: 1; }
    .order-table-wrapper { max-height: 66dvh; border-radius: 10px; }
    .order-table { min-width: 1280px; }
    .order-table th { padding: 8px 6px; }
    .order-table td { padding: 5px; }
}

/* ======================================================================
   SERIENAUFTRÄGE
   Quelle: series.css
   ====================================================================== */
.series-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.series-card {
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.025),
    0 12px 30px rgba(15, 23, 42, 0.05);
}

.series-filter {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(220px, 300px);
  align-items: end;
  gap: 18px;
}

.series-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.series-field label {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

#seriesRange,
.series-field input,
.series-field select,
.series-field textarea,
.flatpickr-input {
  width: 100%;
  height: 42px;
  box-sizing: border-box;
  padding: 8px 12px;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.series-field textarea {
  height: auto;
  resize: vertical;
  min-height: 90px;
}

#seriesRange:hover,
.series-field input:hover,
.series-field select:hover,
.series-field textarea:hover,
.flatpickr-input:hover {
  background: #ffffff;
  border-color: #94a3b8;
}

#seriesRange:focus,
.series-field input:focus,
.series-field select:focus,
.series-field textarea:focus,
.flatpickr-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.flatpickr-calendar {
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .14) !important;
  font-family: inherit !important;
}

.flatpickr-current-month {
  font-size: 14px !important;
  font-weight: 750 !important;
}

.flatpickr-weekday {
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 750 !important;
}

.flatpickr-day {
  border-radius: 8px !important;
  font-size: 11px !important;
}

.flatpickr-day:hover {
  background: #eff6ff !important;
  border-color: #dbeafe !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}

.flatpickr-day.inRange {
  background: #dbeafe !important;
  border-color: #dbeafe !important;
  box-shadow: -5px 0 0 #dbeafe, 5px 0 0 #dbeafe !important;
}

#seriesWeekdays,
.weekday-select {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

#seriesWeekdays label,
.weekday-select label {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #dbe1e8;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color .15s ease,
    border-color .15s ease,
    color .15s ease;
}

#seriesWeekdays label:hover,
.weekday-select label:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

#seriesWeekdays input,
.weekday-select input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
  cursor: pointer;
}

.series-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.series-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 750;
}

.series-header-actions {
  display: flex;
  gap: 6px;
}

.series-small-btn {
  min-height: 32px;
  padding: 5px 12px;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #dbe1e8;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.series-small-btn:hover {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

#seriesDatesList {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.series-date-row {
  min-height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}

.series-date-row:hover {
  background: #fff;
  border-color: #bfdbfe;
}

.series-date-row input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #2563eb;
  cursor: pointer;
}

.series-date-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.series-date-main strong {
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

.series-date-main span {
  color: #94a3b8;
  font-size: 10px;
}

.series-empty {
  grid-column: 1 / -1;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 20px;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: #64748b;
  text-align: center;
}

.series-empty strong {
  color: #334155;
  font-size: 13px;
}

.series-empty span {
  font-size: 11px;
}

.series-order-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.series-order-form .series-wide {
  grid-column: span 2;
}

.series-order-form .series-info-field {
  grid-column: 1 / -1;
}

.series-create-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

#seriesCreateInfo {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

#seriesCreateBtn {
  min-height: 42px;
  padding: 0 20px;
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(22, 163, 74, 0.18);
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

#seriesCreateBtn:hover:not(:disabled) {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(22, 163, 74, .24);
}

#seriesCreateBtn:disabled {
  background: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
  opacity: .7;
}

@media(max-width: 1050px) {
  .series-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #seriesDatesList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .series-order-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media(max-width: 600px) {
  .series-filter {
    grid-template-columns: 1fr;
  }

  #seriesWeekdays,
  .weekday-select {
    grid-template-columns: repeat(4, 1fr);
  }

  #seriesDatesList {
    grid-template-columns: 1fr;
  }

  .series-order-form {
    grid-template-columns: 1fr;
  }

  .series-order-form .series-wide {
    grid-column: auto;
  }

  .series-create-footer {
    flex-direction: column;
    align-items: stretch;
  }

  #seriesCreateBtn {
    width: 100%;
  }
}

/* ======================================================================
   STATISTIK
   Quelle: statistic.css
   ====================================================================== */
.statistics-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.statistics-filter-card {
    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    padding: 20px;

    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.025),
        0 12px 30px rgba(15, 23, 42, 0.05);
}

.statistics-filter-grid {
    display: grid;

    grid-template-columns:
        minmax(260px, 1.5fr)
        minmax(180px, 1fr)
        minmax(180px, 1fr)
        minmax(190px, auto);

    gap: 14px;

    align-items: end;
}

.statistics-field {
    display: flex;
    flex-direction: column;

    gap: 6px;

    min-width: 0;
}

.statistics-field label {
    color: #64748b;

    font-size: 12px;
    font-weight: 700;
}

#statGroup,
#statMetric,
.stat-range-input {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 8px 12px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

#statGroup:hover,
#statMetric:hover,
.stat-range-input:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

#statGroup:focus,
#statMetric:focus,
.stat-range-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

.statistics-field .flatpickr-wrapper {
    display: block;
    width: 100%;
}

.statistics-field .stat-range-input {
    display: block;
    width: 100%;
}

.statistics-compare {
    min-height: 42px;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 8px 12px;

    box-sizing: border-box;

    background: #f8fafc;

    border: 1px solid #dbe1e8;
    border-radius: 10px;

    color: #334155;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    white-space: nowrap;

    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.statistics-compare:hover {
    background: #ffffff;

    border-color: #94a3b8;
}

.statistics-compare:focus-within {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.11);
}

.statistics-compare input[type="checkbox"] {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: #2563eb;

    cursor: pointer;
}

.dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(200px, 1fr));

    gap: 14px;

    margin-bottom: 16px;
}

.dashboard-stats .stat {
    min-height: 105px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 6px;

    padding: 18px 20px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.025),
        0 12px 30px rgba(15, 23, 42, 0.05);

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.dashboard-stats .stat:hover {
    transform: translateY(-1px);

    box-shadow:
        0 6px 10px rgba(0, 0, 0, 0.03),
        0 15px 34px rgba(15, 23, 42, 0.07);
}

.dashboard-stats .stat small {
    color: #64748b;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.05em;
}

.dashboard-stats .stat strong {
    color: #0f172a;

    font-size: 28px;
    font-weight: 800;

    line-height: 1.1;
}

.dashboard-stats .stat:first-child strong {
    color: #2563eb;
}

.dashboard-stats .stat:nth-child(2) strong {
    color: #16a34a;
}

.dashboard-stats .stat:nth-child(3) strong {
    color: #7c3aed;
}

#statResult {
    display: flex;
    flex-direction: column;

    gap: 0;
}

.tablewrap {
    width: 100%;

    overflow-x: auto;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.025),
        0 12px 30px rgba(15, 23, 42, 0.05);

    scrollbar-width: thin;
}

.tablewrap table {
    width: 100%;

    border-collapse: collapse;

    font-size: 14px;
}

.tablewrap thead {
    background: #f8fafc;
}

.tablewrap th {
    padding: 12px 14px;

    color: #475569;

    text-align: left;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.05em;

    text-transform: uppercase;

    white-space: nowrap;

    border-bottom: 1px solid #e2e8f0;
}

.tablewrap td {
    padding: 12px 14px;

    color: #1e293b;

    border-bottom: 1px solid #f1f5f9;
}

.tablewrap td:last-child,
.tablewrap th:last-child {
    text-align: right;
}

.tablewrap td:last-child {
    color: #0f172a;

    font-weight: 700;
}

.tablewrap tbody tr {
    transition:
        background-color 0.15s ease;
}

.tablewrap tbody tr:hover {
    background: #f8fafc;
}

.tablewrap tbody tr:last-child td {
    border-bottom: none;
}

.statistics-empty {
    min-height: 160px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 24px;

    background: #ffffff;

    border: 1px dashed #cbd5e1;
    border-radius: 14px;

    color: #64748b;

    text-align: center;
}

.statistics-empty strong {
    color: #334155;

    font-size: 14px;
}

.statistics-empty span {
    font-size: 12px;
}

.flatpickr-calendar {
    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.12);

    overflow: hidden;
}

.flatpickr-months {
    background: #ffffff;
}

.flatpickr-current-month {
    color: #0f172a;

    font-weight: 700;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 700;
}

.flatpickr-weekdays {
    background: #f8fafc;
}

span.flatpickr-weekday {
    color: #64748b;

    font-size: 11px;
    font-weight: 700;
}

.flatpickr-day {
    color: #334155;

    border-radius: 8px;
}

.flatpickr-day:hover {
    background: #eff6ff;

    border-color: #eff6ff;

    color: #1d4ed8;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #2563eb;

    border-color: #2563eb;

    color: #ffffff;
}

.flatpickr-day.inRange {
    background: #dbeafe;

    border-color: #dbeafe;

    box-shadow:
        -5px 0 0 #dbeafe,
        5px 0 0 #dbeafe;

    color: #1e40af;
}

.flatpickr-day.today {
    border-color: #2563eb;
}

.flatpickr-day.today:hover {
    background: #eff6ff;

    color: #1d4ed8;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #94a3b8;
}

.flatpickr-day.flatpickr-disabled {
    color: #cbd5e1;

    cursor: not-allowed;
}

.flatpickr-prev-month,
.flatpickr-next-month {
    color: #475569;
}

.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
    color: #2563eb;
}

@media (max-width: 1100px) {

    .statistics-filter-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .dashboard-stats .stat:nth-child(3) {
        grid-column: 1 / -1;
    }

}

@media (max-width: 600px) {

    .statistics-filter-card {
        padding: 15px;

        border-radius: 14px;
    }

    .statistics-filter-grid {
        grid-template-columns: 1fr;
    }

    .statistics-compare {
        width: 100%;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-stats .stat:nth-child(3) {
        grid-column: auto;
    }

    .dashboard-stats .stat {
        min-height: 90px;

        padding: 15px;
    }

    .dashboard-stats .stat strong {
        font-size: 24px;
    }

    .tablewrap {
        border-radius: 12px;
    }

    .tablewrap table {
        min-width: 500px;

        font-size: 12px;
    }

    .tablewrap th,
    .tablewrap td {
        padding: 10px 9px;
    }

    .flatpickr-calendar {
        max-width: calc(100vw - 24px);
    }

}

/* ======================================================================
   TAXIPLAN
   Quelle: taxiplan.css
   ====================================================================== */
.taxiplan-page { width: 100%; }

.taxiplan-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .03), 0 10px 25px rgba(15, 23, 42, .05);
}

.taxiplan-date-navigation,
.taxiplan-toolbar-actions,
.taxiplan-filters {
    display: flex;
    align-items: center;
    gap: 8px;
}

#taxiplanDate,
#taxiplanDriverFilter,
#taxiplanStatusFilter,
.taxiplan-table input,
.taxiplan-table select {
    height: 40px;
    width: 100%;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    outline: none;
    font-family: inherit;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

#taxiplanDate {
    width: 155px;
    height: 38px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

#taxiplanDriverFilter,
#taxiplanStatusFilter {
    min-width: 145px;
    height: 38px;
    padding: 0 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

#taxiplanDate:focus,
#taxiplanDriverFilter:focus,
#taxiplanStatusFilter:focus,
.taxiplan-table input:focus,
.taxiplan-table select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.taxiplan-table input:hover,
.taxiplan-table select:hover {
    border-color: #cbd5e1;
}

.taxiplan-table input:focus,
.taxiplan-table select:focus {
    background: #fff;
}

.taxiplan-icon-btn,
.taxiplan-secondary-btn,
.taxiplan-primary-btn,
.taxiplan-row-departure-now,
.taxiplan-row-free-now,
#exportDayCsvBtn, #sortDepartureBtn {
    font-family: inherit;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.taxiplan-icon-btn,
.taxiplan-secondary-btn,
.taxiplan-primary-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 750;
}

.taxiplan-icon-btn { width: 38px; padding: 0; background: #f8fafc; color: #334155; font-size: 20px; }
.taxiplan-secondary-btn { background: #f8fafc; color: #334155; }
.taxiplan-primary-btn { background: #2563eb; color: #fff; border-color: #2563eb; }

.taxiplan-icon-btn:hover,
.taxiplan-secondary-btn:hover { background: #f1f5f9; border-color: #cbd5e1; }
.taxiplan-primary-btn:hover { background: #1d4ed8; border-color: #1d4ed8; }

.taxiplan-icon-btn:active,
.taxiplan-secondary-btn:active,
.taxiplan-primary-btn:active,
.taxiplan-row-departure-now:active,
.taxiplan-row-free-now:active,
.taxiplan-row-create:active { transform: translateY(1px); }

.taxiplan-icon-btn:disabled,
.taxiplan-secondary-btn:disabled,
.taxiplan-primary-btn:disabled,
.taxiplan-row-status:disabled,
.taxiplan-row-delete:disabled,
.taxiplan-row-create:disabled,
.taxiplan-row-departure-now:disabled,
.taxiplan-row-free-now:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.taxiplan-info { margin-bottom: 8px; color: #64748b; font-size: 10px; font-weight: 700; }
#taxiplanTotalPriceContainer { margin-top: 10px; font-weight: bold; text-align: left; font-size: 12px; color: #2c3e50; padding: 5px; }

.taxiplan-table-wrap {
    width: 100%;
    max-height: 75dvh;
    min-height: 150px;
    overflow: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 3px 8px rgba(15, 23, 42, .03), 0 10px 25px rgba(15, 23, 42, .05);
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.taxiplan-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.taxiplan-table-wrap::-webkit-scrollbar-track { background: transparent; }
.taxiplan-table-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border: 2px solid #fff; border-radius: 999px; }
.taxiplan-table-wrap::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.taxiplan-table {
    width: 100%;
    min-width: 1380px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
}

.taxiplan-table thead,
.taxiplan-table th {
    position: sticky;
    top: 0;
    z-index: 10;
}

.taxiplan-table th {
    padding: 10px 8px;
    background: #f8fafc;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.taxiplan-table td, .taxiplan-table th {
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.taxiplan-table td {
    padding: 6px;
    background: #fff;
    color: #334155;
    vertical-align: middle;
    white-space: nowrap;
    transition: background .12s ease, opacity .12s ease, box-shadow .12s ease;
}

.taxiplan-table tbody tr:hover td { background: #f8fafc; }

.taxiplan-table td:nth-child(1), th:nth-child(1), 
.taxiplan-table td:nth-child(3), th:nth-child(3), 
.taxiplan-table td:nth-child(4), th:nth-child(4), 
.taxiplan-table td:nth-child(5), th:nth-child(5), 
.taxiplan-table td:nth-child(9), th:nth-child(9), 
.taxiplan-table td:nth-child(11),.taxiplan-table th:nth-child(11) { width: clamp(70px, 70px, 70px);}

.taxiplan-table td:nth-child(2), .taxiplan-table th:nth-child(2), 
.taxiplan-table td:nth-child(8), .taxiplan-table th:nth-child(8), 
.taxiplan-table td:nth-child(10), .taxiplan-table th:nth-child(10){ width: clamp(50px, 60px, 60px);}



.taxiplan-table th:first-child,
.taxiplan-table td:first-child,
.taxiplan-table th:last-child,
.taxiplan-table td:last-child {
    width: 58px;
    min-width: 58px;
    text-align: center;
}

.taxiplan-row-date { min-width: 125px !important; }
.taxiplan-row-vehicle, .taxiplan-row-driver { max-width: 60px !important; font-weight: 600; font-size: 15px !important; text-align: center; }
.taxiplan-row-from, .taxiplan-row-to { min-width: 190px !important; }
.taxiplan-row-price { width: 90px !important; max-width: 70px !important; text-align: right; color: #15803d !important; font-weight: 750 !important; }

.taxiplan-row-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.taxiplan-row-status,
.taxiplan-row-save {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
}

.taxiplan-row-save { z-index: 2; border: 1px solid rgba(0, 100, 0, 0.2); border-radius: 6px; background-color: lightgreen; font-size: 12px; }
.taxiplan-row-save[hidden] { display: none !important; }
.taxiplan-row-status { z-index: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 8px; font-size: 14px; font-weight: 800; cursor: pointer; }

.taxiplan-row-art { width: 68px !important; min-width: 68px !important; text-align: center; font-weight: 900 !important; }
.taxiplan-row-art.art-m  { background: lightgreen !important; color: #000 !important; border-color: lightgreen !important; }
.taxiplan-row-art.art-ar { background: #ffedd5 !important; color: #c2410c !important; border-color: #ffedd5 !important; }
.taxiplan-row-art.art-kk { background: skyblue !important; color: #000 !important; border-color: skyblue !important; }

.taxiplan-row-art.art-x  { background: coral !important; color: #fff !important; border-color: darkred !important; }
.taxiplan-row-art.art-st { background: lightcoral !important; color: #fff !important; border-color: darkred !important; }
.taxiplan-row-art.art-ff { background: red !important; color: #fff !important; border-color: darkred !important; }


.taxiplan-time-input { display: flex; align-items: center; gap: 5px; }
.taxiplan-time-input input { flex: 1; width: 60px !important; max-width: 55px !important; text-align: center; font-weight: 800 !important; }
.taxiplan-row-departure { background: #eff6ff !important; color: #1d4ed8 !important; border-color: #bfdbfe !important; }
.taxiplan-row-free      { background: #f0fdf4 !important; color: #15803d !important; border-color: #bbf7d0 !important; }

.taxiplan-row-departure-now,
.taxiplan-row-free-now {
    height: 34px;
    flex: 0 0 auto;
    padding: 0 8px;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 800;
}
.taxiplan-row-departure-now:hover, .taxiplan-row-free-now:hover { background: #bfdbfe; border-color: #93c5fd; }

.taxiplan-table tbody tr[data-new="1"] td { background: #eff6ff; }
.taxiplan-table tbody tr[data-new="1"] { box-shadow: inset 4px 0 0 #2563eb; }

.taxiplan-row-create,
.taxiplan-row-delete {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 8px;
    cursor: pointer;
}
.taxiplan-row-create { background: #dbeafe; color: #1d4ed8; border: 1px solid #bfdbfe; font-size: 14px; }
.taxiplan-row-create:hover { background: #bfdbfe; border-color: #93c5fd; }

.taxiplan-row-delete { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; font-size: 16px; font-weight: 800; }
.taxiplan-row-delete:hover { background: #fecaca; border-color: #fca5a5; }

.taxiplan-row-status.is-open { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.taxiplan-row-status.is-completed { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.taxiplan-table tbody tr.is-completed td { background: #f0fdf4; }
.taxiplan-table tbody tr.is-completed { opacity: .78; }

.taxiplan-table .is-invalid { background: #fef2f2 !important; color: #991b1b !important; border-color: #ef4444 !important; box-shadow: 0 0 0 2px rgba(239, 68, 68, .10); }
.taxiplan-table tbody tr.is-saving td { opacity: .58; }
.taxiplan-table tbody tr.is-saving { cursor: wait; }
.taxiplan-table tbody tr.is-saved td { box-shadow: inset 0 0 0 1px rgba(34, 197, 94, .22); }
.taxiplan-table tbody tr.is-error td { background: #fef2f2; }
.taxiplan-table tbody tr.is-error { box-shadow: inset 4px 0 0 #ef4444; }

.taxiplan-table input:disabled,
.taxiplan-table select:disabled {
    opacity: .72;
    background: #f1f5f9;
    color: #64748b;
    cursor: not-allowed;
}

#exportDayCsvBtn, #sortDepartureBtn {
    background: #fff;
    color: #475569;
    border: 1px solid #dbe1e8;
    min-height: 38px;
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
}

@media(max-width: 700px) {
    .taxiplan-toolbar { flex-direction: column; align-items: stretch; padding: 9px; border-radius: 10px; }
    .taxiplan-date-navigation, .taxiplan-toolbar-actions, .taxiplan-filters { width: 100%; }
    #taxiplanDate { flex: 1; width: auto; }
    #taxiplanDriverFilter, #taxiplanStatusFilter { flex: 1; min-width: 0; }
    .taxiplan-toolbar-actions .taxiplan-primary-btn { flex: 1; }
    .taxiplan-table-wrap { max-height: 66dvh; border-radius: 10px; }
    .taxiplan-table { min-width: 1280px; }
    .taxiplan-table th { padding: 8px 6px; }
    .taxiplan-table td { padding: 5px; }
}

/* ======================================================================
   ARBEITSZEITEN
   Quelle: worktime(1).css
   ====================================================================== */
.worktime-filter-card,
.worktime-entry-card,
.workday {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.025), 0 12px 30px rgba(15, 23, 42, 0.05);
}

.worktimes-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.worktimes-date-navigation,
.worktimes-toolbar-actions {
    flex: 1;
}

.worktimes-filters {
    flex: 3;
    min-width: 150px;
}

.worktime-filter-field,
.worktime-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.worktime-filter-field label,
.worktime-field > label:first-child {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

#workMonth,
#workDriver,
.worktime-field input[type="date"],
.worktime-field input[type="time"] {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 8px 12px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

#workMonth:hover,
#workDriver:hover,
.worktime-field input:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

#workMonth:focus,
#workDriver:focus,
.worktime-field input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.worktime-sum-card {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

#monthSum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.worktime-entry-card {
    padding: 10px;
    margin-top: 5px;
}

.worktime-entry-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.worktimes-secondary-btn {
    font-size: 11px;
    padding: 2px 6px;
    margin-right: 4px;
    outline: none;
    border: none;
    box-shadow: 2px 2px 5px gray;
    border-radius: 8px;
}

.next-day-check {
    height: 42px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    background: #f8fafc;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.next-day-check:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.next-day-check input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #2563eb;
    cursor: pointer;
}

.worktime-save-wrap {
    display: flex;
    gap: 6px;
}

#workTimeSaveBtn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 18px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(22, 163, 74, 0.18);
    transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

#workTimeSaveBtn:hover:not(:disabled) {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(22, 163, 74, .24);
}

#workTimeSaveBtn:active:not(:disabled) {
    transform: translateY(0);
}

#workTimeSaveBtn:disabled {
    background: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: .7;
}

#workDays {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.work-day-action:hover:not(:disabled) {
    transform: translateY(-1px);
}

.work-day-action.close {
    background: lightgreen;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.work-day-action.reopen {
    background: whitesmoke;
    color: #713f12;
    border: 1px solid rgba(255, 127, 80, 0.3);
}

.next-day-badge {
    display: inline-flex;
    margin-left: 4px;
    padding: 2px 5px;
    background: #e0e7ff;
    color: #4338ca;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
}

.work-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.work-status.open {
    background: #dcfce7;
    color: #166534;
}

.work-status.locked {
    background: #fee2e2;
    color: #991b1b;
}

.worktime-empty {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 25px;
    background: #ffffff;
    color: #64748b;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    text-align: center;
}

.worktime-empty strong {
    color: #334155;
    font-size: 14px;
}

.worktime-empty span {
    font-size: 12px;
}

.work-edit-btn, .work-day-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 24px;
    min-width: 24px;
    padding: 2px 8px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 2px 2px 5px gray;
}

#workEditCancelBtn {
    height: 42px;
    padding: 0 14px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.worktime-table-wrapper{
    height: 68dvh;
    overflow: auto;
}

.worktime-table td, .worktime-table th {
    border: 1px solid rgba(128, 128, 128, 0.2);
}

.worktime-table{
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 11px;
}

.worktime-table td {
    padding: 6px;
    background: #fff;
    color: #334155;
    vertical-align: middle;
    white-space: nowrap;
    transition: background .12s ease, opacity .12s ease, box-shadow .12s ease;
}

.worktime-table thead th {
    background-color: lightgray;
    padding: 5px;
    position: sticky;
    top: 0px;
    z-index: 20;
}

.worktime-table thead th:nth-child(-n+5),
.worktime-table tbody td:nth-child(-n+5) {
    width: 80px ;
}

.worktime-table thead th:nth-child(6),
.worktime-table tbody td:nth-child(6) {
    text-align: left;
    padding-left: 5px;
}

@media (max-width: 600px) {
    .worktimes-toolbar {
        flex-wrap: wrap;
    }
}

/* ======================================================================
   ADRESSEN
   Quelle: addresses.css
   ====================================================================== */
.address-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.address-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .025), 0 12px 30px rgba(15, 23, 42, .05);
}

.address-search-wrap {
    min-width: 0;
}

#addressSearch {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 8px 12px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#addressSearch:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

#addressSearch:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

#addressSearch::placeholder {
    color: #94a3b8;
}

.address-primary-btn,
.address-save-btn,
.address-secondary-btn,
.address-action-btn,
.address-close-btn {
    font-family: inherit;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.address-primary-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(37, 99, 235, .20);
}

.address-primary-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(37, 99, 235, .25);
}

.address-editor-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 5px 8px rgba(0, 0, 0, .025), 0 14px 32px rgba(37, 99, 235, .07);
}

.address-editor-card[hidden] {
    display: none;
}

.address-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.address-editor-head h3 {
    margin: 3px 0 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 750;
}

.address-eyebrow {
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.address-close-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-size: 21px;
    line-height: 1;
}

.address-close-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.address-form-grid {
    display: grid;
    grid-template-columns: minmax(200px, .8fr) minmax(320px, 1.6fr) minmax(120px, .4fr);
    gap: 14px;
    align-items: end;
}

.address-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.address-field > label:first-child {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.address-field input[type="text"] {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 8px 12px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.address-field input:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.address-field input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

.address-switch-label {
    height: 42px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.address-switch-label:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.address-switch-label input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #16a34a;
    cursor: pointer;
}

.address-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.address-save-btn {
    min-height: 40px;
    padding: 8px 15px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.address-save-btn:hover:not(:disabled) {
    background: #15803d;
    transform: translateY(-1px);
}

.address-save-btn:disabled {
    opacity: .55;
    cursor: wait;
}

.address-secondary-btn {
    min-height: 40px;
    padding: 8px 14px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.address-secondary-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.address-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.address-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.address-card:hover {
    border-color: #dbe1e8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
}

.address-card.is-inactive {
    background: #fafafa;
    opacity: .7;
}

.address-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.address-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    font-size: 21px;
}

.address-info {
    min-width: 0;
}

.address-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.address-title-row h3 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 750;
}

.address-value {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.address-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.address-status.active {
    background: #dcfce7;
    color: #166534;
}

.address-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.address-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.address-action-btn {
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.address-action-btn:hover {
    transform: translateY(-1px);
}

.address-action-btn.edit {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.address-action-btn.edit:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.address-action-btn.delete {
    background: #fff1f2;
    color: #be123c;
    border-color: #ffe4e6;
}

.address-action-btn.delete:hover {
    background: #ffe4e6;
}

.address-action-btn.restore {
    background: #f0fdf4;
    color: #15803d;
    border-color: #dcfce7;
}

.address-action-btn.restore:hover {
    background: #dcfce7;
}

.address-empty {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 24px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
}

.address-empty strong {
    color: #334155;
    font-size: 14px;
}

.address-empty span {
    font-size: 12px;
}

@media (max-width: 900px) {
    .address-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .address-card {
        grid-template-columns: 1fr;
    }
    .address-actions {
        padding-left: 60px;
    }
}

@media (max-width: 600px) {
    .address-toolbar {
        grid-template-columns: 1fr;
        padding: 14px;
    }
    .address-primary-btn {
        width: 100%;
    }
    .address-editor-card {
        padding: 15px;
    }
    .address-form-grid {
        grid-template-columns: 1fr;
    }
    .address-form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .address-form-actions button {
        width: 100%;
    }
    .address-card {
        padding: 12px;
        gap: 12px;
    }
    .address-main {
        align-items: flex-start;
        gap: 10px;
    }
    .address-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 18px;
    }
    .address-title-row h3 {
        font-size: 14px;
    }
    .address-actions {
        padding-left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .address-action-btn {
        width: 100%;
    }
}

/* ======================================================================
   KUNDEN
   Quelle: customers.css
   ====================================================================== */
.customer-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.customer-toolbar {
    display: grid;

    grid-template-columns:
        minmax(240px, 1fr)
        auto
        auto;

    gap: 12px;

    align-items: center;

    padding: 16px 18px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 16px;

    box-shadow:
        0 4px 6px rgba(0, 0, 0, .025),
        0 12px 30px rgba(15, 23, 42, .05);
}

.customer-search-wrap {
    min-width: 0;
}

#customerSearch {
    width: 100%;
    height: 42px;

    box-sizing: border-box;

    padding: 8px 12px;

    background: #f8fafc;
    color: #0f172a;

    border: 1px solid #dbe1e8;
    border-radius: 10px;

    outline: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

#customerSearch:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

#customerSearch:focus {
    background: #ffffff;
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .11);
}

#customerSearch::placeholder {
    color: #94a3b8;
}

.customer-inactive-toggle {
    height: 42px;

    box-sizing: border-box;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    padding: 0 12px;

    background: #f8fafc;

    color: #475569;

    border: 1px solid #dbe1e8;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;

    cursor: pointer;
}

.customer-inactive-toggle:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.customer-inactive-toggle input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: #2563eb;

    cursor: pointer;
}

.customer-primary-btn,
.customer-save-btn,
.customer-secondary-btn,
.customer-action-btn,
.customer-option-add-btn,
.customer-close-btn {
    font-family: inherit;

    cursor: pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

.customer-primary-btn {
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    background: #2563eb;
    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;

    box-shadow:
        0 5px 15px rgba(37, 99, 235, .20);
}

.customer-primary-btn:hover {
    background: #1d4ed8;

    transform: translateY(-1px);

    box-shadow:
        0 7px 18px rgba(37, 99, 235, .25);
}

.customer-save-btn {
    min-height: 40px;

    padding: 8px 15px;

    background: #16a34a;
    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;

    white-space: nowrap;
}

.customer-save-btn:hover:not(:disabled) {
    background: #15803d;

    transform: translateY(-1px);
}

.customer-save-btn:disabled {
    opacity: .55;
    cursor: wait;
}

.customer-secondary-btn {
    min-height: 40px;

    padding: 8px 14px;

    background: #f8fafc;
    color: #475569;

    border: 1px solid #dbe1e8;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 700;
}

.customer-secondary-btn:hover {
    background: #f1f5f9;

    border-color: #cbd5e1;
}

.customer-editor-card {
    padding: 20px;

    background: #ffffff;

    border: 1px solid #dbeafe;
    border-radius: 16px;

    box-shadow:
        0 5px 8px rgba(0, 0, 0, .025),
        0 14px 32px rgba(37, 99, 235, .07);
}

.customer-editor-card[hidden] {
    display: none;
}

.customer-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}

.customer-editor-head h3 {
    margin: 3px 0 0;

    color: #0f172a;

    font-size: 18px;
    font-weight: 750;
}

.customer-eyebrow {
    color: #2563eb;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .12em;
}

.customer-close-btn {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8fafc;

    color: #64748b;

    border: 1px solid #e2e8f0;
    border-radius: 9px;

    font-size: 21px;

    line-height: 1;
}

.customer-close-btn:hover {
    background: #fee2e2;

    color: #b91c1c;

    border-color: #fecaca;
}

.customer-form-grid {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.4fr)
        minmax(160px, .8fr)
        minmax(130px, .5fr);

    gap: 14px;

    align-items: end;
}

.customer-field {
    display: flex;
    flex-direction: column;

    gap: 6px;

    min-width: 0;
}

.customer-field > label:first-child {
    color: #64748b;

    font-size: 12px;
    font-weight: 700;
}

.customer-field input[type="text"],
.customer-field input[type="number"] {
    width: 100%;
    height: 42px;

    box-sizing: border-box;

    padding: 8px 12px;

    background: #f8fafc;
    color: #0f172a;

    border: 1px solid #dbe1e8;
    border-radius: 10px;

    outline: none;

    font-size: 14px;
    font-weight: 500;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease;
}

.customer-field input:hover {
    background: #ffffff;

    border-color: #94a3b8;
}

.customer-field input:focus {
    background: #ffffff;

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .11);
}

.customer-switch-label {
    height: 42px;

    box-sizing: border-box;

    display: flex;
    align-items: center;

    gap: 8px;

    padding: 0 12px;

    background: #f8fafc;

    color: #334155;

    border: 1px solid #dbe1e8;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
}

.customer-switch-label:hover {
    background: #ffffff;

    border-color: #94a3b8;
}

.customer-switch-label input {
    width: 16px;
    height: 16px;

    margin: 0;

    accent-color: #16a34a;

    cursor: pointer;
}

.customer-form-actions {
    display: flex;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 18px;

    padding-top: 16px;

    border-top: 1px solid #f1f5f9;
}

.customer-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.customer-card {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 14px;

    box-shadow:
        0 3px 10px rgba(15, 23, 42, .04);

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        transform .15s ease;
}

.customer-card:hover {
    border-color: #dbe1e8;

    box-shadow:
        0 5px 16px rgba(15, 23, 42, .06);
}

.customer-card.is-inactive {
    opacity: .7;

    background: #fafafa;
}

.customer-card-head {
    display: grid;

    grid-template-columns:
        34px
        minmax(0, 1fr)
        auto;

    gap: 12px;

    align-items: center;

    padding: 14px 16px;
}

.customer-expand-btn {
    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f8fafc;

    color: #475569;

    border: 1px solid #e2e8f0;
    border-radius: 8px;

    font-size: 14px;

    cursor: pointer;
}

.customer-expand-btn:hover {
    background: #eff6ff;

    color: #2563eb;

    border-color: #dbeafe;
}

.customer-main-info {
    min-width: 0;
}

.customer-name-row {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 7px;
}

.customer-name-row h3 {
    margin: 0;

    color: #0f172a;

    font-size: 15px;
    font-weight: 750;
}

.customer-short-name {
    padding: 3px 7px;

    background: #f1f5f9;

    color: #475569;

    border-radius: 6px;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
}

.customer-meta {
    margin-top: 3px;

    color: #64748b;

    font-size: 11px;
}

.customer-status {
    display: inline-flex;
    align-items: center;

    width: fit-content;

    padding: 3px 7px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 750;

    white-space: nowrap;
}

.customer-status.active {
    background: #dcfce7;

    color: #166534;
}

.customer-status.inactive {
    background: #fee2e2;

    color: #991b1b;
}

.customer-actions,
.customer-option-actions {
    display: flex;
    align-items: center;

    gap: 6px;
}

.customer-action-btn {
    min-height: 32px;

    padding: 5px 9px;

    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;

    border: 1px solid transparent;
}

.customer-action-btn.add-option {
    background: #eff6ff;

    color: #1d4ed8;

    border-color: #dbeafe;
}

.customer-action-btn.add-option:hover {
    background: #dbeafe;
}

.customer-action-btn.edit {
    background: #f8fafc;

    color: #475569;

    border-color: #e2e8f0;
}

.customer-action-btn.edit:hover {
    background: #f1f5f9;

    border-color: #cbd5e1;
}

.customer-action-btn.delete {
    background: #fff1f2;

    color: #be123c;

    border-color: #ffe4e6;
}

.customer-action-btn.delete:hover {
    background: #ffe4e6;
}

.customer-action-btn.restore {
    background: #f0fdf4;

    color: #15803d;

    border-color: #dcfce7;
}

.customer-action-btn.restore:hover {
    background: #dcfce7;
}

.customer-options-area {
    padding: 15px 16px 16px 62px;

    background: #f8fafc;

    border-top: 1px solid #eef2f7;
}

.customer-options-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 12px;
}

.customer-options-head > div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.customer-options-head strong {
    color: #1e293b;

    font-size: 13px;
}

.customer-options-head span {
    color: #64748b;

    font-size: 11px;
}

.customer-option-add-btn {
    min-height: 34px;

    padding: 6px 10px;

    background: #2563eb;

    color: #ffffff;

    border: none;
    border-radius: 8px;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.customer-option-add-btn:hover {
    background: #1d4ed8;
}

.customer-option-list {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.customer-option-row {
    display: grid;

    grid-template-columns:
        minmax(180px, 1fr)
        minmax(130px, .4fr)
        auto;

    gap: 12px;

    align-items: center;

    padding: 10px 12px;

    background: #ffffff;

    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.customer-option-row.is-inactive {
    opacity: .65;

    background: #fafafa;
}

.customer-option-name {
    display: flex;
    align-items: center;

    gap: 7px;

    min-width: 0;
}

.customer-option-name strong {
    color: #1e293b;

    font-size: 13px;
}

.customer-option-price {
    display: flex;
    flex-direction: column;

    gap: 2px;
}

.customer-option-price small {
    color: #94a3b8;

    font-size: 9px;
    font-weight: 700;

    text-transform: uppercase;
}

.customer-option-price strong {
    color: #16a34a;

    font-size: 13px;
}

.customer-option-editor-host:not(:empty) {
    margin-bottom: 12px;
}

.customer-option-form {
    padding: 14px;

    background: #ffffff;

    border: 1px solid #bfdbfe;
    border-radius: 11px;

    box-shadow:
        0 5px 16px rgba(37, 99, 235, .06);
}

.customer-option-form-grid {
    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        minmax(150px, .5fr)
        minmax(120px, .4fr)
        auto;

    gap: 12px;

    align-items: end;
}

.customer-option-form-actions {
    display: flex;

    gap: 7px;
}

.customer-price-input {
    position: relative;
}

.customer-price-input input {
    padding-right: 36px;
}

.customer-price-input span {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    color: #64748b;

    font-size: 13px;
    font-weight: 700;

    pointer-events: none;
}

.customer-empty,
.customer-option-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 25px;

    color: #64748b;

    text-align: center;
}

.customer-empty {
    min-height: 150px;

    background: #ffffff;

    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.customer-empty strong {
    color: #334155;
}

.customer-empty span {
    font-size: 12px;
}

.customer-option-empty {
    padding: 14px;

    background: #ffffff;

    border: 1px dashed #dbe1e8;
    border-radius: 10px;

    font-size: 12px;
}

@media (max-width: 1000px) {

    .customer-toolbar {
        grid-template-columns:
            1fr
            auto;
    }

    .customer-search-wrap {
        grid-column: 1 / -1;
    }

    .customer-card-head {
        grid-template-columns:
            34px
            minmax(0, 1fr);
    }

    .customer-actions {
        grid-column: 2 / -1;

        justify-content: flex-start;
    }

    .customer-form-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .customer-option-form-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .customer-option-form-actions {
        grid-column: 1 / -1;
    }

}

@media (max-width: 600px) {

    .customer-toolbar {
        grid-template-columns: 1fr;

        padding: 14px;
    }

    .customer-search-wrap {
        grid-column: auto;
    }

    .customer-inactive-toggle,
    .customer-primary-btn {
        width: 100%;
    }

    .customer-primary-btn {
        display: flex;
    }

    .customer-editor-card {
        padding: 15px;
    }

    .customer-form-grid {
        grid-template-columns: 1fr;
    }

    .customer-form-actions {
        display: grid;

        grid-template-columns: 1fr;
    }

    .customer-form-actions button {
        width: 100%;
    }

    .customer-card-head {
        grid-template-columns:
            32px
            minmax(0, 1fr);

        padding: 12px;
    }

    .customer-actions {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        width: 100%;
    }

    .customer-action-btn {
        width: 100%;
    }

    .customer-options-area {
        padding:
            14px
            12px
            14px
            12px;
    }

    .customer-options-head {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-option-add-btn {
        width: 100%;
    }

    .customer-option-row {
        grid-template-columns:
            1fr
            auto;
    }

    .customer-option-price {
        align-items: flex-end;
    }

    .customer-option-actions {
        grid-column: 1 / -1;

        display: grid;

        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .customer-option-form-grid {
        grid-template-columns: 1fr;
    }

    .customer-option-form-actions {
        display: grid;

        grid-template-columns: 1fr;
    }

    .customer-option-form-actions button {
        width: 100%;
    }

}

/* ======================================================================
   BENUTZER
   Quelle: users.css
   ====================================================================== */
.user-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
}

.user-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(150px, 190px) minmax(140px, 170px) auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 5px rgba(15, 23, 42, .03), 0 8px 20px rgba(15, 23, 42, .05);
}

.user-search-wrap {
    min-width: 0;
}

#userSearch,
#userRoleFilter,
#userStatusFilter {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 12px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    outline: none;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#userSearch::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

#userSearch:hover,
#userRoleFilter:hover,
#userStatusFilter:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

#userSearch:focus,
#userRoleFilter:focus,
#userStatusFilter:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.user-primary-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    background: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .16);
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.user-primary-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(37, 99, 235, .20);
}

.user-primary-btn:active {
    transform: translateY(0);
}

.user-editor-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(15, 23, 42, .03), 0 14px 32px rgba(37, 99, 235, .07);
}

.user-editor-card[hidden] {
    display: none;
}

.user-editor-card.editing-self {
    border-color: #fde68a;
}

.user-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.user-editor-head h3 {
    margin: 3px 0 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 750;
}

.user-eyebrow {
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.user-editor-email {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.user-close-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.user-close-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.user-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.user-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.user-field > label:first-child {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
}

.user-field input[type="text"],
.user-field input[type="email"],
.user-field input[type="password"],
.user-field input[type="number"],
.user-field select {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 0 12px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    outline: none;
    font-size: 13px;
    font-weight: 600;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.user-field input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.user-field input:hover,
.user-field select:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.user-field input:focus,
.user-field select:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}

.user-field select:disabled,
.user-field input:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: .75;
}

.user-password-hint {
    min-height: 14px;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.35;
}

.user-color-wrap {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 7px;
}

#userDriverColorPicker {
    width: 42px;
    height: 42px;
    box-sizing: border-box;
    padding: 3px;
    background: #ffffff;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    cursor: pointer;
}

#userDriverColorPicker::-webkit-color-swatch-wrapper {
    padding: 2px;
}

#userDriverColorPicker::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}

#userDriverColorPicker::-moz-color-swatch {
    border: none;
    border-radius: 6px;
}

.user-switch-label {
    height: 42px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #f8fafc;
    border: 1px solid #dbe1e8;
    border-radius: 9px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.user-switch-label:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.user-switch-label input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #16a34a;
    cursor: pointer;
}

.user-switch-label:has(input:disabled) {
    opacity: .6;
    cursor: not-allowed;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
}

.user-info-grid[hidden] {
    display: none;
}

.user-info-grid > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.user-info-grid small {
    color: #94a3b8;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.user-info-grid strong {
    overflow: hidden;
    color: #334155;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.user-save-btn,
.user-secondary-btn {
    min-height: 40px;
    padding: 8px 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}

.user-save-btn {
    background: #16a34a;
    color: #ffffff;
    border: 1px solid #16a34a;
}

.user-save-btn:hover:not(:disabled) {
    background: #15803d;
    border-color: #15803d;
    transform: translateY(-1px);
}

.user-save-btn:disabled {
    opacity: .55;
    cursor: wait;
}

.user-secondary-btn {
    background: #ffffff;
    color: #475569;
    border: 1px solid #dbe1e8;
}

.user-secondary-btn:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

.user-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 13px 15px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .035);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.user-card:hover {
    transform: translateY(-1px);
    border-color: #dbe1e8;
    box-shadow: 0 5px 16px rgba(15, 23, 42, .07);
}

.user-card.is-inactive {
    background: #fafafa;
    opacity: .65;
}

.user-card.is-inactive:hover {
    opacity: .85;
}

.user-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.user-avatar {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--user-color) 13%, white);
    color: var(--user-color);
    border: 2px solid color-mix(in srgb, var(--user-color) 30%, white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.user-content {
    min-width: 0;
}

.user-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.user-title-row h3 {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 750;
}

.user-email {
    margin-top: 2px;
    overflow: hidden;
    color: #475569;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 9px;
}

.user-status,
.user-role-badge,
.user-me-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.user-status.active {
    background: #dcfce7;
    color: #166534;
}

.user-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.user-me-badge {
    background: #fef3c7;
    color: #92400e;
}

.user-role-badge.role-admin {
    background: #ede9fe;
    color: #6d28d9;
}

.user-role-badge.role-dispo-bus,
.user-role-badge.role-dispo-taxi {
    background: #dbeafe;
    color: #1d4ed8;
}

.user-role-badge.role-fahrer {
    background: #f1f5f9;
    color: #475569;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-action-btn {
    min-height: 32px;
    padding: 5px 9px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

.user-action-btn.edit {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.user-action-btn.edit:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.user-action-btn.disable {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #ffe4e6;
}

.user-action-btn.disable:hover {
    background: #ffe4e6;
    border-color: #fecdd3;
}

.user-action-btn.restore {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid #dcfce7;
}

.user-action-btn.restore:hover {
    background: #dcfce7;
    border-color: #bbf7d0;
}

.user-empty {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 24px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    color: #64748b;
    text-align: center;
}

.user-empty-icon {
    margin-bottom: 4px;
    font-size: 26px;
    opacity: .65;
}

.user-empty strong {
    color: #334155;
    font-size: 13px;
}

.user-empty span {
    font-size: 11px;
}

@media (max-width: 1100px) {
    .user-toolbar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .user-search-wrap {
        grid-column: 1 / -1;
    }
    .user-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .user-card {
        grid-template-columns: 1fr;
    }
    .user-actions {
        padding-left: 54px;
    }
}

@media (max-width: 650px) {
    .user-page {
        gap: 12px;
    }
    .user-toolbar {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .user-search-wrap {
        grid-column: auto;
    }
    .user-primary-btn {
        width: 100%;
    }
    .user-editor-card {
        padding: 14px;
        border-radius: 12px;
    }
    .user-editor-head h3 {
        font-size: 16px;
    }
    .user-form-grid {
        grid-template-columns: 1fr;
    }
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    .user-form-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .user-form-actions button {
        width: 100%;
    }
    .user-card {
        padding: 12px;
    }
    .user-main {
        align-items: flex-start;
    }
    .user-avatar {
        width: 38px;
        height: 38px;
    }
    .user-title-row h3 {
        width: 100%;
    }
    .user-meta {
        line-height: 1.5;
    }
    .user-actions {
        padding-left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .user-action-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .user-form-actions {
        grid-template-columns: 1fr;
    }
    .user-actions {
        grid-template-columns: 1fr;
    }
}

/* ======================================================================
   FAHRZEUGE
   Quelle: vehichles.css
   ====================================================================== */
.vehicle-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.vehicle-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, .025), 0 12px 30px rgba(15, 23, 42, .05);
}

.vehicle-search-wrap {
    min-width: 0;
}

#vehicleSearch {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 8px 12px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#vehicleSearch:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

#vehicleSearch:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

#vehicleSearch::placeholder {
    color: #94a3b8;
}

.vehicle-primary-btn,
.vehicle-save-btn,
.vehicle-secondary-btn,
.vehicle-action-btn,
.vehicle-close-btn {
    font-family: inherit;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}

.vehicle-primary-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 5px 15px rgba(37, 99, 235, .20);
}

.vehicle-primary-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(37, 99, 235, .25);
}

.vehicle-save-btn {
    min-height: 40px;
    padding: 8px 15px;
    background: #16a34a;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.vehicle-save-btn:hover:not(:disabled) {
    background: #15803d;
    transform: translateY(-1px);
}

.vehicle-save-btn:disabled {
    opacity: .55;
    cursor: wait;
}

.vehicle-secondary-btn {
    min-height: 40px;
    padding: 8px 14px;
    background: #f8fafc;
    color: #475569;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}

.vehicle-secondary-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.vehicle-editor-card {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: 0 5px 8px rgba(0, 0, 0, .025), 0 14px 32px rgba(37, 99, 235, .07);
}

.vehicle-editor-card[hidden] {
    display: none;
}

.vehicle-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.vehicle-editor-head h3 {
    margin: 3px 0 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 750;
}

.vehicle-eyebrow {
    color: #2563eb;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
}

.vehicle-close-btn {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    font-size: 21px;
    line-height: 1;
}

.vehicle-close-btn:hover {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #fecaca;
}

.vehicle-form-grid {
    display: grid;
    grid-template-columns: minmax(160px, .8fr) minmax(220px, 1.4fr) minmax(170px, .9fr) minmax(120px, .5fr) minmax(120px, .5fr);
    gap: 14px;
    align-items: end;
}

.vehicle-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.vehicle-field > label:first-child {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.vehicle-field input[type="text"],
.vehicle-field input[type="number"],
.vehicle-field select {
    width: 100%;
    height: 42px;
    box-sizing: border-box;
    padding: 8px 12px;
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.vehicle-field input:hover,
.vehicle-field select:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.vehicle-field input:focus,
.vehicle-field select:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .11);
}

.vehicle-switch-label {
    height: 42px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.vehicle-switch-label:hover {
    background: #ffffff;
    border-color: #94a3b8;
}

.vehicle-switch-label input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #16a34a;
    cursor: pointer;
}

.vehicle-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.vehicle-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vehicle-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .04);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.vehicle-card:hover {
    border-color: #dbe1e8;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
}

.vehicle-card.is-inactive {
    background: #fafafa;
    opacity: .7;
}

.vehicle-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.vehicle-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    font-size: 23px;
}

.vehicle-info {
    min-width: 0;
}

.vehicle-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.vehicle-title-row h3 {
    margin: 0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .02em;
}

.vehicle-name {
    margin-top: 2px;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
}

.vehicle-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
}

.vehicle-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}

.vehicle-status.active {
    background: #dcfce7;
    color: #166534;
}

.vehicle-status.inactive {
    background: #fee2e2;
    color: #991b1b;
}

.vehicle-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vehicle-action-btn {
    min-height: 32px;
    padding: 5px 9px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.vehicle-action-btn.edit {
    background: #f8fafc;
    color: #475569;
    border-color: #e2e8f0;
}

.vehicle-action-btn.edit:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.vehicle-action-btn.delete {
    background: #fff1f2;
    color: #be123c;
    border-color: #ffe4e6;
}

.vehicle-action-btn.delete:hover {
    background: #ffe4e6;
}

.vehicle-action-btn.restore {
    background: #f0fdf4;
    color: #15803d;
    border-color: #dcfce7;
}

.vehicle-action-btn.restore:hover {
    background: #dcfce7;
}

.vehicle-empty {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 24px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    color: #64748b;
    text-align: center;
}

.vehicle-empty strong {
    color: #334155;
    font-size: 14px;
}

.vehicle-empty span {
    font-size: 12px;
}

@media (max-width: 1050px) {
    .vehicle-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vehicle-card {
        grid-template-columns: 1fr;
    }
    .vehicle-actions {
        padding-left: 60px;
    }
}

@media (max-width: 600px) {
    .vehicle-toolbar {
        grid-template-columns: 1fr;
        padding: 14px;
    }
    .vehicle-primary-btn {
        width: 100%;
    }
    .vehicle-editor-card {
        padding: 15px;
    }
    .vehicle-form-grid {
        grid-template-columns: 1fr;
    }
    .vehicle-form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
    .vehicle-form-actions button {
        width: 100%;
    }
    .vehicle-card {
        padding: 12px;
        gap: 12px;
    }
    .vehicle-main {
        align-items: flex-start;
        gap: 10px;
    }
    .vehicle-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 20px;
    }
    .vehicle-title-row h3 {
        font-size: 14px;
    }
    .vehicle-actions {
        padding-left: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .vehicle-action-btn {
        width: 100%;
    }
}
