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

:root {
  --ink: #191817;
  --paper: #F6F5F2;
  --line: #E4E1DA;
  --muted: #8A8680;
  --accent: #FF0000;
  --white: #FFFFFF;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}

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

/* ---------- Layout connecté ---------- */
.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 220px;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 24px 0;
}

.admin-sidebar .brand-dropdown {
  position: relative;
  padding: 0 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  margin-bottom: 12px;
}

.admin-sidebar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  color: var(--paper);
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  padding: 0;
  cursor: pointer;
}

.admin-sidebar .brand-logo { height: 26px; width: auto; flex-shrink: 0; }

.admin-sidebar .brand-caret {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform 0.15s ease;
}

.brand-dropdown.open .brand-caret { transform: rotate(180deg); }

.brand-menu {
  display: none;
  position: absolute;
  left: 24px;
  right: 24px;
  top: 100%;
  margin-top: 8px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.28);
  overflow: hidden;
  z-index: 20;
}

.brand-dropdown.open .brand-menu { display: block; }

.brand-menu a, .brand-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  font-family: inherit;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
}

.brand-menu a:hover, .brand-menu button:hover { background: var(--paper); }

.admin-nav a {
  display: block;
  padding: 11px 24px;
  color: #C9C6BF;
  font-size: 13.5px;
  border-left: 3px solid transparent;
}

.admin-nav a:hover { color: var(--white); background: rgba(255,255,255,0.04); }

.admin-nav a.active {
  color: var(--white);
  border-left-color: var(--accent);
  background: rgba(255,255,255,0.06);
}

.admin-nav-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px 24px;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  color: #C9C6BF;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
}
.admin-nav-toggle:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.admin-nav-toggle.active { color: var(--white); border-left-color: var(--accent); background: rgba(255,255,255,0.06); }
.admin-nav-caret { margin-left: auto; font-size: 12px; transition: transform 0.15s ease; }
.admin-nav-group.open .admin-nav-caret { transform: rotate(180deg); }

.admin-nav-submenu { max-height: 0; overflow: hidden; transition: max-height 0.2s ease; }
.admin-nav-group.open .admin-nav-submenu { max-height: 200px; }
.admin-nav-submenu a {
  display: block;
  padding: 9px 24px 9px 44px;
  color: #C9C6BF;
  font-size: 13px;
  border-left: 3px solid transparent;
}
.admin-nav-submenu a:hover { color: var(--white); background: rgba(255,255,255,0.04); }
.admin-nav-submenu a.active { color: var(--white); border-left-color: var(--accent); background: rgba(255,255,255,0.06); }

.admin-nav-logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding: 13px 24px;
  background: none;
  border: none;
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #C9C6BF;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
}
.admin-nav-logout i { font-size: 15px; }
.admin-nav-logout:hover { color: var(--white); background: rgba(255,255,255,0.04); }

.admin-main { flex: 1; min-width: 0; margin-left: 220px; display: flex; flex-direction: column; }

.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.admin-topbar h1 { font-size: 18px; font-weight: 700; }

.admin-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.admin-breadcrumb a { color: var(--muted); text-decoration: none; }
.admin-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.admin-breadcrumb .sep { color: var(--line); }
.admin-breadcrumb .current { color: var(--ink); font-weight: 600; }

.admin-user { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); }

.admin-content { padding: 28px 32px; flex: 1; }

/* ---------- Login ---------- */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(25,24,23,0.72), rgba(25,24,23,0.72)),
    url('../img/ccs-bg.jpg') center / cover no-repeat;
}

.admin-login-card {
  width: 340px;
  background: var(--white);
  border-radius: 10px;
  padding: 32px 28px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28);
}

.admin-login-card .login-logo { display: block; height: 40px; width: auto; margin: 0 auto 16px; }
.admin-login-card h1 { font-size: 18px; margin-bottom: 4px; text-align: center; }
.admin-login-card p.sub { color: var(--muted); font-size: 13px; margin-bottom: 20px; text-align: center; }

/* ---------- Composants ---------- */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.05s ease, background 0.15s ease;
}
.admin-btn:hover { opacity: 0.88; }
.admin-btn:active { transform: scale(0.98); }
.admin-btn.secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.admin-btn.secondary:hover { background: var(--paper); opacity: 1; }
.admin-btn.danger { background: var(--accent); }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.admin-btn.small { padding: 6px 12px; font-size: 12.5px; border-radius: 6px; }

.admin-field { margin-bottom: 16px; }
.admin-field label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.admin-field input, .admin-field select, .admin-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-field textarea { resize: vertical; min-height: 70px; }
.admin-field input::placeholder, .admin-field textarea::placeholder { color: #B7B3AC; }
.admin-field input:focus, .admin-field select:focus, .admin-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(25,24,23,0.07);
}
.admin-field-row { display: flex; gap: 14px; flex-wrap: wrap; }

