/* ================================================================
   DEYR UMBRELLA — Admin CMS Stylesheet
================================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --navy:       #0B1220;
  --navy-mid:   #111827;
  --navy-light: #1a2540;
  --teal:       #00C6A7;
  --teal-dark:  #00a88c;
  --gold:       #F5C842;
  --white:      #FFFFFF;
  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-400:   #94A3B8;
  --gray-600:   #475569;
  --gray-700:   #334155;
  --gray-800:   #1E293B;
  --red:        #EF4444;
  --green:      #22C55E;
  --orange:     #F97316;

  --sidebar-w:  260px;
  --topbar-h:   64px;
  --font-head:  'Outfit', sans-serif;
  --font-body:  'Inter', sans-serif;
  --radius:     8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --dur:        200ms;
  --ease:       cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--gray-50);
  color: var(--gray-800);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font: inherit; background: none; }
input, textarea, select { font: inherit; }
ul { list-style: none; }

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

/* ── Sidebar ──────────────────────────────────────────────────── */
.admin-sidebar {
  width: var(--sidebar-w); background: var(--navy); color: var(--white);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 200;
  transition: transform var(--dur) var(--ease);
  overflow-y: auto; overflow-x: hidden;
}
.admin-sidebar::-webkit-scrollbar { width: 4px; }
.admin-sidebar::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

/* Mobile sidebar hidden state */
@media (max-width: 1024px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
}

.sidebar-logo {
  display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
}
.sidebar-logo img { height: 36px; width: auto; }
.sidebar-logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--white); }
.sidebar-logo-sub  { font-size: 0.68rem; color: rgba(255,255,255,0.4); font-weight: 500; }

.sidebar-section { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-section-label {
  padding: 6px 20px 4px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255,255,255,0.3); font-family: var(--font-head);
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 20px;
  color: rgba(255,255,255,0.6); font-size: 0.875rem; font-weight: 500;
  border-left: 3px solid transparent; transition: all var(--dur) var(--ease);
  white-space: nowrap; text-overflow: ellipsis; overflow: hidden;
}
.sidebar-link .icon { font-size: 18px; flex-shrink: 0; opacity: 0.8; }
.sidebar-link:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.sidebar-link.active { color: var(--teal); background: rgba(0,198,167,0.1); border-left-color: var(--teal); }
.sidebar-link.active .icon { opacity: 1; }

.sidebar-user {
  margin-top: auto; padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.07); flex-shrink: 0;
  display: flex; align-items: center; gap: 12px;
}
.sidebar-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-family: var(--font-head); font-size: 0.875rem; color: var(--navy);
  flex-shrink: 0;
}
.sidebar-user-name  { font-weight: 600; font-size: 0.875rem; color: var(--white); }
.sidebar-user-role  { font-size: 0.72rem; color: rgba(255,255,255,0.4); text-transform: capitalize; }
.sidebar-user-links { display: flex; gap: 6px; margin-left: auto; }
.sidebar-user-links a { color: rgba(255,255,255,0.4); font-size: 16px; transition: color var(--dur); }
.sidebar-user-links a:hover { color: var(--teal); }

/* ── Main Content ─────────────────────────────────────────────── */
.admin-main {
  flex: 1; margin-left: var(--sidebar-w);
  display: flex; flex-direction: column; min-height: 100vh;
  transition: margin-left var(--dur) var(--ease);
}
@media (max-width: 1024px) {
  .admin-main { margin-left: 0; }
}

