/* WordPress-like admin CSS - fixed/clean version
   Replace your current admin CSS with this file. */


* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body.wp-admin-body,
.wp-admin-body {
  background: var(--wp-bg);
  color: var(--wp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  overflow-x: hidden;
}

/* Top admin bar */
.wpadminbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--wp-adminbar-h);
  background: var(--wp-dark);
  color: #f0f0f1;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.wpbar-left,
.wpbar-right {
  display: flex;
  align-items: center;
  min-width: 0;
}

.wpbar-brand {
  font-weight: 600;
}

.wpadminbar a {
  color: #f0f0f1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: var(--wp-adminbar-h);
  padding: 0 8px;
  white-space: nowrap;
}

.wpadminbar a:hover,
.wpadminbar a:focus {
  background: var(--wp-dark-hover);
  color: var(--wp-blue-light);
  outline: none;
}

.admin-bubble,
.menu-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wp-red);
  color: #fff;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  font-size: 11px;
  line-height: 18px;
  margin-left: 4px;
  padding: 0 5px;
}

/* Main shell */
.wpwrap {
  min-height: 100vh;
  padding-top: var(--wp-adminbar-h);
}

.wp-sidebar {
  position: fixed;
  top: var(--wp-adminbar-h);
  bottom: 0;
  left: 0;
  width: var(--wp-sidebar-w);
  min-height: calc(100vh - var(--wp-adminbar-h));
  background: var(--wp-dark);
  color: #f0f0f1;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 9998;
}


.wp-logo-block strong {
  display: block;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
}

.wp-logo-block span {
  display: block;
  color: #a7aaad;
  font-size: 12px;
  margin-top: 2px;
}

.wp-sidebar nav {
  padding: 6px 0;
}

.wp-sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #f0f0f1;
  text-decoration: none;
  padding: 10px 12px;
  border-left: 4px solid transparent;
  font-size: 14px;
  line-height: 1.25;
  min-height: 38px;
}

.wp-sidebar nav a:hover,
.wp-sidebar nav a:focus {
  background: var(--wp-dark-hover);
  color: var(--wp-blue-light);
  outline: none;
}

.wp-sidebar nav a.active,
.wp-sidebar nav a[aria-current="page"] {
  background: var(--wp-blue);
  color: #fff;
  border-left-color: var(--wp-blue-light);
}

.wp-content {
  margin-left: var(--wp-sidebar-w);
  padding: 24px 24px 40px;
  min-width: 0;
}

.wrap {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.wrap::after {
  content: "";
  display: table;
  clear: both;
}

/* Headings */
.wrap > h1,
.wp-heading-inline {
  font-size: 23px;
  font-weight: 400;
  margin: 0 0 12px;
  color: var(--wp-text);
  line-height: 1.3;
}

.wrap h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px;
}

.wrap h3 {
  font-size: 15px;
  margin: 16px 0 8px;
}

.page-title-action {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-left: 8px;
  vertical-align: top;
  position: relative;
  top: -3px;
  border: 1px solid var(--wp-blue);
  border-radius: 3px;
  background: #f6f7f7;
  color: var(--wp-blue);
  text-decoration: none;
  font-size: 13px;
  line-height: 2.15384615;
  padding: 0 10px;
}

.page-title-action:hover,
.page-title-action:focus {
  background: var(--wp-bg);
  color: var(--wp-blue-hover);
  border-color: var(--wp-blue-hover);
  outline: none;
}

.subsubsub {
  list-style: none;
  margin: 8px 0 12px;
  padding: 0;
  color: var(--wp-muted);
}

.subsubsub li {
  display: inline-block;
  margin: 0;
}

.subsubsub a {
  color: var(--wp-blue);
  text-decoration: none;
}

.subsubsub a:hover,
.subsubsub a:focus {
  color: var(--wp-blue-hover);
}

.subsubsub .count {
  color: #50575e;
}

/* Cards / boxes */
.wp-card,
.box,
.stat {
  background: var(--wp-panel);
  border: 1px solid var(--wp-border);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.box {
  padding: 16px;
  margin: 12px 0 18px;
}

.wp-card-pad {
  padding: 16px;
}

.dashboard-grid,
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin: 12px 0 24px;
}

.stat {
  padding: 18px;
}

.stat h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wp-muted);
  margin: 0 0 10px;
}

.stat h1 {
  font-size: 30px;
  margin: 0;
  color: var(--wp-text);
  line-height: 1.2;
}

/* Tables */
.wp-list-table,
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wp-panel);
  border: 1px solid var(--wp-border);
  clear: both;
  table-layout: auto;
}

.wp-list-table th,
.table th {
  font-weight: 400;
  color: #2c3338;
  text-align: left;
  border-bottom: 1px solid var(--wp-border);
  padding: 8px 10px;
  line-height: 1.4;
  background: var(--wp-panel);
  white-space: nowrap;
}

.wp-list-table td,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--wp-border-soft);
  vertical-align: top;
  background: var(--wp-panel);
  color: #2c3338;
}

.wp-list-table tbody tr:nth-child(odd) td,
.table tbody tr:nth-child(odd) td {
  background: #f6f7f7;
}

.wp-list-table tbody tr:hover td,
.table tbody tr:hover td {
  background: #f0f6fc;
}

.wp-list-table img,
.table img {
  max-width: 100%;
}

.check-column {
  width: 2.2em;
  text-align: center;
}

.column-thumb {
  width: 70px;
}

.column-title {
  width: 28%;
  font-weight: 600;
}

.column-actions {
  width: 180px;
}

.row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--wp-blue);
  text-decoration: none;
}

.row-title:hover,
.row-title:focus {
  color: var(--wp-blue-hover);
}

.row-actions {
  visibility: hidden;
  color: var(--wp-muted);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 400;
}

.tr-visible-actions .row-actions,
.wp-list-table tr:hover .row-actions,
.table tr:hover .row-actions,
.wp-list-table tr:focus-within .row-actions,
.table tr:focus-within .row-actions {
  visibility: visible;
}

.row-actions a,
.row-actions button {
  color: var(--wp-blue);
  text-decoration: none;
}

.row-actions a:hover,
.row-actions button:hover {
  color: var(--wp-blue-hover);
}

