html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  background: #f3f6f9;
  color: #1f2937;
}

/* Login and register screens follow the main YAMY Enterprise portal theme. */
.pos-auth-body {
  background: #f4f7fb;
  color: #263651;
}

.pos-auth-body > .container-fluid,
.pos-auth-body > .container-fluid > main {
  min-height: 100vh;
  padding: 0 !important;
}

.pos-auth-page {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
}

.pos-auth-card {
  background: #fff;
  border: 1px solid #dde6ef;
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(24, 39, 75, .08);
  overflow: hidden;
  width: min(100%, 440px);
}

.pos-auth-card--register { width: min(100%, 500px); }

.pos-auth-header {
  align-items: center;
  border-bottom: 1px solid #e7edf3;
  display: flex;
  justify-content: space-between;
  padding: 20px 28px;
}

.pos-auth-brand { color: #102a54; font-size: 20px; font-weight: 750; letter-spacing: .01em; }
.pos-auth-brand span { color: #7181a1; font-weight: 350; }
.pos-auth-badge { background: #e8f2fc; border: 1px solid #c8ddf0; border-radius: 6px; color: #0d5798; font-size: 11px; font-weight: 750; letter-spacing: .1em; padding: 5px 8px; }
.pos-auth-content { padding: 28px; }
.pos-auth-content h1 { color: #102a54; font-size: 22px; font-weight: 650; margin: 0 0 6px; }
.pos-auth-subtitle { color: #7181a1; font-size: 13px; margin: 0 0 24px; }
.pos-auth-field { margin-bottom: 17px; }
.pos-auth-field > label { color: #465a74; display: block; font-size: 12px; font-weight: 650; margin-bottom: 7px; }

.pos-auth-control {
  background: #fff;
  border: 1px solid #ccd7e4;
  border-radius: 6px;
  color: #2f405c;
  display: block;
  font-size: 14px;
  height: 44px;
  outline: 0;
  padding: 0 13px;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

.pos-auth-control::placeholder { color: #9aa8b9; }
.pos-auth-control:focus { background: #fff; border-color: #0d5798; box-shadow: 0 0 0 3px rgba(13, 87, 152, .11); color: #2f405c; }
.pos-auth-select { appearance: auto; }
.pos-auth-select option { background: #fff; color: #182230; }
.pos-auth-select option:disabled { color: #8b95a5; }
.pos-auth-money { position: relative; }
.pos-auth-money > span { color: #7181a1; font-size: 11px; font-weight: 700; left: 13px; position: absolute; top: 50%; transform: translateY(-50%); }
.pos-auth-money .pos-auth-control { padding-left: 48px; }
.pos-auth-validation { color: #b42318; display: block; font-size: 11px; margin-top: 5px; }

.pos-auth-primary {
  background: #0d5798;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  margin-top: 4px;
  min-height: 44px;
  transition: background-color .15s;
  width: 100%;
}

.pos-auth-primary:hover { background: #0a477d; }
.pos-auth-alert:empty { display: none; }
.pos-auth-alert, .pos-auth-warning, .pos-auth-info, .pos-auth-success { border-radius: 6px; font-size: 12px; margin-bottom: 17px; padding: 10px 12px; }
.pos-auth-alert { background: #fdecec; border: 1px solid #f3c6c2; color: #b42318; }
.pos-auth-warning { background: #fff4dd; border: 1px solid #f1d79c; color: #8c5c00; }
.pos-auth-info { background: #e8f2fc; border: 1px solid #c8ddf0; color: #0d5798; }
.pos-auth-success { background: #e6f6ee; border: 1px solid #bfe5d2; color: #18794e; }
.pos-auth-signout-form { margin-top: 16px; text-align: center; }
.pos-auth-signout { background: transparent; border: 0; color: #7181a1; font-size: 12px; padding: 5px 10px; text-decoration: underline; }
.pos-auth-signout:hover { color: #0d5798; }
.pos-auth-footer { color: #9aa8b9; font-size: 10px; margin-top: 24px; text-align: center; }

@media (max-width: 520px) {
  .pos-auth-page { padding: 14px; }
  .pos-auth-header { padding: 17px 20px; }
  .pos-auth-content { padding: 22px 20px; }
}

.pos-shell { padding: 1rem 0; }
.pos-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pos-header h1 { margin: 0; font-size: 1.5rem; font-weight: 750; }
.pos-session { color: #667085; font-size: .88rem; margin-top: .2rem; }
.pos-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: .8rem; min-height: calc(100vh - 105px); }
.pos-catalog, .pos-cart-panel { background: #fff; border: 1px solid #dde4ec; border-radius: 12px; box-shadow: 0 5px 18px rgba(16, 24, 40, .06); }
.pos-catalog { padding: 1rem; }
.pos-search { border-width: 2px; margin-bottom: 1rem; }
.pos-message { color: #667085; padding: 2rem; text-align: center; }
.pos-item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .75rem; }
.pos-item-card { background: #fff; border: 1px solid #d9e2ec; border-radius: 10px; color: #1f2937; display: flex; flex-direction: column; gap: .35rem; min-height: 112px; padding: .85rem; text-align: left; transition: border-color .12s, box-shadow .12s, transform .12s; }
.pos-item-card:hover:not(:disabled) { border-color: #0d6efd; box-shadow: 0 4px 14px rgba(13, 110, 253, .14); transform: translateY(-1px); }
.pos-item-card:disabled { background: #f7f7f8; color: #98a2b3; }
.pos-item-card strong { font-size: .95rem; line-height: 1.25; }
.pos-item-card > span { color: #667085; font-size: .78rem; }
.pos-item-card .pos-item-card-footer { color: #0d6efd; font-size: .85rem; font-weight: 700; margin-top: auto; }
.pos-cart-panel { display: flex; flex-direction: column; padding: .7rem; }
.pos-cart-title { align-items: center; display: flex; justify-content: space-between; margin-bottom: .45rem; }
.pos-cart-title h2 { font-size: .95rem; margin: 0; }
.pos-cart-title .btn { font-size: .68rem; padding: .2rem .42rem; }
.pos-customer-picker { margin-bottom: .5rem; position: relative; }
.pos-customer-picker > label { color: #475467; display: block; font-size: .76rem; font-weight: 700; margin-bottom: .3rem; }
.pos-customer-picker > label span { color: #98a2b3; font-weight: 500; }
.pos-customer-picker .form-control { font-size: .75rem; min-height: 33px; padding: .35rem .55rem; }
.pos-customer-results { background: #fff; border: 1px solid #ccd7e4; border-radius: 7px; box-shadow: 0 10px 24px rgba(16,24,40,.12); left: 0; max-height: 230px; overflow-y: auto; position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; }
.pos-customer-results button { background: #fff; border: 0; border-bottom: 1px solid #edf1f5; display: flex; flex-direction: column; padding: .65rem .75rem; text-align: left; width: 100%; }
.pos-customer-results button:last-child { border-bottom: 0; }
.pos-customer-results button:hover { background: #f4f8fc; }
.pos-customer-results strong { color: #263651; font-size: .78rem; }
.pos-customer-results small { color: #718096; font-size: .68rem; margin-top: .1rem; }
.pos-customer-empty { color: #718096; font-size: .75rem; padding: .8rem; text-align: center; }
.pos-selected-customer { align-items: center; background: #e8f2fc; border: 1px solid #c8ddf0; border-radius: 7px; color: #0d5798; display: flex; font-size: .7rem; justify-content: space-between; margin-top: .3rem; padding: .35rem .5rem; }
.pos-selected-customer button { background: transparent; border: 0; color: #0d5798; font-size: 1.05rem; line-height: 1; padding: 0 .15rem; }
.pos-payment-method { margin-bottom: .5rem !important; }
.pos-payment-method .form-select { font-size: .76rem; min-height: 34px; padding: .3rem 1.9rem .3rem .55rem; }
.pos-credit-info { background: #e8f2fc; border: 1px solid #c8ddf0; border-radius: 7px; color: #0d5798; font-size: .68rem; line-height: 1.35; margin-bottom: .5rem; padding: .45rem .55rem; }
.pos-empty-cart { border: 1px dashed #cbd5e1; border-radius: 7px; color: #667085; font-size: .75rem; padding: 1.25rem .65rem; text-align: center; }
.pos-cart-lines { flex: 1; max-height: calc(100vh - 355px); min-height: 80px; overflow-y: auto; }
.pos-cart-line { align-items: center; border-bottom: 1px solid #edf1f5; display: grid; gap: .35rem; grid-template-columns: minmax(0, 1fr) auto auto; padding: .45rem 0; }
.pos-cart-line > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.pos-cart-line strong:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-cart-line strong { font-size: .76rem; }
.pos-cart-line small { color: #667085; font-size: .65rem; }
.pos-qty-controls { display: flex; }
.pos-qty-controls button, .pos-qty-controls input { border: 1px solid #cbd5e1; height: 27px; text-align: center; width: 27px; }
.pos-qty-controls button { background: #f8fafc; font-size: .9rem; line-height: 1; }
.pos-qty-controls input { border-left: 0; border-right: 0; font-size: .7rem; width: 36px; }
.pos-totals { border-top: 1px solid #e5e7eb; margin-top: .45rem; padding: .45rem 0; }
.pos-totals > div, .pos-change { display: flex; font-size: .75rem; justify-content: space-between; padding: .12rem 0; }
.pos-grand-total { color: #0d6efd; font-size: 1.05rem !important; margin-top: .2rem; }
.pos-change { font-size: .85rem; margin: -.15rem 0 .5rem; }
.pos-cart-panel .form-label { font-size: .72rem; margin-bottom: .2rem; }
.pos-cart-panel .form-control-lg { font-size: .85rem; min-height: 36px; padding: .4rem .55rem; }
.pos-cart-panel .mb-3 { margin-bottom: .5rem !important; }
.pos-cart-panel .pos-message { font-size: .72rem; padding: .45rem; }
.pos-cart-panel #completeSale { font-size: .85rem; padding: .5rem .7rem; }
.shift-summary { border: 1px solid #dde4ec; border-radius: 10px; overflow: hidden; }
.shift-summary > div { display: flex; justify-content: space-between; padding: .7rem .85rem; border-bottom: 1px solid #edf1f5; }
.shift-summary > div:last-child { border-bottom: 0; }
.shift-summary span { color: #667085; }
.shift-expected { background: #eef6ff; color: #0d6efd; font-size: 1.12rem; }

@media (max-width: 900px) {
  .pos-workspace { grid-template-columns: 1fr; }
  .pos-cart-lines { max-height: none; }
}