/* ── Top Bar ──────────────────────────────────────────────────── */
.admin-topbar {
  height: var(--topbar-h); background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; padding: 0 32px;
  gap: 16px; position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 768px) {
  .admin-topbar { padding: 0 16px; }
}
.topbar-toggle {
  display: none; width: 36px; height: 36px; border-radius: var(--radius);
  align-items: center; justify-content: center; background: var(--gray-100);
  color: var(--gray-600); flex-shrink: 0; font-size: 20px;
}
@media (max-width: 1024px) {
  .topbar-toggle { display: flex; }
}
.topbar-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: var(--gray-400); }
@media (max-width: 640px) {
  .topbar-breadcrumb { display: none; }
}
.topbar-breadcrumb .sep    { color: var(--gray-200); }
.topbar-breadcrumb .current { color: var(--gray-800); font-weight: 600; }
.topbar-search {
  flex: 1; max-width: 360px; position: relative;
}
.topbar-search input {
  width: 100%; padding: 8px 12px 8px 36px; border-radius: var(--radius);
  border: 1.5px solid var(--gray-200); background: var(--gray-50); font-size: 0.875rem;
  outline: none; transition: border-color var(--dur);
}
.topbar-search input:focus { border-color: var(--teal); background: var(--white); }
.topbar-search .search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 16px; color: var(--gray-400); }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.topbar-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius);
  background: var(--gray-100); color: var(--gray-600); font-size: 18px;
  transition: all var(--dur); position: relative;
}
.topbar-btn:hover { background: var(--gray-200); color: var(--gray-800); }
.topbar-badge {
  position: absolute; top: -4px; right: -4px; width: 18px; height: 18px;
  background: var(--red); color: var(--white); border-radius: 50%;
  font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}
.topbar-view { display: flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: var(--radius); background: var(--gray-100); font-size: 0.8rem; font-weight: 600; color: var(--gray-600); transition: all var(--dur); }
.topbar-view:hover { background: var(--gray-200); color: var(--gray-800); }

/* ── Page Content ─────────────────────────────────────────────── */
.admin-content { padding: 32px; flex: 1; }
@media (max-width: 768px) { .admin-content { padding: 20px 16px; } }

