/* ============================================================
   NoizeCare Portaal — Stylesheet
   Font: Poppins  |  Kleuren: wit, beige, oranje
   ============================================================ */

:root {
  --orange:       #F26522;
  --orange-dark:  #D4521A;
  --orange-light: #FFD4B8;
  --orange-pale:  #FFF0E6;
  --login-gradient: linear-gradient(135deg, #f83e16 0%, #ff5a00 34%, #ff7a00 68%, #f6a31a 100%);
  --beige:        #FAF8F5;
  --beige-mid:    #F3EEE8;
  --white:        #FFFFFF;
  --text:         #1E1E1E;
  --text-mid:     #4B4540;
  --text-soft:    #888888;
  --border:       #EDE8E3;
  --green:        #22C55E;
  --green-bg:     #DCFCE7;
  --amber:        #F59E0B;
  --amber-bg:     #FEF3C7;
  --red:          #EF4444;
  --red-bg:       #FEE2E2;
  --blue:         #3B82F6;
  --blue-bg:      #DBEAFE;
  --sidebar-w:    240px;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.05);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.login-body {
  background: var(--login-gradient);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.login-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 64px;
  background: var(--white);
  max-width: 520px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 48px;
}

.logo-mark {
  flex-shrink: 0;
}

.logo-mark img {
  display: block;
  width: 64px;
  height: auto;
}

.login-logo-text {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.login-logo-sub {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 400;
}

.login-card {
  width: 100%;
  max-width: 380px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--orange-pale);
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.login-subtitle {
  color: var(--text-soft);
  margin-bottom: 24px;
  font-size: 14px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
}

.form-input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.15s;
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,101,34,0.1);
}

textarea.form-input {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-row-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
}

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

.mt-8 { margin-top: 8px; }

.form-link {
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
}

.form-link:hover { text-decoration: underline; }

.login-help {
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-soft);
}

.login-right {
  flex: 1;
  background: var(--login-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.login-right-content {
  max-width: 420px;
  color: var(--white);
}

.login-feature-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.login-feature-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}

.login-feature-copy {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin-bottom: 28px;
}

.login-feature-panels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-feature-panel {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
  backdrop-filter: blur(4px);
}

.login-feature-panel-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.login-feature-panel-text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
}

/* ============================================================
   APP LAYOUT
   ============================================================ */

.app-body {
  background: var(--beige);
  min-height: 100vh;
  display: flex;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 10;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-brand-logo {
  display: block;
  width: 36px;
  height: auto;
  flex-shrink: 0;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-section-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  padding: 4px 8px 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: background 0.12s, color 0.12s;
}

.nav-item:hover {
  background: var(--beige);
  color: var(--text);
}

.nav-item.active {
  background: var(--orange-pale);
  color: var(--orange);
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item.active .nav-icon {
  opacity: 1;
}

.nav-group {
  margin-top: 4px;
}

.nav-group summary {
  list-style: none;
}

.nav-group summary::marker {
  content: "";
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group-toggle {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: background 0.12s, color 0.12s;
}

.nav-group-toggle:hover {
  background: var(--beige);
  color: var(--text);
}

.nav-group[open] .nav-group-toggle,
.nav-group.is-active .nav-group-toggle {
  background: var(--orange-pale);
  color: var(--orange);
  font-weight: 600;
}

.nav-group-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-group-caret {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform .16s ease;
}

.nav-group[open] .nav-group-caret {
  transform: rotate(90deg);
}

.nav-subnav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0 0 14px;
}

.nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  transition: background 0.12s, color 0.12s;
}

.nav-subitem:hover {
  background: var(--beige);
  color: var(--text);
}

.nav-subitem.active {
  background: #fff3ec;
  color: var(--orange);
  font-weight: 600;
}

.sidebar-bottom {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.company-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--beige);
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.company-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #F9A041);
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}

.company-role {
  font-size: 11px;
  color: var(--text-soft);
}

.nav-logout {
  color: var(--text-soft);
  font-size: 13px;
}

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  padding: 28px 32px;
  min-height: 100vh;
  max-width: calc(100vw - var(--sidebar-w));
}

