/* iPad 横向き向けレジ画面スタイル（docs/screenshots/01〜09 準拠） */

:root {
  --pos-blue: #0072bc;
  --pos-blue-header: #0080c9;
  --pos-blue-cta: #0072ba;
  --pos-blue-bright: #0894e6;
  --pos-blue-active: #0082cb;
  --pos-navy-badge: #004a8f;
  --pos-navy-key: #00385c;
  --pos-card-green: #0f8a00;
  --pos-red: #d93838;
  --pos-coral: #ec707d;
  --pos-border: #c8cdd3;
  --pos-border-light: #e2e5ea;
  --pos-bg-subbar: #f8f9fa;
  --pos-bg-sidebar: #eceeef;
  --pos-bg-card: #f2f4f8;
  --pos-bg-strip: #f1f3f6;
  --pos-text: #111111;
  --pos-text-muted: #767c85;
  --pos-text-subtle: #9ca3af;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  color: var(--pos-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans',
    'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus {
  outline: none;
}

.register-app-root,
.pos-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  position: relative;
  overflow: hidden;
  touch-action: manipulation;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* --- 上部ヘッダー --- */
.pos-topbar {
  height: 44px;
  flex: 0 0 44px;
  background: #ffffff;
  border-bottom: 1px solid var(--pos-border);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 18px;
}

.pos-topbar-left {
  display: flex;
  align-items: center;
}

.pos-staff-selector {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--pos-blue);
  font-size: 14px;
  padding: 6px 4px;
}

.pos-icon-xs {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pos-icon-xs.muted {
  color: #aeb6bf;
}

.pos-topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pos-tx-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 40px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--pos-navy-badge);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.pos-tx-badge-chevron {
  width: 12px;
  height: 12px;
  display: inline-flex;
}

.pos-topbar-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--pos-blue);
  letter-spacing: 0.02em;
}