.mini-editor { border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--white); }
.mini-editor-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px; border-bottom: 1.5px solid var(--line); background: var(--paper); }
.mini-editor-toolbar button {
  width: 30px; height: 30px; border: none; border-radius: 6px; background: transparent; color: var(--ink);
  font-size: 13px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mini-editor-toolbar button:hover { background: var(--line); }
.mini-editor-toolbar select {
  height: 30px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--white); color: var(--ink);
  font-size: 12px; font-family: inherit; padding: 0 6px; cursor: pointer; flex-shrink: 0;
}
.mini-editor-toolbar input[type="color"] {
  width: 28px; height: 30px; padding: 2px; border: 1.5px solid var(--line); border-radius: 6px;
  background: var(--white); cursor: pointer; flex-shrink: 0;
}
.mini-editor-sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; flex-shrink: 0; }
.mini-editor-body {
  min-height: 160px; max-height: 400px; overflow-y: auto; padding: 10px 12px; font-size: 13.5px; line-height: 1.5;
}
.mini-editor-body:focus { outline: none; }
.mini-editor-body:empty:before { content: attr(data-placeholder); color: #B7B3AC; }
.mini-editor-body ul, .mini-editor-body ol { padding-left: 22px; margin: 6px 0; }
.mini-editor-body h2 { font-size: 19px; font-weight: 700; margin: 10px 0 6px; }
.mini-editor-body h3 { font-size: 16px; font-weight: 700; margin: 8px 0 6px; }
.mini-editor-body blockquote { border-left: 3px solid var(--line); margin: 8px 0; padding: 4px 12px; color: var(--muted); }
.mini-editor-body a { color: #2563EB; }
.mini-editor-body img { max-width: 100%; border-radius: 6px; }

.admin-checkbox-label { display: flex !important; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.admin-checkbox-label input[type="checkbox"] { width: 17px; height: 17px; accent-color: #2563EB; cursor: pointer; }

.admin-specs-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.admin-spec-row { display: flex; gap: 8px; align-items: center; }
.admin-spec-row .spec-input { flex: 1; }
.admin-spec-remove {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--ink); font-size: 17px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: border-color .15s ease, color .15s ease;
}
.admin-spec-remove:hover { border-color: var(--accent); color: var(--accent); }
.admin-field-row .admin-field { flex: 1; min-width: 160px; }

.admin-input-wrap { position: relative; }
.admin-input-wrap input { padding-left: 36px; }
.admin-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 15px;
  pointer-events: none;
}

.admin-password-wrap input { padding-right: 38px; }
.admin-password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 5px;
}
.admin-password-toggle:hover { color: var(--ink); background: var(--paper); }
.admin-password-toggle.is-visible { color: var(--ink); }

.admin-alert {
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}
.admin-alert.error { background: #FFF0EE; color: #B23B2C; }
.admin-alert.success { background: #EFF4EC; color: #4B6B39; }

.admin-toast-host {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.admin-toast {
  background: var(--ink); color: #FFFFFF; font-size: 13.5px; padding: 12px 18px;
  border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0; transform: translateY(8px); transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 320px;
}
.admin-toast.error { background: #B23B2C; }
.admin-toast.show { opacity: 1; transform: translateY(0); }

.admin-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 1px 2px rgba(25,24,23,0.04), 0 10px 28px rgba(25,24,23,0.05);
}

.admin-card h2 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-table-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  box-shadow: 0 1px 2px rgba(25,24,23,0.04), 0 10px 28px rgba(25,24,23,0.05);
}

table.admin-table { width: 100%; border-collapse: collapse; }
table.admin-table th, table.admin-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  vertical-align: middle;
}
table.admin-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em; }
table.admin-table tbody tr:last-child td { border-bottom: none; }
table.admin-table tbody tr:hover { background: #FBFAF8; }
table.admin-table .actions { display: flex; gap: 8px; white-space: nowrap; }

.admin-empty { padding: 32px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- DataTables (orders.php) ----------
   Couvre à la fois les classes DataTables 1.x (dataTables_*) et 2.x (dt-*),
   la version exacte chargée depuis le CDN pouvant changer. */
.dataTables_wrapper, .dt-container { font-family: inherit; }
.dataTables_wrapper > .dataTables_length, .dt-container .dt-length,
.dataTables_wrapper > .dataTables_filter, .dt-container .dt-search { padding: 14px 16px 0; font-size: 13px; color: var(--muted); }
.dataTables_wrapper > .dataTables_filter, .dt-container .dt-search { text-align: right; }
.dataTables_wrapper > .dataTables_length select, .dt-container .dt-length select,
.dataTables_wrapper > .dataTables_filter input, .dt-container .dt-search input {
  padding: 7px 10px; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: 13px; font-family: inherit; margin: 0 6px; background: var(--white); color: var(--ink);
}
.dataTables_wrapper > .dataTables_length select:focus, .dt-container .dt-length select:focus,
.dataTables_wrapper > .dataTables_filter input:focus, .dt-container .dt-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(25,24,23,0.07); }
.dataTables_wrapper > .dataTables_info, .dt-container .dt-info { padding: 14px 16px 0; font-size: 12.5px; color: var(--muted); }
.dataTables_wrapper > .dataTables_paginate, .dt-container .dt-paging { padding: 10px 16px 16px; text-align: right; }
.dataTables_wrapper > .dataTables_paginate .paginate_button, .dt-container .dt-paging .dt-paging-button {
  display: inline-block; padding: 6px 12px; margin-left: 4px; border-radius: 6px;
  border: 1px solid var(--line); cursor: pointer; font-size: 12.5px; color: var(--ink) !important;
}
.dataTables_wrapper > .dataTables_paginate .paginate_button.current, .dt-container .dt-paging .dt-paging-button.current {
  background: var(--ink) !important; border-color: var(--ink); color: var(--white) !important;
}
.dataTables_wrapper > .dataTables_paginate .paginate_button.disabled, .dt-container .dt-paging .dt-paging-button.disabled { color: var(--line) !important; cursor: not-allowed; }
.dataTables_wrapper > .dataTables_paginate .paginate_button:hover:not(.disabled):not(.current),
.dt-container .dt-paging .dt-paging-button:hover:not(.disabled):not(.current) { background: var(--paper) !important; }
table.admin-table.dataTable thead .sorting:before,
table.admin-table.dataTable thead .sorting:after,
table.admin-table.dataTable thead .sorting_asc:before,
table.admin-table.dataTable thead .sorting_asc:after,
table.admin-table.dataTable thead .sorting_desc:before,
table.admin-table.dataTable thead .sorting_desc:after { opacity: 0.35; }

.admin-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.admin-badge.gray { background: #EEECE7; color: var(--muted); }
.admin-badge.red { background: #FFE7E4; color: var(--accent); }
.admin-badge.green { background: #EFF4EC; color: #4B6B39; }
.admin-badge.blue { background: #EAF1F5; color: #3E6E85; }
.admin-badge.orange { background: #FFF3E0; color: #B4680A; }

.admin-thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #EEECE7; }

.admin-gallery-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.admin-gallery-item { position: relative; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; background: #EEECE7; }
.admin-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.admin-gallery-item button {
  position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  border: none; background: rgba(25,24,23,0.7); color: #FFFFFF; font-size: 11px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}

.admin-image-upload { display: flex; gap: 12px; align-items: flex-start; }
.admin-image-preview {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.admin-image-preview img { width: 100%; height: 100%; object-fit: cover; display: none; }
.admin-image-preview .placeholder-icon { color: var(--muted); font-size: 22px; }
.admin-image-preview.has-image img { display: block; }
.admin-image-preview.has-image .placeholder-icon { display: none; }
.admin-image-inputs { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.admin-image-inputs label.admin-btn { width: fit-content; }
.admin-image-or { font-size: 12px; color: var(--muted); }

/* Formulaire à deux colonnes : champs à gauche, média en grand à droite */
.admin-form-grid { display: grid; grid-template-columns: 1fr 300px; gap: 30px; align-items: start; }
.admin-form-main { min-width: 0; }
.admin-form-media { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 20px; }
.admin-form-media label.field-label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.admin-form-media .admin-image-preview.large {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 14px;
  border-style: dashed;
}
.admin-form-media .admin-image-preview.large .placeholder-icon { font-size: 42px; }
.admin-form-media .admin-btn { width: 100%; justify-content: center; }
.admin-form-media .admin-image-or { text-align: center; }
.admin-form-actions { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; }

@media (max-width: 900px) {
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-media { position: static; }
  .admin-form-media .admin-image-preview.large { aspect-ratio: 16 / 9; max-height: 220px; }
}

.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.admin-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(25,24,23,0.04), 0 10px 28px rgba(25,24,23,0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
a.admin-stat:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(25,24,23,0.06), 0 16px 32px rgba(25,24,23,0.08); }
.admin-stat .icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.admin-stat .body { min-width: 0; }
.admin-stat .n { font-size: 24px; font-weight: 700; line-height: 1.2; }
.admin-stat .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.admin-stat.red .icon { background: #FFE7E4; color: var(--accent); }
.admin-stat.blue .icon { background: #EAF1F5; color: #3E6E85; }
.admin-stat.orange .icon { background: #FFF3E0; color: #B4680A; }
.admin-stat.green .icon { background: #EFF4EC; color: #4B6B39; }
.admin-stat.purple .icon { background: #F1EAF5; color: #7A4B8E; }

.admin-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 900px) { .admin-dash-grid { grid-template-columns: 1fr; } }

.admin-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.admin-card-head h2 { margin: 0; padding: 0; border: none; }
.admin-card-head a { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.admin-card-head a:hover { color: var(--ink); }

.admin-list { display: flex; flex-direction: column; gap: 2px; }
.admin-list-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-list-item:last-child { border-bottom: none; }
.admin-list-item .icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: var(--paper);
  color: var(--muted);
}
.admin-list-item .main { min-width: 0; flex: 1; }
.admin-list-item .title { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-list-item .sub { font-size: 12px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-list-item .side { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--muted); }
a.admin-list-item { text-decoration: none; color: inherit; cursor: pointer; transition: background 0.15s ease; }
a.admin-list-item:hover { background: var(--paper); }

.admin-row-link { cursor: pointer; }

/* ---------- Détail commande ---------- */
.admin-order-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-order-line:last-child { border-bottom: none; }
.admin-order-line .thumb { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: var(--paper); flex-shrink: 0; }
.admin-order-line .info { flex: 1; min-width: 0; }
.admin-order-line .info .name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.admin-order-line .info .qty { font-size: 12px; color: var(--muted); margin-top: 2px; }
.admin-order-line .total { font-weight: 700; font-size: 13.5px; flex-shrink: 0; }

.admin-info-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-info-row:last-child { border-bottom: none; }
.admin-info-row .icon { width: 32px; height: 32px; border-radius: 8px; background: var(--paper); color: var(--muted); display: flex; align-items: center; justify-content: center; font-size: 13.5px; flex-shrink: 0; }
.admin-info-row .main { min-width: 0; flex: 1; }
.admin-info-row .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 2px; }
.admin-info-row .value { font-size: 13.5px; color: var(--ink); word-break: break-word; }

.admin-timeline { display: flex; align-items: flex-start; margin-bottom: 24px; }
.admin-timeline-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.admin-timeline-step .line { position: absolute; top: 15px; left: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.admin-timeline-step:last-child .line { display: none; }
.admin-timeline-step .dot {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--white); color: var(--muted); border: 2px solid var(--line); font-size: 14px;
  position: relative; z-index: 1; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.admin-timeline-step .label { margin-top: 8px; font-size: 11.5px; font-weight: 600; color: var(--muted); max-width: 100px; }
.admin-timeline-step .date { margin-top: 2px; font-size: 10.5px; color: var(--muted); }

/* ---------- Modale (stock.php) ---------- */
.admin-modal-overlay {
  position: fixed; inset: 0; background: rgba(25,24,23,0.45);
  display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px;
}
.admin-modal {
  background: var(--white); border-radius: 14px; padding: 24px; width: 380px; max-width: 100%;
  box-shadow: 0 20px 48px rgba(0,0,0,0.25); max-height: 85vh; overflow-y: auto;
}
.admin-modal h3 { font-size: 15px; margin-bottom: 14px; }
.admin-modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.admin-timeline-step.done .dot { background: var(--ink); border-color: var(--ink); color: var(--white); }
.admin-timeline-step.done .line { background: var(--ink); }
.admin-timeline-step.active .dot { background: var(--accent); border-color: var(--accent); color: var(--white); }
.admin-timeline-step.done .label, .admin-timeline-step.active .label { color: var(--ink); }

.admin-quick-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.admin-quick-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 170px;
  max-width: 220px;
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.05s ease;
}
.admin-quick-card:hover { border-color: var(--ink); background: var(--paper); }
.admin-quick-card:active { transform: scale(0.98); }
.admin-quick-card .icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.admin-quick-card span { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

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

.admin-order-items { padding: 12px 16px; background: #FBFAF8; }
.admin-order-items table { width: 100%; font-size: 13px; }
.admin-order-items td { padding: 6px 8px; }

.admin-status-select { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); font-size: 12.5px; }

@media (max-width: 720px) {
  .admin-sidebar { width: 64px; }
  .admin-main { margin-left: 64px; }
  .admin-sidebar .brand-dropdown, .admin-nav a span, .admin-nav-toggle span, .admin-nav-submenu, .admin-nav-logout span { display: none; }
  .admin-content, .admin-topbar { padding-left: 16px; padding-right: 16px; }
}
