/* ==========================================================================
   MSK BROTHERS — admin panel stylesheet
   ========================================================================== */

:root {
  --navy-900: #05173d;
  --navy-800: #0a2456;
  --navy-700: #0b2a6e;
  --green-600: #1c8449;
  --green-500: #229a56;
  --green-400: #34b86c;
  --ink: #10192e;
  --body: #55617a;
  --muted: #8b95a9;
  --line: #e5e9f0;
  --surface: #ffffff;
  --surface-2: #f5f7fb;
  --surface-3: #eef2f8;
  --danger: #d64545;
  --warn: #d68a1e;

  --radius-s: 9px;
  --radius-m: 14px;
  --radius-l: 20px;
  --shadow-s: 0 1px 3px rgba(10, 36, 86, .07);
  --shadow-m: 0 10px 30px -14px rgba(10, 36, 86, .28);
  --shadow-l: 0 26px 60px -26px rgba(10, 36, 86, .4);

  --sans: "Plus Jakarta Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --sidebar: 264px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--body);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

h1 {
  font-size: 1.32rem;
}

h2 {
  font-size: 1.05rem;
}

h3 {
  font-size: .95rem;
}

p {
  margin: 0 0 .9rem;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

svg {
  flex: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* --------------------------------------------------------------
   LOGIN
   -------------------------------------------------------------- */
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background:
    radial-gradient(90% 70% at 80% 10%, rgba(34, 154, 86, .35) 0%, rgba(5, 23, 61, 0) 60%),
    linear-gradient(135deg, #05173d 0%, #0b2a6e 60%, #072a52 100%);
}

.login-card {
  width: 100%;
  max-width: 430px;
  background: #fff;
  border-radius: var(--radius-l);
  padding: 42px 38px;
  box-shadow: 0 40px 90px -30px rgba(5, 23, 61, .7);
}

.login-card .logo {
  height: 52px;
  width: auto;
  margin: 0 auto 26px;
}

.login-card h1 {
  font-size: 1.42rem;
  text-align: center;
  margin-bottom: 6px;
}

.login-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 28px;
}

.login-card .back {
  display: block;
  text-align: center;
  margin-top: 22px;
  font-size: .87rem;
  color: var(--muted);
}

.login-card .back:hover {
  color: var(--navy-700);
}

/* --------------------------------------------------------------
   SHELL
   -------------------------------------------------------------- */
.admin {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- sidebar ---------- */
.side {
  background: var(--navy-900);
  color: rgba(255, 255, 255, .62);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.side-brand {
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.side-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #fff;
  border-radius: 11px;
  padding: 5px;
}

.side-brand strong {
  display: block;
  color: #fff;
  font-size: .86rem;
  line-height: 1.3;
}

.side-brand span {
  font-size: .74rem;
  color: rgba(255, 255, 255, .5);
}

.side-nav {
  padding: 12px 10px;
  flex: 1;
}

.side-label {
  padding: 12px 10px 6px;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .32);
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .72);
  transition: background .2s, color .2s;
}

.side-nav a svg {
  width: 16px;
  height: 16px;
  opacity: .8;
}

.side-nav a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.side-nav a.is-active {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(34, 154, 86, .9);
}

.side-nav a.is-active svg {
  opacity: 1;
}

.side-nav .pill {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  text-align: center;
}

.side-foot {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.side-user {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}

.side-user .av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-500);
  color: #fff;
  font-weight: 800;
  font-size: .82rem;
}

.side-user strong {
  display: block;
  color: #fff;
  font-size: .85rem;
  line-height: 1.3;
}

.side-user span {
  font-size: .73rem;
  color: rgba(255, 255, 255, .5);
  text-transform: capitalize;
}

.side-user a {
  margin-left: auto;
  color: rgba(255, 255, 255, .55);
  padding: 6px;
  border-radius: 8px;
}

.side-user a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.side-user a svg {
  width: 17px;
  height: 17px;
}

/* ---------- mobile menu backdrop ----------
   It is a direct child of the .admin grid, so on desktop it must be taken
   out of the flow entirely — otherwise it claims the second grid cell and
   pushes .main onto a new row, leaving the content area blank.
   The mobile breakpoint below turns it back on. */
.side-backdrop {
  display: none;
}

/* ---------- main ---------- */
.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0 clamp(18px, 3vw, 34px);
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar h1 {
  font-size: 1.08rem;
}

.topbar .crumb {
  font-size: .74rem;
  color: var(--muted);
  font-weight: 600;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.side-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
  place-items: center;
  color: var(--navy-700);
}

.side-toggle svg {
  width: 19px;
  height: 19px;
}

.content {
  padding: clamp(14px, 2vw, 22px);
  flex: 1;
}

/* --------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}

.btn svg {
  width: 15px;
  height: 15px;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

.btn-primary {
  background: var(--green-500);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(34, 154, 86, .9);
}

.btn-primary:hover {
  background: var(--green-600);
}

.btn-navy {
  background: var(--navy-700);
  color: #fff;
}

.btn-navy:hover {
  background: var(--navy-800);
}

.btn-light {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-light:hover {
  border-color: var(--navy-700);
  color: var(--navy-700);
}

.btn-danger {
  background: #fff;
  border-color: #f0cfcf;
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 11px;
  font-size: .78rem;
  border-radius: 8px;
}

.btn-icon {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
}

.btn-icon svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------
   CARDS / PANELS
   -------------------------------------------------------------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-s);
  overflow: hidden;
}

.panel + .panel {
  margin-top: 16px;
}

.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.panel-head h2 {
  font-size: .95rem;
}

.panel-head .sub {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 2px;
}

.panel-head .right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.panel-body {
  padding: 18px;
}

.panel-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Test-email footer: the recipient box takes the room, button sits beside it. */
.panel-foot-test {
  align-items: flex-end;
}

.panel-foot-test .field {
  flex: 1 1 220px;
  margin: 0;
}

.panel-foot-test .field label {
  margin-bottom: 4px;
}

/* Email-template editor: the preview follows the page as you scroll. The
   right column is far wider than the usual sidebar, because an email is a
   fixed 600px and anything narrower has to be scaled down to illegibility. */
.form-grid.mail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
}

