/* CJG Prüfservice – CRM UI (shared) */
:root{
  color-scheme: light;

  /* Calm, professional CRM palette */
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-2: #f1f5f9;
  --border: #e5e7eb;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --accent: #388CFD;
  --accent-2: #805CFE;
  --accent-light: #4AD0FD;
  --danger: #dc2626;
  --success: #16a34a;
  --warn: #d97706;
  --shadow: 0 14px 38px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);

  --radius: 14px;
  --radius-sm: 12px;
  --gap: 16px;

  --sidebar-w: 240px;
  --sidebar-w-collapsed: 84px;
  --topbar-h: 64px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--panel); /* Usually bg, but panel looks cleaner for full page apps */
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.main code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.app{
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}
body.sidebar-collapsed .app{
  grid-template-columns: var(--sidebar-w-collapsed) 1fr;
}

.sidebar{
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 18px 14px;
  border-right: 1px solid var(--border);
  background: var(--bg);
  z-index: 10;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 18px 10px;
}
.brand-mark{
  width: 40px; height: 40px;
  border-radius: 0;
  background: url("./assets/brand-mark.svg") center / contain no-repeat;
  background-color: transparent;
  box-shadow: none;
}
.brand-title{
  display: flex;
  flex-direction: column;
  gap: 5px; /* mehr Abstand zwischen "CJG Prüfservice" und Name */
  line-height: 1.1;
}
.brand-title strong{ font-size: 14px; letter-spacing: 0.2px; }
.brand-title span{ font-size: 12px; color: var(--muted); }

body.sidebar-collapsed .brand-title{ display: none; }

.nav{
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}
.nav a{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 0.2s;
}
.nav a:hover{
  background: var(--panel-2);
  color: var(--text);
}
.nav a.active{
  background: rgba(56, 140, 253, 0.10);
  border-color: rgba(56, 140, 253, 0.22);
  color: var(--text);
}
.nav .icon{
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  border: 1px solid rgba(15, 23, 42, 0.06);
  flex: 0 0 auto;
}
.nav a:hover .icon{
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
}
.nav a.active .icon{
  color: var(--accent);
  background: rgba(56, 140, 253, 0.10);
  border-color: rgba(56, 140, 253, 0.18);
}
.nav .icon svg{
  width: 16px;
  height: 16px;
  display: block;
}
.nav .label{
  font-size: 13px;
  white-space: nowrap;
}
body.sidebar-collapsed .nav .label{ display: none; }

.sidebar-footer{
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted-2);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-footer .btn{
  width: 100%;
  justify-content: center;
}
body.sidebar-collapsed .sidebar-footer{
  display: block;
}

