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

: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;
}

* {
  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 {
  padding: 18px 14px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.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);
}

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

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

.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;
}

.wp-login-box h1 {
  font-size: 24px;
  font-weight: 400;
  margin: 0 0 10px;
}

.wp-login-box label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.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;
}

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

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

@media (max-width: 900px) {
  body.wp-admin-body,
  .wp-admin-body {
    overflow-x: auto;
  }

  .wpadminbar {
    position: relative;
  }

  .wpbar-right {
    display: none;
  }

  .wpwrap {
    padding-top: 0;
  }

  .wp-sidebar {
    position: relative;
    top: auto;
    bottom: auto;
    width: auto;
    min-height: auto;
  }

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

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

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

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

  .wrap {
    max-width: none;
  }

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

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

  .wrap {
    overflow-x: auto;
  }
}

@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 */
@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;
  }
}

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

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

.table-scroll {
  width: 100%;
  overflow-x: auto;
  clear: both;
}

.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;
}

.current-image {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--wp-muted);
  flex-wrap: wrap;
}

.thumb-large {
  width: 100px;
  height: 80px;
  object-fit: cover;
  border: 1px solid var(--wp-border-soft);
  background: #fff;
}

.addon-check-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px 12px;
  max-width: 760px;
}

.addon-check-list label {
  margin: 0 !important;
}

.panel-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.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-submit {
  margin: 16px 0 0;
}

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

.wp-list-table .status-badge {
  margin-top: 1px;
}

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

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

@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;
  }
}


.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}.table-scroll{overflow:auto}.description{color:#646970;font-size:13px;margin:4px 0 8px}.status-paid{background:#d1e7dd;color:#0f5132}.thumb-large{width:120px;max-height:90px;object-fit:cover;border:1px solid #dcdcde;background:#fff;border-radius:3px}.current-image{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(180px,1fr));gap:6px 14px}.addon-check-list label{margin:0!important}.wp-list-table .link-button{line-height:inherit}

/* Live order updates */
.admin-sound-toggle {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin: 4px 6px 4px 0;
  padding: 0 9px;
  border: 1px solid #72aee6;
  border-radius: 3px;
  background: #2271b1;
  color: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 22px;
  cursor: pointer;
}

.admin-sound-toggle:hover,
.admin-sound-toggle:focus {
  background: #135e96;
  border-color: #8ec5ff;
  color: #fff;
  outline: none;
}

.admin-sound-toggle.is-off {
  background: #2c3338;
  border-color: #646970;
  color: #c3c4c7;
}

.admin-live-orders-note {
  clear: both;
  margin-top: 10px;
  border-left-color: #00a32a;
}

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

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

.admin-live-order-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 13px 15px;
  background: #1d2327;
  color: #fff;
  border-left: 4px solid #00a32a;
  box-shadow: 0 8px 24px rgba(0,0,0,.22);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.admin-live-order-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.admin-live-order-toast strong,
.admin-live-order-toast span {
  display: block;
}

.admin-live-order-toast span {
  margin-top: 3px;
  color: #c3c4c7;
  font-size: 12px;
}

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

@media (max-width: 900px) {
  .admin-sound-toggle {
    margin-left: 8px;
  }

  .admin-live-order-toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

/* Clearer live-order ringing state */
.admin-sound-toggle.is-ringing {
  background: #d63638;
  border-color: #ff8a8a;
  color: #fff;
  animation: adminRingingPulse 1s ease-in-out infinite;
}

@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); }
}

.admin-live-order-toast.is-visible {
  pointer-events: auto;
}

.admin-live-order-toast.is-ringing {
  border-left-color: #d63638;
}

.admin-live-order-toast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.admin-live-order-toast .button {
  min-height: 28px;
  line-height: 26px;
  padding: 0 10px;
  border-radius: 3px;
  text-decoration: none;
}

.admin-live-order-toast .admin-stop-ringing {
  background: #f6f7f7;
  border-color: #c3c4c7;
  color: #1d2327;
}

.admin-live-order-toast .admin-stop-ringing:hover,
.admin-live-order-toast .admin-stop-ringing:focus {
  background: #fff;
  border-color: #72aee6;
  color: #135e96;
}

/* Sound enable state: browser requires one click before audio can play */
.admin-sound-toggle.is-needs-enable {
  background: #dba617;
  border-color: #f0c33c;
  color: #1d2327;
  font-weight: 600;
  animation: adminEnableSoundPulse 1.2s ease-in-out infinite;
}

.admin-sound-toggle.is-needs-enable:hover,
.admin-sound-toggle.is-needs-enable:focus {
  background: #f0c33c;
  border-color: #ffe08a;
  color: #1d2327;
}

