/*
 * Admin look (2026-10-29). Everything is scoped to body.admin-ui (layouts/admin), so the public site is not affected.
 * custom.css rules are unlayered and beat Tailwind utilities, so the overrides here are plain CSS with a higher specificity.
 */
.admin-ui {
  /* The original admin colours: grey page, burnt-umber table heads, grey/brown side panel, orange accents. */
  --admin-bg: #c6c6c6;
  --admin-card: #d4d4d4;
  --admin-border: rgb(0 0 0 / 0.22);
  --admin-row-line: rgb(0 0 0 / 0.28);
  --admin-head: rgba(122, 33, 17, 0.7);
  --admin-panel: #918989;
  --admin-input: #b37068;
  --admin-input-border: #605c3c;
  --admin-text: #000000;
  --admin-muted: #3f3f46;
  background: var(--admin-bg);
  color: var(--admin-text);
  font-family: "ATCArquette-Medium", system-ui, sans-serif;
}

/* Buttons */
.admin-ui .admin-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--primary-color);
  color: #fff;
  font-size: 15px;
  white-space: nowrap;
  transition: filter 0.15s;
}
.admin-ui .admin-btn-primary:hover { filter: brightness(0.92); }

/* ---------- Data tables: one white card per list ---------- */
.admin-ui .data-table-main { height: auto; }
.admin-ui .data-table-main .table-responsive { height: auto; overflow: visible; padding: 0 24px; }
.admin-ui .dt-container {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.12);
  overflow-x: auto;
}
.admin-ui .data-table-main .dt-container .table-pagination { margin: 0; padding: 14px 16px; }
.admin-ui .dt-container .table-pagination:last-child { border-top: 1px solid var(--admin-border); }
.admin-ui .dt-container .table-pagination:last-child:has(.dt-paging nav:empty) { display: none; }
.admin-ui .dt-container .my-5 { margin: 0; }