.row-actions .trash a,
.trash-link {
  color: var(--wp-red-dark) !important;
}

.row-actions span::after {
  content: " | ";
  color: #a7aaad;
}

.row-actions span:last-child::after {
  content: "";
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
  background: var(--wp-border-soft);
  color: var(--wp-text);
  white-space: nowrap;
}

.status-pending {
  background: #fff4ce;
  color: #5c3b00;
}

.status-delivered,
.status-ready,
.status-completed,
.status-paid {
  background: #d1e7dd;
  color: #0f5132;
}

.status-refunded,
.status-cancelled,
.status-canceled,
.status-failed {
  background: #f8d7da;
  color: #842029;
}

.status-preparing,
.status-on_the_way,
.status-processing {
  background: #cff4fc;
  color: #055160;
}

/* Forms */
.wp-form-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--wp-panel);
  border: 1px solid var(--wp-border);
}

.wp-form-table th {
  width: 210px;
  text-align: left;
  vertical-align: top;
  padding: 18px 12px 18px 16px;
  font-weight: 600;
}

.wp-form-table td {
  padding: 12px 16px;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
}

.form-table th {
  width: 180px;
  text-align: left;
  vertical-align: top;
  padding: 14px 10px 14px 0;
}

.form-table td {
  padding: 10px 0;
}

.wrap label {
  font-weight: 600;
  display: block;
  margin: 0 0 5px;
}

.wrap input[type="text"],
.wrap input[type="number"],
.wrap input[type="password"],
.wrap input[type="email"],
.wrap input[type="tel"],
.wrap input[type="url"],
.wrap input[type="search"],
.wrap input:not([type]),
.wrap select,
.wrap textarea {
  border: 1px solid #8c8f94;
  border-radius: 4px;
  box-shadow: 0 0 0 transparent;
  color: #2c3338;
  background: #fff;
  padding: 6px 8px;
  line-height: 1.8;
  min-height: 30px;
  max-width: 520px;
  width: 100%;
}

.wrap textarea {
  min-height: 90px;
  line-height: 1.5;
  resize: vertical;
}

.wrap input:focus,
.wrap select:focus,
.wrap textarea:focus {
  border-color: var(--wp-blue);
  box-shadow: 0 0 0 1px var(--wp-blue);
  outline: 2px solid transparent;
}

.full-input {
  max-width: 100% !important;
}

.small-text {
  width: 80px !important;
  max-width: 80px !important;
}

/* Buttons */
.button,
.button-primary,
.btn,
button.btn,
.wp-btn-primary,
input[type="submit"].button,
input[type="submit"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  font-size: 13px;
  line-height: 2.15384615;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  cursor: pointer;
  border: 1px solid var(--wp-blue);
  border-radius: 3px;
  white-space: nowrap;
  background: #f6f7f7;
  color: var(--wp-blue);
  vertical-align: top;
  font-family: inherit;
}

.button:hover,
.btn:hover,
.button:focus,
.btn:focus {
  background: var(--wp-bg);
  border-color: var(--wp-blue-hover);
  color: var(--wp-blue-hover);
  outline: none;
}

.button-primary,
.btn.pink,
.btn.primary,
.wp-btn-primary,
input[type="submit"].button-primary {
  background: var(--wp-blue);
  border-color: var(--wp-blue);
  color: #fff;
}

.button-primary:hover,
.btn.pink:hover,
.btn.primary:hover,
.wp-btn-primary:hover,
.button-primary:focus,
.btn.pink:focus,
.btn.primary:focus,
.wp-btn-primary:focus {
  background: var(--wp-blue-hover);
  border-color: var(--wp-blue-hover);
  color: #fff;
}

.button-link-delete,
.btn.red,
.btn.danger {
  color: var(--wp-red-dark);
  border-color: var(--wp-red-dark);
  background: #fff;
}

.button-link-delete:hover,
.btn.red:hover,
.btn.danger:hover,
.button-link-delete:focus,
.btn.red:focus,
.btn.danger:focus {
  background: var(--wp-red-dark);
  border-color: var(--wp-red-dark);
  color: #fff;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--wp-blue);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.link-button:hover,
.link-button:focus {
  color: var(--wp-blue-hover);
  outline: none;
}

/* Button groups inside tables/actions */
.actions,
.bulk-actions,
.invoice-actions,
.form-actions,
.table-actions,
td.actions,
td .actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.invoice-actions {
  margin: 0 0 16px;
}

.wp-list-table td .button,
.wp-list-table td .btn,
.table td .button,
.table td .btn {
  margin: 0 4px 4px 0;
}

.wp-list-table .row-actions form,
.table .row-actions form {
  display: inline;
}

/* Notices */
.notice,
.admin-notice {
  background: #fff;
  border-left: 4px solid var(--wp-blue-light);
  box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
  padding: 12px;
  margin: 12px 0;
}

.notice-success {
  border-left-color: var(--wp-green);
}

.notice-error,
.admin-notice.error {
  border-left-color: var(--wp-red);
}

/* Table navigation / search */
.tablenav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.search-box {
  float: right;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
}

.search-box input {
  width: 220px !important;
}

.thumb,
.image-preview {
  width: 58px;
  height: 52px;
  object-fit: cover;
  border: 1px solid var(--wp-border-soft);
  background: #fff;
}

.thumb {
  width: 52px;
}

.widefat-form {
  max-width: 860px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.inline-checks label {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 6px 14px 6px 0;
  font-weight: 400;
}

.inline-checks input[type="checkbox"],
.inline-checks input[type="radio"] {
  width: auto !important;
  min-height: auto;
}

.product-form-wrap {
  margin-top: 22px;
}

.product-add-box {
  max-width: 760px;
}

.wp-list-table select,
.table select {
  width: auto;
  min-width: 120px;
  max-width: 180px;
  padding: 2px 24px 2px 6px;
  min-height: 30px;
}

.admin-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

/* Invoices / refunds */
.invoice-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.invoice-summary {
  align-self: start;
}

.refund-box {
  border-color: var(--wp-red);
}

.refund-box h2 {
  color: var(--wp-red-dark);
}

.wp-footer-note {
  color: var(--wp-muted);
  font-size: 12px;
  margin-top: 28px;
}

/* Login */
.wp-login-body {
  background: var(--wp-bg);
}


.hint {
  color: var(--wp-muted);
  font-size: 13px;
}

/* Responsive */


@media (max-width: 600px) {
  .wp-content {
    padding: 12px;
  }

  .wrap > h1,
  .wp-heading-inline {
    font-size: 21px;
  }

  .page-title-action {
    margin: 8px 0 0;
    top: 0;
  }

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

  .wp-form-table,
  .wp-form-table tbody,
  .wp-form-table tr,
  .wp-form-table th,
  .wp-form-table td,
  .form-table,
  .form-table tbody,
  .form-table tr,
  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
  }

  .wp-form-table th,
  .wp-form-table td,
  .form-table th,
  .form-table td {
    padding: 10px 12px;
  }
}

/* Print */


/* Admin layout improvements for products/categories/add-ons/settings */
.notice p,
.admin-notice p {
  margin: 0;
}

.notice-warning {
  border-left-color: #dba617;
}


.no-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 52px;
  border: 1px solid var(--wp-border-soft);
  background: #f6f7f7;
  color: var(--wp-muted);
}

