* { box-sizing: border-box; }
:root {
  --blue: #4aa3df;
  --blue-dark: #2878b5;
  --ink: #d4d4d4;
  --muted: #9da0a6;
  --line: #3b3b3b;
  --soft: #252526;
  --green: #39d98a;
  --coral: #e05261;
  --red: #e05261;
  --pink: #e879b5;
  --yellow: #dcdcaa;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
:root {
  --page-bg-image: url("./assets/logo.png");
}

body {
  margin: 0;
  min-width: 1080px;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background-color: #000000;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.38)),
    var(--page-bg-image);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}

.app-loader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(3, 8, 10, 0.92);
  backdrop-filter: blur(6px);
  z-index: 9999;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.app-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 4px solid rgba(74, 163, 223, 0.18);
  border-top-color: #39d98a;
  border-right-color: #4aa3df;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 24px rgba(57, 217, 138, 0.22);
}

.loader-text {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #dfeaf4;
  text-align: center;
}

.loader-wrap {
  display: grid;
  place-items: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
button, input { font: inherit; }
button { cursor: pointer; }
.secondary-button, .text-button, .more-menu-item, .action-button, .payment-button, .new-sale-button, .product-card, .nav-button { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.secondary-button:hover, .product-card:hover, .action-button:hover { transform: translateY(-1px); }
.app-shell {
  width: min(1120px, 90vw);
  min-height: 760px;
  background: #252526;
  border: 10px solid #181818;
  border-radius: 26px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.04), 0 28px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}
.topbar { height: 62px; padding: 0 22px; background: linear-gradient(100deg, #193c32, #245b49); display: flex; align-items: center; justify-content: space-between; color: #f3f3f3; box-shadow: inset 0 -1px 0 rgba(255,255,255,0.06); }
.brand { display: flex; align-items: center; gap: 10px; font: 600 20px Outfit, sans-serif; letter-spacing: .1px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; background: var(--green); color: #10271e; font-size: 21px; font-weight: 700; }
.brand-user { font-size: 14px; font-weight: 700; color: #dff6e8; }
.topbar-actions { display: flex; gap: 16px; align-items: center; font-size: 13px; }
.status-dot { width: 8px; height: 8px; background: #7ef3bd; border-radius: 50%; box-shadow: 0 0 0 4px rgba(126, 243, 189, .15); }
.icon-button, .logout-button, .more-button { border: 0; background: transparent; color: white; }
.icon-button { font-size: 22px; opacity: .9; }
.user-button { border: 0; border-left: 1px solid rgba(255,255,255,.22); padding: 9px 0 9px 14px; background: transparent; color: #fffdfb; font-size: 12px; font-weight: 600; }
.user-button span { margin-left: 4px; opacity: .75; }
.more-menu-wrap { position: relative; }
.more-button { padding: 9px 12px; border-radius: 4px; background: #3c3c3c; border: 1px solid #555; font-size: 13px; font-weight: 600; }
.more-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(20, 57, 91, 0.08);
  border-radius: 12px;
  background: #252526;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}
.more-dropdown[hidden] { display: none !important; }
.more-menu-item {
  width: 100%;
  border: 0;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.more-menu-item:hover {
  background: #37373d;
  color: var(--blue);
}
.logout-button { opacity: .9; padding: 9px 0 9px 12px; border-left: 1px solid rgba(255,255,255,.22); font-size: 13px; }
.logout-button:hover { color: var(--coral); }
.welcome-link-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f4f8fb;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
}
.workspace { display: flex; min-height: calc(760px - 62px); }
.sidebar { width: 62px; padding: 20px 10px; background: #252526; border-right: 1px solid #3b3b3b; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.sidebar-spacer { flex: 1; }
.nav-button { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: #93a2b6; font-size: 20px; transition: .2s ease; }
.nav-button:hover, .nav-button.active { color: var(--green); background: #263a33; box-shadow: inset 3px 0 0 var(--green); }
.main-content { display: grid; grid-template-columns: minmax(0, 1fr) 385px; width: calc(100% - 70px); }
.sales-area { padding: 22px 26px 24px; background: #1e1e1e; }
.view-panel { display: flex; flex-direction: column; gap: 22px; width: 100%; padding: 22px 26px 24px; background: #1e1e1e; }
/* Keep the hidden attribute authoritative so view switching actually flows */
.sales-area[hidden], .view-panel[hidden], .sale-panel[hidden] { display: none !important; }
/* When a non-sales panel is visible, collapse the two-column layout so the panel fills the row */
.main-content:has(.view-panel:not([hidden])) { grid-template-columns: 1fr; }
.main-content:has(.view-panel:not([hidden])) .view-panel { grid-column: 1; }
.panel-header { display: flex; flex-direction: column; gap: 8px; }
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 14px; }
.panel-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: #252526; border: 1px solid var(--line); border-radius: 6px; box-shadow: none; }
.panel-card span { color: #6e7e91; font-size: 12px; }
.panel-card strong { color: var(--ink); font-size: 22px; }
.panel-list { display: flex; flex-direction: column; gap: 10px; }
.panel-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: #252526; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-size: 14px; box-shadow: none; }
.panel-row strong { color: #51657b; font-size: 12px; }
.admin-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 20px; }
.admin-dashboard-section { min-width: 0; }
.admin-dashboard-section .panel-header { margin-bottom: 12px; }
.admin-dashboard-section .panel-row { gap: 12px; }
.admin-dashboard-section .panel-row span { min-width: 0; overflow-wrap: anywhere; }
.admin-dashboard-section .panel-row strong { text-align: right; }
.admin-dashboard-actions { justify-content: flex-start; flex-wrap: wrap; }
.page-heading, .catalog-header, .quick-heading { display: flex; justify-content: space-between; align-items: center; }
.page-heading-actions { display: flex; align-items: center; gap: 12px; }
.sale-type-picker { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #53657a; font-size: 12px; }
.sale-type-picker select { min-width: 128px; height: 34px; border: 0; background: transparent; color: var(--ink); font: inherit; outline: 0; }
.eyebrow { margin: 0 0 7px; color: #8090a3; font-size: 10px; font-weight: 700; letter-spacing: 1.3px; }
h1, h2, p { margin: 0; }
h1 { font: 600 28px Outfit, sans-serif; letter-spacing: -.5px; }
h2 { font: 600 16px Outfit, sans-serif; }
.secondary-button, .text-button { border: 0; background: transparent; color: var(--blue); font-size: 13px; font-weight: 600; }
.secondary-button { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; background: #fff; color: #53657a; }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); background: #2d2d30; }
.welcome-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  padding: 22px 20px;
  margin: 18px 0 20px;
  border: 1px solid rgba(122, 197, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(74, 163, 223, 0.14), rgba(57, 217, 138, 0.08), rgba(20, 29, 34, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.welcome-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.welcome-copy h2 {
  font: 700 28px Outfit, sans-serif;
  letter-spacing: -0.5px;
}
.welcome-copy p:last-of-type {
  max-width: 36rem;
  color: #c9d6e0;
  line-height: 1.6;
  font-size: 14px;
}
.welcome-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
.ghost-button {
  background: rgba(255,255,255,0.04);
  color: #dfeefb;
}
.welcome-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0 0;
}
.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(15, 17, 18, 0.38);
}
.step-count {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #39d98a, #4aa3df);
  color: #10271e;
  font: 700 12px Outfit, sans-serif;
}
.step-item strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
  color: #f0f8ff;
}
.step-item small {
  color: #b3c4d4;
  font-size: 11px;
  line-height: 1.5;
}
.search-wrap { position: relative; margin: 16px 0 18px; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 15px; background: #252526; border: 1px solid #3b3b3b; border-radius: 5px; box-shadow: none; }
.search-icon { font-size: 27px; color: #778ca4; transform: rotate(-20deg); }
.search-wrap input { flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 14px; background: transparent; }
.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(75, 178, 222, 0.35);
  border-radius: 10px;
  background: #1d2024;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.search-suggestions[hidden] { display: none; }
.search-suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
}
.search-suggestion:hover { background: rgba(74, 163, 223, 0.12); }
.search-suggestion strong { display: block; font-size: 13px; }
.search-suggestion span { display: block; color: #8ea3b8; font-size: 11px; }
.search-suggestion .search-tag { padding: 4px 7px; border-radius: 999px; background: rgba(57, 217, 138, 0.12); color: var(--green); font-size: 10px; font-weight: 700; }
.shortcut { border: 1px solid var(--line); border-radius: 5px; padding: 4px 7px; color: #95a3b5; font-size: 11px; }
.sales-stock-pulse { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: -2px 0 20px; }
.sales-pulse-card { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 10px 12px; border: 1px solid #35453f; border-radius: 13px; background: linear-gradient(145deg, #29322f, #222729); }
.sales-pulse-card small { display: block; margin-bottom: 4px; color: #9cb5aa; font-size: 10px; font-weight: 600; }
.sales-pulse-card strong { display: block; color: #effaf4; font: 600 13px Outfit, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pulse-icon { display: grid; place-items: center; flex: 0 0 29px; width: 29px; height: 29px; border-radius: 9px; font-weight: 700; }
.pulse-green { border-color: #355548; }.pulse-green .pulse-icon { background: rgba(57, 217, 138, .15); color: var(--green); }
.pulse-pink { border-color: #5a4050; }.pulse-pink .pulse-icon { background: rgba(232, 121, 181, .15); color: #ef9ec0; }
.pulse-blue { border-color: #385064; }.pulse-blue .pulse-icon { background: rgba(74, 163, 223, .15); color: #8bc8ed; }
.catalog-header { margin-bottom: 13px; }
.catalog-header h2 span { margin-left: 8px; color: #9aa7b7; font: 400 12px "DM Sans", sans-serif; }
.cart-table { min-height: 272px; background: #252526; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: none; }
.table-head, .cart-row { display: grid; grid-template-columns: minmax(200px, 1fr) 105px 88px 95px 25px; gap: 10px; align-items: center; padding: 0 17px; }
.table-head { height: 39px; background: #333333; border-bottom: 1px solid var(--line); color: #9da0a6; font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.cart-row { min-height: 66px; border-bottom: 1px solid #edf1f5; font-size: 13px; }
.item-name { font-weight: 600; }
.item-code { display: block; margin-top: 3px; color: #9aa7b7; font-size: 10px; }
.quantity { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; width: 83px; overflow: hidden; }
.quantity button { width: 27px; height: 28px; border: 0; background: #f8fafc; color: var(--blue); }
.quantity span { flex: 1; text-align: center; font-size: 12px; }
.price, .amount { font-weight: 600; }
.remove { border: 0; background: transparent; color: #c4cfda; font-size: 18px; }
.remove:hover { color: var(--red); }
.empty-state { min-height: 232px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; color: #a0acba; font-size: 12px; }
.empty-state strong { color: #65778e; font-size: 13px; }
.empty-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 3px; border: 1px dashed #cbd7e4; border-radius: 10px; color: var(--blue); font-size: 20px; }
.quick-products { display: none; margin-top: 28px; }
.quick-heading { margin-bottom: 13px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.product-card { padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: #252526; text-align: left; transition: .2s ease; box-shadow: none; }
.product-card:hover { border-color: #9ac8f3; box-shadow: 0 6px 18px rgba(22, 119, 210, .1); transform: translateY(-1px); }
.product-color { width: 34px; height: 34px; display: grid; place-items: center; margin-bottom: 11px; border-radius: 8px; color: white; font-size: 17px; }
.product-card:nth-child(1) .product-color { background: var(--green); } .product-card:nth-child(2) .product-color { background: #4aa3df; } .product-card:nth-child(3) .product-color { background: var(--pink); }
.product-card strong { display: block; color: var(--ink); font-size: 12px; } .product-card span { display: block; margin-top: 4px; color: #7f8ea1; font-size: 11px; }
.lower-actions { display: none; }
.lower-action, .complete-sale-button, .lower-new-sale { min-height: 54px; border: 1px solid rgba(145,166,185,0.45); border-radius: 7px; background: rgba(255,255,255,0.8); color: #718196; font-size: 10px; }
.lower-action { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.lower-action span { color: #73859a; font-size: 17px; }
.lower-action strong { font-size: 10px; font-weight: 600; }
.lower-action:hover, .lower-action.active { border-color: #9ac8f3; background: #f4f9ff; color: var(--blue); }
.lower-action.active span { color: var(--blue); }
.complete-sale-button { border-color: #2d9d6b; background: var(--green); color: #fff; font-weight: 700; }
.complete-sale-button:hover { background: #0b995b; }
.lower-new-sale { border-color: #8dbdeb; background: var(--blue); color: #fff; font-weight: 700; }
.lower-new-sale:hover { background: var(--blue-dark); }
.sale-panel { grid-column: 2; display: flex; flex-direction: column; min-height: calc(760px - 62px); background: #252526; border-left: 1px solid #3b3b3b; box-shadow: -8px 0 26px rgba(0, 0, 0, .22); }
.sale-panel-heading { min-height: 102px; padding: 22px 22px 18px; color: #fff; background: #333333; border-bottom: 1px solid #464646; }
.sale-panel-heading .eyebrow { color: #c4e5ff; } .sale-panel-heading h2 { font-size: 18px; }
.sale-badge { display: inline-block; margin-top: 6px; color: #d5edff; font-size: 11px; }
.summary-body { padding: 30px 28px 18px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 0 0 21px; color: #6e7e91; font-size: 13px; }
.summary-row strong { color: var(--ink); font-size: 14px; } .summary-row.total { padding: 23px 0; border-top: 1px solid #e7edf3; color: var(--ink); font-size: 19px; } .summary-row.total strong { color: var(--blue); font: 600 25px Outfit, sans-serif; }
.summary-row.muted { padding-bottom: 19px; } .add-discount { border: 0; background: transparent; color: var(--blue); font-size: 12px; }
.points-row { display: flex; justify-content: space-between; padding-bottom: 21px; color: #8996a6; font-size: 12px; } .points-row strong { color: #576a80; font-weight: 500; }
.sale-meta { display: flex; justify-content: space-between; padding: 19px 28px; border-top: 1px solid #edf1f5; border-bottom: 1px solid #edf1f5; color: #8996a6; font-size: 10px; } .sale-meta strong { color: #596b80; font-weight: 600; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 22px 28px 18px; }
.action-button { min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #617286; font-size: 11px; transition: .2s ease; } .action-button:hover { border-color: #98c6ef; color: var(--blue); background: #f7fbff; }
.action-icon { color: var(--blue); font-size: 18px; }
.payment-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 28px 17px; }
.payment-button { height: 47px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; border: 0; border-radius: 7px; color: white; font-weight: 600; font-size: 12px; } .payment-button strong { opacity: .65; font-size: 10px; } .payment-button.cash { background: var(--green); } .payment-button.card { background: #2878b5; }
.new-sale-button { height: 44px; margin: auto 28px 25px; border: 0; border-radius: 11px; background: #fff0dc; color: #c8785e; font-weight: 600; font-size: 12px; }
.new-sale-button:hover { background: #4b2938; color: var(--pink); }
.panel-command { align-self: flex-start; margin-top: 4px; }
.panel-command:hover { background: #fff0dc; border-color: #efb59d; color: #c8785e; }
.panel-card small { color: #9a8f97; font-size: 11px; }
.operations-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.operation-card { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfb; box-shadow: 0 5px 14px rgba(112, 79, 72, .04); }
.operation-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #fff0dc; color: var(--coral); font-size: 19px; }
.operation-card h3 { margin: 0 0 4px; color: var(--ink); font: 600 14px Outfit, sans-serif; }.operation-card p { color: #8b818d; font-size: 11px; line-height: 1.4; }
.operation-card .row-action { white-space: nowrap; }
.module-toolbar, .receipt-actions, .chart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module-search { display: flex; align-items: center; gap: 8px; width: min(340px, 100%); padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fffdfb; color: #9b8c88; }
.module-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.primary-button { border: 0; border-radius: 11px; padding: 11px 15px; background: var(--green); color: #10271e; font-size: 12px; font-weight: 700; }
.primary-button:hover { background: #db765f; transform: translateY(-1px); }
.inventory-table { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fffdfb; }
.inventory-head, .inventory-row { display: grid; grid-template-columns: minmax(210px, 1.6fr) 1fr .6fr .8fr 70px; gap: 12px; align-items: center; padding: 15px 18px; }
.inventory-head { background: #fff4eb; color: #a28e89; font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.inventory-row { border-top: 1px solid var(--line); color: #6e6874; font-size: 12px; }
.inventory-row strong { color: var(--ink); }
.row-action { border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 700; }
.report-chart { padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fffdfb; }
.chart-heading strong { color: var(--ink); font-size: 14px; }.chart-heading span { color: #9a8f97; font-size: 11px; }
.bars { height: 190px; display: flex; align-items: end; justify-content: space-around; gap: 16px; padding: 24px 12px 4px; border-bottom: 1px solid var(--line); }
.bars i { position: relative; width: 34px; height: var(--height); min-height: 20px; border-radius: 9px 9px 3px 3px; background: linear-gradient(180deg, #f0a383, #efc469); }
.bars i:nth-child(even) { background: linear-gradient(180deg, #72c5a3, #a8d6a7); }.bars b { position: absolute; top: calc(100% + 9px); left: 50%; transform: translateX(-50%); color: #9a8f97; font-size: 10px; font-style: normal; font-weight: 600; }
.receipt-preview { width: min(410px, 100%); display: flex; flex-direction: column; gap: 7px; padding: 16px; border: 1px solid #eadbd2; border-radius: 6px; background: #fff; box-shadow: 0 10px 22px rgba(112,79,72,.08); color: #706975; font-size: 12px; }
.receipt-preview > strong { text-align: center; color: var(--ink); font: 700 18px Outfit, sans-serif; }.receipt-preview > span { text-align: center; color: #9b8c88; font-size: 11px; }.receipt-preview hr { width: 100%; border: 0; border-top: 1px dashed #dfcec4; }.receipt-preview div { display: flex; justify-content: space-between; gap: 14px; }.receipt-preview b { color: var(--ink); }.receipt-total { margin-top: 2px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; }.receipt-actions { justify-content: flex-start; }
.receipt-paper {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: min(390px, 100%);
  margin: 0 auto;
  padding: 18px 14px 16px;
  border-radius: 2px;
  background: #fff;
  border: 1px solid #d9d9d9;
  box-shadow: 0 12px 28px rgba(17, 24, 39, .12);
  color: #222;
  font-family: "Courier New", monospace;
}
.receipt-paper > strong {
  font: 700 20px "Courier New", monospace;
  text-align: center;
  color: #111;
}
.receipt-paper > span {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #333;
}
.receipt-brand { display: flex; flex-direction: column; gap: 2px; align-items: center; padding-bottom: 7px; border-bottom: 1px dashed #222; }
.receipt-brand > strong { color: #111; font: 700 15px "Courier New", monospace; }
.receipt-brand > b { color: #111; font-size: 14px; }
.receipt-brand > span { color: #333; font-size: 10px; }
.receipt-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 8px; padding: 7px 0; color: #333; font-size: 9px; }
.receipt-meta span:last-child { grid-column: 1 / -1; color: #111; font-weight: 700; }
.receipt-table-head, .receipt-item-line { display: grid; grid-template-columns: minmax(0, 1fr) 35px 58px 68px; gap: 8px; align-items: center; }
.receipt-table-head { padding: 5px 0; border-top: 1px solid #222; border-bottom: 1px solid #222; color: #111; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.receipt-item-line { border-bottom: 1px dashed #bbb; border-radius: 0; }
.receipt-item-line > span:nth-child(2), .receipt-item-line > span:nth-child(3), .receipt-item-line > b { text-align: right; }
.receipt-summary { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; }
.receipt-summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; font-size: 10px; }
.receipt-summary .receipt-total-line { margin-top: 3px; padding-top: 7px; border-top: 1px solid #222; font-size: 13px; }
.receipt-summary .receipt-total-line b { color: #111; font-size: 15px; }
.receipt-payment { display: flex; flex-direction: column; gap: 2px; margin-top: 5px; padding: 7px 0; border-top: 1px dashed #222; border-bottom: 1px dashed #222; color: #222; font-size: 10px; }
.receipt-footer { display: flex; flex-direction: column; gap: 3px; align-items: center; padding-top: 9px; color: #333; font-size: 9px; text-align: center; }
.receipt-footer strong { color: #111; font-size: 12px; }
.qr-placeholder { display: none; }
.receipt-barcode { width: 150px; height: 38px; margin-top: 7px; background: repeating-linear-gradient(90deg, #111 0 2px, transparent 2px 4px, #111 4px 5px, transparent 5px 8px); }
.receipt-paper .receipt-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 5px 0;
  font-size: 10px;
  border-bottom: 1px dashed #bbb;
}
.receipt-paper .receipt-line:last-of-type {
  border-bottom: 0;
}
.receipt-paper .receipt-line b {
  color: #111;
  font-weight: 700;
}
.receipt-paper .receipt-total-line {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 1px solid #222;
  border-bottom: 0;
  font-size: 15px;
  color: #111;
}
.receipt-paper .receipt-total-line b {
  color: #111;
  font-size: 15px;
}
.toast { position: fixed; right: 26px; bottom: 22px; padding: 12px 16px; border-radius: 7px; background: #183450; color: #fff; box-shadow: var(--shadow); font-size: 12px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; } .toast.show { opacity: 1; transform: translateY(0); }
.modal { position: fixed; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: rgba(17, 43, 70, .38); }
.modal[hidden] { display: none; }
.modal-card { width: min(430px, 100%); border-radius: 18px; background: #fff; box-shadow: 0 24px 80px rgba(16, 49, 83, .24); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 15px; border-bottom: 1px solid var(--line); }
.modal-header h2 { font-size: 18px; }
.modal-close { border: 0; background: transparent; color: #8b9bad; font-size: 25px; line-height: 1; }
.modal-body { padding: 20px 22px 5px; color: #667990; font-size: 13px; }
.modal-body p { line-height: 1.55; }
.modal-body label { display: block; margin: 0 0 14px; color: #53667c; font-size: 12px; font-weight: 600; }
.modal-body input, .modal-body select { width: 100%; height: 40px; margin-top: 7px; padding: 0 11px; border: 1px solid #dbe4ed; border-radius: 7px; outline: 0; color: var(--ink); background: #fbfcfe; }
.modal-body input:focus, .modal-body select:focus { border-color: #83b9e9; box-shadow: 0 0 0 3px #eaf4ff; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 15px 22px 21px; }
.modal-actions button { height: 38px; padding: 0 14px; border: 0; border-radius: 7px; font-size: 12px; font-weight: 600; }
.modal-actions .modal-secondary { border: 1px solid var(--line); background: #fff; color: #6a7b8e; }
.modal-actions .modal-primary { background: var(--blue); color: #fff; }
.modal-note { padding: 12px; border-radius: 7px; background: #f5f8fb; color: #63758a; }
.modal-card:has(#staffPin) {
  border: 1px solid rgba(57, 217, 138, .28);
  background: linear-gradient(145deg, #fbfffd, #f2faf7);
  box-shadow: 0 24px 80px rgba(11, 74, 52, .28);
}
.modal-card:has(#staffPin) .modal-header {
  padding: 28px 26px 20px;
  border-bottom: 0;
  background: linear-gradient(135deg, #dff9eb, #e7f4ff);
}
.modal-card:has(#staffPin) .modal-header h2 {
  color: #16382c;
  font: 700 24px Outfit, sans-serif;
  letter-spacing: 0;
}
.modal-card:has(#staffPin) .modal-header::after {
  content: "Secure access to your store";
  position: absolute;
  margin: 34px 0 0 0;
  color: #608276;
  font: 500 11px "DM Sans", sans-serif;
}
.modal-card:has(#staffPin) .modal-body {
  padding: 24px 26px 7px;
  color: #526e63;
  font-family: "DM Sans", sans-serif;
}
.modal-card:has(#staffPin) .modal-body label {
  color: #315548;
  font-size: 11px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.modal-card:has(#staffPin) .modal-body input,
.modal-card:has(#staffPin) .modal-body select {
  height: 46px;
  margin-top: 8px;
  border-color: #cbe8da;
  border-radius: 11px;
  background: #ffffff;
  color: #18382d;
  font: 500 14px Outfit, sans-serif;
}
.modal-card:has(#staffPin) .modal-body input:focus,
.modal-card:has(#staffPin) .modal-body select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(57, 217, 138, .14);
}
.modal-card:has(#staffPin) .modal-actions {
  padding: 13px 26px 25px;
}
.modal-card:has(#staffPin) .modal-primary {
  min-width: 106px;
  border-radius: 10px;
  background: #1ab875;
  font: 600 12px Outfit, sans-serif;
}
.modal-card:has(#staffPin) .modal-primary:hover { background: #119761; }
.auth-kicker { margin: -4px 0 16px; color: #608276; font-size: 12px; }
.google-login-button { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 42px; border: 1px solid #d6e1e8; border-radius: 10px; background: #ffffff; color: #253746; font: 600 12px Outfit, sans-serif; }
.google-login-button:hover { border-color: #9ab9c9; background: #f7fbfd; box-shadow: 0 5px 14px rgba(42, 91, 115, .08); }
.google-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #4285f4; font: 700 15px Arial, sans-serif; }
.auth-divider { display: flex; align-items: center; gap: 9px; margin: 2px 0 15px; color: #8aa298; font-size: 10px; text-transform: uppercase; letter-spacing: .7px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: #d8ece2; }
.auth-check { display: flex !important; align-items: center; justify-content: space-between; margin: -1px 0 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
.auth-check input { width: 16px !important; height: 16px !important; margin: 0 !important; accent-color: var(--green); }
.auth-link { align-self: flex-start; padding: 0; border: 0; background: transparent; color: #2788b9; font-size: 11px; }
.auth-link:hover { color: #12648e; text-decoration: underline; }
.auth-links { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -2px 0 4px; }
.auth-links .auth-link { align-self: auto; }
.auth-links .auth-signup-link { margin-left: auto; color: #159b67; font-weight: 700; }
.auth-links .auth-signup-link:hover { color: #0d754c; }
@media (max-width: 1150px) { body { min-width: 900px; } .main-content { grid-template-columns: minmax(0, 1fr) 340px; } .sales-area { padding-inline: 22px; } .sale-panel-heading, .summary-body, .sale-meta, .action-grid, .payment-actions { padding-left: 20px; padding-right: 20px; } .new-sale-button { margin-inline: 20px; } }
@media (max-width: 760px) {
  body { min-width: 0; }
  .topbar { height: 58px; padding: 0 16px; }
  .brand { font-size: 17px; }
  .store-name, .status-dot, .icon-button { display: none; }
  .workspace { display: block; min-height: 0; }
  .sidebar { width: 100%; height: 52px; padding: 4px 10px; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; justify-content: space-around; gap: 4px; }
  .sidebar-spacer { display: none; }
  .nav-button { width: 40px; height: 40px; }
  .main-content { display: block; width: 100%; }
  .admin-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .admin-dashboard-grid .panel-row { padding-inline: 12px; }
  .sales-area { padding: 24px 16px; }
  h1 { font-size: 24px; }
  .search-wrap { margin-top: 22px; }
  .shortcut { display: none; }
  .table-head, .cart-row { grid-template-columns: minmax(140px, 1fr) 83px 65px 25px; }
  .table-head span:nth-child(4), .cart-row .amount { display: none; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .lower-actions { grid-template-columns: repeat(3, 1fr); }
  .complete-sale-button, .lower-new-sale { min-height: 48px; }
  .sale-panel { min-height: 0; border-left: 0; border-top: 1px solid var(--line); }
  .sale-panel-heading { min-height: 94px; padding: 23px 20px 18px; }
  .summary-body, .sale-meta, .action-grid, .payment-actions { padding-left: 20px; padding-right: 20px; }
  .new-sale-button { margin: 0 20px 20px; }
}

/* ---- Extra feature styles ---- */
.store-select { height: 32px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; background: rgba(255,255,255,.16); color: #fffdfb; font-size: 12px; font-weight: 600; padding: 0 6px; }
.store-select option { color: var(--ink); }
.status-dot.offline { background: #f5c96a; box-shadow: 0 0 0 4px rgba(245, 201, 106, .2); }
.module-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.module-search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 40px; background: #fffdfb; border: 1px solid var(--line); border-radius: 10px; color: #778ca4; }
.module-search input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); }
.view-panel[data-view="Inventory"] {
  gap: 18px;
  background:
    radial-gradient(circle at 92% 4%, rgba(57, 217, 138, .12), transparent 24%),
    #1e1e1e;
}
.view-panel[data-view="Inventory"] .panel-header {
  padding: 4px 2px 2px;
}
.view-panel[data-view="Inventory"] .panel-header h2 {
  color: #f0f7f4;
  font-size: 25px;
}
.view-panel[data-view="Inventory"] .panel-header::after {
  content: "Keep every shelf visible, healthy, and ready to sell.";
  margin-top: 2px;
  color: #81988f;
  font-size: 12px;
}
.view-panel[data-view="Inventory"] .module-toolbar {
  padding: 10px;
  border: 1px solid rgba(57, 217, 138, .16);
  border-radius: 14px;
  background: rgba(37, 37, 38, .82);
}
.view-panel[data-view="Inventory"] .module-search {
  height: 42px;
  border-color: #3d5149;
  border-radius: 10px;
  background: #202b27;
  color: #7bd9ae;
}
.view-panel[data-view="Inventory"] .module-search input::placeholder { color: #71867d; }
.view-panel[data-view="Inventory"] .module-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 217, 138, .1);
}
.view-panel[data-view="Inventory"] .primary-button {
  border-radius: 10px;
  background: var(--green);
  color: #10271e;
  box-shadow: 0 7px 18px rgba(57, 217, 138, .15);
}
.view-panel[data-view="Inventory"] .primary-button:hover { background: #65e8a4; }
.view-panel[data-view="Inventory"] .panel-grid { gap: 12px; }
.view-panel[data-view="Inventory"] .panel-card {
  position: relative;
  min-height: 106px;
  justify-content: space-between;
  overflow: hidden;
  padding: 16px 17px;
  border: 1px solid #35453f;
  border-radius: 14px;
  background: linear-gradient(145deg, #29322f, #222729);
}
.view-panel[data-view="Inventory"] .panel-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -24px;
  width: 76px;
  height: 76px;
  border: 12px solid rgba(57, 217, 138, .08);
  border-radius: 50%;
}
.view-panel[data-view="Inventory"] .panel-card:nth-child(2) { border-color: #514739; }
.view-panel[data-view="Inventory"] .panel-card:nth-child(2)::after { border-color: rgba(232, 121, 181, .1); }
.view-panel[data-view="Inventory"] .panel-card:nth-child(3) { border-color: #35495a; }
.view-panel[data-view="Inventory"] .panel-card:nth-child(3)::after { border-color: rgba(74, 163, 223, .1); }
.view-panel[data-view="Inventory"] .panel-card span {
  color: #9cb5aa;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
}
.view-panel[data-view="Inventory"] .panel-card strong {
  color: #f2faf6;
  font: 700 28px Outfit, sans-serif;
}
.view-panel[data-view="Inventory"] .panel-card:nth-child(2) strong { color: #efb4d2; }
.view-panel[data-view="Inventory"] .panel-card:nth-child(3) strong { color: #8bc8ed; font-size: 21px; }
.view-panel[data-view="Inventory"] .inventory-table {
  overflow: hidden;
  border: 1px solid #35453f;
  border-radius: 14px;
  background: #242a2a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .16);
}
.view-panel[data-view="Inventory"] .inventory-head {
  padding-block: 12px;
  background: #2d3935;
  color: #91b6a5;
  letter-spacing: .8px;
}
.view-panel[data-view="Inventory"] .inventory-row {
  min-height: 58px;
  border-top-color: #34403e;
  color: #a5b8b0;
  transition: background .18s ease;
}
.view-panel[data-view="Inventory"] .inventory-row:hover { background: rgba(57, 217, 138, .06); }
.view-panel[data-view="Inventory"] .inventory-row strong { color: #e2eee8; }
.view-panel[data-view="Inventory"] .inventory-row .row-action {
  border-color: #3d5a4e;
  background: #25352e;
  color: #78dda9;
}
.view-panel[data-view="Inventory"] .inventory-row .row-action:hover { background: #2f4a3e; }
.view-panel[data-view="Inventory"] .inventory-row .row-danger {
  border-color: #64414d;
  background: #38272e;
  color: #ee91b5;
}
.view-panel[data-view="Inventory"] .inventory-row.stock-low span,
.view-panel[data-view="Inventory"] .stock-low {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(232, 121, 181, .12);
  color: #ef9ec0;
}
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-card { padding: 17px; border: 1px solid #35453f; border-radius: 14px; background: linear-gradient(145deg, #29322f, #222729); }
.settings-card-heading { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid #35403d; }
.settings-card-heading h3 { margin: 0 0 3px; color: #edf8f2; font: 600 15px Outfit, sans-serif; }
.settings-card-heading p { color: #81988f; font-size: 11px; }
.settings-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; font: 700 11px Outfit, sans-serif; }
.settings-green { background: rgba(57, 217, 138, .14); color: var(--green); }.settings-blue { background: rgba(74, 163, 223, .14); color: #8bc8ed; }.settings-pink { background: rgba(232, 121, 181, .14); color: #ef9ec0; }.settings-yellow { background: rgba(220, 220, 170, .14); color: #e5e5ad; }
.settings-fields { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.setting-control { display: grid; grid-template-columns: minmax(0, 1fr) 145px; align-items: center; gap: 12px; color: #b0c2b9; font-size: 12px; }
.setting-control > span { min-width: 0; }
.setting-control input:not([type="color"]), .setting-control select { width: 145px; height: 34px; padding: 0 9px; border: 1px solid #3d5149; border-radius: 8px; outline: 0; background: #202b27; color: #d9ebe2; font: 500 11px "DM Sans", sans-serif; }
.setting-control input:focus, .setting-control select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(57, 217, 138, .1); }
.setting-control input[type="color"] { justify-self: end; width: 48px; height: 30px; padding: 2px; border: 1px solid #3d5149; border-radius: 7px; background: #202b27; }
.setting-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border: 1px solid #35453f; border-radius: 9px; background: rgba(32, 43, 39, .65); color: #d4e4dc; font-size: 12px; }
.setting-toggle strong, .setting-note strong { display: block; color: #dcece4; font-size: 12px; }
.setting-toggle small, .setting-note small { display: block; margin-top: 3px; color: #81988f; font-size: 10px; }
.setting-toggle input, .payment-checks input { accent-color: var(--green); }
.setting-note { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 9px 10px; border: 1px solid #35453f; border-radius: 9px; background: rgba(32, 43, 39, .65); }
.setting-note span { color: #8bc8ed; font: 600 11px Outfit, sans-serif; }.setting-note small { grid-column: 1 / -1; }
.payment-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #81988f; font-size: 11px; }.payment-checks > span { width: 100%; color: #b0c2b9; font-size: 12px; }.payment-checks label { padding: 6px 8px; border: 1px solid #3d5149; border-radius: 7px; background: #202b27; color: #b9cec3; }
.settings-export { align-self: flex-start; border-color: #3d5149; background: #202b27; color: #8bc8ed; }
.settings-export:hover { background: #2b3b38; }
.settings-reset { align-self: flex-start; border-color: #64414d; background: #38272e; color: #ef9ec0; }
.settings-reset:hover { border-color: #ef9ec0; background: #4a2d39; color: #ffc4dc; }
.view-panel[data-view="Settings"] > .panel-command { margin-top: 0; }
.view-panel[data-view="Settings"] .panel-command { border-radius: 10px; }
[data-theme="light"] .sales-area, [data-theme="light"] .view-panel { background: #f3f8f6; }
[data-theme="light"] .app-shell, [data-theme="light"] .sidebar, [data-theme="light"] .sale-panel { background: #ffffff; }
[data-theme="light"] .settings-card { background: linear-gradient(145deg, #ffffff, #edf7f2); border-color: #cfe6da; }
[data-theme="light"] .settings-card-heading h3, [data-theme="light"] .settings-note strong { color: #18382d; }
[data-theme="light"] .setting-control input:not([type="color"]), [data-theme="light"] .setting-control select, [data-theme="light"] .setting-toggle, [data-theme="light"] .setting-note, [data-theme="light"] .payment-checks label { background: #ffffff; color: #315548; border-color: #cbe8da; }
.primary-button { border: 0; border-radius: 9px; padding: 10px 16px; background: var(--blue); color: #fff; font-weight: 600; font-size: 13px; }
.primary-button:hover { background: var(--blue-dark); }
.row-action { border: 1px solid var(--line); border-radius: 7px; padding: 6px 10px; background: #fff; color: var(--blue); font-size: 11px; font-weight: 600; }
.row-danger { color: #c0604a; border-color: #efc4b5; }
.inventory-row.stock-low span, .stock-low { color: #c0604a; font-weight: 700; }
.panel-row-ai strong { color: var(--blue); }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.setting-row input[type="number"], .setting-row select { width: 130px; height: 36px; padding: 0 10px; border: 1px solid #dbe4ed; border-radius: 7px; background: #fbfcfe; color: var(--ink); }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 13px; color: #53667c; }
.receipt-line.receipt-total-line { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; color: var(--ink); }
.receipt-paper { display: flex; flex-direction: column; gap: 4px; }
.receipt-paper .qr-placeholder { align-self: center; margin-top: 8px; display: grid; place-items: center; width: 58px; height: 58px; border: 1px dashed #cbd7e4; border-radius: 8px; color: #778ca4; font-size: 11px; }
.rating-row { display: flex; gap: 8px; justify-content: center; padding: 12px 0; }
.rating-star { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: #fffdfb; color: var(--yellow); font-size: 20px; }
.rating-star:hover { border-color: var(--yellow); transform: translateY(-1px); }

/* Signed-in user name, right side of the top bar */
.topbar-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  white-space: nowrap;
}
.topbar-user:empty { display: none; }
.user-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  color: #10271e;
  font-size: 11px;
  font-weight: 800;
}
.user-profile-copy { display: flex; flex-direction: column; gap: 1px; line-height: 1.1; }
.user-profile-copy strong { color: #f3fff8; font-size: 12px; font-weight: 700; }
.user-profile-copy small { color: #b9dccb; font-size: 10px; }
