/* OrderFlow global stylesheet. Re-brand by editing the :root block only. */
:root {
  --bg: #10131b;
  --surface: #181c27;
  --surface-2: #212637;
  --line: #2b3145;
  --text: #f2f4f8;
  --muted: #9aa3b8;
  --accent: #ff7a18;
  --accent-ink: #1a0e02;
  --ok: #3ecf8e;
  --warn: #f5c451;
  --danger: #ff5d5d;
  --info: #5aa9ff;

  --font-body: 'Poppins', system-ui, sans-serif;
  --font-tile: 'Oswald', 'Arial Narrow', sans-serif;
  --fs-body: 15px;

  --radius: 12px;
  --gap: 16px;
  --maxw: 1450px;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs-body); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: var(--fs-body); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; }

.container { width: min(var(--maxw), 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { font-family: var(--font-tile); font-weight: 700; font-size: 1.6rem; letter-spacing: .02em; color: var(--accent); }
.topnav { display: flex; gap: 6px; flex-wrap: wrap; }
.topnav a { padding: 8px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.topnav a:hover, .topnav a.active { color: var(--text); background: var(--surface-2); }

/* Page structure */
.page { padding-block: 8px 48px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 28px 0 18px; }
.page-title { font-family: var(--font-tile); font-weight: 700; font-size: 2rem; line-height: 1.15; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.lead { color: var(--muted); margin: -8px 0 20px; }

.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding-bottom: 48px; }
.sidenav { position: sticky; top: 76px; align-self: start; margin-top: 28px; display: flex; flex-direction: column; gap: 4px; }
.sidenav a { padding: 10px 14px; border-radius: 10px; color: var(--muted); font-weight: 500; }
.sidenav a:hover { background: var(--surface-2); color: var(--text); }
.sidenav a.active { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.content { min-width: 0; }

/* Tiles: Oswald Bold titles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); }
.tile {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: 140px; padding: 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s ease, background .15s ease;
}
.tile:hover { border-color: var(--accent); background: var(--surface-2); }
.tile-title { font-family: var(--font-tile); font-weight: 700; font-size: 1.6rem; line-height: 1.1; }
.tile-sub { color: var(--muted); font-size: .9rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--gap); margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat-value { font-family: var(--font-tile); font-weight: 700; font-size: 2.2rem; line-height: 1.1; color: var(--accent); }
.stat-label { color: var(--muted); }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--font-tile); font-weight: 700; font-size: 1.3rem; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-2 > .panel { margin-bottom: 0; }

/* Tabs */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 10px 16px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--text); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; }

/* Badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: 500; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.b-paid, .b-sent, .b-completed, .b-collected, .b-active, .b-admin { color: var(--ok); border-color: rgba(62,207,142,.4); }
.b-preparing, .b-initiated, .b-queued, .b-staff { color: var(--warn); border-color: rgba(245,196,81,.4); }
.b-ready, .b-out_for_delivery { color: var(--info); border-color: rgba(90,169,255,.4); }
.b-failed, .b-cancelled, .b-refunded { color: var(--danger); border-color: rgba(255,93,93,.4); }
.b-pending_payment { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 10px;
  cursor: pointer; font: 600 1rem var(--font-body); background: var(--accent); color: var(--accent-ink);
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); filter: none; }
.btn-sm { padding: 6px 12px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Forms */
label { display: block; font-weight: 500; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--text);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field.full { grid-column: 1 / -1; }
.hint { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }
.choice { display: flex; gap: 10px; }
.choice label { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.choice input { width: auto; }

/* Customer menu */
.menu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--gap); }
.item-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.item-img { aspect-ratio: 16 / 10; background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 10px, var(--surface) 10px, var(--surface) 20px); }
.item-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-title { font-family: var(--font-tile); font-weight: 700; font-size: 1.4rem; line-height: 1.15; }
.item-desc { color: var(--muted); font-size: .92rem; flex: 1; }
.item-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.price { font-weight: 600; }
.summary { position: sticky; top: 76px; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line.total { font-weight: 600; font-size: 1.1rem; }
.muted { color: var(--muted); }

/* Staff board */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.col-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.col-head h2 { font-family: var(--font-tile); font-weight: 700; font-size: 1.4rem; }
.order-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; display: flex; flex-direction: column; gap: 8px; }
.order-card .num { font-family: var(--font-tile); font-weight: 700; font-size: 1.25rem; }
.order-card ul { margin: 0; padding-left: 18px; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.timeline li { padding: 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--surface-2); }
.timeline li.done { color: var(--text); border-color: var(--ok); }
.timeline li.now { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 600; }

