/* Teletraan POS: big, clear touch targets for the counter and the iPad. */
body { background: #f4f5f7; }
.pos-main { padding-bottom: 2rem; }

.pos-login { max-width: 26rem; margin: 3rem auto; }
.pos-qr { display: flex; justify-content: center; }
.pos-qr img { width: 200px; height: 200px; image-rendering: pixelated; }
.pos-key { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; text-align: center; word-break: normal; overflow-wrap: normal; }
.pos-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.6rem; letter-spacing: .3em; text-align: center; }

.pos-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem; }
.pos-tile { display: flex; flex-direction: column; justify-content: center; min-height: 7rem; font-size: 1.3rem; }
.pos-tile small { font-size: .8rem; opacity: .8; }

/* Sale screen */
.sale-qty { width: 6rem; }
.sale-price { width: 8rem; }
.sale-methods { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.sale-methods .btn { padding: .8rem; font-size: 1.1rem; }

/* Status pills (open / ready / completed / void): soft tint, light border, white icon in a coloured circle */
.pos-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .75rem .2rem .3rem; border: 1px solid; border-radius: 999px;
           font-size: .85rem; line-height: 1.3; white-space: nowrap; text-transform: capitalize; }
.pos-tag::before { content: ''; flex: none; width: 1.15em; height: 1.15em; border-radius: 50%;
                   background-position: center; background-repeat: no-repeat; background-size: 68%; }
.pos-tag-lg { font-size: .95rem; padding: .3rem .9rem .3rem .35rem; }
.pos-tag-open  { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.pos-tag-ready { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.pos-tag-done  { color: #4b5563; background: #f3f4f6; border-color: #e5e7eb; }
.pos-tag-void  { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.pos-tag-open::before { background-color: #f59e0b;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='6'/%3E%3Cpath d='M8 4.5V8l2.5 1.5'/%3E%3C/svg%3E"); }
.pos-tag-ready::before { background-color: #16a34a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); }
.pos-tag-done::before { background-color: #6b7280;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); }
.pos-tag-void::before { background-color: #dc2626;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7'/%3E%3C/svg%3E"); }

/* keyboard: the highlighted result in a search list */
.list-group-item-action:focus { background: #e7f1ff; outline: 2px solid #0d6efd; outline-offset: -2px; z-index: 2; }

/* history pop-up: big < > arrows either side */
.doc-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 1060; width: 3.2rem; height: 5rem; border: 0; border-radius: .5rem;
           background: rgba(255,255,255,.9); color: #0d6efd; font-size: 3rem; line-height: 1; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.doc-nav:hover { background: #fff; } .doc-nav:disabled { opacity: .3; }
.doc-prev { left: 1rem; } .doc-next { right: 1rem; }
@media (max-width: 1199px) { .doc-prev { left: .25rem; } .doc-next { right: .25rem; } }

/* history pop-up shown without animation (instant, and never gets stuck) */
.doc-modal.show { display: block; background: rgba(0, 0, 0, .5); }

/* Stock */
.lbl-copies { width: 5rem; }
#stk-rows tr { cursor: pointer; }
#stk-rows tr:focus { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.stk-photo { margin: 0; text-align: center; }
.stk-photo img { width: 140px; height: 140px; object-fit: contain; border: 1px solid var(--bs-border-color); border-radius: .375rem; background: #fff; }
.stk-preview { width: 100%; height: 24rem; border: 1px solid var(--bs-border-color); border-radius: .375rem; background: #fff; }
.stk-editor { width: 100%; height: 26rem; border: 1px solid var(--bs-border-color); border-radius: .375rem; background: #fff; }
.stk-tools .btn { min-width: 2.2rem; }

/* Logo */
.pos-logo { height: 32px; width: auto; max-width: 220px; object-fit: contain; }
.set-logo { min-height: 60px; display: flex; align-items: center; justify-content: center; border-radius: .375rem; padding: .5rem; background: #f8f9fa; }
.set-logo-dark { background: #212529; }
.set-logo img { max-height: 60px; max-width: 100%; }
.stk-pos { min-width: 5.5rem; }
.lbl-batch td { background: #f1f3f5; }
.lbl-batch.lbl-today td { background: #e7f5ec; }
