@import url(https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap);
@import url(https://fonts.googleapis.com/css2?family=Caveat:wght@500;700&display=swap);
@charset "UTF-8";
/* ================================================================
   POS SIMPLE — entry point
   Compiled to public/pos/css/pos_simple.css by Laravel Mix.
   Edit partials in abstracts/, base/, views/ — not this file.
   ================================================================ */
/* ================================================================
   POS DESIGN SYSTEM — brand tokens (CSS custom properties)
   Edit values here to retheme the whole POS.
   ================================================================ */
@font-face {
  font-family: "Museo";
  font-style: normal;
  font-weight: 300;
  src: local("Museo"), url("/fonts/Museo300-Regular.woff") format("woff"), url("https://fonts.cdnfonts.com/s/26721/Museo300-Regular.woff") format("woff");
}
@font-face {
  font-family: "Museo";
  font-style: normal;
  font-weight: 700;
  src: local("Museo"), url("/fonts/Museo700-Regular.woff") format("woff"), url("https://fonts.cdnfonts.com/s/26721/Museo700-Regular.woff") format("woff");
}
:root {
  --clr-green: #4a7c59;
  --clr-green-light: #6ba07a;
  --clr-green-dark: #2f5238;
  --clr-grey: #6b7280;
  --clr-grey-light: #f3f4f6;
  --clr-grey-mid: #d1d5db;
  --clr-grey-dark: #374151;
  --clr-orange: #e07a2f;
  --clr-orange-light: #f0a060;
  --clr-beige: #f5f0e8;
  --clr-beige-dark: #e8e0d0;
  --clr-white: #ffffff;
  --clr-text: #2d3748;
  --clr-aparcar: #7c6b4a; /* muted earthy gold — distinct from checkout */
  --ff-headline: 'Museo', 'Palatino Linotype', Georgia, serif;
  --ff-body: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
  --h-header: 64px;
  --h-footer: 68px;
  --w-cart: 320px;
  --w-drawer: 300px;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 12px rgba(0,0,0,.08);
  --shadow-panel: -2px 0 16px rgba(0,0,0,.10);
  --shadow-drawer: -4px 0 24px rgba(0,0,0,.15);
  --shadow-footer: 0 -2px 12px rgba(0,0,0,.18);
  --shadow-checkout-btn: 0 2px 10px rgba(224,122,47,.50);
  --ease: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset + base typography ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  font-family: var(--ff-body);
  background: var(--clr-beige);
  color: var(--clr-text);
  height: 100vh;
  overflow: hidden; /* full-screen POS app — no page scroll */
}

h1, h2, h3, h4, h5, h6,
.hl {
  font-family: var(--ff-headline);
  font-weight: 700;
  line-height: 1.25;
}

/* ================================================================
   HEADER
   ================================================================ */
.pos-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--h-header);
  background: var(--clr-green-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(0.7rem, 0vw, 0rem);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Logo */
.hdr-logo {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  text-decoration: none;
  flex-shrink: 0;
}

.hdr-logo__mark {
  width: 54px;
  height: 54px;
  background: var(--clr-white);
  border-radius: var(--radius-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  padding: 0;
  margin: 0.5rem 0.1rem 0 0;
}

.hdr-logo__name {
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 2.5rem;
  color: #fff;
  white-space: nowrap;
}

@media (max-width: 479px) {
  .hdr-logo__name {
    display: none;
  }
}
/* Page title */
.hdr-title {
  font-family: var(--ff-headline);
  font-weight: 500;
  font-size: clamp(0.78rem, 2.2vw, 1rem);
  color: var(--clr-beige);
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex: 1;
  padding: 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdr-info {
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: clamp(0.65rem, 1.8vw, 0.9rem);
  color: var(--clr-grey);
  text-align: left;
  flex: 1;
  padding: 0 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Icon group */
.hdr-icons {
  display: flex;
  align-items: center;
  gap: clamp(0.25rem, 1.5vw, 0.65rem);
  flex-shrink: 0;
}

.hdr-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-btn);
  border: none;
  background: transparent;
  color: var(--clr-beige);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--ease), color var(--ease), transform 0.15s;
}

.hdr-icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--clr-orange-light);
  transform: scale(1.08);
}

.hdr-icon-btn:active {
  transform: scale(0.93);
}

.hdr-icon-btn--menu {
  background: var(--clr-orange);
  color: #fff;
  width: 54px;
  height: 54px;
  font-size: 1.9rem;
}

.hdr-icon-btn--menu:hover {
  background: var(--clr-orange-light);
  color: #fff;
}

/* Big touch back arrow (shown on secondary report screens). Matches .hdr-logo__mark size & alignment. */
.hdr-back-btn {
  width: 54px;
  height: 54px;
  min-width: 54px;
  margin: 0.5rem 0.4rem 0 0.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-btn);
  background: var(--clr-orange);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--ease), transform 0.15s;
}