/* Structure notes */
.planned { margin: 0; padding-left: 20px; color: var(--muted); }
.planned li { margin-bottom: 4px; }
.wire { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; padding: 16px; }
.narrow { max-width: 440px; margin-inline: auto; }

@media (max-width: 1100px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav { position: static; flex-direction: row; flex-wrap: wrap; margin-top: 16px; }
  .grid-2, .form-grid, .timeline { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Menu Management */

.menu-alert {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
}

.menu-alert.success {
    background: rgba(62, 207, 142, .10);
    border: 1px solid rgba(62, 207, 142, .35);
    color: var(--ok);
}

.menu-alert.error {
    background: rgba(255, 93, 93, .10);
    border: 1px solid rgba(255, 93, 93, .35);
    color: var(--danger);
}

.availability-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 400;
}

.availability-check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.menu-filter {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.menu-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 220px auto auto;
    gap: 10px;
}

.menu-product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 220px;
}

.menu-product-image,
.menu-product-placeholder {
    width: 54px;
    height: 54px;
    border-radius: 9px;
    object-fit: cover;
    background: var(--surface-2);
    flex-shrink: 0;
}

.menu-product-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--muted);
    border: 1px solid var(--line);
}

.menu-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.menu-actions form {
    margin: 0;
}

.empty-state {
    padding: 35px !important;
    text-align: center;
    color: var(--muted);
}

@media(max-width: 700px) {
    .menu-filter-form {
        grid-template-columns: 1fr;
    }

    .menu-actions {
        flex-wrap: wrap;
    }
}

/* CATEGORY MANAGEMENT */

.category-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.category-form-panel,
.category-list-panel {
    background: #191d27;
    border: 1px solid #303746;
    border-radius: 12px;
    padding: 22px;
    min-width: 0;
}

.category-panel-heading {
    margin-bottom: 22px;
}

.category-panel-heading h3 {
    color: #ffffff;
    font-size: 19px;
    margin: 0 0 7px;
    font-weight: 700;
}

.category-panel-heading p {
    color: #929baa;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.category-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.category-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-field label {
    color: #dce1e9;
    font-size: 13px;
    font-weight: 600;
}

.category-field input {
    width: 100%;
    box-sizing: border-box;
    background: #10131b;
    border: 1px solid #343d4c;
    border-radius: 7px;
    color: #ffffff;
    padding: 12px 13px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.category-field input:focus {
    border-color: #ff7a18;
}

.category-field small {
    color: #8993a3;
    font-size: 11px;
}

.category-form-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.category-alert {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
}

.category-alert-success {
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #70d69b;
}

.category-alert-error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #ff9187;
}

.category-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.category-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 620px;
}

.category-table th {
    color: #8993a3;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 13px 12px;
    border-bottom: 1px solid #303746;
}

.category-table td {
    color: #dce1e9;
    font-size: 13px;
    padding: 15px 12px;
    border-bottom: 1px solid #292f3b;
    vertical-align: middle;
}

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

.category-table td strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
}

.category-table td small {
    display: block;
    color: #7f8999;
    font-size: 11px;
    margin-top: 4px;
}

.category-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}