.description,
p.description {
  color: var(--wp-muted);
  font-size: 13px;
  font-style: normal;
  margin: 6px 0 10px;
  line-height: 1.45;
}

code {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 3px;
  padding: 1px 4px;
}

.admin-edit-form .form-table th,
.admin-edit-form .form-table td {
  border-bottom: 1px solid #f0f0f1;
}

.admin-edit-form .form-table tr:last-child th,
.admin-edit-form .form-table tr:last-child td {
  border-bottom: 0;
}

.submit {
  margin: 16px 0 0;
}


.panel-title-row h2 {
  margin: 0;
}

.addons-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  clear: both;
}

.addons-panel {
  margin-top: 0;
}

.settings-form {
  clear: both;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 12px;
}

.settings-card {
  margin: 0;
  min-height: 100%;
}

.settings-card h2 {
  margin-top: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #dcdcde;
}

.settings-card label {
  margin-top: 12px;
}

.settings-card input,
.settings-card select,
.settings-card textarea {
  max-width: 100% !important;
}

.settings-card textarea {
  min-height: 120px;
}

.settings-card-wide {
  grid-column: span 3;
}


.settings-logo-preview .thumb-large {
  width: 120px;
  height: 72px;
  object-fit: contain;
}


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

  .settings-card-wide {
    grid-column: span 2;
  }
}


.addons-layout-stacked{display:grid;grid-template-columns:1fr;gap:18px}.addons-layout-stacked .addons-panel{margin:0}.panel-title-row{display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
display:flex;align-items:center;justify-content:space-between;gap:12px;}.table-scroll{width: 100%;
  overflow-x: auto;
  clear: both;
overflow:auto;}.description{color:#646970;font-size:13px;margin:4px 0 8px}.status-paid{background:#d1e7dd;color:#0f5132}.thumb-large{width: 100px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--wp-border-soft);
  background: #fff;
width:120px;max-height:90px;object-fit:cover;border:1px solid #dcdcde;background:#fff;border-radius:3px;}.current-image{display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--wp-muted);
  flex-wrap: wrap;
display:flex;gap:12px;align-items:center;margin:0 0 10px;color:#646970;}.addon-check-list{display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 12px;
  max-width: 760px;
display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:6px 14px;}.addon-check-list label{margin: 0 !important;
margin:0!important;}.wp-list-table .link-button{line-height:inherit}

/* Live order updates */


.admin-order-row-new td {
  animation: adminNewOrderFlash 6.5s ease-out 1;
}

@keyframes adminNewOrderFlash {
  0% { background: #fff8c5; }
  55% { background: #fff8c5; }
  100% { background: inherit; }
}


.wp-list-table .status-badge {margin-top: 1px;
display: inline-block;
  margin-top: 6px;}


/* Clearer live-order ringing state */


@keyframes adminRingingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(214, 54, 56, .52); }
  50% { box-shadow: 0 0 0 5px rgba(214, 54, 56, 0); }
}


/* Sound enable state: browser requires one click before audio can play */


@keyframes adminEnableSoundPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(219, 166, 23, .45); }
  50% { box-shadow: 0 0 0 5px rgba(219, 166, 23, 0); }
}


/* V7: settings, POS, users/roles */
.wpbar-user{display:inline-flex;align-items:center;height:32px;padding:0 8px;color:#c3c4c7;font-size:12px}
.switch-line{display:flex!important;align-items:center;gap:8px;font-weight:600;margin:12px 0}.switch-line input{width:auto!important;min-height:auto!important}
.permissions-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:8px 16px;max-width:920px}.permissions-grid label{font-weight:400!important;display:flex!important;gap:6px;align-items:center;margin:0}.permissions-grid input{width:auto!important;min-height:auto!important}


@media(max-width:700px){.permissions-grid{grid-template-columns:1fr}}

/* V8: mobile WordPress-like admin sidebar, POS category sidebar, custom delivery */
.admin-mobile-menu-toggle,
.admin-sidebar-close,
.admin-sidebar-overlay {
  display: none;
}


.admin-mobile-menu-toggle,
.admin-sidebar-close {
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #f0f0f1;
  cursor: pointer;
  font: inherit;
}

.admin-mobile-menu-toggle {
  width: 32px;
  height: 32px;
  margin: 0 4px 0 -6px;
  font-size: 20px;
}

.admin-sidebar-close {
  width: 32px;
  height: 32px;
  border-radius: 3px;
  font-size: 24px;
  line-height: 1;
}

.admin-sidebar-close:hover,
.admin-mobile-menu-toggle:hover {
  background: #2c3338;
  color: #72aee6;
}


.invoice-delivery-action {
  display: inline-flex;
  vertical-align: top;
}

.invoice-delivery-action input {
  min-height: 30px;
  padding: 3px 8px;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .invoice-grid,
  .admin-two-col {
    grid-template-columns: 1fr;
  }


  
}


/* V9: product flags and POS popular category */
.product-flags{white-space:normal}.product-flags .status-badge{margin:0 3px 3px 0}