.hdr-back-btn:hover {
  background: var(--clr-orange-light);
  color: #fff;
}

.hdr-back-btn:active {
  transform: scale(0.93);
}

/* ================================================================
   OVERLAY + DRAWER (top-right slide-in menu)
   ================================================================ */
.pos-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
  backdrop-filter: blur(2px);
}

.pos-overlay.is-active {
  opacity: 1;
  pointer-events: all;
}

.pos-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(var(--w-drawer), 85vw);
  background: var(--clr-white);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform var(--ease);
  box-shadow: var(--shadow-drawer);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.5rem;
  background: var(--clr-green-dark);
  min-height: var(--h-header);
  flex-shrink: 0;
}

.drawer-head__title {
  font-family: var(--ff-headline);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--clr-beige);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background var(--ease), transform 0.2s;
}

.drawer-close:hover {
  background: var(--clr-orange);
  transform: rotate(90deg);
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 0;
}

.drawer-nav__link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.82rem 1.5rem;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--clr-grey-dark);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}

.drawer-nav__link i {
  font-size: 0.95rem;
  color: var(--clr-grey);
  width: 20px;
  text-align: center;
  transition: color var(--ease);
}

.drawer-nav__link:hover,
.drawer-nav__link.active {
  background: var(--clr-beige);
  border-left-color: var(--clr-orange);
  color: var(--clr-orange);
}

.drawer-nav__link:hover i, .drawer-nav__link.active i {
  color: var(--clr-orange);
}

/* Destructive action (e.g. logout) */
.drawer-nav__link--danger {
  color: #c0392b;
}

.drawer-nav__link--danger i {
  color: #c0392b;
}

.drawer-nav__link--danger:hover {
  background: #fceae8;
  border-left-color: #c0392b;
  color: #c0392b;
}

.drawer-nav__link--danger:hover i {
  color: #c0392b;
}

.drawer-nav__sep {
  height: 1px;
  background: var(--clr-grey-mid);
  margin: 0.4rem 1.5rem;
}

.drawer-foot {
  padding: 0.9rem 1.5rem;
  border-top: 1px solid var(--clr-grey-mid);
  background: var(--clr-grey-light);
  flex-shrink: 0;
  font-size: 0.74rem;
  color: var(--clr-grey);
}

/* ================================================================
   WORKSPACE (between header and footer, 2-column)
   Left column, view shell, top bar (search + categories)
   ================================================================ */
.pos-workspace {
  position: fixed;
  top: var(--h-header);
  bottom: var(--h-footer);
  left: 0;
  right: 0;
  display: flex;
  overflow: hidden;
  background: var(--clr-green-dark);
}

.ws-full {
  top: var(--h-header);
  bottom: 0;
}

/* ── Left column ── */
.pos-left {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pos-left__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem clamp(0.65rem, 2vw, 1rem);
}

/* ── Main view container ── */
.main-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem;
  margin: 0.3rem 0.7rem;
  border: #fff 2px solid;
  border-radius: var(--radius-btn);
  /* box-shadow:0 4px 12px rgba(0,0,0,0.5); */
  background-color: var(--clr-beige);
}

.view-title {
  font-family: var(--ff-headline);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--clr-green);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--clr-green-light);
  padding: 0.3rem 1rem;
}

/* Top bar: search + categories */
.pos-topbar {
  padding: 0.7rem clamp(0.65rem, 2vw, 1rem) 0;
  flex-shrink: 0;
}

.search-wrap {
  position: relative;
  margin-bottom: 0.6rem;
}

.search-wrap__icon {
  position: absolute;
  left: 0.82rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--clr-grey);
  font-size: 0.85rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.58rem 1rem 0.58rem 2.35rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--clr-grey-mid);
  background: var(--clr-white);
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.search-input:focus {
  border-color: var(--clr-green);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

/* ── Filter bar used by reports + list views ── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.filter-bar .search-wrap {
  flex: 2 1 200px;
  min-width: 180px;
  margin-bottom: 0;
}

.filter-bar .search-input {
  width: auto;
  flex: 1 1 140px;
  min-width: 120px;
  padding: 0.45rem 0.8rem;
}

.filter-bar input.search-input[type=date] {
  flex: 0 1 150px;
  min-width: 140px;
}

.filter-bar .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Select2 inside a .filter-bar should match the native .search-input look */
.filter-bar .select2-container {
  flex: 1 1 140px;
  min-width: 120px;
  width: auto !important;
}

.filter-bar .select2-container--default .select2-selection--single {
  height: auto;
  min-height: 0;
  padding: 0.35rem 0.4rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--clr-grey-mid);
  background: var(--clr-white);
}