/* Page header */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.page-subtitle {
  font-size: 13px;
  color: var(--text-soft);
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-date {
  font-size: 13px;
  color: var(--text-soft);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-primary:hover { background: var(--orange-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}

.btn-secondary:hover { border-color: var(--orange); color: var(--orange); }

.btn-danger {
  padding: 10px 18px;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  background: #fff5f5;
  color: #b91c1c;
  font-size: 14px;
  font-weight: 600;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}

.btn-danger:hover {
  border-color: #ef4444;
  color: #991b1b;
  background: #ffe4e6;
}

.btn-full { width: 100%; justify-content: center; padding: 12px; font-size: 14px; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

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

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.card-link {
  font-size: 13px;
  color: var(--orange);
  font-weight: 500;
}

.card-link:hover { text-decoration: underline; }

.card-count {
  font-size: 13px;
  color: var(--text-soft);
}

/* ============================================================
   STAT CARDS
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow);
  position: relative;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon--blue  { background: var(--blue-bg);  color: var(--blue); }
.stat-icon--green { background: var(--green-bg); color: var(--green); }
.stat-icon--orange{ background: var(--amber-bg); color: var(--amber); }
.stat-icon--red   { background: var(--red-bg);   color: var(--red); }

.stat-body { flex: 1; }

.stat-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.stat-value-small {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-soft);
}

.stat-label {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
}

.stat-pill {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
}

.stat-pill--green { background: var(--green-bg); color: var(--green); }

/* ============================================================
   CONTENT GRID
   ============================================================ */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.card-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ============================================================
   COMPLIANCE
   ============================================================ */

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

.compliance-bar {
  flex: 1;
  height: 8px;
  background: var(--beige-mid);
  border-radius: 100px;
  overflow: hidden;
}

.compliance-bar-fill {
  height: 100%;
  background: linear-gradient(to right, var(--green), #16A34A);
  border-radius: 100px;
  transition: width 0.6s ease;
}

.compliance-pct {
  font-size: 15px;
  font-weight: 700;
  color: var(--green);
  width: 44px;
  text-align: right;
}

.compliance-legend {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.legend-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 5px;
}

.legend-dot--green  { background: var(--green); }
.legend-dot--orange { background: var(--amber); }
.legend-dot--red    { background: var(--red); }

/* ============================================================
   TABLES
   ============================================================ */

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.mini-table th {
  text-align: left;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}

.mini-table td {
  padding: 8px 8px;
  border-bottom: 1px solid var(--beige-mid);
  color: var(--text-mid);
}

.mini-table tr:last-child td { border-bottom: none; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  border-bottom: 1.5px solid var(--border);
  background: var(--beige);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: middle;
}

.data-table tr.table-row {
  cursor: pointer;
  transition: background 0.1s;
}

.data-table tr.table-row:hover { background: var(--beige); }
.data-table tr:last-child td { border-bottom: none; }

.table-card { padding: 0; overflow: hidden; }
.table-card .card-header {
  padding: 20px 24px 16px;
  margin-bottom: 0;
}
.table-card .data-table th:first-child { padding-left: 24px; }
.table-card .data-table td:first-child { padding-left: 24px; }

.emp-name { font-weight: 600; color: var(--text); }

.order-num { font-weight: 600; color: var(--text); font-family: monospace; }

.row-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-soft);
  transition: border-color 0.12s, color 0.12s;
}

.row-btn:hover { border-color: var(--orange); color: var(--orange); }
.row-btn--danger { border-color: #fecaca; color: #b91c1c; background: #fff5f5; }
.row-btn--danger:hover { border-color: #ef4444; color: #ef4444; }

/* ============================================================
   BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
}

.badge--green  { background: var(--green-bg);  color: #166534; }
.badge--orange { background: var(--amber-bg);  color: #92400E; }
.badge--red    { background: var(--red-bg);    color: #991B1B; }
.badge--blue   { background: var(--blue-bg);   color: #1E40AF; }

/* ============================================================
   EVENT LIST
   ============================================================ */

.event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.event-date {
  width: 40px;
  height: 44px;
  background: var(--orange-pale);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.event-day {
  font-size: 16px;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
}

.event-month {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--orange);
  letter-spacing: 0.05em;
}

.event-body { flex: 1; padding-top: 2px; }

.event-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.event-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}

/* ============================================================
   QUICK ACTIONS
   ============================================================ */

.quick-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: var(--beige);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  border: 1px solid transparent;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.quick-action-btn:hover {
  background: var(--orange-pale);
  border-color: var(--orange-light);
  color: var(--orange);
}

/* ============================================================
   FILTER BAR
   ============================================================ */

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

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 320px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-soft);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--white);
  outline: none;
  color: var(--text);
}

.search-input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242,101,34,0.1);
}

.filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  transition: all 0.12s;
}

.chip:hover { border-color: var(--orange); color: var(--orange); }

.chip--active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

/* ============================================================
   MODALS
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  backdrop-filter: blur(3px);
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal--wide { max-width: 560px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-soft);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.12s;
}

.modal-close:hover { background: var(--beige); }

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 70vh;
  overflow-y: auto;
}

.modal-info {
  background: var(--orange-pale);
  border-left: 3px solid var(--orange-light);
  border-radius: 0 6px 6px 0;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--beige);
}

/* Detail modal */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 4px 0 16px;
}

.detail-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

/* Timeline */
.timeline { padding-top: 8px; }

.timeline-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item:last-child::before { display: none; }

.timeline-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  border: 2px solid white;
  box-shadow: 0 0 0 1px var(--border);
}

.timeline-dot--green { background: var(--green); box-shadow: 0 0 0 1px var(--green); }
.timeline-dot--blue  { background: var(--blue);  box-shadow: 0 0 0 1px var(--blue); }
.timeline-dot--orange { background: #F59E0B; box-shadow: 0 0 0 1px #F59E0B; }
.timeline-dot--red { background: #DC2626; box-shadow: 0 0 0 1px #DC2626; }

.timeline-event {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.timeline-date {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 2px;
}

.service-card {
  border-color: rgba(59, 130, 246, 0.16);
}

.service-card-subtitle {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
}

.service-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.service-summary-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.service-summary-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.service-summary-label {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
  line-height: 1.4;
}

.service-banner {
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid transparent;
}

.service-banner--ok {
  background: #F0FDF4;
  border-color: #BBF7D0;
  color: #166534;
}

.service-banner--info {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

.service-banner--warn {
  background: #FFF7ED;
  border-color: #FED7AA;
  color: #9A3412;
}

.service-banner-title {
  font-size: 13px;
  font-weight: 700;
}

.service-banner-text {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

.service-list-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.service-list-main {
  min-width: 0;
}

.service-list-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.service-list-sub {
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 4px;
  line-height: 1.4;
}

.service-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.service-list-date {
  font-size: 12px;
  color: var(--text-soft);
}

.service-empty {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 13px;
  color: var(--text-soft);
  background: #FAFAFA;
}

.service-detail-panel {
  margin-top: 4px;
  padding-top: 4px;
}

.service-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.service-panel-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-top: 2px;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.service-detail-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #FCFCFD;
}

/* ============================================================
   INFO BANNER
   ============================================================ */

.info-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--blue-bg);
  border: 1px solid #BFDBFE;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: #1E40AF;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ============================================================
   ORDER TYPES
   ============================================================ */

.order-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.order-type-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.1s;
  box-shadow: var(--shadow);
}

.order-type-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 20px rgba(242,101,34,0.12);
  transform: translateY(-1px);
}

.order-type-card--disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.order-type-card--disabled:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
  transform: none;
}

.order-type-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.order-type-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.order-type-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.5;
  margin-bottom: 14px;
}

.order-type-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
}

.coming-soon {
  color: var(--text-soft);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .order-types { grid-template-columns: 1fr 1fr; }
  .service-summary-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 20px 16px; max-width: 100vw; }
  .login-left { padding: 40px 28px; max-width: 100%; }
  .login-right { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .order-types { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-row-two { grid-template-columns: 1fr; }
  .service-summary-grid { grid-template-columns: 1fr; }
  .service-detail-grid { grid-template-columns: 1fr; }
  .service-list-item { flex-direction: column; }
  .service-list-meta { align-items: flex-start; }
  .service-panel-head { flex-direction: column; }
}