/* V10: POS change field */


/* V11: POS modifiers popup, barcode scanner, and 80mm mini printer */
.pos-addon-group{border:1px solid #dcdcde;background:#f6f7f7;margin:12px 0;padding:12px}.pos-addon-group h3{display:flex;justify-content:space-between;gap:8px;margin:0 0 4px;font-size:14px}.pos-addon-group h3 span{color:#b32d2e;font-size:12px}.pos-addon-group p{margin:0 0 8px;color:#646970;font-size:12px}.pos-addon-choice{display:flex!important;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid #dcdcde;padding:9px 10px;margin:6px 0!important;font-weight:400!important}.pos-addon-choice input{width:auto!important;min-height:auto!important;margin-right:6px}.pos-addon-choice b{white-space:nowrap;color:#2271b1}.mini-receipt{display:none}.invoice-actions .button{margin-right:4px}


.status-hold {
  background: #e7d7ff;
  color: #3b176f;
}


@media (max-width: 782px) {
  .settings-grid,
  .addons-layout {
    grid-template-columns: 1fr;
  }

  .settings-card-wide {
    grid-column: span 1;
  }

  .panel-title-row {
    align-items: flex-start;
    flex-direction: column;
  }


  
  
}


.admin-bar-button {
  border: 0;
  background: transparent;
  color: #f0f0f1;
  height: var(--wp-adminbar-h);
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.admin-bar-button:hover,
.admin-bar-button:focus {
  background: var(--wp-dark-hover);
  color: var(--wp-blue-light);
  outline: none;
}


.shift-report-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10070;
}
.shift-report-modal.is-open { display: block; }
.shift-report-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.shift-report-dialog {
  position: relative;
  width: min(760px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  background: #fff;
  border: 1px solid var(--wp-border);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
  overflow: auto;
}
.shift-report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--wp-border-soft);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.shift-report-head h2 { margin: 0; font-size: 20px; font-weight: 500; }
.shift-report-actions { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.shift-report-content { padding: 16px; }
.shift-report-title { text-align: center; margin-bottom: 12px; }
.shift-report-title h3 { margin: 0 0 4px; font-size: 20px; }
.shift-report-title p { margin: 0; color: var(--wp-muted); }
.shift-report-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  padding: 10px;
  border: 1px solid var(--wp-border-soft);
  background: #f6f7f7;
  margin-bottom: 12px;
}
.shift-report-meta p { margin: 0; }
.shift-report-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}
.shift-report-summary-grid div {
  border: 1px solid var(--wp-border-soft);
  background: #fff;
  padding: 10px;
}
.shift-report-summary-grid span { display: block; color: var(--wp-muted); font-size: 12px; margin-bottom: 4px; }
.shift-report-summary-grid b { display: block; font-size: 16px; color: var(--wp-text); }
.shift-report-summary-grid .shift-report-big { grid-column: span 2; background: #1d2327; color: #fff; }
.shift-report-summary-grid .shift-report-big span,
.shift-report-summary-grid .shift-report-big b { color: #fff; }
.shift-report-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--wp-border-soft);
  margin-bottom: 14px;
}
.shift-report-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--wp-border-soft);
  vertical-align: top;
}
.shift-report-table tr:last-child td { border-bottom: 0; }
.shift-report-table td:nth-child(2),
.shift-report-table td:nth-child(3) { text-align: right; white-space: nowrap; }
.shift-report-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  font-weight: 600;
}
@media (max-width: 700px) {
  .shift-report-meta,
  .shift-report-summary-grid,
  .shift-report-signatures { grid-template-columns: 1fr; }
  .shift-report-summary-grid .shift-report-big { grid-column: auto; }
}