.filter-bar .select2-container--default .select2-selection--single .select2-selection__rendered {
  font-family: var(--ff-body);
  font-size: 0.88rem;
  color: var(--clr-text);
  line-height: 1.3;
  padding-left: 0.55rem;
  padding-right: 1.4rem;
}

.filter-bar .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  top: 0;
  right: 0.3rem;
}

.filter-bar .select2-container--default.select2-container--focus .select2-selection,
.filter-bar .select2-container--default.select2-container--open .select2-selection {
  border-color: var(--clr-green);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

/* ── Print button in view-title ── */
.btn-print {
  margin-left: auto;
  background: transparent;
  border: 1.5px solid var(--clr-grey-mid);
  color: var(--clr-grey);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.55rem;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.btn-print:hover {
  border-color: var(--clr-green);
  color: var(--clr-green);
}

.cat-bar {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.1rem 0 0.65rem;
  scrollbar-width: none;
}

.cat-bar::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  flex-shrink: 0;
  padding: 0.34rem 0.9rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--clr-grey-mid);
  background: var(--clr-white);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--clr-grey);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
  white-space: nowrap;
}

.cat-btn:hover {
  border-color: var(--clr-green);
  color: var(--clr-green);
}

.cat-btn.active {
  background: var(--clr-green);
  border-color: var(--clr-green);
  color: var(--clr-white);
}

/* ================================================================
   PRODUCT GRID + CARDS
   ================================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(clamp(110px, 20vw, 165px), 1fr));
  gap: clamp(0.45rem, 1.4vw, 0.8rem);
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pcard {
  background: var(--clr-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1.5px solid transparent;
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  animation: cardIn 0.3s ease both;
}

.pcard:nth-child(1) {
  animation-delay: 0.03s;
}

.pcard:nth-child(2) {
  animation-delay: 0.06s;
}

.pcard:nth-child(3) {
  animation-delay: 0.09s;
}

.pcard:nth-child(4) {
  animation-delay: 0.12s;
}

.pcard:nth-child(5) {
  animation-delay: 0.15s;
}

.pcard:nth-child(6) {
  animation-delay: 0.18s;
}

.pcard:nth-child(7) {
  animation-delay: 0.21s;
}

.pcard:nth-child(8) {
  animation-delay: 0.24s;
}

.pcard:nth-child(9) {
  animation-delay: 0.27s;
}

.pcard:nth-child(10) {
  animation-delay: 0.3s;
}

.pcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.13);
  border-color: var(--clr-green-light);
}

.pcard:active {
  transform: scale(0.96);
}

.pcard.in-cart {
  border-color: var(--clr-green);
}

.pcard__img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--clr-beige-dark) 0%, var(--clr-grey-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
}

.pcard:not(:has(.pcard__img)) .pcard__body {
  padding-top: clamp(0.7rem, 2vw, 1rem);
}

.pcard__body {
  padding: clamp(0.4rem, 1.4vw, 0.7rem);
}

.pcard__name {
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: clamp(0.7rem, 1.5vw, 0.84rem);
  color: var(--clr-grey-dark);
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard__cat {
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  color: var(--clr-grey);
  margin-bottom: 0.38rem;
  font-weight: 500;
}

.pcard__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.pcard__price {
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: clamp(0.8rem, 1.8vw, 0.94rem);
  color: var(--clr-green-dark);
}

.pcard__add {
  width: clamp(24px, 3.8vw, 30px);
  height: clamp(24px, 3.8vw, 30px);
  border-radius: 50%;
  border: none;
  background: var(--clr-orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--ease), transform 0.15s;
}

.pcard__add:hover {
  background: var(--clr-green);
}

.pcard__add:active {
  transform: scale(0.84);
}

.pcard__badge {
  position: absolute;
  top: 0.42rem;
  left: 0.42rem;
  padding: 0.13rem 0.4rem;
  border-radius: 4px;
  font-family: var(--ff-body);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pcard__badge--new {
  background: var(--clr-green);
  color: #fff;
}

.pcard__badge--promo {
  background: var(--clr-orange);
  color: #fff;
}

/* Horizontal card layout */
.pcard--horizontal {
  display: flex;
  align-items: stretch;
  height: 120px;
}

.pcard__img--left {
  flex: 0 0 29%;
  max-width: 29%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--clr-beige-dark) 0%, var(--clr-grey-mid) 100%);
  font-size: clamp(1.6rem, 4.5vw, 2.2rem);
}

.pcard__body--right {
  flex: 1;
  padding: clamp(0.4rem, 1.4vw, 0.7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ================================================================
   PRODUCT MODALS — detail view + add/edit
   Markup: pos/products/detailsModalView + products/includes_common.
   ================================================================ */
/* ── Modal shell: adapt to viewport without inner scroll ── */
#modal-product .modal-dialog,
#modal-editcreate .modal-dialog {
  max-width: none;
  width: 95vw;
  height: 92vh;
  margin: 4vh auto;
}

#modal-product .modal-content,
#modal-editcreate .modal-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
}