.admin-ui .table-pagination .dt-length { color: var(--admin-muted); font-weight: 400; text-transform: none; }
.admin-ui .table-pagination .dt-length label { font-size: 13px; }
.admin-ui .table-pagination .dt-length select {
  background-color: #f9f9f9;
  border: 1px solid var(--admin-border);
  color: var(--admin-text);
  background-size: 18px;
  background-position: right 6px center;
}
.admin-ui .table-pagination .dt-search input {
  min-width: 280px;
  height: 38px;
  border: 1px solid #000;
  border-radius: 10px;
  color: var(--admin-text);
  padding-left: 36px;
  background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%2352525b"><path d="M18.03 16.62 22.3 20.9l-1.41 1.41-4.28-4.28A9 9 0 1 1 18.03 16.62ZM11 18a7 7 0 1 0 0-14 7 7 0 0 0 0 14Z"/></svg>') no-repeat 11px center / 16px;
  box-shadow: none;
}
.admin-ui .table-pagination .dt-search input:focus { border-color: var(--primary-color); }
.admin-ui .table-pagination .dt-search input::placeholder { color: #52525b; }
@media (max-width: 640px) {
  .admin-ui .data-table-main .table-responsive { padding: 0 12px; }
  .admin-ui .table-pagination .dt-search input { min-width: 0; width: 100%; margin-left: 0; }
  .admin-ui .table-pagination > div { width: 100%; }
}

.admin-ui .table-responsive table { width: 100%; }
.admin-ui .burnt-umber,
.admin-ui .table-responsive thead th {
  background: var(--admin-head);
  border-width: 0 0 2px 0;
  border-color: #000;
  padding: 10px 14px;
}
.admin-ui .table-responsive thead th a,
.admin-ui .table-responsive thead th .dt-column-title {
  color: #000 !important;
  font-family: "ATCArquette-Bold", sans-serif;
  font-weight: 700 !important;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.admin-ui .table-responsive tr td {
  color: var(--admin-text);
  font-weight: 400;
  font-size: 14px;
  border-bottom: 1px solid var(--admin-row-line);
  padding: 12px 14px;
  vertical-align: middle;
}
.admin-ui .table-responsive tbody tr:last-child td { border-bottom: 0; }
.admin-ui .table-responsive tbody tr:hover td { background: rgb(0 0 0 / 0.05); }
/* Long spam-like text can't push the table wider than the screen. */
.admin-ui .table-responsive tr td:not(:last-child) {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-ui .table-responsive .dt-empty { padding: 40px 16px; color: var(--admin-muted); }

/* Paging */
.admin-ui .table-pagination .dt-paging .pagination { gap: 6px; }
.admin-ui .table-pagination .dt-paging .pagination a {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 2px solid var(--primary-color);
  border-radius: 9px;
  background: transparent;
  color: var(--primary-color);
  font-size: 14px;
  margin: 0;
}
.admin-ui .table-pagination .dt-paging .pagination a[aria-current="page"] {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.admin-ui .table-pagination .dt-paging .pagination a[aria-disabled="true"] { opacity: 0.45; }

/* Row "Actions" menu */
.admin-ui .table-responsive .btn.btn-primary {
  padding: 5px 12px;
  border: 1px solid rgb(0 0 0 / 0.35);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.4);
  color: var(--admin-text);
  font-size: 13px;
}
.admin-ui .table-responsive .btn.btn-primary:hover { background: #fff; }
.admin-ui .dropdown-menu-container {
  top: 36px;
  width: 160px;
  padding: 4px;
  background: var(--primary-color);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
  text-align: left;
}
.admin-ui .dropdown-menu-container a {
  color: #fff !important;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 7px;
}
.admin-ui .dropdown-menu-container a:hover { background: rgb(0 0 0 / 0.15); }
.admin-ui .dropdown-menu-container > div > .h-px { height: 0; }

/* Yes / No badges (boolean_icon) */
.admin-ui .admin-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.1);
  color: var(--admin-muted);
  font-size: 12px;
}
.admin-ui .admin-pill-yes { background: #d1fadf; color: #05603a; }

/* Dark sidebar: quiet scrollbar */
.admin-ui .admin-sidebar nav::-webkit-scrollbar { width: 6px; }
.admin-ui .admin-sidebar nav::-webkit-scrollbar-thumb { background: #9f2e1d; }

/* ---------- Side panel (record details, add / edit forms) ---------- */
.admin-ui #slideovers { background: var(--admin-panel); box-shadow: -12px 0 40px rgb(0 0 0 / 0.25); }
.admin-ui #slideovers h2 { font-size: 20px; color: var(--admin-text); }
.admin-ui #slideovers [data-offcanvas-target="openOffcanvas"] > div:first-child,
.admin-ui #slideovers [data-offcanvas-target="openOffcanvas"] > .flex:first-child { padding-bottom: 16px; border-bottom: 1px solid var(--admin-border); }
.admin-ui #slideovers form { margin-top: 0; }
.admin-ui #slideovers form > div:first-child { padding-top: 20px; }
.admin-ui #slideovers label { font-size: 14px; color: #000; letter-spacing: 0; margin-top: 14px; }
.admin-ui #slideovers form > div:first-child > label:first-of-type { margin-top: 0; }

.admin-ui #slideovers .border-gradient,
.admin-ui #slideovers .border-b-gradient,
.admin-ui #slideovers .border-dash-gradient {
  background: var(--admin-input);
  border: 2px solid var(--admin-input-border);
  border-radius: 10px;
  color: var(--admin-text);
  padding: 9px 12px;
  font-size: 14px;
}
.admin-ui #slideovers .border-dash-gradient { border-style: dashed; }
.admin-ui #slideovers .border-gradient:focus,
.admin-ui #slideovers .border-gradient:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(244 67 34 / 0.25);
}
.admin-ui #slideovers ::placeholder { color: rgb(0 0 0 / 0.55); }
.admin-ui input:-webkit-autofill,
.admin-ui textarea:-webkit-autofill,
.admin-ui select:-webkit-autofill {
  -webkit-text-fill-color: var(--admin-text);
  box-shadow: 0 0 0 1000px var(--admin-input) inset !important;
  border: 2px solid var(--admin-input-border) !important;
}
.admin-ui #slideovers .quill-editor-main .ql-toolbar.ql-snow {
  background: var(--admin-input);
  border-bottom: 2px solid var(--admin-input-border);
  border-radius: 10px 10px 0 0;
}

/* Form footer buttons */
.admin-ui #slideovers form > div:last-child { padding-top: 16px; border-top: 1px solid var(--admin-border); }
.admin-ui #slideovers .box-border,
.admin-ui #slideovers .cancel-button {
  min-width: 120px;
  height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: "ATCArquette-Bold", sans-serif;
  font-size: 15px;
  text-transform: none;
}
.admin-ui #slideovers .box-border { background: var(--primary-color); border: 1px solid var(--primary-color); color: #fff; }
.admin-ui #slideovers .box-border:hover { filter: brightness(0.92); color: #fff; }
.admin-ui #slideovers .cancel-button { background: rgb(244 67 34 / 0.25); border: 2px solid var(--primary-color); color: var(--primary-color); }
.admin-ui #slideovers .cancel-button:hover { background: rgb(244 67 34 / 0.4); }
.admin-ui #slideovers label > span.text-lg { font-size: 14px; }