.pos-topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.pos-top-icon-btn {
  width: 28px;
  height: 28px;
  color: var(--pos-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pos-top-icon-btn svg {
  width: 22px;
  height: 22px;
}

.pos-top-icon-btn:active {
  opacity: 0.55;
}

.pos-bell-dot {
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e53935;
}

/* --- サブツールバー --- */
.pos-subbar {
  height: 46px;
  flex: 0 0 46px;
  background: var(--pos-bg-subbar);
  border-bottom: 1px solid var(--pos-border);
  display: flex;
  align-items: stretch;
}

.pos-subbar-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 18px;
}

.pos-subbar-actions-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pos-subbar-right {
  width: 38.2%;
  flex: 0 0 38.2%;
  border-left: 1px solid var(--pos-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 14px;
}

.pos-subbar-right-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.pos-sub-icon-btn {
  width: 30px;
  height: 30px;
  color: var(--pos-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pos-sub-icon-btn.muted {
  color: #b4c2d1;
}

.pos-sub-icon-btn svg {
  width: 23px;
  height: 23px;
}

.pos-sub-icon-btn:active {
  opacity: 0.55;
}

.pos-stop-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #d94a4a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.pos-stop-btn:active {
  background: #fdecec;
}

.pos-stop-square {
  width: 10px;
  height: 10px;
  border-radius: 1.5px;
  background: #d94a4a;
}

/* --- メイン3カラム領域 --- */
.pos-main {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  background: #ffffff;
}

/* 左：部門カラム */
.pos-dept-col {
  width: 20.5%;
  flex: 0 0 20.5%;
  min-width: 160px;
  background: var(--pos-bg-sidebar);
  border-right: 1px solid var(--pos-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.pos-dept-btn {
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  border-bottom: 1px solid #d5d9df;
  color: var(--pos-text-muted);
  background: var(--pos-bg-sidebar);
  font-size: 15px;
  position: relative;
}

.pos-dept-btn:active {
  background: #e3e6ea;
}

.pos-dept-btn.is-active {
  background: #ffffff;
  color: var(--pos-text);
  font-weight: 500;
  width: calc(100% + 1px);
  z-index: 2;
  border-bottom-color: #c8cdd3;
}

.pos-dept-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-dept-folder-icon {
  width: 22px;
  height: 22px;
  color: #b5bcc4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pos-dept-folder-icon svg {
  width: 20px;
  height: 20px;
}

.pos-dept-sub {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #8c939d;
}

.pos-code-icon {
  width: 12px;
  height: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}

.pos-code-icon svg {
  width: 12px;
  height: 11px;
}

/* 中央：商品グリッド */
.pos-product-col {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  padding: 5px 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.pos-product-card {
  background: var(--pos-bg-card);
  border: 1px solid #bfc5ce;
  border-radius: 2px;
  min-height: 82px;
  padding: 6px 8px 5px 7px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  text-align: left;
  transition: background-color 0.08s ease;
}

.pos-product-card:active {
  background: #dcebf8;
  border-color: var(--pos-blue);
}

.pos-no-image {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  align-self: center;
  background: #ffffff;
  border: 1px solid #e3e6eb;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c2c6cc;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
}

.pos-product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pos-product-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--pos-text);
  line-height: 1.25;
  padding-top: 6px;
  word-break: break-word;
}

.pos-product-price {
  align-self: flex-end;
  font-size: 13.5px;
  color: var(--pos-blue);
  white-space: nowrap;
  margin-top: 4px;
}

/* 右：カート＆お会計パネル */
.pos-right-panel {
  width: 38.2%;
  flex: 0 0 38.2%;
  border-left: 1px solid var(--pos-border);
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
}

.pos-right-upper {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
}

.pos-right-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.pos-right-strip {
  width: 74px;
  flex: 0 0 74px;
  background: var(--pos-bg-strip);
  border-left: 1px solid #d8dce0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.pos-discount-reset-btn {
  width: 100%;
  height: 66px;
  padding: 0 4px;
  background: var(--pos-coral);
  color: #111111;
  font-size: 10.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.pos-discount-reset-btn:active {
  filter: brightness(0.92);
}

/* カートヘッダー＆明細 */
.pos-cart-header {
  height: 40px;
  flex: 0 0 40px;
  background: #f4f5f7;
  border-bottom: 1px solid #d8dce0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 14px;
}

.pos-cart-count {
  color: var(--pos-blue);
  font-size: 15px;
  font-weight: 500;
}

.pos-cart-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
}

.pos-cart-row {
  padding: 8px 10px 9px 14px;
  border-bottom: 1px solid var(--pos-border-light);
}

.pos-cart-row-head {
  margin-bottom: 8px;
}

.pos-cart-item-name {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--pos-text);
  line-height: 1.3;
}

.pos-cart-item-code {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #7a828c;
}

.pos-cart-row-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pos-stepper {
  display: inline-flex;
  border: 1px solid #49a0e0;
  border-radius: 4px;
  overflow: hidden;
  width: 106px;
  height: 32px;
  flex: 0 0 106px;
  background: #ffffff;
}

.pos-stepper-btn {
  flex: 1;
  color: var(--pos-blue);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pos-stepper-btn + .pos-stepper-btn {
  border-left: 1px solid #49a0e0;
}

.pos-stepper-btn:active {
  background: #e6f3fc;
}

.pos-cart-qty {
  font-size: 14px;
  color: var(--pos-blue);
  min-width: 34px;
  text-align: center;
}

.pos-cart-price-col {
  margin-left: auto;
  text-align: right;
  line-height: 1.25;
}

.pos-cart-line-price {
  font-size: 15px;
  color: var(--pos-blue);
  font-weight: 500;
  white-space: nowrap;
}

.pos-cart-line-tax {
  font-size: 12px;
  color: #555b63;
}

.pos-cart-chevron {
  width: 14px;
  height: 14px;
  color: #c0c6ce;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 14px;
}

/* お会計サマリーパネル（06-checkout-summary.jpg） */
.pos-summary-header {
  height: 40px;
  flex: 0 0 40px;
  background: #f4f5f7;
  border-bottom: 1px solid #d8dce0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 10px;
}

.pos-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--pos-blue);
  font-size: 14.5px;
  justify-self: start;
  padding: 4px 2px;
}

.pos-back-btn:active {
  opacity: 0.6;
}

.pos-back-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.pos-summary-member {
  color: var(--pos-blue);
  font-size: 15px;
  font-weight: 600;
}

.pos-summary-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #f4f5f7;
}

.pos-summary-card {
  background: #ffffff;
  border-bottom: 1px solid #d8dce0;
}

.pos-summary-row {
  width: 100%;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eaedf1;
  background: #ffffff;
  text-align: left;
}

.pos-summary-row.is-qty {
  align-items: flex-start;
  padding-top: 14px;
  padding-bottom: 14px;
}

.pos-summary-row.is-clickable:active {
  background: #f5f9fd;
}

.pos-summary-label {
  font-size: 14px;
  color: var(--pos-text);
}

.pos-summary-val {
  font-size: 15px;
  color: var(--pos-blue);
  font-weight: 500;
}

.pos-summary-dept-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.pos-summary-dept-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--pos-blue);
}