.category-status.is-active {
    background: rgba(39, 174, 96, 0.13);
    color: #70d69b;
}

.category-status.is-inactive {
    background: rgba(231, 76, 60, 0.12);
    color: #ff9187;
}

.category-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.category-actions form {
    margin: 0;
}

.category-action-edit,
.category-action-toggle {
    background: none;
    border: none;
    padding: 0;
    color: #ff923d;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.category-action-toggle {
    color: #aab4c3;
}

.category-action-edit:hover,
.category-action-toggle:hover {
    color: #ffffff;
}

.category-empty {
    text-align: center;
    color: #8993a3 !important;
    padding: 30px !important;
}

@media (max-width: 900px) {
    .category-layout {
        grid-template-columns: 1fr;
    }
}


/* OPTIONS & EXTRAS MANAGEMENT */

.options-management-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 22px;
}

.options-panel {
    background: #191d27;
    border: 1px solid #303746;
    border-radius: 12px;
    padding: 22px;
    min-width: 0;
}

.options-panel-heading {
    margin-bottom: 22px;
}

.options-panel-heading h3 {
    color: #ffffff;
    font-size: 19px;
    margin: 0 0 7px;
    font-weight: 700;
}

.options-panel-heading p {
    color: #929baa;
    font-size: 13px;
    margin: 0;
    line-height: 1.6;
}

.options-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
}

.options-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.options-field label {
    color: #dce1e9;
    font-size: 13px;
    font-weight: 600;
}

.options-field input:not([type="checkbox"]),
.options-field select {
    width: 100%;
    box-sizing: border-box;
    background: #10131b;
    border: 1px solid #343d4c;
    border-radius: 7px;
    color: #ffffff;
    padding: 12px 13px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.options-field input:focus,
.options-field select:focus {
    border-color: #ff7a18;
}

.options-field select option {
    background: #191d27;
    color: #ffffff;
}

.options-limits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.options-help,
.options-description {
    color: #8993a3;
    font-size: 11px;
    line-height: 1.6;
    margin: 0;
}

.options-product-list {
    max-height: 220px;
    overflow-y: auto;
    background: #10131b;
    border: 1px solid #303746;
    border-radius: 8px;
    padding: 8px 12px;
}

.options-product-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid #252c38;
    cursor: pointer;
    color: #dce1e9;
    font-size: 12px;
    font-weight: 400 !important;
}

.options-product-choice:last-child {
    border-bottom: none;
}

.options-product-choice input {
    accent-color: #ff7a18;
    width: 15px;
    height: 15px;
}

.options-form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.options-alert {
    padding: 13px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
}

.options-alert-success {
    background: rgba(39, 174, 96, 0.12);
    border: 1px solid rgba(39, 174, 96, 0.3);
    color: #70d69b;
}

.options-alert-error {
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    color: #ff9187;
}

.options-groups-panel {
    margin-bottom: 25px;
}

.options-group-card {
    background: #141821;
    border: 1px solid #303746;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.options-group-card:last-child {
    margin-bottom: 0;
}

.options-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 17px 18px;
    border-bottom: 1px solid #303746;
}

.options-group-header h4 {
    color: #ffffff;
    font-size: 15px;
    margin: 0 0 6px;
}

.options-group-meta {
    color: #8993a3;
    font-size: 11px;
}

.options-edit-link {
    color: #ff923d;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.options-edit-link:hover {
    color: #ffffff;
}

.options-choice-list {
    padding: 0 18px;
}

.options-choice-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #292f3b;
}

.options-choice-row:last-child {
    border-bottom: none;
}

.options-choice-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.options-choice-info strong {
    color: #e5e9ef;
    font-size: 13px;
}

.options-price {
    color: #ff923d;
    font-size: 12px;
    font-weight: 600;
}