/* Compact row menu button: "•••" instead of the word "Actions" */
.admin-ui .table-responsive .btn.btn-primary { font-size: 0; width: 36px; height: 32px; padding: 0; }
.admin-ui .table-responsive .btn.btn-primary::before { content: "•••"; font-size: 11px; letter-spacing: 1px; color: #000; }
.admin-ui .table-responsive thead th:last-child .dt-column-title a { font-size: 0 !important; }
.admin-ui #slideovers a.cancel-button { display: inline-flex; align-items: center; justify-content: center; text-transform: capitalize; }

/* Detail panels (Tip / Contact) */
.admin-ui #slideovers dt { font-size: 12px; font-weight: 500; color: rgb(0 0 0 / 0.6); letter-spacing: 0.06em; margin-bottom: 2px; }
.admin-ui #slideovers dd { font-family: "ATCArquette-Medium", sans-serif; font-weight: 400; font-size: 15px; color: var(--admin-text); }
.admin-ui #slideovers h3 { font-size: 16px; padding-top: 20px; border-top: 1px solid var(--admin-border); }
.admin-ui #slideovers h4 { font-size: 14px; color: #000; }

/* Plain tables (dashboard) */
.admin-ui .admin-simple-table { width: 100%; font-size: 14px; }
.admin-ui .admin-simple-table th {
  position: sticky; top: 0;
  background: #b06b5f;
  padding: 9px 16px;
  text-align: left;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #000;
  border-bottom: 2px solid #000;
  white-space: nowrap;
}
.admin-ui .admin-simple-table td { padding: 10px 16px; border-bottom: 1px solid var(--admin-row-line); white-space: nowrap; }
.admin-ui .admin-simple-table tbody tr:last-child td { border-bottom: 0; }
.admin-ui .admin-simple-table .text-right { text-align: right; }

/* Login card (layouts/device, so not under .admin-ui) */
.admin-login .admin-login-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: #b37068;
  border: 2px solid #605c3c;
  border-radius: 12px;
  color: #000;
  font-size: 15px;
}
.admin-login .admin-login-input:focus { border-color: #f44322; box-shadow: 0 0 0 3px rgb(244 67 34 / 0.25); }
.admin-login .admin-login-input::placeholder { color: rgb(0 0 0 / 0.55); }
.admin-login input:-webkit-autofill {
  -webkit-text-fill-color: #000;
  box-shadow: 0 0 0 1000px #b37068 inset !important;
  border: 2px solid #605c3c !important;
}

/* Plain (non-DataTables) lists, e.g. Static Pages */
.admin-ui .table-responsive > table {
  background: var(--admin-card);
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.admin-ui .table-responsive > table th,
.admin-ui .table-responsive > table td { border-top: 0; border-left: 0; border-right: 0; }
.admin-ui .table-responsive tr td:last-child,
.admin-ui .table-responsive thead th:last-child { padding-left: 8px; padding-right: 12px; }

/* Dashboard cards in the original style: white, orange border, orange numbers */
.admin-ui .admin-stat { background: #fff; border: 3px solid var(--primary-color); border-radius: 16px; }
.admin-ui .admin-stat .admin-stat-label { color: var(--primary-color); text-transform: uppercase; letter-spacing: 0.04em; }
.admin-ui .admin-stat .admin-stat-value { color: var(--primary-color); }
.admin-ui .admin-card { background: var(--admin-card); border: 1px solid var(--admin-border); }
.admin-ui .admin-card h2 { color: #000; border-color: var(--admin-border) !important; }
.admin-ui .admin-chart-card { background: #fff; }