.page-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.page-title { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--gray-800); }
.page-subtitle { font-size: 0.875rem; color: var(--gray-400); margin-top: 4px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Stats Cards ──────────────────────────────────────────────── */
.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
@media (max-width: 1200px) { .stats-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .stats-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px)  { .stats-cards { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  display: flex; align-items: flex-start; gap: 16px;
  transition: all var(--dur) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.stat-icon-teal   { background: rgba(0,198,167,0.12); color: var(--teal); }
.stat-icon-gold   { background: rgba(245,200,66,0.12); color: #c4951a; }
.stat-icon-navy   { background: rgba(11,18,32,0.08);   color: var(--navy); }
.stat-icon-red    { background: rgba(239,68,68,0.12);  color: var(--red); }
.stat-icon-green  { background: rgba(34,197,94,0.12);  color: #15803d; }
.stat-icon-orange { background: rgba(249,115,22,0.12); color: var(--orange); }
.stat-body {}
.stat-num   { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--gray-800); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--gray-400); margin-top: 4px; font-weight: 500; }
.stat-change { font-size: 0.78rem; font-weight: 600; margin-top: 6px; }
.stat-change.up   { color: #15803d; }
.stat-change.down { color: var(--red); }

/* ── Cards ────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.card-header {
  padding: 20px 24px; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.card-title { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--gray-800); }
.card-body  { padding: 24px; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius); font-family: var(--font-head);
  font-size: 0.875rem; font-weight: 600; transition: all var(--dur) var(--ease);
  cursor: pointer; white-space: nowrap; border: 1.5px solid transparent;
}
.btn-primary   { background: var(--teal); color: var(--navy); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn-danger    { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: var(--gray-100); color: var(--gray-700, #334155); border-color: var(--gray-200); }
.btn-secondary:hover { background: var(--gray-200); }
.btn-outline   { background: transparent; color: var(--gray-600); border-color: var(--gray-200); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-sm  { padding: 6px 12px; font-size: 0.78rem; }
.btn-lg  { padding: 12px 24px; font-size: 0.95rem; }
.btn-icon { padding: 8px; border-radius: var(--radius); }

/* ── Table ────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
  padding: 13px 18px; text-align: left; font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--gray-400);
  background: var(--gray-50); border-bottom: 2px solid var(--gray-100);
  white-space: nowrap;
}
.admin-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700); vertical-align: middle; line-height: 1.4;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background var(--dur); }
.admin-table tbody tr:hover td { background: rgba(0,198,167,0.04); }
.admin-table .col-thumb  { width: 60px; }
.admin-table .col-actions { width: 110px; white-space: nowrap; }
.admin-table .col-num    { width: 60px; text-align: center; }

/* Striped rows */
.admin-table.striped tbody tr:nth-child(even) td { background: var(--gray-50); }
.admin-table.striped tbody tr:nth-child(even):hover td { background: rgba(0,198,167,0.04); }

.table-thumb {
  width: 48px; height: 36px; border-radius: var(--radius); object-fit: cover;
  background: var(--gray-100); display: block;
}
.table-thumb-circle {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  background: var(--gray-100); display: block;
}
.table-actions { display: flex; gap: 5px; align-items: center; }
.action-btn {
  width: 32px; height: 32px; border-radius: var(--radius); display: inline-flex;
  align-items: center; justify-content: center; font-size: 17px;
  transition: all var(--dur); color: var(--gray-400); text-decoration: none;
}
.action-btn:hover  { background: var(--gray-100); color: var(--gray-800); }
.action-btn.edit:hover { background: rgba(0,198,167,0.12); color: var(--teal); }
.action-btn.del:hover  { background: rgba(239,68,68,0.12);  color: var(--red); }
.table-title a { font-weight: 600; color: var(--gray-800); }
.table-title a:hover { color: var(--teal); }
.table-slug  { font-size: 0.75rem; color: var(--gray-400); margin-top: 2px; }

/* Responsive table */
@media (max-width: 640px) {
  .admin-table thead { display: none; }
  .admin-table tbody, .admin-table tr { display: block; width: 100%; }
  .admin-table td {
    display: flex; justify-content: space-between; padding: 10px 16px;
    border: none; border-bottom: 1px solid var(--gray-100); font-size: 0.875rem;
  }
  .admin-table td::before {
    content: attr(data-label); font-weight: 600;
    color: var(--gray-600); margin-right: 8px; flex: 0 0 110px;
  }
  .admin-table tr:last-child td { border-bottom: none; }
  .admin-table tr { border-bottom: 2px solid var(--gray-100); margin-bottom: 8px; border-radius: var(--radius); overflow: hidden; }
}

/* ── Status Badges ────────────────────────────────────────────── */
.status-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 600;
  font-family: var(--font-head);
}
.status-badge::before { content: ''; display: block; width: 6px; height: 6px; border-radius: 50%; }
.badge-published { background: rgba(34,197,94,.12); color: #15803d; }
.badge-published::before { background: #15803d; }
.badge-draft     { background: rgba(148,163,184,.12); color: var(--gray-600); }
.badge-draft::before { background: var(--gray-400); }
.badge-featured  { background: rgba(245,200,66,.15); color: #b45309; }
.badge-featured::before { background: #b45309; }

/* ── Forms ────────────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 1024px) { .form-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--gray-200); padding: 28px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; font-family: var(--font-head); }
.form-label span { color: var(--red); }
.form-control {
  width: 100%; padding: 10px 14px; border-radius: var(--radius); border: 1.5px solid var(--gray-200);
  background: var(--white); font-size: 0.9rem; color: var(--gray-800);
  transition: border-color var(--dur), box-shadow var(--dur); outline: none;
}
.form-control:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,198,167,0.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='%2394A3B8' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 36px; }
.form-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: 4px; }
.form-error { font-size: 0.78rem; color: var(--red); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* Lang Tabs */
.lang-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-100); margin-bottom: 20px; }
.lang-tab  { padding: 8px 20px; font-size: 0.85rem; font-weight: 600; font-family: var(--font-head); color: var(--gray-400); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all var(--dur); }
.lang-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.lang-panel { display: none; }
.lang-panel.active { display: block; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: 10px; }
.toggle { position: relative; display: inline-block; width: 44px; height: 24px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0; background: var(--gray-200); border-radius: 24px; cursor: pointer;
  transition: background var(--dur);
}
.toggle-slider::before {
  content: ''; position: absolute; width: 18px; height: 18px; left: 3px; bottom: 3px;
  background: var(--white); border-radius: 50%; transition: transform var(--dur);
  box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-slider { background: var(--teal); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-label { font-size: 0.875rem; font-weight: 500; color: var(--gray-700); }

/* Image upload */
.image-upload-area {
  border: 2px dashed var(--gray-200); border-radius: var(--radius-md); padding: 28px;
  text-align: center; cursor: pointer; transition: all var(--dur);
}
.image-upload-area:hover { border-color: var(--teal); background: rgba(0,198,167,0.02); }
.image-upload-area.drag-over { border-color: var(--teal); background: rgba(0,198,167,0.06); }
.image-preview { max-height: 250px; border-radius: var(--radius-md); margin: 0 auto; object-fit: contain; background: var(--gray-50); }
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.media-item { position: relative; overflow: hidden; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); }
.media-item img { width: 100%; height: 130px; object-fit: contain; display: block; background: var(--gray-100); }
.media-item-info { padding: 8px 10px; }
.media-item-name { font-size: 0.72rem; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-item-size { font-size: 0.68rem; color: var(--gray-400); }
.media-item-del {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px;
  background: rgba(239,68,68,0.9); color: var(--white); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.media-item-del:hover { background: var(--red); transform: scale(1.08); }

/* ── Settings form ────────────────────────────────────────────── */
.settings-sections { display: flex; flex-direction: column; gap: 32px; }
.settings-section-title { font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-400); margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--gray-100); }

/* ── Utilities ────────────────────────────────────────────────── */
.text-sm   { font-size: 0.875rem; }
.text-xs   { font-size: 0.75rem; }
.text-muted { color: var(--gray-400); }
.text-right { text-align: right; }
.font-bold  { font-weight: 700; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.mb-0  { margin-bottom: 0; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none; }
.w-full { width: 100%; }

/* ── Login Page ───────────────────────────────────────────────── */
.login-page {
  min-height: 100vh; background: var(--navy);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.login-card {
  background: var(--white); border-radius: 20px; padding: 48px;
  width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo img { height: 72px; width: auto; margin: 0 auto 12px; }
.login-logo h1 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--gray-800); }
.login-logo p  { font-size: 0.875rem; color: var(--gray-400); }

/* ── Alerts ───────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius); font-size: 0.875rem;
  margin-bottom: 20px; display: flex; align-items: center; gap: 8px; font-weight: 500;
}
.alert-success { background: rgba(34,197,94,.08);  border: 1px solid rgba(34,197,94,.2); color: #15803d; }
.alert-error   { background: rgba(239,68,68,.08);  border: 1px solid rgba(239,68,68,.2); color: #b91c1c; }
.alert-warning { background: rgba(245,200,66,.1);  border: 1px solid rgba(245,200,66,.3); color: #92400e; }
.alert-info    { background: rgba(0,198,167,.08);  border: 1px solid rgba(0,198,167,.2); color: var(--teal-dark); }

/* ── Responsive Overrides & CMS Layouts ──────────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.5);
  backdrop-filter: blur(4px);
  z-index: 199;
  transition: opacity var(--dur) var(--ease);
}
.sidebar-overlay.visible {
  display: block;
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .page-actions {
    width: 100%;
  }
  .page-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .login-card {
    padding: 32px 24px;
    margin: 12px;
  }
}

/* ── Responsive Grids & Wrappers ──────────────────────────────── */
.admin-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 1024px) {
  .admin-grid-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-100);
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .table-search {
    width: 100%;
  }
  .table-count {
    margin-left: 0;
    text-align: right;
  }
}