.pos-summary-dept-name {
  font-size: 11.5px;
}

.pos-summary-dept-count {
  font-size: 15px;
  font-weight: 500;
}

.pos-row-chevron {
  width: 14px;
  height: 14px;
  color: #b4bbc4;
  display: inline-flex;
}

.pos-summary-total-block {
  border-top: 1px solid #cfd4db;
  background: #ffffff;
}

.pos-summary-total-row {
  padding: 12px 16px 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.pos-summary-total-val {
  font-size: 32px;
  font-weight: 400;
  color: var(--pos-blue);
  line-height: 1.1;
}

.pos-summary-tax-row {
  padding: 7px 16px 12px;
  border-top: 1px solid #f0f2f5;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-summary-tax-label {
  font-size: 12.5px;
  color: #8c939d;
}

.pos-summary-tax-val {
  font-size: 14px;
  color: #7c828b;
}

.pos-summary-staff-card {
  margin-top: 16px;
  border-top: 1px solid #d8dce0;
  border-bottom: 1px solid #d8dce0;
  background: #ffffff;
}

.pos-summary-staff-card .pos-summary-row {
  border-bottom: none;
}

.pos-summary-staff-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.pos-staff-icon {
  width: 22px;
  height: 22px;
  color: var(--pos-blue);
  display: inline-flex;
}

/* 右下青いアクション帯 */
.pos-cta-bar {
  height: 62px;
  flex: 0 0 62px;
  width: 100%;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 0 18px 0 20px;
}

.pos-cta-bar.is-checkout {
  background: var(--pos-blue-cta);
  justify-content: space-between;
}

.pos-cta-bar.is-checkout:active:not(.is-empty) {
  filter: brightness(0.92);
}

.pos-cta-total {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.pos-cta-next {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.pos-cta-chevron {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.pos-cta-bar.is-deposit {
  background: var(--pos-blue-bright);
  justify-content: center;
}

.pos-cta-bar.is-deposit:active {
  filter: brightness(0.92);
}

.pos-cta-deposit-label {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* --- 下部タブバー --- */
.pos-tabbar {
  height: 52px;
  flex: 0 0 52px;
  background: #f4f5f7;
  border-top: 1px solid var(--pos-border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.pos-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: #939aa4;
}

.pos-tab-btn.is-active {
  color: var(--pos-blue);
}

.pos-tab-icon {
  width: 24px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pos-tab-icon svg {
  width: 22px;
  height: 22px;
}

.pos-tab-label {
  font-size: 10px;
  font-weight: 500;
}

/* --- 預り金入力モーダル（07〜09） --- */
.pos-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.pos-pay-modal {
  width: min(830px, 76vw);
  height: min(540px, 78vh);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  position: relative;
}

.pos-pay-modal-header {
  height: 46px;
  flex: 0 0 46px;
  background: var(--pos-blue-header);
  color: #ffffff;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
}

.pos-pay-modal-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 47.5% 52.5%;
  background: #ffffff;
}

/* モーダル左列 */
.pos-pay-left {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #d8dce0;
  background: #ffffff;
}

.pos-pay-totals {
  padding: 12px 16px 10px;
}

.pos-pay-total-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px dashed #d5d9df;
}

.pos-pay-total-label {
  font-size: 15px;
  font-weight: 700;
  padding-top: 4px;
}

.pos-pay-total-right {
  text-align: right;
}

.pos-pay-total-amount {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.15;
}

.pos-pay-shortage {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--pos-red);
}

.pos-pay-change-row {
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-pay-change-label {
  font-size: 15px;
}

.pos-pay-change-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.pos-pay-change-amount {
  font-size: 23px;
  font-weight: 500;
}

.pos-pay-no-change-note {
  font-size: 10.5px;
  color: var(--pos-text-muted);
}

.pos-pay-warning {
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--pos-red);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.pos-pay-divider-band {
  height: 16px;
  flex: 0 0 16px;
  background: #f3f4f6;
  border-top: 1px solid #e2e5ea;
  border-bottom: 1px solid #e2e5ea;
}

.pos-pay-methods-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pos-pay-method-row {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  color: var(--pos-text);
  position: relative;
}

.pos-pay-method-row.is-overpay:not(.is-active) {
  background: #fff7f7;
}

.pos-pay-method-row.is-active {
  background: var(--pos-blue-active);
  color: #ffffff;
}

.pos-pay-method-row.is-active.is-card-theme {
  background: var(--pos-card-green);
  color: #ffffff;
}

.pos-pay-method-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 54px;
  padding: 10px 6px 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  color: inherit;
}

.pos-pay-sublabel-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

/* iPad のタップ目安（44px）を確保しつつ見た目は控えめなピル・丸アイコンに保つ */
.pos-pay-row-subtype-btn {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--pos-card-green);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1;
}

.pos-pay-row-subtype-btn::before {
  content: '';
  position: absolute;
  inset: 9px 2px;
  border-radius: 4px;
  border: 1px solid rgba(15, 138, 0, 0.35);
  background: rgba(15, 138, 0, 0.08);
  z-index: -1;
}

.pos-pay-row-subtype-btn:active::before {
  background: rgba(15, 138, 0, 0.18);
}

.pos-pay-method-row.is-active .pos-pay-row-subtype-btn {
  color: #ffffff;
}

.pos-pay-method-row.is-active .pos-pay-row-subtype-btn::before {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.16);
}

.pos-pay-row-remove {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin-right: 2px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: #8c939d;
  background: transparent;
  z-index: 1;
}

.pos-pay-row-remove::before {
  content: '';
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  z-index: -1;
}

.pos-pay-row-remove:active::before {
  background: rgba(0, 0, 0, 0.16);
}

.pos-pay-method-row.is-active .pos-pay-row-remove {
  color: rgba(255, 255, 255, 0.94);
}

.pos-pay-method-row.is-active .pos-pay-row-remove::before {
  background: rgba(255, 255, 255, 0.18);
}

.pos-pay-method-row.is-active .pos-pay-row-remove:active::before {
  background: rgba(255, 255, 255, 0.34);
}

.pos-pay-method-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pos-pay-method-icon {
  width: 24px;
  height: 20px;
  color: var(--pos-blue-header);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}

.pos-pay-method-row.is-active .pos-pay-method-icon {
  color: #ffffff;
}

.pos-pay-method-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pos-pay-method-label {
  font-size: 14px;
  font-weight: 500;
}

.pos-pay-sublabel {
  font-size: 11px;
  opacity: 0.88;
}

.pos-pay-sublabel.is-warn {
  color: #d93838;
  font-weight: 600;
  opacity: 1;
}

.pos-pay-method-row.is-active .pos-pay-sublabel.is-warn {
  color: #ffe4a3;
}

.pos-pay-method-amount {
  font-size: 20px;
  font-weight: 400;
  color: #555b63;
  white-space: nowrap;
}

.pos-pay-method-row.is-active .pos-pay-method-amount {
  color: rgba(255, 255, 255, 0.92);
}

.pos-pay-add-btn {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 14px;
  color: var(--pos-text);
}

.pos-pay-add-btn:active {
  background: #f4f7fb;
}

.pos-pay-add-plus {
  color: var(--pos-blue);
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

/* モーダル右列：テンキー */
.pos-pay-numpad-wrap {
  display: flex;
  min-height: 0;
  background: #e2e4e8;
}

.pos-pay-numpad-wrap.is-card-theme {
  border: 6px solid var(--pos-card-green);
  background: var(--pos-card-green);
}

.pos-numpad {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 1px;
  background: #e0e2e6;
}

.pos-num-key {
  background: #f1f2f4;
  color: #4a4d52;
  font-size: 28px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pos-num-key:active:not(:disabled) {
  background: #dfe4ea;
}

.pos-num-key.is-blue {
  background: #007ec8;
  color: #ffffff;
}

.pos-num-key.is-blue:active {
  background: #006bab;
}

.pos-num-key.is-blue svg {
  width: 28px;
  height: 28px;
}

.pos-num-key.is-navy {
  background: var(--pos-navy-key);
  color: #ffffff;
  font-size: 26px;
}

.pos-num-key.is-navy:active {
  background: #002a45;
}

.pos-num-key.is-enter {
  grid-row: span 2;
}

.pos-num-key.is-dot {
  background: #7d7f82;
  color: #55575a;
  cursor: default;
}

/* チェックアウトフッターボタン */
.pos-pay-checkout-btn {
  height: 60px;
  flex: 0 0 60px;
  width: 100%;
  border-radius: 0 0 10px 10px;
  background: var(--pos-blue-bright);
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.pos-pay-checkout-btn.is-disabled {
  background: #4ba9e8;
  opacity: 0.78;
  cursor: not-allowed;
}

.pos-pay-checkout-btn.is-ready:active {
  filter: brightness(0.92);
}

.pos-pay-checkout-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
}

/* --- ポップオーバー背景（表示中は背面のテンキー・ボタン操作を遮断） --- */
.pos-popover-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  z-index: 15;
}

/* --- ポップオーバー（07 支払方法追加） --- */
.pos-popover-add-method {
  position: absolute;
  top: -12px;
  right: 16px;
  bottom: -64px;
  width: 49%;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  display: flex;
  flex-direction: column;
  z-index: 20;
}

.pos-popover-arrow {
  position: absolute;
  left: -10px;
  top: 51.5%;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #ffffff;
  filter: drop-shadow(-2px 0 2px rgba(0, 0, 0, 0.08));
}

.pos-popover-header {
  height: 46px;
  flex: 0 0 46px;
  background: var(--pos-blue-header);
  color: #ffffff;
  border-radius: 10px 10px 0 0;
  display: grid;
  grid-template-columns: 86px 1fr 86px;
  align-items: center;
  padding: 0 12px;
}

.pos-popover-header.is-two-line {
  height: 52px;
  flex: 0 0 52px;
}

.pos-popover-title {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.pos-popover-title-stack {
  text-align: center;
  line-height: 1.25;
}

.pos-popover-title-sub {
  font-size: 12.5px;
  font-weight: 500;
}

.pos-popover-close {
  justify-self: end;
  color: #ffffff;
  font-size: 13.5px;
  padding: 6px 4px;
  white-space: nowrap;
}

.pos-popover-close:active {
  opacity: 0.7;
}

.pos-popover-list {
  flex: 1;
  overflow-y: auto;
  border-radius: 0 0 10px 10px;
}

.pos-popover-list-item {
  width: 100%;
  padding: 15px 18px;
  text-align: left;
  font-size: 15px;
  color: var(--pos-text);
  border-bottom: 1px solid #e6e8ec;
  background: #ffffff;
}

.pos-popover-list-item:active {
  background: #edf6fc;
}

/* --- 中央ポップオーバー（08 カード決済端末 / 09 決済種別） --- */
.pos-popover-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 340px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  z-index: 25;
}

.pos-terminal-option {
  width: 100%;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  text-align: left;
}

.pos-terminal-option + .pos-terminal-option {
  border-top: 1px solid #eceef2;
}

.pos-terminal-option:active {
  background: #eef6fc;
}

.pos-terminal-icon {
  width: 48px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
}

.pos-terminal-icon svg {
  width: 44px;
  height: 38px;
}

.pos-terminal-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--pos-text);
}

.pos-popover-card-type {
  width: 330px;
  max-height: 440px;
  display: flex;
  flex-direction: column;
}

/* --- 会計完了モーダル --- */
.pos-complete-modal {
  width: min(460px, 86vw);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pos-complete-body {
  padding: 20px 26px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.pos-complete-head {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pos-complete-check {
  width: 44px;
  height: 44px;
  color: var(--pos-blue-bright);
}

.pos-complete-heading {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--pos-text);
}

.pos-complete-summary {
  flex: 0 0 auto;
  width: 100%;
  margin-top: 14px;
  background: #f7f9fb;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pos-complete-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14.5px;
}

.pos-complete-row.is-strong {
  font-size: 17px;
  font-weight: 600;
}

.pos-complete-row.is-muted {
  font-size: 12.5px;
  color: var(--pos-text-muted);
}

.pos-complete-row.is-change {
  font-size: 20px;
  font-weight: 600;
  color: var(--pos-blue);
}

.pos-complete-divider {
  border-top: 1px dashed #d1d6dc;
  margin: 4px 0;
}

/* --- トースト --- */
.pos-toast {
  position: fixed;
  left: 50%;
  bottom: 70px;
  transform: translateX(-50%);
  background: rgba(24, 32, 42, 0.88);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  z-index: 200;
  pointer-events: none;
}

/* --- 縦向き・やや狭い画面でも崩れない調整 --- */
@media (max-width: 960px) {
  .pos-dept-col {
    width: 17%;
    min-width: 120px;
  }
  .pos-right-panel,
  .pos-subbar-right {
    width: 40%;
    flex-basis: 40%;
  }
  .pos-right-strip {
    width: 56px;
    flex-basis: 56px;
  }
  .pos-product-name {
    font-size: 13.5px;
  }
}