#modal-product .modal-header,
#modal-editcreate .modal-header {
  flex: 0 0 auto;
}

#modal-product .modal-footer,
#modal-editcreate .modal-footer {
  flex: 0 0 auto;
}

#modal-product .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

#modal-editcreate .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto; /* edit form may be long */
}

/* ── Detail layout ── */
.pmodal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1rem;
  padding: 1rem;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.pmodal__main {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.pmodal__side {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 0;
  overflow: auto;
}

.pmodal__crumbs {
  font-size: 0.78rem;
  color: var(--clr-grey);
  letter-spacing: 0.03em;
}

.pmodal__hero {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1rem;
  align-items: center;
}

.pmodal__thumb {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: #f6f8f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e8ece8;
}

.pmodal__thumb img {
  width: 100%;
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  padding: 0.35rem;
}

.pmodal__title {
  font-family: var(--ff-headline);
  font-size: 1.35rem;
  color: var(--clr-green-dark);
  line-height: 1.15;
}

.pmodal__subtitle {
  color: var(--clr-grey);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.pmodal__brand {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.pmodal__brand b {
  color: var(--clr-green-dark);
}

.pmodal__price-tag {
  text-align: right;
}

.pmodal__price-tag .price {
  font-family: var(--ff-headline);
  font-size: 1.9rem;
  color: var(--clr-orange);
  line-height: 1;
}

.pmodal__price-tag .tax {
  font-size: 0.75rem;
  color: var(--clr-grey);
  margin-top: 0.25rem;
}

.pmodal__sep {
  height: 1px;
  background: #e8ece8;
}

/* ── Detail fields grid ── */
.pmodal__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.55rem 0.85rem;
}

.pmodal__field {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pmodal__field .lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--clr-grey);
}

.pmodal__field .val {
  font-size: 0.92rem;
  color: var(--clr-green-dark);
  word-break: break-word;
}

.pmodal__field .val.numeric {
  font-family: var(--ff-headline);
}

/* ── Badges ── */
.pmodal__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pmodal__badges .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #eef5ee;
  color: var(--clr-green-dark);
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.pmodal__badges .badge img {
  width: 28px;
  height: 28px;
}

/* ── Edit / action buttons ── */
.pmodal__edit-btn {
  margin-top: auto;
  padding: 0.75rem;
  text-align: center;
  background: var(--clr-green);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--ease);
}

.pmodal__edit-btn:hover {
  background: var(--clr-green-dark);
  transform: translateY(-1px);
}

/* ── Side panels (add to sale / stock) ── */
.pmodal__panel {
  background: #f6f8f6;
  border: 1px solid #e8ece8;
  border-radius: 12px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pmodal__panel .head {
  font-family: var(--ff-headline);
  color: var(--clr-green-dark);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.pmodal__panel input[type=number],
.pmodal__panel input[type=text],
.pmodal__panel input[type=date] {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #d8e0d8;
  background: #fff;
}

.pmodal__panel small {
  color: var(--clr-grey);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pmodal__panel .btn-action {
  background: var(--clr-orange);
  color: #fff !important;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.pmodal__panel .btn-action.alt {
  background: var(--clr-green);
}

.pmodal__panel .stock-now {
  background: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pmodal__panel .stock-now strong {
  font-family: var(--ff-headline);
  color: var(--clr-green-dark);
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .pmodal {
    grid-template-columns: 1fr;
  }
  .pmodal__hero {
    grid-template-columns: 100px 1fr;
  }
  .pmodal__hero > .pmodal__price-tag {
    grid-column: 1/-1;
    text-align: left;
  }
}
/* ================================================================
   RIGHT COLUMN — CART PANEL (items, totals, mobile FAB)
   ================================================================ */
.pos-right {
  width: var(--w-cart);
  flex-shrink: 0;
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--ease);
}

@media (max-width: 767px) {
  .pos-right {
    position: fixed;
    top: var(--h-header);
    bottom: var(--h-footer);
    right: 0;
    width: min(var(--w-cart), 95vw);
    transform: translateX(100%);
    z-index: 500;
  }
  .pos-right.is-open {
    transform: translateX(0);
  }
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--clr-grey-light);
  border-bottom: 1px solid var(--clr-grey-mid);
  flex-shrink: 0;
}

.cart-head__title {
  font-family: var(--ff-headline);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--clr-grey-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cart-head__badge {
  background: var(--clr-orange);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
}

/* Mobile FAB */
.cart-fab {
  display: none;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 501;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--clr-orange);
  color: #fff;
  border: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: background var(--ease);
}

.cart-fab:hover {
  background: var(--clr-green);
}

@media (max-width: 767px) {
  .cart-fab {
    display: flex;
  }
}
/* Cart item list */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0.35rem 0;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.4rem;
  color: var(--clr-grey);
  font-size: 0.84rem;
  opacity: 0.5;
}

.cart-empty i {
  font-size: 2.1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.52rem 0.9rem;
  border-bottom: 1px solid var(--clr-grey-light);
  transition: background var(--ease);
}

.cart-item:hover {
  background: var(--clr-beige);
}

.cart-item__emoji {
  font-size: 1.25rem;
  flex-shrink: 0;
  width: 26px;
  text-align: center;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--clr-grey-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__unit {
  font-size: 0.68rem;
  color: var(--clr-grey);
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.26rem;
  flex-shrink: 0;
}

.qty-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  transition: background var(--ease);
}

.qty-btn--minus {
  background: var(--clr-grey-light);
  color: var(--clr-grey-dark);
}

.qty-btn--minus:hover {
  background: #fecaca;
  color: #b91c1c;
}

.qty-btn--plus {
  background: var(--clr-green-light);
  color: #fff;
}

.qty-btn--plus:hover {
  background: var(--clr-green-dark);
}

.qty-num {
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 0.82rem;
  min-width: 14px;
  text-align: center;
}

.cart-item__sub {
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--clr-green-dark);
  min-width: 48px;
  text-align: right;
  flex-shrink: 0;
}