@media (max-width: 900px) {
  

  

  .wpbar-right {
    display: none;
  }

  

  

  

  .wp-sidebar nav a {
    border-left: 0;
    border-bottom: 3px solid transparent;
  }

  

  .wp-content {
    margin-left: 0;
    padding: 16px;
  }

  

  .tablenav,
  .search-box {
    float: none;
    justify-content: flex-start;
  }

  .wp-list-table,
  .table {
    min-width: 760px;
  }

  .wrap {max-width: none;
overflow-x: auto;}


  

  


  body.wp-admin-body,
  .wp-admin-body {overflow-x: auto;
overflow-x: hidden;}

  .wpadminbar {position: relative;
position: fixed;
    padding: 0 8px;}

  .admin-mobile-menu-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .wpbar-left a:not(.wpbar-brand) {
    display: none;
  }

  .wpbar-brand {
    max-width: calc(100vw - 72px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wpwrap {padding-top: 0;
padding-top: var(--wp-adminbar-h);}

  .admin-sidebar-overlay {
    display: block;
    position: fixed;
    top: var(--wp-adminbar-h);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
  }

  .wp-sidebar {position: relative;
    top: auto;
    bottom: auto;
    width: auto;
    min-height: auto;
position: fixed;
    top: var(--wp-adminbar-h);
    bottom: 0;
    left: 0;
    width: min(280px, 86vw);
    min-height: calc(100vh - var(--wp-adminbar-h));
    transform: translateX(-102%);
    transition: transform .2s ease;
    z-index: 10001;}

  .wp-admin-body.admin-menu-open .admin-sidebar-overlay {
    opacity: 1;
    pointer-events: auto;
  }

  .wp-admin-body.admin-menu-open .wp-sidebar {
    transform: translateX(0);
  }

  .admin-sidebar-close {
    display: inline-flex;
  }

  .wp-sidebar nav {display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
display: block;
    grid-template-columns: none;}

  .wp-sidebar nav a,
  .wp-sidebar nav a.active,
  .wp-sidebar nav a[aria-current="page"] {
    border-bottom: 0;
    border-left-width: 4px;
  }

  .wp-sidebar nav a.active,
  .wp-sidebar nav a[aria-current="page"] {border-bottom-color: var(--wp-blue-light);
border-left-color: var(--wp-blue-light);}


  
  
  


  
  
  


  
  
}

/* V17: safer cashier fullscreen navigation, POS order-type fields, and Hold Orders modal */


/* V18: split invoice permissions, table availability, hold filters, unpaid accounts */
.order-status-filters .current,
.subsubsub a.current {
  color: #1d2327;
  font-weight: 600;
}
.unpaid-source-badge {
  display: inline-block;
  margin-top: 3px;
  color: #7a4f00;
  background: #fff4ce;
  border-radius: 999px;
  padding: 2px 7px;
}
.settings-repeat-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 10px;
}
.settings-repeat-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.settings-repeat-row input {
  max-width: 100% !important;
}


.shift-report-summary-grid .shift-report-big b {
  font-size: 18px;
}
@media(max-width:560px){
  .settings-repeat-row { grid-template-columns: 1fr; }
}

/* v19 order filters, stock, unpaid accounts */
.order-period-filters{padding:12px 14px;margin:8px 0 12px}.order-period-form{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.order-date-tabs{margin:0}.order-date-tabs a.current,.order-status-filters a.current{font-weight:600;color:#000}.unpaid-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:12px 0 20px}.unpaid-summary-card{text-decoration:none;color:#1d2327;display:block}.unpaid-summary-card.active{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1}.unpaid-summary-card h2{margin-top:0}.unpaid-account-page{align-items:start}.settings-card .switch-line{display:flex;align-items:center;gap:8px;margin:10px 0}.status-on-the-way{background:#cff4fc; color:#055160;
background:#cff4fc;color:#055160;}

/* V20 unpaid account totals */
.unpaid-total-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;align-items:stretch;margin:12px 0 18px}.unpaid-total-strip div{background:#f6f7f7;border:1px solid #dcdcde;padding:12px;border-radius:3px}.unpaid-total-strip span{display:block;color:#646970;font-size:12px;margin-bottom:4px}.unpaid-total-strip b{display:block;font-size:18px;color:#1d2327}.unpaid-total-strip small{display:block;color:#646970;margin-top:3px}.unpaid-account-page .wp-list-table{margin-bottom:18px}

/* V22: delivery-only POS fields, touch screen mode, stock scanner, date/time settings */

.admin-touch-mode body,
body.admin-touch-mode { touch-action: manipulation; }


.stock-scan-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:18px}.stock-scan-form,.stock-update-form{display:grid;gap:12px}.stock-barcode-input{font-size:24px!important;min-height:52px!important;border-color:#2271b1!important}.stock-product-found{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;align-items:center;margin:8px 0 16px}.stock-product-found img{width:92px;height:92px;object-fit:cover;border:1px solid #dcdcde;background:#fff;border-radius:8px}.stock-product-found h3{margin:0 0 4px;font-size:20px}.stock-qty-input{font-size:22px!important;min-height:48px!important;max-width:180px!important}.settings-card select#timezone_string{max-width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:12px}

/* Login page refresh - WordPress style with TIVA POS logo */
body.wp-login-body {
  min-height: 100vh;
  background: #f0f0f1;
  color: #3c434a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.wp-login-wrap {min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 7vh 20px 28px;}


.wp-login-logo {font-size: 34px;
  font-weight: 700;
  color: var(--wp-blue);
  margin-bottom: 18px;
  line-height: 1.1;
  text-align: center;
display: none;}

.wp-login-box {width: 360px;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--wp-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
  padding: 24px;
width: 360px;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 24px 22px;
  background: #fff;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);}

.wp-login-box h1 {font-size: 24px;
  font-weight: 400;
  margin: 0 0 10px;
margin: 0 0 6px;
  color: #1d2327;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.3;}

.wp-login-subtitle {
  margin: 0 0 18px;
}

.wp-login-box label {display: block;
  font-weight: 600;
  margin-bottom: 6px;
display: block;
  margin: 0 0 5px;
  color: #1d2327;
  font-size: 14px;
  font-weight: 400;}

.wp-login-box input[type="text"],
.wp-login-box input[type="password"],
.wp-login-box input[type="email"] {width: 100%;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  padding: 8px 10px;
  margin-bottom: 12px;
width: 100%;
  min-height: 42px;
  margin: 0 0 16px;
  padding: 7px 10px;
  border: 1px solid #8c8f94;
  border-radius: 4px;
  background: #fff;
  color: #2c3338;
  font-size: 18px;
  line-height: 1.33333333;
  box-shadow: 0 0 0 transparent;}

.wp-login-box input:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: 2px solid transparent;
}

.wp-login-submit,
.wp-login-box .wp-btn-primary {
  display: block;
  width: 100%;
  min-height: 38px;
  margin-top: 2px;
  border-color: #2271b1;
  background: #2271b1;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.wp-login-submit:hover,
.wp-login-box .wp-btn-primary:hover {
  background: #135e96;
  border-color: #135e96;
  color: #fff;
}

.wp-login-defaults {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid #dcdcde;
  word-break: break-word;
}


.wp-login-body .admin-notice.error {
  margin: 0 0 16px;
  border-left-color: #d63638;
}

@media (max-width: 480px) {
  .wp-login-wrap {
    padding-top: 28px;
  }
  .wp-login-brand {
    width: 96px;
    height: 96px;
    border-radius: 22px;
  }
  .wp-login-logo-img {
    width: 84px;
    height: 84px;
  }
  .wp-login-box {
    padding: 20px;
  }
}


/* Cashier panel: POS-inspired dark style for orders/reports panel */


/* V9 cashier panel final polish: match POS dark colors, readable reports, active filters */


/* Dark POS-style shift report modal */


@media print{
  .wpadminbar,
  .wp-sidebar,
  .invoice-actions,
  .refund-box,
  .wp-footer-note,
  .button,
  .btn,
  .page-title-action,
  .tablenav,
  .search-box {
    display: none !important;
  }

  .wpwrap {
    display: block;
    padding: 0;
  }

  .wp-content {
    margin-left: 0;
    padding: 0;
  }

  .wrap {
    max-width: none;
    overflow: visible;
  }

  .wp-list-table,
  .table,
  .box,
  .wp-card,
  .stat {
    border-color: #999;
    box-shadow: none;
  }

body.mini-printing *{visibility:hidden!important}body.mini-printing #miniReceipt,body.mini-printing #miniReceipt *{visibility:visible!important}body.mini-printing #miniReceipt{display:block!important;position:absolute;left:0;top:0;width:74mm;background:#fff;color:#000;font-family:Arial,sans-serif;font-size:11px;line-height:1.25;padding:0;margin:0}body.mini-printing .mini-receipt-head{text-align:center;border-bottom:1px dashed #000;padding-bottom:6px;margin-bottom:6px}body.mini-printing .mini-receipt-head h2{font-size:16px;margin:0 0 3px}body.mini-printing .mini-receipt-head p,body.mini-printing .mini-receipt-meta p{margin:1px 0}body.mini-printing .mini-receipt-meta{border-bottom:1px dashed #000;padding-bottom:6px;margin-bottom:6px}.mini-receipt-line{display:flex;justify-content:space-between;gap:6px;margin:4px 0}.mini-receipt-line div:first-child{max-width:52mm}.mini-receipt-addon{font-size:10px;margin:0 0 2px 8px}.mini-receipt-totals{border-top:1px dashed #000;margin-top:6px;padding-top:5px}.mini-receipt-totals p,.mini-receipt-totals h3{display:flex;justify-content:space-between;gap:8px;margin:2px 0}.mini-receipt-totals h3{font-size:15px;border-top:1px solid #000;padding-top:4px;margin-top:5px}.mini-receipt-notes{border-top:1px dashed #000;margin-top:6px;padding-top:5px}.mini-receipt-foot{text-align:center;border-top:1px dashed #000;margin-top:8px;padding-top:7px;font-weight:700}

  body.shift-report-printing * { visibility: hidden !important; }
  body.shift-report-printing #adminShiftReportContent,
  body.shift-report-printing #adminShiftReportContent * { visibility: visible !important; }
  body.shift-report-printing #adminShiftReportContent {
    display: block !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 74mm;
    background: #fff;
    color: #000;
    padding: 0;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 10.5px;
    line-height: 1.25;
  }
  body.shift-report-printing .shift-report-content { padding: 0 !important; }
  body.shift-report-printing .shift-report-title h3 { font-size: 15px; margin: 0 0 2px; }
  body.shift-report-printing .shift-report-title p,
  body.shift-report-printing .shift-report-meta p { font-size: 10px; margin: 1px 0; }
  body.shift-report-printing .shift-report-meta,
  body.shift-report-printing .shift-report-summary-grid,
  body.shift-report-printing .shift-report-signatures {
    display: block !important;
    border: 0;
    background: #fff;
    margin: 4px 0;
    padding: 0;
  }
  body.shift-report-printing .shift-report-summary-grid div {
    border: 0;
    border-bottom: 1px dashed #000;
    padding: 2px 0;
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }
  body.shift-report-printing .shift-report-summary-grid .shift-report-big { background: #fff; color: #000; }
  body.shift-report-printing .shift-report-summary-grid span,
  body.shift-report-printing .shift-report-summary-grid b,
  body.shift-report-printing .shift-report-summary-grid .shift-report-big span,
  body.shift-report-printing .shift-report-summary-grid .shift-report-big b { color: #000; font-size: 10.5px; }
  body.shift-report-printing .shift-report-print-area h4 {
    font-size: 11px;
    border-top: 1px dashed #000;
    margin: 6px 0 3px;
    padding-top: 4px;
  }
  body.shift-report-printing .shift-report-table { border: 0; font-size: 10px; margin: 0 0 4px; }
  body.shift-report-printing .shift-report-table td { padding: 2px 0; border: 0; }
  body.shift-report-printing .shift-report-signatures p { margin: 8px 0; }


  
}

/* V10 POS finish: cashier panel must fully match POS colors */


/* V10 dark shift report modal + readable content */


/* V30 POS color picker */


.pos-color-swatch{display:inline-block;width:30px;height:24px;border-radius:6px;background:var(--swatch-color);box-shadow:inset 0 0 0 1px rgba(0,0,0,.16);}


/* PHASE 3 COLORS ONLY v1 - admin safe color polish, no layout/logic/icons */
:root{--wp-adminbar-h: 32px;
  --wp-sidebar-w: 160px;
  --wp-bg: #f0f0f1;
  --wp-text: #1d2327;
  --wp-muted: #646970;
  --wp-border: #c3c4c7;
  --wp-border-soft: #dcdcde;
  --wp-panel: #fff;
  --wp-dark: #1d2327;
  --wp-dark-hover: #2c3338;
  --wp-blue: #2271b1;
  --wp-blue-hover: #135e96;
  --wp-blue-light: #72aee6;
  --wp-red: #d63638;
  --wp-red-dark: #b32d2e;
  --wp-green: #00a32a;
--tiva-gold:#d2a329;
  --tiva-gold2:#b58315;
  --tiva-blue:#8fb4f4;}

a:hover,
.side a:hover,
.admin-sidebar a:hover{
  color:#f0cf76!important;
}

/* PHASE 5 admin color UI cleanup: Auto / Custom mode */
.admin-color-control{
  max-width:820px;
  padding:14px;
  border:1px solid #dcdcde;
  border-radius:12px;
  background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.admin-color-mode-title{
  font-weight:700;
  color:#1d2327;
  margin:0 0 10px;
}
.admin-color-mode-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.admin-color-mode-card{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px;
  border:1px solid #c3c4c7;
  border-radius:10px;
  background:#f8f9fa;
  cursor:pointer;
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.admin-color-mode-card input{margin-top:2px!important;}
.admin-color-mode-card b{display:block;color:#1d2327;font-size:13px;line-height:1.25;}
.admin-color-mode-card small{display:block;color:#646970;font-size:12px;line-height:1.35;margin-top:3px;}
.admin-color-mode-card:has(input:checked){
  border-color:#2271b1;
  box-shadow:0 0 0 1px #2271b1;
  background:#f0f6fc;
}
.admin-color-auto-note{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid #e0c36a;
  border-radius:10px;
  background:#fff8df;
  margin-bottom:12px;
}
.admin-color-auto-note b{display:block;color:#1d2327;font-size:13px;line-height:1.25;}
.admin-color-auto-note small{display:block;color:#646970;font-size:12px;line-height:1.35;margin-top:3px;}
.admin-color-preview,
.admin-color-control .pos-color-swatch{
  display:inline-block;
  width:32px;
  height:24px;
  border-radius:7px;
  background:var(--swatch-color);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.18),0 1px 2px rgba(0,0,0,.08);
}
.admin-color-preview{width:42px;height:32px;flex:0 0 auto;}
.admin-color-custom-panel{
  padding:12px;
  border:1px solid #dcdcde;
  border-radius:10px;
  background:#fbfbfc;
}
.admin-color-custom-title{
  font-weight:700;
  color:#1d2327;
  margin-bottom:10px;
}
.admin-color-control.is-auto .admin-color-custom-panel{display:none;}


@media(max-width:900px){.stock-scan-layout{grid-template-columns:1fr}.stock-product-found{grid-template-columns:70px minmax(0,1fr)}.stock-product-found img{width:70px;height:70px}

  .admin-color-mode-grid{grid-template-columns:1fr;}
  
}

/* v35.19 Settings masonry layout: compact cards without large empty grid gaps */
.settings-masonry-grid{
  column-count:3;
  column-gap:16px;
  margin-top:12px;
}
.settings-masonry-grid .settings-card{
  display:inline-block;
  width:100%;
  box-sizing:border-box;
  margin:0 0 16px;
  min-height:0;
  break-inside:avoid;
  -webkit-column-break-inside:avoid;
  page-break-inside:avoid;
  vertical-align:top;
}
.settings-wide-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  margin-top:0;
}
.settings-wide-grid .settings-card-wide{
  grid-column:1 / -1;
  margin:0 0 16px;
  min-height:0;
}
.settings-wide-grid .print-station-row{
  display:grid;
  grid-template-columns:minmax(130px,.7fr) minmax(150px,1fr) minmax(240px,2fr) 96px auto;
  gap:8px;
  align-items:end;
}
.settings-wide-grid .print-station-row label{margin:0!important;align-self:center;}
.settings-wide-grid .print-station-row .button{width:auto;}
.settings-submit{margin: 16px 0 0;
clear:both;}
@media (max-width:1200px){
  .settings-masonry-grid{column-count:2;}
  .settings-wide-grid .print-station-row{grid-template-columns:1fr 1fr;}
}


/* v35.20 TIVA POS branding */
.wp-login-brand{width: 118px;
  height: 118px;
  margin: 0 auto 18px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
background: radial-gradient(circle at 50% 35%, rgba(213,163,43,.18), rgba(7,12,22,.98) 64%);
  border: 1px solid rgba(213,163,43,.22);
  box-shadow: 0 18px 45px rgba(7,12,22,.18), inset 0 0 0 1px rgba(255,255,255,.05);}
.wp-login-logo-img{width: 104px;
  height: 104px;
  display: block;
  object-fit: contain;
width:112px;height:112px;filter:drop-shadow(0 10px 16px rgba(0,0,0,.24));}
.wp-login-footer-note{width: 360px;
  max-width: 100%;
  margin: 18px auto 0;
  color: #646970;
  font-size: 13px;
  text-align: center;
font-weight:700;color:#1d2327;}
.wp-logo-block:before{content:"";width:34px;height:34px;border-radius:10px;background:url("../img/tiva-pos-mark.png") center/contain no-repeat;display:inline-block;margin-right:10px;box-shadow:0 0 0 1px rgba(255,255,255,.08)}
.wp-logo-block{padding: 18px 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
display:flex;align-items:center;gap:0;}


/* Supplier, purchase invoice, and admin list refinements. */
body.admin-page-supplier_edit .supplier-form-card,
body.admin-page-purchase_invoice_edit .purchase-card {
  max-width: none;
  border-radius: 6px;
  padding: 20px;
}

.purchase-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #1d2327;
  border-bottom: 1px solid #dcdcde;
  padding-bottom: 8px;
  margin: 0 0 14px;
}

.admin-list-controls,
.products-filter-bar {
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  margin: 12px 0 10px;
}

.admin-list-controls input[type="search"],
.admin-list-controls input[type="date"],
.admin-list-controls select,
.products-filter-bar input[type="search"],
.products-filter-bar select {
  width: auto;
  min-width: 160px;
  max-width: 260px;
  height: 36px;
  min-height: 36px;
  line-height: 1.4;
  padding: 6px 10px;
}

.admin-list-controls input[type="search"],
.products-filter-bar input[type="search"] {
  min-width: 280px;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
  color: #646970;
}

.pagination-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pagination-current {
  color: #1d2327;
  font-weight: 600;
  padding: 0 6px;
}

.admin-form-grid,
.supplier-form-grid,
.purchase-head-grid,
.purchase-new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-form-grid label,
.purchase-head-grid label,
.supplier-form-grid label,
.purchase-new-grid label {
  margin: 0;
}

body.admin-page-supplier_edit .supplier-form-card label,
body.admin-page-purchase_invoice_edit .purchase-card label {
  font-weight: 600;
  display: block;
}

.admin-form-grid input:not([type="checkbox"]):not([type="radio"]),
.admin-form-grid select,
.purchase-head-grid input:not([type="checkbox"]):not([type="radio"]),
.purchase-head-grid select,
.supplier-form-grid input:not([type="checkbox"]):not([type="radio"]),
.supplier-form-grid select,
.purchase-new-grid input:not([type="checkbox"]):not([type="radio"]),
.purchase-new-grid select {
  width: 100%;
  max-width: 100%;
  height: 38px;
  min-height: 38px;
  line-height: 1.4;
  padding: 7px 10px;
}

.supplier-name-field {
  max-width: 780px;
}

.purchase-notes {
  display: block;
  margin-top: 12px !important;
}

.purchase-scan-panel {
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  padding: 14px;
  margin: 10px 0 20px;
}

.purchase-scan-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.purchase-scan-input {
  max-width: 100% !important;
  min-height: 44px !important;
  font-size: 16px !important;
  border-color: #2271b1 !important;
  box-shadow: 0 0 0 1px rgba(34,113,177,.15);
  margin: 0 !important;
}

.purchase-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.purchase-result-item {
  text-align: left;
  width: 100%;
  border: 1px solid #c3c4c7;
  background: #fff;
  border-radius: 5px;
  padding: 10px 12px;
  cursor: pointer;
}

.purchase-result-item:hover,
.purchase-result-item:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

.purchase-result-item strong,
.purchase-result-item small {
  display: block;
}

.purchase-result-item small,
.purchase-result-empty {
  color: #646970;
}

.purchase-new-product {
  background: #fff;
  border: 1px solid #c3c4c7;
  border-left: 4px solid #2271b1;
  border-radius: 6px;
  padding: 14px;
  margin-top: 12px;
}

.purchase-panel-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.purchase-new-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.purchase-lines-wrap {
  border: 1px solid #c3c4c7;
  background: #fff;
}

.purchase-line-table {
  border: 0;
  margin: 0;
}

.purchase-line-table th,
.purchase-line-table td {
  vertical-align: middle;
}

.purchase-line-table td input {
  min-width: 96px;
  max-width: 150px !important;
  min-height: 34px;
  height: 34px;
  margin: 0 !important;
}

.purchase-line-table .pi-barcode {
  min-width: 140px;
  max-width: 180px !important;
}

.purchase-line-table .pi-stock,
.purchase-line-table .pi-total {
  white-space: nowrap;
  font-weight: 600;
}

.purchase-line-table td:first-child {
  min-width: 220px;
}

.purchase-bottom-bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0 4px;
}

.purchase-totals {
  background: #1d2327;
  color: #fff;
  border-radius: 6px;
  padding: 10px 14px;
  min-width: 220px;
  text-align: right;
}

.purchase-totals span {
  color: #c3c4c7;
  display: block;
  font-size: 12px;
}

.purchase-totals strong {
  font-size: 18px;
}

.products-category-heading td {
  background: #f0f0f1 !important;
  color: #1d2327;
  font-weight: 700;
  border-top: 1px solid #c3c4c7;
  border-bottom: 1px solid #c3c4c7;
}


.products-bulk-move-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 10px;padding:8px 0;border-top:1px solid #dcdcde;border-bottom:1px solid #dcdcde}.products-bulk-move-bar .bulk-selected-count{font-weight:600;color:#1d2327}.products-bulk-move-bar select{min-width:220px}

.quick-price-link {
  color: #2271b1;
  text-decoration: underline;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
}

.product-price-modal{display:none;position:fixed;inset:0;z-index:10090}.product-price-modal.is-open{display:block}.product-price-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}.product-price-modal__dialog{position:relative;background:#fff;width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 56px);overflow:auto;margin:36px auto;padding:22px;border:1px solid #c3c4c7;box-shadow:0 14px 34px rgba(0,0,0,.28);box-sizing:border-box;border-radius:4px}.product-price-modal__close{position:absolute;top:8px;right:10px;border:0;background:transparent;color:#646970;font-size:28px;line-height:1;cursor:pointer}.product-price-modal h2{margin:0 32px 4px 0}.quick-price-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;margin:14px 0}.quick-price-grid label,.quick-source-row label{font-weight:600}.quick-price-grid input,.quick-price-grid select,.quick-source-row input{display:block;width:100%;max-width:100%!important;margin-top:4px}.quick-source-prices{display:grid;gap:10px}.quick-source-row{display:grid;grid-template-columns:minmax(90px,120px) 1fr 1fr;gap:10px;align-items:end;padding:10px;border:1px solid #dcdcde;background:#f6f7f7}.quick-source-row strong{align-self:center}

@media (max-width: 780px) {
  .admin-list-controls input[type="search"],
  .products-filter-bar input[type="search"],
  .admin-list-controls select,
  .products-filter-bar select,
  .admin-list-controls input[type="date"],
  .products-bulk-move-bar select,
  .products-bulk-move-bar button {
    width: 100%;
    max-width: 100%;
  }
  .purchase-scan-row {
    grid-template-columns: 1fr;
  }
  .purchase-bottom-bar {
    align-items: stretch;
  }
  .purchase-totals {
    width: 100%;
    text-align: left;
  }
  .quick-price-grid,
  .quick-source-row {
    grid-template-columns: 1fr;
  }
  .product-price-modal__dialog {
    margin: 14px auto;
  }
}

/* wallet/customers admin cleanup patch */
.admin-simple-filters{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin:10px 0 12px;
}
.admin-simple-filters .alignleft.actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.admin-simple-filters input,
.admin-simple-filters select{
  min-height:32px;
}
.wallet-admin-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  margin:12px 0 16px;
}
.compact-settings-form .switch-line{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:0 16px 10px 0;
  min-height:32px;
}
.admin-form-grid-3,
.admin-form-grid-4{
  display:grid;
  gap:12px;
  margin:10px 0 12px;
}
.admin-form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.admin-form-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));}
.admin-form-grid-3 label,
.admin-form-grid-4 label{display:block;margin:0 0 4px;font-weight:600;}
.admin-form-grid-3 input,
.admin-form-grid-3 select,
.admin-form-grid-4 input,
.admin-form-grid-4 select{width:100%;min-height:32px;}
@media (max-width:1100px){.permissions-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}

  .admin-form-grid-4{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:782px){

  .settings-masonry-grid{column-count:1;}
  .settings-wide-grid .print-station-row{grid-template-columns:1fr;}


  .admin-simple-filters,
  .admin-simple-filters .alignleft.actions{align-items:stretch;}
  .admin-simple-filters input,
  .admin-simple-filters select,
  .admin-simple-filters .button{width:100%;}
  .admin-form-grid-3,
  .admin-form-grid-4{grid-template-columns:1fr;}
}

/* Mobile Stock Scanner camera modal */
.stock-camera-overlay{position:fixed;inset:0;z-index:100000;background:rgba(0,0,0,.72);display:flex;align-items:center;justify-content:center;padding:16px}
.stock-camera-dialog{width:min(520px,96vw);background:#111827;color:#fff;border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:14px;box-shadow:0 24px 70px rgba(0,0,0,.45)}
.stock-camera-dialog video{width:100%;max-height:60vh;border-radius:12px;background:#000;display:block;margin-top:10px}
.stock-camera-close{float:right}
.stock-camera-scan-btn{margin-left:6px}
@media(max-width:640px){.stock-camera-scan-btn{display:block;margin:8px 0 0;width:100%}.stock-scan-form .button-primary{width:100%}}