.main{
  padding: 18px 22px 28px 22px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* Shop: ohne Innenabstände, damit das eingebettete Shop-UI bündig sitzt */
body[data-page="shop"] .main{
  padding: 18px 22px 28px 22px;
}

.topbar{
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--panel);
}
.topbar-left{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.btn{
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}
.btn:hover{ background: var(--panel-2); border-color: #cbd5e1; }
.btn.primary{
  border-color: rgba(56, 140, 253, 0.35);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 5px rgba(56, 140, 253, 0.2);
}
.btn.primary:hover{ background: #2563EB; }
.btn.danger{
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
}
.btn.ghost{
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
.btn.ghost:hover{
  background: var(--panel-2);
}

.content{
  margin-top: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto; /* Allow main scrolling */
}

/* Page actions (replaces removed topbar) */
.page-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

/* Deal Detail: Suche */
.page-actions-left,
.page-actions-right{
  flex: 0 0 auto;
}
.deal-search{
  flex: 1;
  min-width: 160px;
  max-width: 640px;
  position: relative;
}
.deal-search-input{
  width: 100%;
  height: 40px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  outline: none;
}
.deal-search-input:focus{
  border-color: rgba(56, 140, 253, 0.45);
  box-shadow: 0 0 0 3px rgba(56, 140, 253, 0.12);
}
.deal-search-results{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.deal-search-item{
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.deal-search-item:hover,
.deal-search-item[aria-selected="true"]{
  background: var(--panel-2);
}
.deal-search-item strong{
  font-size: 13px;
}
.deal-search-item span{
  font-size: 12px;
  color: var(--muted);
}
.deal-search-empty{
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

.grid{
  display: grid;
  gap: var(--gap);
}
.grid.cols-4{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.cols-2{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px){
  .grid.cols-4{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px){
  .app{ grid-template-columns: 1fr; }
  .sidebar{ position: relative; height: auto; }
  body.sidebar-collapsed .app{ grid-template-columns: 1fr; }
  .grid.cols-4, .grid.cols-2{ grid-template-columns: 1fr; }
}

.card{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.card h3{
  margin: 0 0 10px 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.kpi{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.kpi .value{
  font-size: 28px;
  font-weight: 720;
  letter-spacing: 0.2px;
}
.kpi .hint{
  font-size: 12px;
  color: var(--muted);
}

.list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.list-item{
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  background: var(--panel-2);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.list-item strong{ font-size: 13px; }
.list-item span{ font-size: 12px; color: var(--muted); }

/* Tasks (Aufgaben) */
.pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: none;
  user-select: none;
}
.tasks-form .edit-input,
.tasks-form .edit-select{
  width: 100%;
  max-width: none;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.tasks-form textarea.edit-input{
  max-width: none;
}
.tasks-form-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.task-field{
  margin-bottom: 12px;
}
.task-field label{
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.task-help{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.tasks-filters{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.tasks-checkbox{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  user-select: none;
}
.tasks-checkbox input{
  width: 16px; height: 16px;
}
.tasks-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.task-row{
  align-items: flex-start;
}
.task-row.done{
  opacity: 0.78;
}
.task-left{
  display: flex;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.task-check{
  display: inline-flex;
  align-items: flex-start;
  padding-top: 2px;
}
.task-check input{
  width: 18px;
  height: 18px;
}
.task-left-text{
  min-width: 0;
}
.task-title{
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
}
.task-row.done .task-title{
  text-decoration: line-through;
}
.task-sub{
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  max-width: 58ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-tags-inline{
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.task-tags-inline .tag{
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.task-right{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}
.task-badges{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.task-actions{
  display: flex;
  gap: 8px;
}
.task-due{
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}
.task-due.overdue{
  color: var(--danger);
}
.pill.priority-high{
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.18);
  color: #991b1b;
}
.pill.priority-medium{
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.18);
  color: #92400e;
}
.pill.priority-low{
  background: rgba(56, 140, 253, 0.10);
  border-color: rgba(56, 140, 253, 0.22);
  color: var(--text);
}
.pill.status-open{
  background: rgba(56, 140, 253, 0.10);
  border-color: rgba(56, 140, 253, 0.22);
}
.pill.status-in_progress{
  background: rgba(217, 119, 6, 0.08);
  border-color: rgba(217, 119, 6, 0.18);
}
.pill.status-done{
  background: rgba(22, 163, 74, 0.10);
  border-color: rgba(22, 163, 74, 0.22);
}
.task-empty{
  color: var(--muted);
}
@media (max-width: 900px){
  .tasks-form-grid{ grid-template-columns: 1fr; }
  .task-row{ flex-direction: column; align-items: stretch; }
  .task-right{ align-items: flex-start; }
  .task-badges{ justify-content: flex-start; }
  .task-sub{ max-width: 100%; }
}

/* Kanban */
.kanban{
  /* Wichtig: STAGES werden in JS dynamisch gerendert (aktuell 8).
     Ein fixes grid-template-columns (z.B. repeat(7, ...)) führt dazu,
     dass die letzte Spalte in eine zweite Zeile umbricht.
     Daher: Flexbox ohne Umbruch + horizontales Scrollen. */
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  height: 100%;
}
.kanban::-webkit-scrollbar{ height: 10px; }
.kanban::-webkit-scrollbar-thumb{
  background: rgba(15, 23, 42, 0.14);
  border-radius: 999px;
}
.kanban::-webkit-scrollbar-track{ background: transparent; }
.kanban-col{
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: var(--radius);
  height: 100%;
  /* Fixe/flexible Spaltenbreite, damit alle Spalten nebeneinander bleiben */
  flex: 0 0 280px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kanban-col-header{
  padding: 12px 12px 10px 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  background: var(--panel);
  z-index: 1;
  position: relative;
}
.kanban-col-header .row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.kanban .badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  user-select: none;
}
.kanban-col-title{
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.kanban-col-meta{
  font-size: 12px;
  color: var(--muted);
}
.kanban-col-body{
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px; /* Mehr Abstand */
  flex: 1;
  min-height: 0;
  background: var(--bg); /* Spalte leicht abgedunkelt */
  overflow-y: auto;
  overflow-x: hidden;
}
/* Modern Deal Card */
.deal {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--panel);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deal:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 140, 253, 0.4);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.08);
}
.deal[draggable="true"] { user-select: none; }

.deal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.deal-company {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deal-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.deal-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.deal-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
}
.deal-contact {
  font-size: 12px;
  color: var(--muted-2);
}

.deal-footer {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.deal-reminder{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--warn);
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.18);
  padding: 6px 8px;
  border-radius: 10px;
}

.drop-hint {
  border: 1px dashed rgba(56, 140, 253, 0.35);
  background: rgba(56, 140, 253, 0.06);
}

/* Dialog */
dialog{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  color: var(--text);
  box-shadow: var(--shadow);
  padding: 0;
  max-width: 640px;
  width: min(640px, calc(100vw - 24px));
}
dialog::backdrop{
  background: rgba(15, 23, 42, 0.35);
}
/* Kalender */
.calendar{
  display: grid;
  gap: 12px;
}

/* Kalender: volle Höhe bis nach unten (nur Kalender-Seite) */
body[data-page="calendar"] .content{
  overflow: hidden; /* verhindert Doppel-Scroll (Content + Kalender) */
}
body[data-page="calendar"] #calendar.card.calendar{
  flex: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* damit nur der innere .week-scroll scrollt */
}
body[data-page="calendar"] #calendar .calendar-toolbar{
  flex: 0 0 auto; /* Toolbar bleibt fix, Scrollbereich nimmt Resthöhe */
}
body[data-page="calendar"] #calendar .week-grid{
  flex: 1;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body[data-page="calendar"] #calendar .week-scroll{
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: auto; /* EIN Scrollcontainer für Header + Body (saubere Ausrichtung) */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
body[data-page="calendar"] #calendar .time-col,
body[data-page="calendar"] #calendar .day-col{
  height: var(--day-height, 520px);
}

/* Kalender Toolbar */
.calendar-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.calendar-toolbar .left,
.calendar-toolbar .right{
  display:flex;
  align-items:center;
  gap:8px;
}
.calendar-title{
  font-weight:700;
  color: var(--text);
}

/* Wochenansicht (Grid) */
.week-head{
  display:grid;
  grid-template-columns: var(--time-col-w, 72px) repeat(7, minmax(var(--day-min-w, 140px), 1fr));
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  position: sticky;
  top: 0;
  z-index: 5;
}
.week-head .cell{
  padding: 10px 12px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  border-left: 1px solid var(--border);
}
.week-head .cell:first-child{
  border-left: none;
}

.week-body{
  display:grid;
  grid-template-columns: var(--time-col-w, 72px) repeat(7, minmax(var(--day-min-w, 140px), 1fr));
  background: var(--bg);
}

.time-col{
  position: relative;
  border-right: 1px solid var(--border);
  background: var(--panel);
}
.time-ticks{
  position: relative;
  height: 100%;
}
.time-tick{
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  padding: 0 10px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.day-col{
  position: relative;
  border-left: 1px solid var(--border);
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--slot-px, 26px) - 1px),
      rgba(15, 23, 42, 0.06) calc(var(--slot-px, 26px) - 1px),
      rgba(15, 23, 42, 0.06) var(--slot-px, 26px)
    );
}

.event{
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(56, 140, 253, 0.12);
  border: 1px solid rgba(56, 140, 253, 0.25);
  color: var(--text);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.event strong{
  display:block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 4px;
  line-height: 1.2;
}
.event span{
  display:block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 900px){
  .week-grid{
    /* Header+Body scrollen gemeinsam in .week-scroll; .week-grid bleibt "frame" */
    border-radius: var(--radius);
  }
  body[data-page="calendar"] #calendar{
    --time-col-w: 64px;
    --day-min-w: 120px;
  }
}
.week-grid{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
/* Utilities */
.sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* NEW: Deal Detail Styles */
.detail-container {
  /* max-width: 1000px;  <-- Entfernt, damit es so breit ist wie Topbar */
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detail-header-card,
.order-header-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.dh-main h1 {
  margin: 0 0 8px 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}
.dh-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
.dh-company {
  font-weight: 600;
  color: var(--muted-2);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.dh-date {
  font-size: 13px;
}

.dh-status {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid rgba(15,23,42,0.1);
}
.amount-badge {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  background: rgba(56, 140, 253, 0.1);
  color: var(--accent);
}

/* Bestell-Detail: Header-Layout (Status + Summe links von Adresse) */
body[data-page="bestellung-detail"] .order-header-card{
  display: grid;
  grid-template-columns: auto auto minmax(260px, 1fr);
  align-items: start;
  gap: 16px;
}

body[data-page="bestellung-detail"] .dh-address{
  text-align: center;
  white-space: pre-wrap;
  line-height: 1.35;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid rgba(15, 23, 42, 0.08);
  min-width: 0;
}

@media (max-width: 900px){
  body[data-page="bestellung-detail"] .order-header-card{
    grid-template-columns: 1fr;
  }
  body[data-page="bestellung-detail"] .dh-address{
    text-align: left;
  }
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.detail-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.detail-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.content-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.notes-box {
  background: var(--panel-2);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

.contact-row {
  display: flex;
  gap: 16px;
  align-items: center;
}
.avatar-placeholder {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-name {
  font-size: 16px;
  font-weight: 600;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cd-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.cd-item svg {
  color: var(--muted-2);
}

.sidebar-field {
  margin-bottom: 16px;
}
.sidebar-field:last-child { margin-bottom: 0; }
.sidebar-field label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}
.user-avatar-sm {
  width: 24px; height: 24px;
  background: #cbd5e1;
  border-radius: 50%;
}

.date-display {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.date-display.highlight {
  color: var(--warn);
  font-weight: 600;
}
.date-display.warn{
  color: var(--warn);
  font-weight: 600;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s;
  background: rgba(255,255,255,0.5);
}
.back-link:hover {
  background: var(--panel-2);
  color: var(--text);
  text-decoration: none;
}

/* Edit Mode Inputs */
.edit-input, .edit-select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  width: 100%;
  max-width: 200px;
}
.edit-input:focus, .edit-select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--panel);
}
/* Adjust styles for specific locations */
.dh-meta .edit-input {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 12px;
  padding: 2px 4px;
}
.dh-status .edit-input { /* Amount */
  font-weight: 700;
  font-size: 14px;
  width: 100px;
}
.dh-status .edit-select { /* Stage */
  font-size: 13px;
  font-weight: 600;
  padding: 2px 4px;
}
.date-display .edit-input {
  font-size: 13px;
  width: 140px;
}

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

/* ---------------------------------------
   Mitarbeiter (Master/Detail) – modern UI
---------------------------------------- */
.emp-layout{
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: var(--gap);
  align-items: stretch;
  min-height: 0;
}
.emp-master,
.emp-detail{
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.emp-master-head{
  background: var(--panel);
  padding-bottom: 10px;
  border-bottom: none;
  margin-bottom: 0;
}
.emp-master-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.emp-master-title{
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  margin: 0;
  letter-spacing: 0.2px;
}
.emp-toolbar{
  display: flex;
  align-items: center;
  gap: 10px;
}
.emp-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  padding-right: 4px;
  min-height: 0;
  flex: 1;
}

.emp-group{
  /* Rahmen/Radius werden je nach Zustand (open/closed) über summary + body gesetzt,
     damit der sticky Header beim Scrollen auch links/rechts "mitrundet". */
  border: none;
  border-radius: 0;
  background: transparent;
  /* Wichtig für "sticky" Gruppen-Header:
     Overflow auf einem Vorfahren kann position: sticky verhindern/kaputt machen. */
  overflow: visible;
  flex-shrink: 0;
  position: relative; /* Sticky-Header: Begrenzungsbox für "wegschieben" */
}
.emp-group summary{
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  user-select: none;
  background: var(--panel);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 3; /* über den Items, damit der Header beim Scrollen oben bleibt */
}

/* Ausgeklappt: kompletter Rahmen läuft über sticky Header + Body (saubere runde Ecken). */
.emp-group[open] summary{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  background: #F1F7FF; /* gleiche Farbe wie eingeklappt */
  color: var(--text);
}
.emp-group[open] .emp-group-body{
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: none;
  border-radius: 0 0 14px 14px;
  background: var(--panel);
}

/* Eingeklappt: nur ein einfacher Rand um den Standort-Header */
.emp-group:not([open]){
  border: none;
  background: transparent;
}
.emp-group:not([open]) summary{
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12); /* überschreibt offene Variante */
  background: #F1F7FF; /* voll deckend */
  color: var(--text);
}
.emp-group-summary-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.emp-group-label{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.emp-group summary::-webkit-details-marker{ display:none; }
.emp-group .count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(56, 140, 253, 0.10);
  border: 1px solid rgba(56, 140, 253, 0.22);
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}
.emp-group-body{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
}

.emp-item{
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  transition: all 0.2s;
}
.emp-item:hover{
  background: rgba(56, 140, 253, 0.08);
  border-color: rgba(56, 140, 253, 0.18);
}
.emp-item.active{
  background: #F1F7FF; /* gleiche Farbe wie Standort-Header */
  border-color: rgba(56, 140, 253, 0.22);
}
.emp-item:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 140, 253, 0.12);
}
.emp-item strong{ font-size: 13px; }
.emp-item span{ font-size: 12px; color: var(--muted); }
.emp-item-pos{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.2;
}
.emp-item .right{
  text-align: right;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.emp-row{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.emp-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  /* Aktiv (Default): grün */
  background: rgba(22, 163, 74, 0.10);
  border: 1px solid rgba(22, 163, 74, 0.22);
  color: #166534;
}
.emp-chip.inactive{
  /* Inaktiv: neutral-grau (wie zuvor "Aktiv") */
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--text);
}

.emp-detail-head{
  background: var(--panel);
  padding-bottom: 12px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.emp-form{
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.emp-profile{
  display: flex;
  align-items: center;
  gap: 12px;
}
.emp-avatar{
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background:
    radial-gradient(1200px 400px at 0% 0%, rgba(56,140,253,0.16) 0%, rgba(74,208,253,0.16) 40%, transparent 70%),
    var(--panel-2);
  border: 1px solid rgba(56, 140, 253, 0.22);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: var(--text);
}
.emp-profile-name{
  font-size: 16px;
  font-weight: 900;
}
.emp-profile-sub{
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.emp-form .edit-input,
.emp-form .edit-select{
  width: 100%;
  max-width: none;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.emp-section{
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}
.emp-section:first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.emp-section-title{
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.emp-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.emp-grid .task-field{ margin-bottom: 0; }

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

  /* Mobile/kleine Fenster: linke Mitarbeiterliste begrenzen und innerhalb scrollen */
  body[data-page="mitarbeiter"] .emp-master{
    max-height: 55vh;
    overflow: hidden; /* Scroll liegt in .emp-list */
  }
}

/* Mitarbeiter: Master & Detail sollen EINZELN scrollen (Desktop) */
@media (min-width: 901px){
  body[data-page="mitarbeiter"] .content{
    overflow: hidden; /* verhindert Seiten-Scroll, damit nur die Cards scrollen */
    height: 100%;
  }

  body[data-page="mitarbeiter"] .emp-layout{
    flex: 1;
    min-height: 0;
    height: 100%;
  }

  body[data-page="mitarbeiter"] .emp-master,
  body[data-page="mitarbeiter"] .emp-detail{
    height: 100%;
    min-height: 0;
    overflow: hidden; /* Scroll liegt in der Liste / im Formular */
  }
}

/* ---------------------------------------
   Bestellmanagement (Dialog + Artikel)
---------------------------------------- */
.dialog-header{
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.dialog-body{
  padding: 24px;
}
.dialog-footer{
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--panel-2);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.order-detail-title{
  margin: 0;
  font-size: 18px;
}
.order-detail-meta{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.4;
}
.order-detail-section-title{
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.order-items{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Bestell-Detail: Bestellinfos über Artikel, beide volle Breite */
body[data-page="bestellung-detail"] .content{
  overflow: hidden; /* nur die Artikelliste scrollt */
}
body[data-page="bestellung-detail"] .detail-container{
  flex: 1;
  min-height: 0;
}
body[data-page="bestellung-detail"] .detail-layout{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch; /* wichtig: sonst bleiben Cards schmal (inherit von .detail-layout: align-items:start) */
}
body[data-page="bestellung-detail"] .detail-layout > .content-card{
  width: 100%;
}
body[data-page="bestellung-detail"] .order-items-card{
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body[data-page="bestellung-detail"] .order-items-card .order-items-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
body[data-page="bestellung-detail"] .order-items-card .order-items-head h3{
  margin: 0;
}
body[data-page="bestellung-detail"] .order-items-card .sum-badge{
  flex: 0 0 auto;
  text-align: right;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid rgba(15,23,42,0.1);
  white-space: nowrap;
}
body[data-page="bestellung-detail"] .order-items-card .order-items{
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

/* Bestell-Detail: Bestellinformationen optisch aufräumen */
body[data-page="bestellung-detail"] .order-info-card h3{
  margin-bottom: 6px;
}

/* Bestellinfos: Erstellt von / Standort / Status in einer Zeile */
body[data-page="bestellung-detail"] .order-info-card .order-info-row{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 4px;
}
body[data-page="bestellung-detail"] .order-info-card .order-info-row .sidebar-field{
  border-bottom: none;
  padding: 0;
}
body[data-page="bestellung-detail"] .order-info-card .order-info-row + .sidebar-field{
  margin-top: 12px;
}

@media (max-width: 900px){
  body[data-page="bestellung-detail"] .order-info-card .order-info-row{
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Bestellinfos: links Standort/Mitarbeiter/Status untereinander, rechts Adresse (rechtsbündig) */
body[data-page="bestellung-detail"] .order-info-card .order-info-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding-top: 4px;
}
body[data-page="bestellung-detail"] .order-info-card .order-info-left{
  display: flex;
  flex-direction: column;
}
body[data-page="bestellung-detail"] .order-info-card .order-info-left .sidebar-field{
  margin: 0;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  align-items: baseline;
  justify-content: start;
  gap: 16px;
  border-bottom: none; /* keine Linien zwischen Standort/Mitarbeiter/Status */
  padding: 6px 0;      /* näher zueinander */
}
body[data-page="bestellung-detail"] .order-info-card .order-info-left .sidebar-field label{
  margin-bottom: 0; /* Label + Wert in einer Zeile */
}
body[data-page="bestellung-detail"] .order-info-card .order-info-left .sidebar-field .date-display{
  text-align: left;
  font-weight: 900;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 900px){
  body[data-page="bestellung-detail"] .order-info-card .order-info-left .sidebar-field{
    grid-template-columns: 1fr;
    gap: 6px;
  }
  body[data-page="bestellung-detail"] .order-info-card .order-info-left .sidebar-field .date-display{
    white-space: normal;
  }
}
body[data-page="bestellung-detail"] .order-info-card .order-info-right{
  display: flex;
  justify-content: flex-start; /* rechter Bereich: Inhalt links ausrichten */
}
body[data-page="bestellung-detail"] .order-info-card .order-info-right .sidebar-field{
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 50px;
}
body[data-page="bestellung-detail"] .order-info-card .order-info-right #orderAdresse{
  /* blaues Feld nur so breit wie Inhalt, Label steht links daneben */
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  text-align: left;
}

/* Adresse-Label nicht mehr "drüber", sondern links neben dem Feld */
body[data-page="bestellung-detail"] .order-info-card .order-info-right .sidebar-field label{
  margin-bottom: 0;
  padding-top: 2px;
  white-space: nowrap;
}

@media (max-width: 900px){
  body[data-page="bestellung-detail"] .order-info-card .order-info-grid{
    grid-template-columns: 1fr;
  }
  body[data-page="bestellung-detail"] .order-info-card .order-info-right{
    justify-content: flex-start;
  }
  body[data-page="bestellung-detail"] .order-info-card .order-info-right #orderAdresse{
    text-align: left;
  }
}
body[data-page="bestellung-detail"] .order-info-card .sidebar-field{
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
body[data-page="bestellung-detail"] .order-info-card .sidebar-field:last-child{
  border-bottom: none;
  padding-bottom: 0;
}
body[data-page="bestellung-detail"] .order-info-card .sidebar-field:first-of-type{
  padding-top: 4px;
}
body[data-page="bestellung-detail"] .order-info-card .sidebar-field label{
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
body[data-page="bestellung-detail"] .order-info-card .date-display{
  font-weight: 800;
  color: var(--text);
}
body[data-page="bestellung-detail"] .order-info-card #orderAdresse{
  margin-top: 0;
  padding: 10px 25px;
  border-radius: 12px;
  background: var(--panel-2);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 700;
  color: var(--text);
}
body[data-page="bestellung-detail"] .order-info-card #orderSumInfo{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid rgba(15,23,42,0.1);
}
.order-items-empty{
  font-size: 13px;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(15, 23, 42, 0.18);
  background: rgba(15, 23, 42, 0.03);
}
.order-item{
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid rgba(15, 23, 42, 0.08);
}
.order-item-img{
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--panel-2);
}
.order-item-img.placeholder{
  display: block;
}
.order-item-title{
  font-size: 13px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.25;
}
.order-item-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.order-item-right{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  justify-items: end;
  align-content: start;
}
.order-item-kv{
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.order-item-kv .k{
  display: block;
  font-size: 11px;
  color: var(--muted-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.order-item-kv .v{
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 900;
}

@media (max-width: 900px){
  .order-item-row{
    grid-template-columns: 1fr;
  }
  .order-item-right{
    justify-items: start;
  }
  .order-item-kv{
    text-align: left;
  }
}
.order-item-options{
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-2);
  font-weight: 600;
}

.order-address{
  white-space: pre-wrap;
}