.cart-item__del {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--clr-grey-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.74rem;
  transition: background var(--ease), color var(--ease);
}

.cart-item__del:hover {
  background: #fee2e2;
  color: #dc2626;
}

/* Cart totals */
.cart-totals {
  padding: 0.6rem 0.9rem;
  border-top: 1px solid var(--clr-grey-mid);
  background: var(--clr-grey-light);
  flex-shrink: 0;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--clr-grey);
  padding: 0.13rem 0;
}

.totals-row--total {
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--clr-green-dark);
  border-top: 1px solid var(--clr-grey-mid);
  margin-top: 0.28rem;
  padding-top: 0.4rem;
}

.totals-disc {
  color: var(--clr-orange);
  font-weight: 600;
}

/* ================================================================
   CHECKOUT SCREEN — Left: ticket table
   ================================================================ */
.checkout-view {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.checkout-view.active {
  display: flex;
}

.checkout-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem clamp(0.65rem, 2vw, 1rem);
}

.ck-title {
  font-family: var(--ff-headline);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--clr-grey-dark);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.42rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.ck-title i {
  color: var(--clr-green);
}

.ticket-tbl {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ff-body);
  font-size: 0.82rem;
}

.ticket-tbl th {
  font-family: var(--ff-headline);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--clr-grey);
  padding: 0.36rem 0.52rem;
  border-bottom: 2px solid var(--clr-grey-mid);
  background: var(--clr-grey-light);
  text-align: left;
}

.ticket-tbl th:last-child, .ticket-tbl td:last-child {
  text-align: right;
}

.ticket-tbl th.center, .ticket-tbl td.center {
  text-align: center;
}

.ticket-tbl td {
  padding: 0.48rem 0.52rem;
  border-bottom: 1px solid var(--clr-grey-light);
  vertical-align: middle;
}

.ticket-tbl tr:hover td {
  background: var(--clr-beige);
}

.td-name {
  font-weight: 600;
  color: var(--clr-grey-dark);
}

.td-qty {
  font-weight: 700;
  color: var(--clr-green-dark);
}

.td-grey {
  color: var(--clr-grey);
}

.td-total {
  font-family: var(--ff-headline);
  font-weight: 700;
  color: var(--clr-grey-dark);
}

.ticket-summary {
  margin-top: 0.82rem;
  border: 1px solid var(--clr-grey-mid);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.ts-row {
  display: flex;
  justify-content: space-between;
  padding: 0.46rem 0.8rem;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--clr-grey-light);
}

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

.ts-lbl {
  color: var(--clr-grey);
}

.ts-val {
  font-weight: 600;
  color: var(--clr-grey-dark);
}

.ts-disc .ts-val {
  color: var(--clr-orange);
  font-weight: 700;
}

.ts-grand {
  background: var(--clr-green-dark);
  font-family: var(--ff-headline);
  font-weight: 700;
}

.ts-grand .ts-lbl {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.88rem;
}

.ts-grand .ts-val {
  color: var(--clr-orange-light);
  font-size: 1.05rem;
}

/* ================================================================
   CHECKOUT SCREEN — Right: client / discount / payment
   ================================================================ */
.co-actions {
  padding: 0.65rem 0.85rem;
  display: none;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
}

.co-actions.active {
  display: flex;
}