@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}
.pos-shell{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}.pos-products-panel,.pos-cart-panel{margin-top:12px}.pos-toolbar{display:flex;gap:10px;align-items:flex-start;justify-content:space-between;margin-bottom:14px}.pos-toolbar input{max-width:280px!important}.pos-cats{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.pos-cat.active{background:#2271b1;color:#fff;border-color:#2271b1}.pos-products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}.pos-product-card{background:#fff;border:1px solid #c3c4c7;border-radius:4px;min-height:150px;padding:10px;text-align:left;cursor:pointer;display:flex;flex-direction:column;gap:8px;box-shadow:0 1px 1px rgba(0,0,0,.04)}.pos-product-card:hover{border-color:#2271b1;box-shadow:0 0 0 1px #2271b1}.pos-product-card img{height:76px;width:100%;object-fit:contain;background:#f6f7f7;border:1px solid #dcdcde;border-radius:4px}.pos-product-card span{font-weight:600;color:#1d2327}.pos-product-card b{color:#2271b1}.pos-cart-list{border:1px solid #dcdcde;background:#f6f7f7;min-height:90px;margin-bottom:12px}.pos-cart-row{display:flex;justify-content:space-between;gap:10px;padding:10px;border-bottom:1px solid #dcdcde;background:#fff}.pos-cart-row:last-child{border-bottom:0}.pos-cart-row small{display:block;color:#646970;margin-top:2px}.pos-cart-row button{min-width:28px;height:28px;border:1px solid #c3c4c7;background:#f6f7f7;border-radius:3px;cursor:pointer}.pos-total-box{display:flex;justify-content:space-between;align-items:center;background:#1d2327;color:#fff;padding:14px;border-radius:4px;margin:14px 0}.pos-total-box b{font-size:20px}.pos-place-btn{width:100%;justify-content:center;text-align:center}
@media(max-width:1100px){.pos-shell{grid-template-columns:1fr}.pos-cart-panel{position:static}.permissions-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}}
@media(max-width:700px){.permissions-grid{grid-template-columns:1fr}.pos-toolbar{display:block}.pos-cats{justify-content:flex-start;margin-top:10px}.pos-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

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

.wp-logo-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.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;
}

.pos-products-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.pos-categories-sidebar {
  position: sticky;
  top: calc(var(--wp-adminbar-h) + 14px);
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: calc(100vh - var(--wp-adminbar-h) - 90px);
  overflow: auto;
  padding: 8px;
  background: #f6f7f7;
  border: 1px solid #dcdcde;
  border-radius: 4px;
}

.pos-categories-sidebar .pos-cat {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  min-height: 34px;
  white-space: normal;
}

.pos-products-area {
  min-width: 0;
}

.pos-product-card small {
  color: #646970;
  line-height: 1.2;
}

.pos-delivery-line,
.invoice-delivery-action {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pos-delivery-line input,
.invoice-delivery-action input {
  max-width: 135px !important;
  width: 135px !important;
}

.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) {
  .pos-products-layout {
    grid-template-columns: 145px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  body.wp-admin-body,
  .wp-admin-body {
    overflow-x: hidden;
  }

  .wpadminbar {
    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: 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: 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: 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-left-color: var(--wp-blue-light);
  }
}

@media (max-width: 760px) {
  .pos-products-layout {
    grid-template-columns: 1fr;
  }

  .pos-categories-sidebar {
    position: static;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
  }

  .pos-categories-sidebar .pos-cat {
    width: auto;
    min-width: 105px;
    justify-content: center;
    text-align: center;
  }

  .pos-delivery-line input,
  .invoice-delivery-action input {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* V9: product flags and POS popular category */
.product-flags{white-space:normal}.product-flags .status-badge{margin:0 3px 3px 0}.pos-categories-sidebar .pos-cat[data-cat="popular"]{font-weight:600}.pos-product-card[data-popular="1"]{border-color:#72aee6}.pos-product-card[data-popular="1"] small{color:#2271b1}

/* V10: POS change field */
.pos-change-line{display:grid;gap:6px;margin:0 0 12px;}
.pos-change-due{display:block;color:#646970;font-size:13px;margin-top:4px;}
.pos-change-due.is-positive{color:#0f5132;font-weight:600;}

/* V11: POS modifiers popup, barcode scanner, and 80mm mini printer */
.pos-toolbar-grid{display:grid;grid-template-columns:220px minmax(220px,1fr);gap:10px;align-items:center;justify-content:stretch}.pos-toolbar-grid input{max-width:100%!important}.pos-barcode-input{border-color:#2271b1!important;box-shadow:0 0 0 1px rgba(34,113,177,.15);font-weight:600}.pos-print-option{display:flex!important;align-items:center;gap:8px;margin:10px 0!important;font-weight:600!important}.pos-print-option input{width:auto!important;min-height:auto!important}.pos-cart-row strong{display:block;margin-top:5px;color:#1d2327}.pos-item-modal{display:none;position:fixed;inset:0;z-index:10050}.pos-item-modal.is-open{display:block}.pos-item-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}.pos-item-modal__dialog{position:relative;background:#fff;width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 56px);overflow:auto;margin:28px auto;padding:22px;border:1px solid #c3c4c7;box-shadow:0 12px 30px rgba(0,0,0,.28);box-sizing:border-box}.pos-item-modal__close{position:absolute;top:8px;right:10px;border:0;background:transparent;color:#646970;font-size:28px;line-height:1;cursor:pointer}.pos-item-modal h2{margin:0 32px 8px 0;font-size:22px;font-weight:400}.pos-modal-base{margin:0 0 14px;color:#646970}.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}.pos-modal-notes-label{margin-top:12px!important}.pos-modal-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0}.pos-modal-qty{display:inline-flex;align-items:center;border:1px solid #c3c4c7;background:#fff}.pos-modal-qty button{width:36px;height:34px;border:0;background:#f6f7f7;cursor:pointer;font-size:18px}.pos-modal-qty b{min-width:42px;text-align:center}.pos-modal-total{font-size:14px}.pos-modal-total b{font-size:20px;color:#2271b1}.pos-modal-add-btn{width:100%;text-align:center;justify-content:center}.mini-receipt{display:none}.invoice-actions .button{margin-right:4px}
@media(max-width:760px){.pos-toolbar-grid{grid-template-columns:1fr}.pos-item-modal__dialog{margin:14px auto;max-height:calc(100vh - 28px);padding:18px}.pos-modal-bottom{align-items:stretch;flex-direction:column}.pos-modal-total{display:flex;justify-content:space-between;align-items:center}}
@media print{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}}

/* V12 POS / invoice / live order refinements */
.admin-fullscreen-toggle,
.admin-exit-btn {
  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-fullscreen-toggle:hover,
.admin-fullscreen-toggle:focus,
.admin-exit-btn:hover,
.admin-exit-btn:focus {
  background: var(--wp-dark-hover);
  color: var(--wp-blue-light);
  outline: none;
}
.status-hold {
  background: #e7d7ff;
  color: #3b176f;
}
.pos-cart-panel {
  position: static;
  top: auto;
}
.pos-customer-fields textarea {
  min-height: 58px;
}
.pos-order-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 12px 0;
}
.pos-order-meta-grid label {
  margin-bottom: 4px;
}
.pos-order-meta-grid input,
.pos-order-meta-grid select {
  max-width: 100% !important;
}
.pos-order-meta-grid .pos-delivery-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}
.pos-order-meta-grid .pos-delivery-line .button {
  padding-left: 7px;
  padding-right: 7px;
}
.pos-change-due {
  display: block;
  margin-top: 4px;
  color: var(--wp-muted);
  font-size: 12px;
}
.pos-change-due.is-positive {
  color: var(--wp-green);
  font-weight: 600;
}
.pos-cart-list {
  max-height: 274px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.pos-cart-list .description {
  padding: 12px;
  margin: 0;
}
.admin-live-order-toast-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: #f6f7f7;
  border: 1px solid var(--wp-border-soft);
  margin: 8px 0;
}
.admin-live-order-toast-details div {
  min-width: 0;
}
.admin-live-order-toast-details span {
  display: block;
  color: var(--wp-muted);
  font-size: 11px;
  margin: 0 0 2px;
}
.admin-live-order-toast-details b {
  display: block;
  color: var(--wp-text);
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 782px) {
  .pos-order-meta-grid,
  .admin-live-order-toast-details {
    grid-template-columns: 1fr;
  }
  .pos-cart-panel {
    position: static;
  }
}
.status-on-the-way { background:#cff4fc; color:#055160; }


/* V13: POS fullscreen cashier mode */
html.admin-fullscreen-mode,
html.admin-fullscreen-mode body.wp-admin-body {
  height: 100%;
  overflow: hidden;
}

html.admin-fullscreen-mode .wpadminbar {
  height: var(--wp-adminbar-h);
  padding: 0 10px;
}

html.admin-fullscreen-mode .wpbar-left > *,
html.admin-fullscreen-mode .wpbar-right > * {
  display: none !important;
}

html.admin-fullscreen-mode .wpbar-left a[href^="orders.php"],
html.admin-fullscreen-mode #admin-order-sound-toggle,
html.admin-fullscreen-mode #admin-fullscreen-toggle,
html.admin-fullscreen-mode .wpbar-user {
  display: inline-flex !important;
}

html.admin-fullscreen-mode .wpbar-left {
  flex: 1 1 auto;
}

html.admin-fullscreen-mode .wpbar-right {
  flex: 0 0 auto;
}

html.admin-fullscreen-mode .wpbar-user {
  color: #f0f0f1;
  font-weight: 600;
}

html.admin-fullscreen-mode .wp-sidebar,
html.admin-fullscreen-mode .admin-sidebar-overlay,
html.admin-fullscreen-mode .admin-mobile-menu-toggle,
html.admin-fullscreen-mode .admin-sidebar-close {
  display: none !important;
}

html.admin-fullscreen-mode .wpwrap {
  padding-top: var(--wp-adminbar-h);
  min-height: 100vh;
}

html.admin-fullscreen-mode .wp-content {
  margin-left: 0;
  padding: 10px;
  height: calc(100vh - var(--wp-adminbar-h));
  overflow: auto;
}

html.admin-fullscreen-mode .wrap {
  height: 100%;
}

html.admin-fullscreen-mode .wp-footer-note,
html.admin-fullscreen-mode .wrap > h1,
html.admin-fullscreen-mode .wp-heading-inline,
html.admin-fullscreen-mode .page-title-action,
html.admin-fullscreen-mode .wrap > .hint,
html.admin-fullscreen-mode .admin-live-orders-note {
  display: none !important;
}

html.admin-fullscreen-mode body.admin-page-pos .wp-content {
  overflow: hidden;
  padding: 8px 390px 8px 8px;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-shell {
  display: block;
  height: 100%;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-products-panel {
  margin: 0;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-products-layout {
  flex: 1 1 auto;
  min-height: 0;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-products-area,
html.admin-fullscreen-mode body.admin-page-pos .pos-products-grid {
  min-height: 0;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-products-area {
  overflow: auto;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-cart-panel {
  position: fixed;
  top: var(--wp-adminbar-h);
  right: 0;
  bottom: 0;
  width: 380px;
  margin: 0;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
  overflow-y: auto;
  z-index: 9997;
  box-shadow: -4px 0 16px rgba(0,0,0,.10);
}

html.admin-fullscreen-mode body.admin-page-pos .pos-cart-list {
  max-height: 245px;
}

html.admin-fullscreen-mode body.admin-page-orders .wp-content {
  padding: 10px;
}

html.admin-fullscreen-mode body.admin-page-orders .wp-list-table {
  margin-top: 0;
}

@media (max-width: 900px) {
  html.admin-fullscreen-mode body.admin-page-pos .wp-content {
    overflow: auto;
    padding: 8px;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-products-panel {
    height: auto;
    overflow: visible;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-cart-panel {
    position: static;
    width: auto;
    border: 1px solid var(--wp-border);
    border-radius: 0;
    box-shadow: none;
    margin-top: 10px;
  }
}


/* V14: fullscreen POS header, barcode focus guard, and responsive fixed cart */
html.admin-fullscreen-mode body.admin-page-pos {
  --pos-cart-w: clamp(340px, 24vw, 430px);
}

html.admin-fullscreen-mode .wpbar-left a[href^="pos.php"],
html.admin-fullscreen-mode .wpbar-left a[href^="orders.php"],
html.admin-fullscreen-mode #admin-order-sound-toggle,
html.admin-fullscreen-mode #admin-fullscreen-toggle,
html.admin-fullscreen-mode .wpbar-user {
  display: inline-flex !important;
}

html.admin-fullscreen-mode .wpbar-left a[href^="pos.php"],
html.admin-fullscreen-mode .wpbar-left a[href^="orders.php"] {
  font-weight: 600;
}

html.admin-fullscreen-mode body.admin-page-pos .wp-content {
  padding: 8px calc(var(--pos-cart-w) + 12px) 8px 8px;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-cart-panel {
  width: var(--pos-cart-w);
  height: calc(100vh - var(--wp-adminbar-h));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 14px;
  box-sizing: border-box;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-cart-panel h2 {
  flex: 0 0 auto;
  margin-top: 0;
}

html.admin-fullscreen-mode body.admin-page-pos #posForm {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-cart-list {
  flex: 0 0 auto;
  max-height: min(245px, 24vh);
  min-height: 92px;
  overflow-y: auto;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-submit-stack {
  margin-top: auto;
  flex: 0 0 auto;
  background: #fff;
  padding-top: 8px;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-total-box {
  margin: 8px 0 10px;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-place-btn {
  min-height: 36px;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-customer-fields textarea,
html.admin-fullscreen-mode body.admin-page-pos #posForm > textarea[name="notes"] {
  min-height: 54px;
  max-height: 92px;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-print-option {
  margin: 8px 0 !important;
}

html.admin-fullscreen-mode body.admin-page-pos .pos-toolbar-grid {
  grid-template-columns: minmax(180px, 270px) minmax(240px, 1fr);
}

html.admin-fullscreen-mode body.admin-page-pos .pos-products-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  align-content: start;
}

@media (min-width: 1900px) {
  html.admin-fullscreen-mode body.admin-page-pos {
    --pos-cart-w: clamp(400px, 22vw, 520px);
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-cart-list {
    max-height: min(330px, 30vh);
  }
}

@media (max-height: 780px) {
  html.admin-fullscreen-mode body.admin-page-pos .pos-cart-panel {
    padding: 10px;
    overflow-y: auto;
  }
  html.admin-fullscreen-mode body.admin-page-pos #posForm {
    flex: 0 0 auto;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-customer-fields textarea,
  html.admin-fullscreen-mode body.admin-page-pos #posForm > textarea[name="notes"] {
    min-height: 42px;
    max-height: 58px;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-order-meta-grid {
    gap: 7px 8px;
    margin: 8px 0;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-cart-list {
    max-height: 180px;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-submit-stack {
    margin-top: 8px;
  }
}

@media (max-width: 1180px) {
  html.admin-fullscreen-mode body.admin-page-pos {
    --pos-cart-w: clamp(320px, 34vw, 390px);
  }
}

@media (max-width: 900px) {
  html.admin-fullscreen-mode body.admin-page-pos .wp-content {
    padding: 8px;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-cart-panel {
    position: static;
    width: auto;
    height: auto;
    max-height: none;
    overflow: visible;
    display: block;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-submit-stack {
    margin-top: 10px;
  }
}

/* V15: cashier full-window POS, shift report, and mini-printer handover */
.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;
}
.wpbar-shift {
  display: inline-flex;
  align-items: center;
  height: var(--wp-adminbar-h);
  padding: 0 8px;
  color: #c3c4c7;
  font-weight: 600;
}
html.admin-fullscreen-mode .wpbar-left #admin-shift-report-button,
html.admin-fullscreen-mode .wpbar-right a[href="logout.php"],
html.admin-fullscreen-mode .wpbar-shift {
  display: inline-flex !important;
}
html.admin-fullscreen-mode .wpbar-right a[href="logout.php"] {
  color: #f0f0f1;
  font-weight: 600;
}
html.admin-fullscreen-mode .wpbar-right a[href="logout.php"]:hover { color: #72aee6; }
.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 print {
  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; }
}

/* V16: cashier kiosk/fullscreen fixes, sticky POS total, customer popup */
.pos-customer-compact {
  margin-bottom: 10px;
}
.pos-customer-trigger {
  cursor: pointer;
  background: #fff !important;
}
.pos-customer-trigger.has-customer-details {
  border-color: #2271b1 !important;
  box-shadow: 0 0 0 1px rgba(34,113,177,.18) !important;
  font-weight: 600;
}
.pos-customer-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10080;
}
.pos-customer-modal.is-open { display: block; }
.pos-customer-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
}
.pos-customer-modal__dialog {
  position: relative;
  width: min(460px, calc(100vw - 28px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  margin: 24px auto;
  background: #fff;
  border: 1px solid var(--wp-border);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
  padding: 20px;
  box-sizing: border-box;
}
.pos-customer-modal__dialog h2 {
  margin: 0 34px 8px 0;
  font-weight: 500;
  font-size: 22px;
}
.pos-customer-modal__dialog label { margin-top: 10px; }
.pos-customer-modal__dialog input,
.pos-customer-modal__dialog textarea { max-width: 100% !important; }
.pos-customer-modal__dialog textarea { min-height: 86px; }
.pos-customer-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #646970;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.pos-customer-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}
.pos-order-meta-grid > div > input#posDelivery {
  max-width: 100% !important;
  width: 100% !important;
}
html.admin-fullscreen-mode body.admin-page-pos .pos-cart-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
html.admin-fullscreen-mode body.admin-page-pos .pos-cart-list {
  flex: 0 0 auto;
  max-height: min(230px, 26vh);
  min-height: 84px;
  overflow-y: auto;
}
html.admin-fullscreen-mode body.admin-page-pos #posForm {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  scrollbar-gutter: stable;
}
html.admin-fullscreen-mode body.admin-page-pos .pos-submit-stack {
  position: sticky;
  bottom: 0;
  z-index: 3;
  flex: 0 0 auto;
  margin-top: auto;
  background: #fff;
  padding: 8px 0 4px;
  box-shadow: 0 -8px 12px rgba(255,255,255,.95);
}
html.admin-fullscreen-mode body.admin-page-pos .pos-total-box {
  margin: 0 0 8px;
}
html.admin-fullscreen-mode body.admin-page-pos .pos-place-btn {
  min-height: 38px;
  width: 100%;
}
html.admin-fullscreen-mode body.admin-page-pos .pos-customer-fields,
html.admin-fullscreen-mode body.admin-page-pos .pos-order-meta-grid,
html.admin-fullscreen-mode body.admin-page-pos #posForm > label,
html.admin-fullscreen-mode body.admin-page-pos #posForm > textarea,
html.admin-fullscreen-mode body.admin-page-pos .pos-print-option {
  flex: 0 0 auto;
}
html.admin-fullscreen-mode body.admin-page-pos #posForm > textarea[name="notes"] {
  min-height: 48px;
  max-height: 72px;
}
html.admin-fullscreen-mode body.admin-page-pos .pos-print-option {
  margin: 6px 0 8px !important;
}
@media (min-width: 1600px) and (min-height: 850px) {
  html.admin-fullscreen-mode body.admin-page-pos .pos-cart-list {
    max-height: min(340px, 34vh);
  }
}
@media (max-height: 740px) {
  html.admin-fullscreen-mode body.admin-page-pos .pos-cart-panel {
    padding: 8px;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-cart-panel h2 {
    margin-bottom: 8px;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-cart-list {
    max-height: 150px;
    min-height: 70px;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-order-meta-grid {
    gap: 6px 8px;
    margin: 7px 0;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-order-meta-grid label,
  html.admin-fullscreen-mode body.admin-page-pos .pos-customer-fields label,
  html.admin-fullscreen-mode body.admin-page-pos #posForm > label {
    margin-bottom: 2px;
  }
  html.admin-fullscreen-mode body.admin-page-pos #posForm > textarea[name="notes"] {
    min-height: 38px;
    max-height: 48px;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-total-box {
    padding: 10px 12px;
  }
}
@media (max-width: 900px) {
  html.admin-fullscreen-mode body.admin-page-pos #posForm {
    overflow-y: visible;
    display: block;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-submit-stack {
    position: sticky;
    bottom: 0;
  }
}

/* V17: safer cashier fullscreen navigation, POS order-type fields, and Hold Orders modal */
.pos-field.is-hidden { display: none !important; }
.pos-submit-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.pos-submit-actions .button,
.pos-submit-actions .button-primary {
  width: 100%;
  min-height: 36px;
}
.pos-hold-btn {
  border-color: #996800;
  color: #7a4f00;
  background: #fff8e5;
}
.pos-hold-btn:hover,
.pos-hold-btn:focus {
  border-color: #7a4f00;
  color: #5c3b00;
  background: #fff3c4;
}
.pos-hold-modal,
.pos-hold-modal__backdrop {
  position: fixed;
  inset: 0;
  display: none;
}
.pos-hold-modal.is-open { display: block; z-index: 10050; }
.pos-hold-modal__backdrop {
  display: block;
  background: rgba(0,0,0,.52);
}
.pos-hold-modal__dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: min(760px, calc(100vw - 28px));
  max-height: min(760px, calc(100vh - 50px));
  overflow: auto;
  background: #fff;
  border: 1px solid var(--wp-border);
  box-shadow: 0 18px 54px rgba(0,0,0,.28);
  padding: 20px;
  box-sizing: border-box;
}
.pos-hold-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #646970;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.pos-hold-list { display: grid; gap: 10px; margin-top: 12px; }
.pos-hold-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--wp-border-soft);
  background: #f6f7f7;
}
.pos-hold-row small { display: block; color: var(--wp-muted); margin-top: 2px; }
.pos-hold-row strong { color: var(--wp-text); }
html.admin-fullscreen-mode body.admin-page-pos .pos-submit-actions {
  gap: 7px;
}
html.admin-fullscreen-mode body.admin-page-pos .pos-submit-actions .button,
html.admin-fullscreen-mode body.admin-page-pos .pos-submit-actions .button-primary {
  min-height: 34px;
}
html.admin-fullscreen-mode body.admin-page-pos .pos-order-meta-grid {
  align-items: start;
}
@media (max-height: 740px) {
  html.admin-fullscreen-mode body.admin-page-pos .pos-submit-actions {
    grid-template-columns: 1fr 1fr;
  }
  html.admin-fullscreen-mode body.admin-page-pos .pos-submit-actions .pos-place-btn {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .pos-hold-row { grid-template-columns: 1fr; }
}

/* 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;
}
.pos-field-unpaid select option[value=""] {
  color: #1d2327;
}
#posTableNumber option[data-available="0"] {
  color: #8a6d00;
  background: #fff4ce;
}
#posTableNumber option[data-available="1"] {
  color: #0f5132;
}
.pos-hold-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 12px;
}
.pos-hold-filters .button.active {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
}
.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}.pos-product-card.is-out-of-stock{opacity:.55;filter:grayscale(.35);cursor:not-allowed}.pos-product-card .stock-badge{display:inline-block;margin-top:4px;font-style:normal;font-size:11px;color:#646970}.pos-product-card.is-out-of-stock .stock-badge{color:#b32d2e}.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}

/* 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 */
.pos-field.is-hidden,
.pos-field-delivery-only.is-hidden { display:none!important; }
.admin-touch-mode body,
body.admin-touch-mode { touch-action: manipulation; }
body.admin-touch-mode .pos-product-card { min-height: 178px; padding: 14px; border-radius: 12px; }
body.admin-touch-mode .pos-product-card span { font-size: 15px; }
body.admin-touch-mode .pos-product-card b { font-size: 16px; }
body.admin-touch-mode .pos-cat,
body.admin-touch-mode .button,
body.admin-touch-mode .button-primary,
body.admin-touch-mode button { min-height: 38px; }
body.admin-touch-mode .pos-cart-row button { min-width: 38px; height: 38px; font-size: 18px; }
body.admin-touch-mode .pos-submit-actions .button,
body.admin-touch-mode .pos-submit-actions .button-primary { min-height: 44px; }
.pos-touch-keypad{display:none;position:fixed;inset:0;z-index:10080}.pos-touch-keypad.is-open{display:block}.pos-touch-keypad__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.45)}.pos-touch-keypad__dialog{position:relative;width:min(340px,calc(100vw - 24px));background:#fff;border:1px solid #c3c4c7;box-shadow:0 14px 32px rgba(0,0,0,.28);margin:8vh auto 0;padding:18px;border-radius:8px;box-sizing:border-box}.pos-touch-keypad__dialog h2{margin:0 0 10px;font-size:20px}.pos-touch-keypad__dialog input{font-size:24px;text-align:right;max-width:100%!important;margin-bottom:12px}.pos-touch-keypad__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.pos-touch-keypad__grid button{height:54px;font-size:22px;border:1px solid #c3c4c7;background:#f6f7f7;border-radius:6px;cursor:pointer}.pos-touch-keypad__actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.pos-touch-keypad__actions .button,.pos-touch-keypad__actions .button-primary{width:100%;text-align:center;min-height:42px}.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}@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}}

/* 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 {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-direction: column;
  padding: 7vh 20px 28px;
}

.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);
}

.wp-login-logo-img {
  width: 104px;
  height: 104px;
  display: block;
  object-fit: contain;
}

.wp-login-logo {
  display: none;
}

.wp-login-box {
  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 {
  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;
  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%;
  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-footer-note {
  width: 360px;
  max-width: 100%;
  margin: 18px auto 0;
  color: #646970;
  font-size: 13px;
  text-align: center;
}

.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 */
body.admin-cashier-panel{background:#0d1116;color:#f4f7fb}
body.admin-cashier-panel .wpadminbar{background:#111820;border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 10px 30px rgba(0,0,0,.28)}
body.admin-cashier-panel .wpbar-brand,body.admin-cashier-panel .wpadminbar a,body.admin-cashier-panel .wpbar-user{color:#f4f7fb}
body.admin-cashier-panel .wpwrap{background:radial-gradient(circle at 60% 0%,rgba(64,78,91,.24),transparent 34%),#0d1116}
body.admin-cashier-panel .wp-sidebar{background:#111820;border-right:1px solid rgba(255,255,255,.08);box-shadow:18px 0 55px rgba(0,0,0,.2)}
body.admin-cashier-panel .wp-logo-block{border-bottom:1px solid rgba(255,255,255,.08)}
body.admin-cashier-panel .wp-logo-block strong,body.admin-cashier-panel .wp-logo-block span{color:#fff}
body.admin-cashier-panel .wp-sidebar a{color:#dbe5f2;border-radius:12px}
body.admin-cashier-panel .wp-sidebar a.active,body.admin-cashier-panel .wp-sidebar a:hover{background:#243142;color:#fff}
body.admin-cashier-panel .wrap h1,body.admin-cashier-panel .wrap h2{color:#fff}
body.admin-cashier-panel .hint,body.admin-cashier-panel .description{color:#aeb9c7!important}
body.admin-cashier-panel .box,body.admin-cashier-panel .stat,body.admin-cashier-panel .wp-list-table,body.admin-cashier-panel .shift-report-card,body.admin-cashier-panel .notice{background:#121821!important;border:1px solid rgba(255,255,255,.1)!important;border-radius:16px!important;color:#f4f7fb!important;box-shadow:0 18px 50px rgba(0,0,0,.25)}
body.admin-cashier-panel .wp-list-table th{background:#0f151e!important;color:#c8d2df!important;border-color:rgba(255,255,255,.08)!important}
body.admin-cashier-panel .wp-list-table td{background:#121821!important;color:#f4f7fb!important;border-color:rgba(255,255,255,.07)!important}
body.admin-cashier-panel .wp-list-table tr:hover td{background:#182231!important}
body.admin-cashier-panel a.row-title{color:#8fb4ff!important}
body.admin-cashier-panel .button,body.admin-cashier-panel button.button{background:#202833!important;border:1px solid rgba(255,255,255,.14)!important;color:#fff!important;border-radius:12px!important;box-shadow:none!important}
body.admin-cashier-panel .button-primary,body.admin-cashier-panel .wp-btn-primary{background:#0b8f3a!important;border-color:#12b950!important;color:#fff!important;border-radius:12px!important}
body.admin-cashier-panel input,body.admin-cashier-panel select,body.admin-cashier-panel textarea{background:#0c1118!important;border:1px solid rgba(255,255,255,.12)!important;color:#fff!important;border-radius:10px!important}
body.admin-cashier-panel .shift-page-head{background:#121821;border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:16px;margin-bottom:16px;color:#fff}
body.admin-cashier-panel .shift-page-actions{display:flex;gap:8px;flex-wrap:wrap}

/* V9 cashier panel final polish: match POS dark colors, readable reports, active filters */
body.admin-cashier-panel{
  --pos-bg:#0b1016;
  --pos-panel:#121821;
  --pos-panel-2:#171f2a;
  --pos-line:rgba(255,255,255,.10);
  --pos-text:#f8fbff;
  --pos-muted:#aeb9c7;
  --pos-blue:#8fb4ff;
  --pos-green:#0b9438;
  background:radial-gradient(circle at 65% -20%,rgba(99,113,124,.20),transparent 38%),#0b1016!important;
  color:var(--pos-text)!important;
}
body.admin-cashier-panel .wpadminbar,
body.admin-cashier-panel .wp-sidebar,
body.admin-cashier-panel .wp-content,
body.admin-cashier-panel .wrap{
  background:transparent!important;
  color:var(--pos-text)!important;
}
body.admin-cashier-panel .wpadminbar{background:#101720!important;border-bottom:1px solid var(--pos-line)!important;box-shadow:0 12px 34px rgba(0,0,0,.35)!important;}
body.admin-cashier-panel .wpadminbar a,
body.admin-cashier-panel .wpadminbar button,
body.admin-cashier-panel .wpbar-user,
body.admin-cashier-panel .wpbar-shift{color:#fff!important;font-weight:800!important;}
body.admin-cashier-panel .wpadminbar a:hover,
body.admin-cashier-panel .wpadminbar a.active{color:#8fb4ff!important;}
body.admin-cashier-panel .box,
body.admin-cashier-panel .order-period-filters,
body.admin-cashier-panel .notice,
body.admin-cashier-panel .wp-list-table{
  background:#121821!important;
  border:1px solid var(--pos-line)!important;
  border-radius:16px!important;
  color:var(--pos-text)!important;
  box-shadow:0 18px 55px rgba(0,0,0,.24)!important;
}
body.admin-cashier-panel .wp-list-table{border-radius:0!important;border-collapse:collapse!important;overflow:hidden!important;}
body.admin-cashier-panel .wp-list-table th{background:#0f151e!important;color:#dfe8f4!important;border-color:var(--pos-line)!important;font-weight:900!important;}
body.admin-cashier-panel .wp-list-table td{background:#101720!important;color:#f8fbff!important;border-color:rgba(255,255,255,.07)!important;}
body.admin-cashier-panel .wp-list-table tr:hover td{background:#172131!important;}
body.admin-cashier-panel .subsubsub,
body.admin-cashier-panel .order-status-filters{color:#64748b!important;}
body.admin-cashier-panel .subsubsub a,
body.admin-cashier-panel .order-status-filters a,
body.admin-cashier-panel .order-date-tabs a{
  color:#8fb4ff!important;
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:3px 8px;
  border-radius:999px;
  text-decoration:none!important;
  border:1px solid transparent;
}
body.admin-cashier-panel .subsubsub a.current,
body.admin-cashier-panel .order-status-filters a.current,
body.admin-cashier-panel .order-date-tabs a.current{
  color:#fff!important;
  background:linear-gradient(180deg,#243142,#151d28)!important;
  border-color:rgba(143,180,244,.45)!important;
  box-shadow:inset 0 0 0 1px rgba(143,180,244,.18)!important;
  font-weight:900!important;
}
body.admin-cashier-panel .order-period-form label,
body.admin-cashier-panel .description,
body.admin-cashier-panel .count{color:var(--pos-muted)!important;}
body.admin-cashier-panel .button,
body.admin-cashier-panel button.button,
body.admin-cashier-panel .admin-bar-button,
body.admin-cashier-panel .admin-fullscreen-toggle,
body.admin-cashier-panel .admin-sound-toggle{
  background:linear-gradient(180deg,#26303c,#151b24)!important;
  color:#fff!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.admin-cashier-panel .button-primary,
body.admin-cashier-panel .wp-btn-primary{
  background:linear-gradient(180deg,#16a34a,#078532)!important;
  color:#fff!important;
  border-color:rgba(63,255,126,.35)!important;
}
/* Dark POS-style shift report modal */
body.admin-cashier-panel .shift-report-backdrop{background:rgba(0,0,0,.68)!important;backdrop-filter:blur(2px);}
body.admin-cashier-panel .shift-report-dialog{
  background:#121821!important;
  color:#f8fbff!important;
  border:1px solid rgba(255,255,255,.14)!important;
  border-radius:18px!important;
  box-shadow:0 30px 90px rgba(0,0,0,.65)!important;
  overflow:auto!important;
}
body.admin-cashier-panel .shift-report-head{background:#121821!important;border-bottom:1px solid rgba(255,255,255,.10)!important;color:#fff!important;}
body.admin-cashier-panel .shift-report-head h2,
body.admin-cashier-panel .shift-report-title h3,
body.admin-cashier-panel .shift-report-content h4{color:#fff!important;font-weight:900!important;}
body.admin-cashier-panel .shift-report-title p,
body.admin-cashier-panel .shift-report-meta p,
body.admin-cashier-panel .shift-report-content .description,
body.admin-cashier-panel .shift-report-signatures{color:#aeb9c7!important;}
body.admin-cashier-panel .shift-report-meta,
body.admin-cashier-panel .shift-report-summary-grid div{
  background:#0d131b!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:12px!important;
  color:#f8fbff!important;
}
body.admin-cashier-panel .shift-report-summary-grid span{color:#aeb9c7!important;font-weight:800!important;}
body.admin-cashier-panel .shift-report-summary-grid b{color:#fff!important;font-weight:900!important;}
body.admin-cashier-panel .shift-report-summary-grid .shift-report-big{background:linear-gradient(180deg,#243142,#151d28)!important;border-color:rgba(143,180,244,.26)!important;}
body.admin-cashier-panel .shift-report-table{background:#0d131b!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:12px!important;overflow:hidden!important;}
body.admin-cashier-panel .shift-report-table td{color:#f8fbff!important;border-bottom:1px solid rgba(255,255,255,.08)!important;background:transparent!important;}
body.admin-cashier-panel .shift-report-table small{color:#aeb9c7!important;}
@media print{
  body.admin-cashier-panel .shift-report-dialog,
  body.admin-cashier-panel .shift-report-content,
  body.admin-cashier-panel .shift-report-print-area{background:#fff!important;color:#000!important;}
}

/* V10 POS finish: cashier panel must fully match POS colors */
body.admin-cashier-panel{
  --pos-bg:#0b1016;
  --pos-soft:#0f151e;
  --pos-panel:#121821;
  --pos-card:#171f2a;
  --pos-card2:#202936;
  --pos-line:rgba(255,255,255,.12);
  --pos-text:#f8fbff;
  --pos-muted:#aeb9c7;
  --pos-accent:#8fb4ff;
  --pos-green:#0b9438;
  --pos-gold:#a8750c;
  background:radial-gradient(circle at 62% -16%,rgba(107,122,133,.22),transparent 36%),linear-gradient(180deg,#121821 0%,#0b1016 38%,#090d12 100%)!important;
  color:var(--pos-text)!important;
}
body.admin-cashier-panel .wpwrap,
body.admin-cashier-panel .wp-content,
body.admin-cashier-panel .wrap{background:transparent!important;color:var(--pos-text)!important;}
body.admin-cashier-panel .wpadminbar{background:#101720!important;border-bottom:1px solid var(--pos-line)!important;}
body.admin-cashier-panel .wpadminbar a,
body.admin-cashier-panel .wpbar-brand,
body.admin-cashier-panel .wpbar-shift,
body.admin-cashier-panel .wpbar-user{color:#f8fbff!important;}
body.admin-cashier-panel .box,
body.admin-cashier-panel .order-period-filters,
body.admin-cashier-panel .notice,
body.admin-cashier-panel .wp-list-table,
body.admin-cashier-panel .tablenav,
body.admin-cashier-panel .form-table,
body.admin-cashier-panel .postbox{
  background:linear-gradient(180deg,rgba(23,31,42,.96),rgba(13,19,27,.96))!important;
  border:1px solid var(--pos-line)!important;
  color:var(--pos-text)!important;
  box-shadow:0 18px 55px rgba(0,0,0,.26)!important;
}
body.admin-cashier-panel .wp-list-table th{
  background:#101720!important;
  color:#dfe8f4!important;
  border-color:var(--pos-line)!important;
}
body.admin-cashier-panel .wp-list-table td{
  background:#0f151e!important;
  color:#f8fbff!important;
  border-color:rgba(255,255,255,.08)!important;
}
body.admin-cashier-panel .wp-list-table tr:hover td{background:#182232!important;}
body.admin-cashier-panel .subsubsub,
body.admin-cashier-panel .order-status-filters{display:flex!important;gap:6px;flex-wrap:wrap;margin:12px 0!important;color:transparent!important;}
body.admin-cashier-panel .subsubsub li,
body.admin-cashier-panel .order-status-filters li{margin:0!important;color:transparent!important;}
body.admin-cashier-panel .subsubsub li:after,
body.admin-cashier-panel .order-status-filters li:after{content:''!important;}
body.admin-cashier-panel .subsubsub a,
body.admin-cashier-panel .order-status-filters a,
body.admin-cashier-panel .order-date-tabs a{
  min-height:34px!important;
  padding:6px 11px!important;
  border-radius:999px!important;
  background:#151d28!important;
  border:1px solid rgba(255,255,255,.10)!important;
  color:#dfe8f4!important;
  font-weight:800!important;
  text-decoration:none!important;
}
body.admin-cashier-panel .subsubsub a.current,
body.admin-cashier-panel .order-status-filters a.current,
body.admin-cashier-panel .order-date-tabs a.current{
  background:linear-gradient(180deg,#a8750c,#7f5708)!important;
  color:#fff!important;
  border-color:#8fb4ff!important;
  box-shadow:inset 0 0 0 2px rgba(255,255,255,.18),0 0 0 1px rgba(143,180,244,.55)!important;
}
body.admin-cashier-panel .count{color:#aeb9c7!important;}
body.admin-cashier-panel .button,
body.admin-cashier-panel button.button,
body.admin-cashier-panel .admin-bar-button,
body.admin-cashier-panel .admin-fullscreen-toggle,
body.admin-cashier-panel .admin-sound-toggle{
  background:linear-gradient(180deg,#28323f,#171f2a)!important;
  border:1px solid rgba(255,255,255,.14)!important;
  color:#fff!important;
  border-radius:12px!important;
  font-weight:900!important;
}
body.admin-cashier-panel .button-primary,
body.admin-cashier-panel .wp-btn-primary{
  background:linear-gradient(180deg,#19aa4e,#078532)!important;
  border-color:rgba(63,255,126,.35)!important;
  color:#fff!important;
}
body.admin-cashier-panel input,
body.admin-cashier-panel select,
body.admin-cashier-panel textarea{background:#0b1016!important;color:#fff!important;border:1px solid var(--pos-line)!important;}

/* V10 dark shift report modal + readable content */
body.admin-cashier-panel .shift-report-modal.is-open{display:flex!important;}
body.admin-cashier-panel .shift-report-backdrop{background:rgba(0,0,0,.74)!important;backdrop-filter:blur(3px)!important;}
body.admin-cashier-panel .shift-report-dialog,
body.admin-cashier-panel .shift-report-content,
body.admin-cashier-panel .shift-report-print-area{
  background:#121821!important;
  color:#f8fbff!important;
}
body.admin-cashier-panel .shift-report-dialog{
  border:1px solid rgba(255,255,255,.16)!important;
  border-radius:18px!important;
  box-shadow:0 30px 90px rgba(0,0,0,.75)!important;
}
body.admin-cashier-panel .shift-report-head{background:#121821!important;border-bottom:1px solid rgba(255,255,255,.12)!important;}
body.admin-cashier-panel .shift-report-head h2,
body.admin-cashier-panel .shift-report-title h3,
body.admin-cashier-panel .shift-report-content h4{color:#fff!important;}
body.admin-cashier-panel .shift-report-meta,
body.admin-cashier-panel .shift-report-summary-grid div{
  background:#0f151e!important;
  color:#f8fbff!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:12px!important;
}
body.admin-cashier-panel .shift-report-summary-grid span{color:#aeb9c7!important;}
body.admin-cashier-panel .shift-report-summary-grid b{color:#fff!important;}
body.admin-cashier-panel .shift-report-summary-grid .shift-report-big{background:linear-gradient(180deg,#243142,#151d28)!important;}
body.admin-cashier-panel .shift-report-table{background:#0f151e!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:12px!important;overflow:hidden!important;}
body.admin-cashier-panel .shift-report-table td{background:#0f151e!important;color:#f8fbff!important;border-bottom:1px solid rgba(255,255,255,.08)!important;}
/* V30 POS color picker */
.pos-color-picker{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:8px;max-width:720px;margin:4px 0 6px;}
.pos-color-option{display:flex;align-items:center;gap:8px;padding:8px 9px;border:1px solid #c3c4c7;border-radius:8px;background:#fff;cursor:pointer;box-sizing:border-box;}
.pos-color-option input{margin:0!important;}
.pos-color-option:has(input:checked){border-color:#2271b1;box-shadow:0 0 0 1px #2271b1;background:#f0f6fc;}
.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);}
.pos-color-option em{font-style:normal;font-weight:600;color:#1d2327;font-size:12px;}
@media(max-width:782px){.pos-color-picker{grid-template-columns:repeat(2,minmax(0,1fr));}.pos-color-option{min-height:44px;}}

/* PHASE 3 COLORS ONLY v1 - admin safe color polish, no layout/logic/icons */
:root{
  --twist-gold:#d2a329;
  --twist-gold2:#b58315;
  --twist-blue:#8fb4f4;
}
.btn.pink,
.btn.primary,
.button-primary,
.admin-cashier-panel .button-primary{
  background:linear-gradient(180deg,var(--twist-gold),var(--twist-gold2))!important;
  border-color:rgba(210,163,41,.55)!important;
  color:#fff!important;
}
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;}
.pos-color-picker--clean{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  max-width:none;
  margin:0 0 8px;
}
.pos-color-option--clean{
  min-height:46px;
  border-radius:10px;
  padding:9px 10px;
  gap:8px;
  background:#fff;
}
.pos-color-option--clean em{font-size:12px;font-weight:700;color:#1d2327;}
@media(max-width:900px){
  .admin-color-mode-grid{grid-template-columns:1fr;}
  .pos-color-picker--clean{grid-template-columns:repeat(2,minmax(0,1fr));}
}


/* TIVA v3 manager login */
.wp-login-brand picture { display:flex; align-items:center; justify-content:center; }
.wp-login-demo-card {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 153, 36, .42);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(12,24,38,.06), rgba(210,153,36,.10));
  color: #1d2327;
}
.wp-login-demo-card span { display:block; margin-bottom: 6px; color:#996b10; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.wp-login-demo-card strong { display:block; font-size:14px; line-height:1.55; }
.wp-login-demo-card small { display:block; margin-top:6px; color:#646970; }


/* TIVA v3: POS is desktop/laptop only */
.pos-desktop-only-warning { display: none; }
@media (max-width: 900px), (pointer: coarse) and (max-width: 1024px) {
  body.admin-page-pos { min-height: 100vh; background: #06101b !important; color: #fff; }
  body.admin-page-pos .wpadminbar,
  body.admin-page-pos .wpwrap,
  body.admin-page-pos .pos-touch-keypad,
  body.admin-page-pos .pos-calculator-modal,
  body.admin-page-pos .pos-fullscreen-exit,
  body.admin-page-pos .pos-modal,
  body.admin-page-pos .pos-overlay { display: none !important; }
  body.admin-page-pos .pos-desktop-only-warning {
    display: flex;
    min-height: 100vh;
    padding: 24px;
    align-items: center;
    justify-content: center;
    background:
      radial-gradient(circle at 15% 15%, rgba(212,165,56,.18), transparent 34%),
      radial-gradient(circle at 88% 12%, rgba(74,123,174,.16), transparent 30%),
      #06101b;
    box-sizing: border-box;
  }
  .pos-desktop-only-warning__card {
    width: min(520px, 100%);
    padding: 28px 22px;
    border: 1px solid rgba(218,165,49,.42);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(14,24,36,.94), rgba(7,13,21,.97));
    box-shadow: 0 28px 80px rgba(0,0,0,.48), 0 0 0 1px rgba(255,255,255,.04) inset;
    text-align: center;
  }
  .pos-desktop-only-warning__card img { width: 92px; height: 92px; object-fit: contain; margin-bottom: 14px; }
  .pos-desktop-only-warning__card h1 { margin: 0 0 10px; color: #fff; font-size: 24px; line-height: 1.15; }
  .pos-desktop-only-warning__card p { margin: 0 auto 18px; color: #c9d3df; font-size: 15px; line-height: 1.55; }
  .pos-desktop-only-warning__card div { display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
  .pos-desktop-only-warning__card a {
    display:inline-flex;
    min-height: 42px;
    padding: 0 15px;
    align-items:center;
    justify-content:center;
    border-radius: 14px;
    border: 1px solid rgba(218,165,49,.55);
    color: #fff;
    text-decoration:none;
    background: rgba(255,255,255,.06);
    font-weight: 800;
  }
  .pos-desktop-only-warning__card a:first-child { background: linear-gradient(135deg, #b98013, #f4c65b); color:#101722; }
}