.panel-sticky {
  position: sticky;
  top: 18px;
}

.mail-preview-wrap {
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  /* The scaled email is usually taller than the screen; scroll the wrapper
     rather than clipping it, so the footer is still reachable. */
  max-height: 76vh;
  background: #eef1f5;
}

.mail-preview {
  display: block;
  border: 0;
  background: #eef1f5;
  transform-origin: top left;
}

@media (max-width: 1280px) {
  .form-grid.mail-grid {
    grid-template-columns: 1fr;
  }

  .panel-sticky {
    position: static;
  }
}

/* --------------------------------------------------------------
   STAT TILES
   -------------------------------------------------------------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 16px;
  box-shadow: var(--shadow-s);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-m);
}

.tile .ic {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(11, 42, 110, .07);
  color: var(--navy-700);
}

.tile .ic svg {
  width: 18px;
  height: 18px;
}

.tile.green .ic {
  background: rgba(34, 154, 86, .12);
  color: var(--green-600);
}

.tile.amber .ic {
  background: rgba(214, 138, 30, .12);
  color: var(--warn);
}

.tile.red .ic {
  background: rgba(214, 69, 69, .1);
  color: var(--danger);
}

.tile strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
}

.tile span {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
}

.tile .go {
  margin-left: auto;
  color: var(--muted);
  align-self: center;
}

.tile .go svg {
  width: 17px;
  height: 17px;
}

.tile:hover .go {
  color: var(--green-600);
}

/* --------------------------------------------------------------
   TABLES
   -------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
}

table.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  min-width: 640px;
}

table.grid th {
  text-align: left;
  padding: 9px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: .67rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

table.grid td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

table.grid tbody tr:last-child td {
  border-bottom: 0;
}

table.grid tbody tr {
  transition: background .16s;
}

table.grid tbody tr:hover {
  background: var(--surface-2);
}

table.grid tr.is-unread td {
  background: rgba(34, 154, 86, .045);
}

.cell-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 200px;
}

.cell-title img {
  width: 42px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex: none;
  background: var(--surface-3);
}

.cell-title .ph {
  width: 42px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  color: var(--muted);
  flex: none;
}

.cell-title .ph svg {
  width: 17px;
  height: 17px;
}

.cell-title strong {
  display: block;
  color: var(--ink);
  font-weight: 700;
  font-size: .86rem;
  line-height: 1.35;
}

.cell-title small {
  color: var(--muted);
  font-size: .74rem;
}

.actions-cell {
  display: flex;
  gap: 5px;
  justify-content: flex-end;
}

td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------
   BADGES
   -------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}

.badge-published,
.badge-replied {
  background: rgba(34, 154, 86, .13);
  color: var(--green-600);
}

.badge-draft,
.badge-archived {
  background: var(--surface-3);
  color: var(--muted);
}

.badge-new {
  background: rgba(214, 69, 69, .12);
  color: var(--danger);
}

.badge-read {
  background: rgba(214, 138, 30, .14);
  color: var(--warn);
}

.badge-super {
  background: rgba(11, 42, 110, .1);
  color: var(--navy-700);
}

.badge-editor {
  background: var(--surface-3);
  color: var(--body);
}

/* --------------------------------------------------------------
   FORMS
   -------------------------------------------------------------- */
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: start;
}

.field {
  margin-bottom: 14px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

.field label .req {
  color: var(--danger);
}

.field input[type=text],
.field input[type=email],
.field input[type=password],
.field input[type=url],
.field input[type=tel],
.field input[type=number],
.field input[type=date],
.field input[type=search],
.field select,
.field textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: .86rem;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
  line-height: 1.6;
}

.field textarea.tall {
  min-height: 280px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: .82rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 154, 86, .12);
}

/* Password field with a Show / Hide toggle. */
.field .input-reveal {
  position: relative;
  display: block;
}

.field .input-reveal input {
  padding-right: 62px;
}