.co-label {
  font-family: var(--ff-headline);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--clr-grey);
  margin-bottom: 0.28rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.co-select {
  width: 100%;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid var(--clr-grey-mid);
  border-radius: var(--radius-btn);
  font-family: var(--ff-body);
  font-size: 0.86rem;
  color: var(--clr-text);
  background: var(--clr-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color var(--ease);
}

.co-select:focus {
  border-color: var(--clr-green);
}

.disc-row {
  display: flex;
  gap: 0.42rem;
}

.disc-input {
  flex: 1;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--clr-grey-mid);
  border-radius: var(--radius-btn);
  font-family: var(--ff-body);
  font-size: 0.86rem;
  color: var(--clr-text);
  outline: none;
  transition: border-color var(--ease);
}

.disc-input:focus {
  border-color: var(--clr-orange);
}

.disc-type {
  display: flex;
  border-radius: var(--radius-btn);
  overflow: hidden;
  border: 1.5px solid var(--clr-grey-mid);
  flex-shrink: 0;
}

.disc-type button {
  border: none;
  background: var(--clr-white);
  padding: 0 0.62rem;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-grey);
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

.disc-type button.active {
  background: var(--clr-orange);
  color: #fff;
}

.pay-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.42rem;
}

.pay-btn {
  padding: 0.58rem 0.45rem;
  border-radius: var(--radius-btn);
  border: 2px solid var(--clr-grey-mid);
  background: var(--clr-white);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 0.76rem;
  color: var(--clr-grey-dark);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}

.pay-btn i {
  font-size: 1.1rem;
}

.pay-btn:hover {
  border-color: var(--clr-green);
  color: var(--clr-green);
  background: rgba(74, 124, 89, 0.04);
}

.pay-btn.active {
  background: var(--clr-green);
  border-color: var(--clr-green);
  color: #fff;
}

.note-input {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid var(--clr-grey-mid);
  border-radius: var(--radius-btn);
  font-family: var(--ff-body);
  font-size: 0.82rem;
  color: var(--clr-text);
  resize: none;
  outline: none;
  transition: border-color var(--ease);
}

.note-input:focus {
  border-color: var(--clr-green-light);
}

.btn-confirm {
  width: 100%;
  padding: 0.68rem 1rem;
  border-radius: var(--radius-btn);
  border: none;
  background: var(--clr-green);
  color: #fff;
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: 0.94rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 10px rgba(74, 124, 89, 0.4);
  transition: background var(--ease), transform 0.15s;
}

.btn-confirm:hover {
  background: var(--clr-green-dark);
}

.btn-confirm:active {
  transform: scale(0.97);
}

/* ================================================================
   FOOTER BAR (item count, total, aparcar/checkout/back buttons)
   ================================================================ */
.pos-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--h-footer);
  z-index: 900;
  background: var(--clr-green-dark);
  display: flex;
  align-items: center;
  padding: 0 clamp(0.75rem, 2vw, 1.25rem);
  gap: 0.55rem;
  box-shadow: var(--shadow-footer);
}

.ftr-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.ftr-count {
  background: var(--clr-orange);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 700;
  flex-shrink: 0;
}

.ftr-items {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
}

@media (max-width: 479px) {
  .ftr-items {
    display: none;
  }
}
.ftr-total {
  font-family: var(--ff-headline);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--clr-orange-light);
  white-space: nowrap;
}

.parked-pill {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-btn);
  padding: 0.18rem 0.5rem;
  font-size: 0.67rem;
  font-weight: 700;
  color: #c8b89a;
  display: none;
  align-items: center;
  gap: 0.26rem;
  cursor: pointer;
}

.parked-pill.visible {
  display: inline-flex;
}

.parked-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

/* APARCAR — outlined, earthy, muted — clearly secondary */
.btn-aparcar {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.5rem clamp(0.55rem, 1.8vw, 0.95rem);
  border-radius: var(--radius-btn);
  border: 2px solid var(--clr-aparcar);
  background: transparent;
  color: #c8b89a;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: clamp(0.68rem, 1.5vw, 0.8rem);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}

.btn-aparcar i {
  font-size: 0.9rem;
}

.btn-aparcar:hover {
  background: var(--clr-aparcar);
  color: #fff;
}

/* CHECKOUT — solid, orange, glowing — unmistakable primary action */
.btn-checkout {
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.55rem clamp(0.85rem, 2.2vw, 1.35rem);
  border-radius: var(--radius-btn);
  border: none;
  background: var(--clr-orange);
  color: #fff;
  font-family: var(--ff-headline);
  font-weight: 700;
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-checkout-btn);
  transition: background var(--ease), transform 0.15s, box-shadow var(--ease);
}

.btn-checkout i {
  font-size: 0.92rem;
}