.options-choice-actions {
    display: flex;
    align-items: center;
    gap: 13px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.options-choice-actions form {
    margin: 0;
}

.options-status {
    font-size: 10px;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 20px;
}

.options-status.available {
    color: #70d69b;
    background: rgba(39, 174, 96, 0.13);
}

.options-status.unavailable {
    color: #ff9187;
    background: rgba(231, 76, 60, 0.12);
}

.options-toggle-link {
    border: none;
    background: none;
    padding: 0;
    color: #aab4c3;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
}

.options-toggle-link:hover {
    color: #ffffff;
}

.options-empty-message {
    padding: 17px;
    background: #141821;
    border: 1px dashed #394353;
    border-radius: 8px;
    color: #8993a3;
    font-size: 12px;
    text-align: center;
}

@media (max-width: 950px) {
    .options-management-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .options-choice-row,
    .options-group-header {
        align-items: flex-start;
    }

    .options-choice-row {
        flex-direction: column;
    }

    .options-choice-actions {
        justify-content: flex-start;
    }
}


/* =========================================
   PAYMENTS PAGE
========================================= */

.payment-overview {
    background: linear-gradient(115deg, #202633, #171c26);
    border: 1px solid #303847;
    border-radius: 15px;
    padding: 25px 28px;
    margin-bottom: 24px;
}

.payment-overview-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.payment-overview-label {
    display: block;
    color: #ff861f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 8px;
}

.payment-overview-content h3 {
    color: #fff;
    font-family: 'Oswald', sans-serif;
    font-size: 25px;
    font-weight: 600;
    margin: 0 0 7px;
}

.payment-overview-content p {
    color: #9ba5b5;
    font-size: 14px;
    margin: 0;
}

.payment-overview-total {
    text-align: right;
    min-width: 150px;
}

.payment-overview-total span {
    display: block;
    color: #9ba5b5;
    font-size: 12px;
    margin-bottom: 5px;
}

.payment-overview-total strong {
    display: block;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
}

/* Filters */

.payment-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.payment-search {
    flex: 1;
    min-width: 220px;
}

.payment-search input,
.payment-status-filter select {
    width: 100%;
    min-height: 43px;
    padding: 0 13px;
    color: #e8edf5;
    background: #171c26;
    border: 1px solid #343d4c;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.payment-search input:focus,
.payment-status-filter select:focus {
    border-color: #ff861f;
}

.payment-search input::placeholder {
    color: #788394;
}

.payment-status-filter {
    width: 190px;
}

.payment-filters .btn {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
}

/* Transactions table */

.payment-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.payment-table {
    width: 100%;
    min-width: 850px;
    border-collapse: collapse;
}

.payment-table th {
    padding: 14px 13px;
    text-align: left;
    color: #8995a7;
    background: #171c26;
    border-bottom: 1px solid #303847;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}

.payment-table td {
    padding: 15px 13px;
    color: #dce2eb;
    border-bottom: 1px solid #2a3240;
    font-size: 13px;
    vertical-align: middle;
}

.payment-table tbody tr {
    transition: background .2s ease;
}

.payment-table tbody tr:hover {
    background: rgba(255, 255, 255, .025);
}

.payment-table td strong {
    color: #f0f3f8;
    font-weight: 600;
}

.payment-customer strong {
    display: block;
    font-size: 13px;
}

.payment-customer small,
.payment-method,
.payment-date small {
    display: block;
    color: #8490a2;
    font-size: 11px;
    margin-top: 4px;
}

.payment-gateway {
    display: inline-block;
    color: #f1f3f7;
    font-weight: 600;
}

.payment-reference {
    color: #aeb8c7;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.payment-date strong {
    display: block;
    white-space: nowrap;
}

.payment-empty {
    text-align: center !important;
    padding: 45px 20px !important;
}

.payment-empty strong {
    display: block;
    font-size: 15px;
    margin-bottom: 7px;
}

.payment-empty span {
    display: block;
    color: #8995a7;
    font-size: 12px;
}

.payment-results-footer {
    color: #8995a7;
    font-size: 12px;
    padding-top: 16px;
}

/* Mobile */

@media (max-width: 650px) {
    .payment-overview-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .payment-overview-total {
        text-align: left;
    }

    .payment-search,
    .payment-status-filter {
        width: 100%;
        min-width: 100%;
    }

    .payment-filters .btn {
        flex: 1;
    }
}


/* =========================================================
   ORDERFLOW ADMIN DASHBOARD
========================================================= */

.dashboard-welcome {
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    padding: 34px 36px;
    background: linear-gradient(120deg, #202632 0%, #171c26 65%, #252c38 100%);
    border: 1px solid #303846;
    border-radius: 16px;
}

.dashboard-welcome-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.dashboard-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #ff8a35;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.dashboard-welcome-text h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
}

.dashboard-welcome-text p {
    max-width: 580px;
    margin: 0;
    color: #aeb7c5;
    font-size: 14px;
    line-height: 1.7;
}

.dashboard-date {
    min-width: 155px;
    padding: 17px 20px;
    background: rgba(255,255,255,0.045);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    text-align: right;
}

.dashboard-date span,
.dashboard-date small {
    display: block;
    color: #9ca6b5;
    font-size: 12px;
}

.dashboard-date strong {
    display: block;
    margin: 5px 0;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 17px;
}

.dashboard-section-heading h3,
.dashboard-panel-heading h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-family: 'Oswald', sans-serif;
    font-size: 21px;
    font-weight: 600;
}

.dashboard-section-heading p,
.dashboard-panel-heading p {
    margin: 0;
    color: #929dad;
    font-size: 13px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.dashboard-stat-card {
    min-width: 0;
    padding: 22px;
    background: #191e28;
    border: 1px solid #303846;
    border-radius: 13px;
    transition: border-color .2s ease, transform .2s ease;
}

.dashboard-stat-card:hover {
    border-color: #515d70;
    transform: translateY(-2px);
}

.dashboard-stat-highlight {
    background: linear-gradient(145deg, #252b36, #1b202a);
    border-color: #704526;
}

.dashboard-stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
}

.dashboard-stat-top > span:first-child {
    color: #aab3c0;
    font-size: 13px;
    font-weight: 500;
}

.dashboard-stat-indicator {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    background: #ff812c;
    border-radius: 50%;
}

.dashboard-stat-card > strong {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: -1px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-stat-card > strong small {
    color: #aab3c0;
    font-size: 15px;
    font-weight: 500;
}

.dashboard-stat-card > small {
    display: block;
    margin-top: 9px;
    color: #8490a0;
    font-size: 12px;
}

.dashboard-orders-heading {
    margin-top: 36px;
}

.dashboard-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.dashboard-content-panel {
    min-width: 0;
    padding: 23px;
    background: #191e28;
    border: 1px solid #303846;
    border-radius: 14px;
}

.dashboard-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}

.dashboard-panel-heading h3 {
    font-size: 19px;
}

.dashboard-panel-heading p {
    line-height: 1.6;
}

.dashboard-panel-period {
    flex-shrink: 0;
    padding: 6px 9px;
    color: #ff9a51;
    background: rgba(255,122,24,0.10);
    border: 1px solid rgba(255,122,24,0.18);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
}

.dashboard-chart-area,
.dashboard-bestsellers-area {
    min-height: 200px;
    overflow: hidden;
}

@media (max-width: 1100px) {
    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .dashboard-welcome {
        padding: 25px 22px;
    }

    .dashboard-welcome-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-welcome-text h2 {
        font-size: 25px;
    }

    .dashboard-date {
        width: 100%;
        text-align: left;
    }

    .dashboard-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dashboard-stat-card {
        padding: 16px;
    }

    .dashboard-stat-card > strong {
        font-size: 23px;
    }

    .dashboard-bottom-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-section-heading {
        align-items: flex-start;
    }
}

@media (max-width: 420px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
}