.field .input-reveal button {
  position: absolute;
  top: 50%;
  right: 5px;
  transform: translateY(-50%);
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: var(--soft, #f1f4f2);
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}

.field .input-reveal button:hover {
  background: rgba(34, 154, 86, .12);
  color: var(--green-500);
}

.field .hint {
  display: block;
  margin-top: 5px;
  font-size: .75rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.field.error input,
.field.error textarea,
.field.error select {
  border-color: var(--danger);
  background: #fffafa;
}

.field .err {
  display: block;
  margin-top: 5px;
  font-size: .75rem;
  color: var(--danger);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

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

.row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--green-500);
  cursor: pointer;
}

/* image picker */
.img-field {
  border: 1px dashed var(--line);
  border-radius: var(--radius-m);
  padding: 12px;
  background: var(--surface-2);
}

.img-preview {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-3);
  margin-bottom: 10px;
}

.img-field input[type=file] {
  width: 100%;
  font-size: .85rem;
  color: var(--body);
}

.img-field input[type=file]::file-selector-button {
  padding: 8px 14px;
  margin-right: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy-700);
  cursor: pointer;
}

.img-remove {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: .85rem;
  color: var(--danger);
  font-weight: 700;
  cursor: pointer;
}

/* --------------------------------------------------------------
   ALERTS / FLASH
   -------------------------------------------------------------- */
.flash-stack {
  margin-bottom: 14px;
  display: grid;
  gap: 10px;
}

.alert {
  padding: 10px 14px;
  border-radius: 11px;
  font-size: .84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 11px;
}

.alert svg {
  width: 18px;
  height: 18px;
}

.alert-success {
  background: rgba(34, 154, 86, .11);
  color: var(--green-600);
}

.alert-error {
  background: rgba(214, 69, 69, .09);
  color: var(--danger);
}

.alert-info {
  background: rgba(11, 42, 110, .07);
  color: var(--navy-700);
}

.alert-warning {
  background: rgba(214, 138, 30, .12);
  color: var(--warn);
}

/* --------------------------------------------------------------
   TOOLBAR / SEARCH / PAGER
   -------------------------------------------------------------- */
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.toolbar form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.toolbar input[type=search],
.toolbar select {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: .82rem;
  color: var(--ink);
  min-width: 140px;
}

.toolbar input[type=search]:focus,
.toolbar select:focus {
  outline: none;
  border-color: var(--green-500);
}

.pager {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.pager-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: .81rem;
  font-weight: 700;
  color: var(--ink);
  transition: all .18s;
}

.pager-btn:hover {
  border-color: var(--navy-700);
  color: var(--navy-700);
}

.pager-btn.is-current {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: #fff;
}

.pager-gap {
  color: var(--muted);
}

/* --------------------------------------------------------------
   EMPTY STATE
   -------------------------------------------------------------- */
.empty {
  text-align: center;
  padding: 44px 20px;
}

.empty svg {
  width: 34px;
  height: 34px;
  color: var(--muted);
  margin: 0 auto 12px;
}

.empty h3 {
  margin-bottom: 7px;
}

.empty p {
  color: var(--muted);
  max-width: 42ch;
  margin: 0 auto 20px;
}

/* --------------------------------------------------------------
   ENQUIRY DETAIL
   -------------------------------------------------------------- */
.msg-body {
  white-space: pre-wrap;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 16px;
  color: var(--ink);
  font-size: .88rem;
}

.kv {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
}

.kv div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  font-size: .84rem;
}

.kv div + div {
  border-top: 1px solid var(--line);
}

.kv div:nth-child(odd) {
  background: var(--surface-2);
}

.kv .k {
  color: var(--muted);
  font-weight: 600;
}

.kv .v {
  color: var(--ink);
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

/* --------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------- */
@media (max-width: 1180px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .admin {
    grid-template-columns: 1fr;
  }

  .side {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar);
    z-index: 90;
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
    box-shadow: var(--shadow-l);
  }

  .side.is-open {
    transform: none;
  }

  .side-toggle {
    display: grid;
  }

  .side-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(5, 23, 61, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s;
  }

  .side-backdrop.is-open {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 640px) {
  .row-2,
  .row-3 {
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    font-size: 1.1rem;
  }

  .panel-head {
    padding: 16px;
  }

  .panel-body {
    padding: 18px;
  }
}

/* --------------------------------------------------------------
   LIVEWIRE INTERACTION
   -------------------------------------------------------------- */
.pager button.pager-btn {
  font: inherit;
  font-size: .87rem;
  font-weight: 700;
  cursor: pointer;
}

/* Livewire file inputs sit inside .img-field like the native ones. */
.img-field input[type=file] {
  width: 100%;
  font-size: .85rem;
  color: var(--body);
}

.img-field input[type=file]::file-selector-button {
  padding: 8px 14px;
  margin-right: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy-700);
  cursor: pointer;
}

.toolbar button {
  cursor: pointer;
}

.cell-title a strong {
  transition: color .18s;
}

.cell-title a:hover strong {
  color: var(--green-600);
}