.btn-checkout:hover {
  background: var(--clr-orange-light);
  box-shadow: 0 4px 16px rgba(224, 122, 47, 0.6);
  transform: translateY(-1px);
}

.btn-checkout:active {
  transform: scale(0.97);
}

/* BACK (checkout mode) */
.btn-back {
  display: none;
  align-items: center;
  gap: 0.36rem;
  padding: 0.5rem 0.82rem;
  border-radius: var(--radius-btn);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: clamp(0.68rem, 1.5vw, 0.8rem);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}

.btn-back.visible {
  display: flex;
}

.btn-back:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* ================================================================
   TOAST (transient status message)
   ================================================================ */
.toast-msg {
  position: fixed;
  bottom: calc(var(--h-footer) + 1rem);
  left: 50%;
  transform: translateX(-50%) translateY(18px);
  background: var(--clr-grey-dark);
  color: #fff;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius-pill);
  font-family: var(--ff-body);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 2000;
  white-space: nowrap;
}

.toast-msg.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ================================================================
   SALES HOME (sales.index)
   Left: scan + quick actions, notes, parked/in-progress tickets.
   Right: session info cards + quick-access menu.
   ================================================================ */
/* ── Top row: scan + actions ── */
.home-top {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  padding: 1rem;
  align-items: start;
}

@media (max-width: 920px) {
  .home-top {
    grid-template-columns: 1fr;
  }
}
.home-scan {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 0.75rem 1rem;
}

.home-scan fieldset.search {
  border: 0;
  padding: 0;
  margin: 0;
}

.home-scan fieldset.search legend {
  font-size: 0.78rem;
  color: var(--clr-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 0;
  margin-bottom: 0.4rem;
  padding: 0;
  width: auto;
}

.home-scan input#search_term {
  width: 100%;
  max-width: none;
  font-size: 1.05rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid var(--clr-grey-mid);
  border-radius: var(--radius-pill);
}

.home-scan input#search_term:focus {
  border-color: var(--clr-green);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.home-action {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.85rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--clr-green-dark);
  font-weight: 600;
  font-size: 0.85rem;
  border: 2px solid transparent;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}

.home-action i {
  font-size: 1.25rem;
  color: var(--clr-green);
}

.home-action:hover {
  transform: translateY(-1px);
  border-color: var(--clr-green-light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.home-action--primary {
  grid-column: 1/-1;
  background: var(--clr-green);
  color: #fff;
}

.home-action--primary i {
  color: #fff;
}

.home-action--primary:hover {
  background: var(--clr-green-dark);
  color: #fff;
}

.home-action--in i {
  color: #116611;
}

.home-action--out i {
  color: #991100;
}

/* ── Generic home section ── */
.home-section {
  padding: 0 1rem 1rem;
}

.home-section__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.home-section .view-title {
  margin-bottom: 0.6rem;
  border: 0;
  padding: 0;
}

/* ── Notes (post-it style) ── */
.notes_grid {
  display: grid;
  gap: 1.2rem 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  padding: 0.4rem 0.2rem 0.2rem;
}

.note-card {
  position: relative;
  background: #fff59d;
  border: 0;
  border-radius: 2px;
  padding: 0.95rem 1rem 1rem;
  min-height: 130px;
  cursor: pointer;
  font-family: "Caveat", "Comic Sans MS", cursive;
  color: #3a3320;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 6px 10px -4px rgba(0, 0, 0, 0.18), 0 14px 22px -10px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  will-change: transform;
}

/* Slight random-ish tilt per card */
.note-card:nth-child(4n+1) {
  transform: rotate(-1.6deg);
}

.note-card:nth-child(4n+2) {
  transform: rotate(1.1deg);
}

.note-card:nth-child(4n+3) {
  transform: rotate(-0.5deg);
}

.note-card:nth-child(4n) {
  transform: rotate(1.8deg);
}

.note-card:hover {
  transform: rotate(0) translateY(-2px) scale(1.02);
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.12), 0 10px 16px -6px rgba(0, 0, 0, 0.22), 0 22px 34px -14px rgba(0, 0, 0, 0.22);
  z-index: 2;
}

/* Folded corner accent */
.note-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.08) 50%);
  border-bottom-right-radius: 2px;
}

.note-card__subject {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.1;
  color: #5b4a10;
  margin-bottom: 0.25rem;
  padding-right: 3rem;
}

.note-card__meta {
  font-family: var(--ff-base, system-ui), sans-serif;
  font-size: 0.72rem;
  color: #7a6a3a;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.note-card__author {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(0, 0, 0, 0.06);
  color: #5b4a10;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.note-card__author i {
  font-size: 0.85rem;
}

.note-card__date {
  color: #8a7a4a;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.note-card__msg {
  font-size: 1.05rem;
  line-height: 1.2;
  color: #3a3320;
  white-space: pre-wrap;
  word-break: break-word;
}

.note-card__reply {
  margin-top: 0.5rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(0, 0, 0, 0.18);
  font-size: 0.95rem;
  color: #5e5230;
}

.note-card__ok {
  position: absolute;
  top: 0.3rem;
  right: 0.5rem;
  color: #3f8c5a;
  font-size: 1.05rem;
}

.note-card__badge {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  background: #c0392b;
  color: #fff;
  font-family: var(--ff-base, system-ui), sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

/* Unread: bright + bold + small tag */
.note-card--unread {
  background: #fff176;
}

.note-card--unread .note-card__subject {
  color: #4a3a00;
}

/* Read: faded paper */
.note-card--read {
  background: #fdf6c2;
  opacity: 0.72;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 0 4px 8px -4px rgba(0, 0, 0, 0.12);
}

.note-card--read .note-card__subject {
  color: #7a6a3a;
  font-weight: 500;
}

.note-card--read .note-card__msg {
  color: #5a5230;
}

.note-empty {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  color: var(--clr-grey);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

/* Detail block inside reply modal */
.note-detail {
  background: #fff8c5;
  border-left: 4px solid #e6c84b;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}

.note-detail__subject {
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 1.4rem;
  color: #5b4a10;
  line-height: 1.1;
}

.note-detail__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: #7a6a3a;
  margin: 0.25rem 0 0.5rem;
}

.note-detail__msg {
  font-family: "Caveat", cursive;
  font-size: 1.15rem;
  color: #3a3320;
  white-space: pre-wrap;
}

#modal-notes-reply .reply {
  background: #f7f7f0;
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin: 0.4rem 0;
}

#modal-notes-reply .reply small {
  color: #888;
  display: block;
  margin-bottom: 0.2rem;
}

/* ── Right panel: session cards ── */
.session-greet {
  background: linear-gradient(135deg, var(--clr-green) 0%, var(--clr-green-dark) 100%);
  color: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.session-greet__hello {
  font-size: 1.1rem;
  font-family: var(--ff-headline);
}

.session-greet__meta {
  font-size: 0.82rem;
  opacity: 0.9;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.session-card {
  background: #fff;
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-card);
}

.session-card__lbl {
  font-size: 0.7rem;
  color: var(--clr-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.session-card__main {
  font-family: var(--ff-headline);
  font-size: 1.3rem;
  color: var(--clr-orange);
}

.session-card__sub {
  font-size: 0.82rem;
  color: var(--clr-grey);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.session-divider {
  font-size: 0.7rem;
  color: var(--clr-grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0.4rem 0 0.1rem;
}

/* Full-width "close session / cash-up" button (links to the close hub) */
.session-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #fff;
  border: 1.5px solid #e5b9b3;
  border-radius: 10px;
  color: #c0392b;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
}

.session-logout i {
  font-size: 1.05rem;
}

.session-logout:hover {
  background: #fceae8;
  border-color: #c0392b;
  color: #c0392b;
  transform: translateY(-1px);
}

/* ── Quick-access menu (right panel) ── */
.quick-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.quick-menu__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.8rem 0.5rem;
  background: #f6f8f6;
  border: 2px solid transparent;
  border-radius: 12px;
  text-decoration: none;
  color: var(--clr-green-dark);
  font-weight: 600;
  font-size: 0.82rem;
  text-align: center;
  transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.quick-menu__btn i {
  font-size: 1.5rem;
  color: var(--clr-green);
}

.quick-menu__btn:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: var(--clr-green-light);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Empty placeholder for parked/in-progress tickets (scoped so it doesn't
   override the full-height .cart-empty used by the ticket cart). */
.home-section .cart-empty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  color: var(--clr-grey);
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
}

/* ================================================================
   AUTH / SESSION pages (auth/close — cash-up + quick exit)
   ================================================================ */
/* Row of quick exit actions at the top of the close page */
.close-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.2rem;
}

.close-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Cash-up summary ──
   The close page reuses legacy text utilities (.title/.green/.red/.grey/
   .big/.mini/.small) that only live in pos_style.css, which this layout
   (pos.layout.index) does not load. Re-map them to the design tokens,
   scoped to #session-close so nothing else is affected. */
#session-close .title {
  color: var(--clr-green-dark);
  font-weight: 700;
}
#session-close .green {
  color: var(--clr-green);
}
#session-close .red {
  color: #c0392b;
}
#session-close .orange {
  color: var(--clr-orange);
}
#session-close .blue {
  color: #1565c0;
}
#session-close .grey {
  color: var(--clr-grey);
}
#session-close .small {
  font-size: 90%;
}
#session-close .mini {
  font-size: 11px;
}
#session-close .big {
  font-size: 120%;
}
