/*
 * The till for the shops (templates/till). Plain CSS that reproduces the till app's look 1:1: its Bootstrap 4
 * base (square corners, only the parts the till uses) plus its till theme (till-theme.scss / store.scss).
 * White with the company red #EE2E2A, green only for adding items, and Lexend, a sans-serif designed for easy reading
 * with plain (unslashed) digits. Dialogs are native <dialog> elements styled like the old Bootstrap modals.
 */

@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400; font-display: swap; src: url("till/fonts/lexend-latin-ext-400-normal-HsXG204.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 700; font-display: swap; src: url("till/fonts/lexend-latin-ext-700-normal-iKOulXO.woff2") format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 400; font-display: swap; src: url("till/fonts/lexend-latin-400-normal-8eYY2uR.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lexend'; font-style: normal; font-weight: 700; font-display: swap; src: url("till/fonts/lexend-latin-700-normal-7dfC32Z.woff2") format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Icons: the Font Awesome 5 Free fonts the till app used (SIL OFL 1.1), only the glyphs of the till */
@font-face { font-family: 'Font Awesome 5 Free'; font-style: normal; font-weight: 900; font-display: block; src: url("till/fonts/fa-solid-900-4Hn1fio.woff2") format('woff2'); }
@font-face { font-family: 'Font Awesome 5 Free'; font-style: normal; font-weight: 400; font-display: block; src: url("till/fonts/fa-regular-400-dtq4ZT6.woff2") format('woff2'); }
.fa, .fas, .far { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-block; font-style: normal; font-variant: normal; text-rendering: auto; line-height: 1; font-family: 'Font Awesome 5 Free'; }
.fa, .fas { font-weight: 900; }
.far { font-weight: 400; }
.fa-lg { font-size: 1.33333em; line-height: .75em; vertical-align: -.0667em; }
.fa-check::before { content: "\f00c"; }
.fa-check-circle::before { content: "\f058"; }
.fa-minus-square::before { content: "\f146"; }
.fa-plus-square::before { content: "\f0fe"; }
.fa-print::before { content: "\f02f"; }
.fa-wifi::before { content: "\f1eb"; }
.fa-sign-in-alt::before { content: "\f2f6"; }
.fa-home::before { content: "\f015"; }
.fa-lock::before { content: "\f023"; }

/* ---------- Base (Bootstrap 4 reboot) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-family: sans-serif; line-height: 1.15; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); height: 100%; }
body { margin: 0; font-size: 1rem; font-weight: 400; line-height: 1.5; text-align: left; min-height: 100%; }
[hidden] { display: none !important; }
hr { box-sizing: content-box; height: 0; overflow: visible; margin-top: 1rem; margin-bottom: 1rem; border: 0; border-top: 1px solid rgba(0, 0, 0, .1); }
h1, h2, h3, h4, h5, .h4, .h5 { margin-top: 0; margin-bottom: .5rem; font-weight: 500; line-height: 1.2; }
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4, .h4 { font-size: 1.5rem; }
h5, .h5 { font-size: 1.25rem; }
p { margin-top: 0; margin-bottom: 1rem; }
small, .small { font-size: 80%; font-weight: 400; }
strong { font-weight: bolder; }
a { color: #007bff; text-decoration: none; background-color: transparent; }
a:hover { color: #0056b3; text-decoration: underline; }
img { vertical-align: middle; border-style: none; }
table { border-collapse: collapse; }
th { text-align: inherit; text-align: -webkit-match-parent; }
label { display: inline-block; margin-bottom: .5rem; }
button { border-radius: 0; }
input, button, select, textarea { margin: 0; font-family: inherit; font-size: inherit; line-height: inherit; }
button, input { overflow: visible; }
button, select { text-transform: none; }
button, [type="button"], [type="submit"] { -webkit-appearance: button; }
button:not(:disabled), [type="button"]:not(:disabled), [type="submit"]:not(:disabled) { cursor: pointer; }
input[type="radio"], input[type="checkbox"] { box-sizing: border-box; padding: 0; }
.display-4 { font-size: 3.5rem; font-weight: 300; line-height: 1.2; }

/* ---------- Grid ---------- */
.container, .container-fluid { width: 100%; padding-right: 15px; padding-left: 15px; margin-right: auto; margin-left: auto; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
.row { display: flex; flex-wrap: wrap; margin-right: -15px; margin-left: -15px; }
[class*="col-"] { position: relative; width: 100%; padding-right: 15px; padding-left: 15px; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
@media (min-width: 576px) {
    .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .offset-sm-1 { margin-left: 8.333333%; }
}
@media (min-width: 768px) {
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}
@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
    .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .offset-lg-3 { margin-left: 25%; }
}
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }

/* ---------- Utilities ---------- */
.d-none { display: none !important; }
.d-block { display: block !important; }
.w-100 { width: 100% !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }
.text-nowrap { white-space: nowrap !important; }
.text-uppercase { text-transform: uppercase !important; }
.align-middle { vertical-align: middle !important; }
.border-top { border-top: 1px solid #dee2e6 !important; }
.border-top-0 { border-top: 0 !important; }
.m-0 { margin: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: .5rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }
.p-3 { padding: 1rem !important; }
.p-5 { padding: 3rem !important; }
.pt-3 { padding-top: 1rem !important; }
.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.px-0 { padding-right: 0 !important; padding-left: 0 !important; }
.px-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
@media (min-width: 768px) { .mb-md-0 { margin-bottom: 0 !important; } }
@media (min-width: 992px) { .mb-lg-0 { margin-bottom: 0 !important; } }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-weight: 400; color: #212529; text-align: center; vertical-align: middle; user-select: none; background-color: transparent; border: 1px solid transparent; padding: .375rem .75rem; font-size: 1rem; line-height: 1.5; border-radius: 0; transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out; touch-action: manipulation; }
.btn:hover { color: #212529; text-decoration: none; }
.btn:focus { outline: none !important; box-shadow: none !important; }
.btn:disabled { opacity: .65; }
.btn-lg { padding: .5rem 1rem; font-size: 1.25rem; line-height: 1.5; border-radius: 0; }
.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: .5rem; }
.btn-success { color: #fff; background-color: #28a745; border-color: #28a745; }
.btn-danger { color: #fff; background-color: #dc3545; border-color: #dc3545; }
.btn-danger:hover { color: #fff; background-color: #c82333; border-color: #bd2130; }
.btn-group, .btn-group-vertical { position: relative; display: inline-flex; vertical-align: middle; }
.btn-group > .btn, .btn-group-vertical > .btn { position: relative; flex: 1 1 auto; }
.btn-group > .btn:hover, .btn-group > .btn:focus, .btn-group > .btn:active, .btn-group > .btn.active,
.btn-group-vertical > .btn:hover, .btn-group-vertical > .btn:focus, .btn-group-vertical > .btn:active { z-index: 1; }
.btn-group > .btn:not(:first-child), .btn-group > .btn-group:not(:first-child) { margin-left: -1px; }
.btn-group-vertical { flex-direction: column; align-items: flex-start; justify-content: center; }
.btn-group-vertical > .btn, .btn-group-vertical > .btn-group { width: 100%; }
.btn-group-vertical > .btn:not(:first-child), .btn-group-vertical > .btn-group:not(:first-child) { margin-top: -1px; }
.btn-group-toggle > .btn, .btn-group-toggle > .btn-group > .btn { margin-bottom: 0; }
.btn-group-toggle > .btn input[type="radio"] { position: absolute; clip: rect(0, 0, 0, 0); pointer-events: none; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
.form-control { display: block; width: 100%; height: calc(1.5em + .75rem + 2px); padding: .375rem .75rem; font-size: 1rem; font-weight: 400; line-height: 1.5; background-color: #fff; background-clip: padding-box; border-radius: 0; transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out; }
.form-control:focus { background-color: #fff; outline: 0; }
.form-control-lg { height: calc(1.5em + 1rem + 2px); padding: .5rem 1rem; font-size: 1.25rem; line-height: 1.5; border-radius: 0; }
select.form-control { appearance: auto; }

/* Custom checkbox (logout without the closing) */
.custom-control { position: relative; z-index: 1; display: block; min-height: 1.5rem; padding-left: 1.5rem; }
.custom-control-input { position: absolute; left: 0; z-index: -1; width: 1rem; height: 1.25rem; opacity: 0; }
.custom-control-label { position: relative; margin-bottom: 0; vertical-align: top; }
.custom-control-label::before { position: absolute; top: .25rem; left: -1.5rem; display: block; width: 1rem; height: 1rem; pointer-events: none; content: ""; background-color: #fff; border: #adb5bd solid 1px; }
.custom-control-label::after { position: absolute; top: .25rem; left: -1.5rem; display: block; width: 1rem; height: 1rem; content: ""; background: 50% / 50% 50% no-repeat; }
.custom-control-input:checked ~ .custom-control-label::before { color: #fff; border-color: #007bff; background-color: #007bff; }
.custom-control-input:checked ~ .custom-control-label::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e"); }
.custom-control-input:focus ~ .custom-control-label::before { box-shadow: 0 0 0 .2rem rgba(0, 123, 255, .25); }

/* ---------- Table, alert, card, jumbotron ---------- */
.table { width: 100%; margin-bottom: 1rem; }
.table th, .table td { padding: .75rem; vertical-align: top; border-top: 1px solid #dee2e6; }
.table thead th { vertical-align: bottom; border-bottom: 2px solid #dee2e6; }
.table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.alert { position: relative; padding: .75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0; }
.alert-danger { color: #721c24; background-color: #f8d7da; border-color: #f5c6cb; }
.alert-danger a { color: #491217; font-weight: 700; }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; word-wrap: break-word; background-clip: border-box; border-radius: 0; }
.card-body { flex: 1 1 auto; min-height: 1px; padding: 1.25rem; }
.card-header { padding: .75rem 1.25rem; margin-bottom: 0; }
.jumbotron { padding: 2rem 1rem; margin-bottom: 2rem; border-radius: 0; }
@media (min-width: 576px) { .jumbotron { padding: 4rem 2rem; } }

/* ---------- Dialogs (the old Bootstrap modals) ---------- */
dialog.modal { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; background: transparent; color: inherit; width: calc(100% - 1rem); max-width: 500px; max-height: calc(100% - 1rem); overflow: visible; outline: 0; }
dialog.modal::backdrop { background-color: rgba(0, 0, 0, .5); }
@media (min-width: 576px) { dialog.modal { max-height: calc(100% - 3.5rem); } }
@media (min-width: 992px) { dialog.modal-lg { max-width: 800px; } }
dialog.modal[open] { display: flex; }
.modal-content { position: relative; display: flex; flex-direction: column; width: 100%; max-height: inherit; overflow-y: auto; pointer-events: auto; background-color: #fff; background-clip: padding-box; border: 1px solid rgba(0, 0, 0, .2); border-radius: 0; outline: 0; }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 1rem 1rem; border-bottom: 1px solid #dee2e6; }
.modal-title { margin: 0 auto; line-height: 1.5; }
.modal-body { position: relative; flex: 1 1 auto; padding: 1rem; }
.modal-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; padding: .75rem; border-top: 1px solid #dee2e6; }

/* Loader (the till app's loader.scss): white spinner on the dark background */
.loader-content { background: transparent; border: 0; box-shadow: none !important; overflow: visible; }
.loader { margin: 100px auto; font-size: 25px; width: 1em; height: 1em; border-radius: 50%; position: relative; text-indent: -9999em; animation: till-load5 1.1s infinite ease; transform: translateZ(0); }
@keyframes till-load5 {
    0%, 100% { box-shadow: 0em -2.6em 0em 0em #ffffff, 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.5), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7); }
    12.5% { box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.7), 1.8em -1.8em 0 0em #ffffff, 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5); }
    25% { box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.5), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.7), 2.5em 0em 0 0em #ffffff, 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2); }
    37.5% { box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.5), 2.5em 0em 0 0em rgba(255, 255, 255, 0.7), 1.75em 1.75em 0 0em #ffffff, 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2); }
    50% { box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.5), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.7), 0em 2.5em 0 0em #ffffff, -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.2), -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2); }
    62.5% { box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.5), 0em 2.5em 0 0em rgba(255, 255, 255, 0.7), -1.8em 1.8em 0 0em #ffffff, -2.6em 0em 0 0em rgba(255, 255, 255, 0.2), -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2); }
    75% { box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.5), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.7), -2.6em 0em 0 0em #ffffff, -1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2); }
    87.5% { box-shadow: 0em -2.6em 0em 0em rgba(255, 255, 255, 0.2), 1.8em -1.8em 0 0em rgba(255, 255, 255, 0.2), 2.5em 0em 0 0em rgba(255, 255, 255, 0.2), 1.75em 1.75em 0 0em rgba(255, 255, 255, 0.2), 0em 2.5em 0 0em rgba(255, 255, 255, 0.2), -1.8em 1.8em 0 0em rgba(255, 255, 255, 0.5), -2.6em 0em 0 0em rgba(255, 255, 255, 0.7), -1.8em -1.8em 0 0em #ffffff; }
}

/* ======================================================================
 * Till theme (the till app's store.scss + till-theme.scss, same values)
 * ====================================================================== */
:root {
    --till-red: #EE2E2A;
    --till-red-hover: #D92521;
    --till-green: #2E7D32;
    --till-text: #1A1A1A;
    --till-text-muted: #5C5C5C;
    --till-border: #CFCFCF;
    --till-border-light: #E6E6E6;
    --till-key: #FFFFFF;
    --till-key-pressed: #F0F0F0;
    --till-font: 'Lexend', 'Helvetica Neue', Arial, sans-serif;
}

body { background: #FFFFFF; color: var(--till-text); font-family: var(--till-font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, .modal-title { font-family: var(--till-font); font-weight: 700; }
.btn { font-family: var(--till-font); font-weight: 700; white-space: nowrap; }

/* store.scss */
.table:not(.small) { margin: 0 auto; font-size: 1.5rem; }
.table.small { font-size: 1.1rem; }
#display { font-size: 3rem; pointer-events: none; color: black; }
.calculator .btn:not(.btn-success) { font-size: 3rem !important; padding: 0 !important; }
.btn__pay:first-child { border-width: 4px; font-size: 3rem; }

/* Neutral buttons: keypad, VAT rates, ARCHIV, ZAVŘÍT */
.btn-outline-secondary, .btn-secondary { background: var(--till-key); border: 2px solid var(--till-border); color: var(--till-text); }
.btn-outline-secondary:hover, .btn-secondary:hover, .btn-secondary:focus { background: var(--till-key); border-color: var(--till-border); color: var(--till-text); }
.btn-outline-secondary:active, .btn-secondary:not(:disabled):active { background: var(--till-key-pressed) !important; border-color: var(--till-border) !important; color: var(--till-text) !important; }
.btn-outline-secondary.active, .btn-outline-secondary:not(:disabled):not(.disabled).active { background: var(--till-red) !important; border-color: var(--till-red) !important; color: #FFFFFF !important; }

/* Add item (✓ under the keypad) */
.calculator .btn-success, .calculator .btn-success:hover, .calculator .btn-success:focus, .calculator .btn-success:not(:disabled):active { background: var(--till-green) !important; border-color: var(--till-green) !important; color: #FFFFFF !important; }

/* Main actions: confirm in dialogs */
.btn-success, .btn-success:hover, .btn-success:focus, .btn-success:not(:disabled):active { background: var(--till-red) !important; border-color: var(--till-red) !important; color: #FFFFFF !important; }
.btn-success:hover { background: var(--till-red-hover) !important; }

/* Payment buttons: black */
.btn-outline-primary { background: #FFFFFF; border: 2px solid var(--till-text); color: var(--till-text); }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:not(:disabled):active { background: var(--till-text) !important; border-color: var(--till-text) !important; color: #FFFFFF !important; }
/* Still black while there is nothing to pay (Vašek wants them black at all times); clicks do nothing then */
.btn-outline-primary:disabled { background: #FFFFFF; border-color: var(--till-text); color: var(--till-text); opacity: 1; }

/* ARCHIV stays in the background: grey */
.till-archive, .till-archive:hover, .till-archive:focus, .till-archive:not(:disabled):active { background: #EFEFEF !important; border-color: var(--till-border) !important; color: var(--till-text-muted) !important; }

.btn-outline-danger { border: 2px solid var(--till-red); color: var(--till-red); background: transparent; }
.btn-outline-danger:hover, .btn-outline-danger:not(:disabled):active { background: var(--till-red) !important; color: #FFFFFF !important; }
.text-danger { color: var(--till-red) !important; }
.text-success { color: var(--till-text) !important; }

/* Header */
.till-header { background: #FFFFFF; border-bottom: 1px solid var(--till-border-light); margin-bottom: 1rem; padding: 10px 0; }
.till-header__shop { color: var(--till-text); font-size: 2rem; letter-spacing: 0.03em; line-height: 1.1; margin: 0 0 2px; }

/* Day totals as small cards side by side, cash first */
.till-header__totals { display: flex; flex-wrap: wrap; gap: 8px; }
.till-total { border: 1px solid var(--till-border-light); display: flex; flex: 1 1 calc((100% - 16px) / 3); flex-direction: column; line-height: 1.15; max-width: calc((100% - 16px) / 3); min-width: 0; padding: 5px 12px 6px; }
.till-total--cash { border-color: var(--till-red); }
.till-total__label { color: var(--till-text-muted); font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.till-total__value { color: var(--till-text); font-size: 1.35rem; font-weight: 700; white-space: nowrap; }
.till-header__time { font-size: 3.2rem; font-variant-numeric: tabular-nums; font-weight: 700; line-height: 1; }
.till-header__date { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.till-header__nameday { color: var(--till-text-muted); font-size: 1.15rem; }
.till-header__nameday strong { color: var(--till-text); }

/* Calculator */
.calculator .btn-group > .btn { border-radius: 0; flex: 1 1 0; }
.calculator .btn:not(.btn-success) { font-weight: 700; }
#display { background: #FFFFFF; border: 2px solid var(--till-border); font-family: var(--till-font); font-weight: 700; border-radius: 0; outline: 0; }
#display::placeholder { color: var(--till-border); }

/* Bill items */
.table { color: var(--till-text); }
.table thead th { border-bottom: 2px solid var(--till-border-light); border-top: 0; color: var(--till-text-muted); font-size: 1.1rem; font-weight: 700; text-transform: uppercase; }
.table td, .table tfoot th { border-top: 1px solid var(--till-border-light); }
.table tfoot th { font-size: 2rem; vertical-align: middle; }
/* The bill total is what the staff look at most */
.table tfoot th:last-child { font-size: 3.2rem; line-height: 1.1; white-space: nowrap; }
/* A 44 px target for fingers on the tablets; minus stops at one piece, items cannot be removed */
.minus-sign, .plus-sign { cursor: pointer; font-size: 2.6rem !important; padding: 3px; }
.minus-sign { color: var(--till-red) !important; }
.plus-sign { color: var(--till-green) !important; }
.items__wrapper td { white-space: nowrap; }

/* Dialogs */
.modal-content { border: 0; }
.modal-header { border-bottom: 1px solid var(--till-border-light); }
.modal-footer { border-top: 1px solid var(--till-border-light); flex-wrap: nowrap; }
.modal-footer > * { margin: 0; }
.modal-footer > :not(:first-child) { margin-left: .25rem; }
.modal-footer > :not(:last-child) { margin-right: .25rem; }
.modal-footer > .btn-block + .btn-block { margin-top: 0; }

/* Payment column: long labels ("PLATBA PŘEDEM") must fit the button */
.btn__pay { font-size: 1.7rem; white-space: normal; }
.btn-group-vertical > .btn__pay:first-child { font-size: 2.6rem; }

/* Header buttons fill their column; on wide screens they stack, as wide as the payment buttons below */
.header__icons { display: flex; width: 100%; }
.header__icons .btn-lg { flex: 1; padding: 10px 6px; }
@media (min-width: 992px) {
    .header__icons { flex-direction: column; }
    .header__icons .btn-lg + .btn-lg { margin-left: 0; margin-top: -2px; }
}
@media (max-width: 991px) {
    .till-header__time { font-size: 2.6rem; }
}

/* Shop list and shop login (pages that used a dark background) */
body.bg-dark { background: #F5F5F5 !important; }
.jumbotron, .card { background: #FFFFFF; border: 1px solid var(--till-border-light); }
.jumbotron .display-4, .card-header h2 { font-weight: 700; }
.card-header { background: #FFFFFF; border-bottom: 1px solid var(--till-border-light); }
.form-control { border: 2px solid var(--till-border); color: var(--till-text); font-family: var(--till-font); }
.form-control:focus { border-color: var(--till-red); box-shadow: 0 0 0 3px rgba(238, 46, 42, 0.15); }
.store__btn { font-size: 1.5rem; }

/* Large bill confirmation: two equal buttons inside the dialog */
#largeTotalModal .modal-footer { flex-wrap: nowrap; }
#largeTotalModal .modal-footer .btn { border: 0; color: #FFFFFF; flex: 1; font-size: 2rem; line-height: 1.1; margin: 0 4px; }
#largeTotalModal .modal-footer .btn small { font-size: 1.1rem; font-weight: 400; }
#largeTotalModal .large-total__yes, #largeTotalModal .large-total__yes:hover, #largeTotalModal .large-total__yes:active { background: var(--till-green); color: #FFFFFF; }
#largeTotalModal .large-total__no, #largeTotalModal .large-total__no:hover, #largeTotalModal .large-total__no:active { background: var(--till-red); color: #FFFFFF; }

/* Monthly revenue target across the top of the till (Vašek, 4. 12. 2026): done in soft green on the left, a black
   line where the shop should be by tonight, what is left on the right */
.till-goal { padding: 2px 24px 8px; }
.till-goal__track { background: #F0F0F0; border: 1px solid #CFCFCF; height: 40px; position: relative; }
.till-goal__fill { background: #BFE3C1; bottom: 0; left: 0; position: absolute; top: 0; }
.till-goal__pace { bottom: -6px; position: absolute; top: -6px; width: 3px; z-index: 1; }
/* Only the ends of the line show (above and below the bar), so it never runs through the numbers */
.till-goal__pace::before, .till-goal__pace::after { background: var(--till-text); content: ''; height: 12px; left: 0; position: absolute; width: 3px; }
.till-goal__pace::before { top: 0; }
.till-goal__pace::after { bottom: 0; }
.till-goal__text { align-items: center; z-index: 2; bottom: 0; color: var(--till-text); display: flex; font-size: 1.05rem; font-weight: 700; gap: 6px; position: absolute; top: 0; white-space: nowrap; }
.till-goal__text span { color: var(--till-text-muted); font-weight: 400; }
.till-goal__text--done { color: #1E5E22; left: 12px; }
.till-goal__text--done span { color: #1E5E22; }
.till-goal__text--plan { background: rgba(255, 255, 255, .85); bottom: auto; left: 50%; padding: 2px 10px; top: 50%; transform: translate(-50%, -50%); }
.till-goal__text--left { right: 12px; }
.till-goal--reached .till-goal__text--left, .till-goal--reached .till-goal__text--left strong { color: #1E5E22; font-weight: 400; }
.till-goal--reached .till-goal__text--left strong { font-weight: 700; }

/* Copyright line under the till and the login pages; small and grey so it never competes with the till */
.ik-copyright { color: var(--till-text-muted); font-size: 0.8rem; padding: 16px 0 12px; text-align: center; }

/* Logging out without the day closing: a checkbox big enough for a finger */
#closingMissing .custom-control { padding-left: 3rem; }
#closingMissing .custom-control-label { color: var(--till-text); cursor: pointer; line-height: 1.35; }
#closingMissing .custom-control-label::before, #closingMissing .custom-control-label::after { height: 2rem; left: -3rem; top: 0; width: 2rem; }
#closingMissing .custom-control-input:checked ~ .custom-control-label::before { background-color: var(--till-red); border-color: var(--till-red); }

/* Shop PCs and tablets in landscape: the till fits the window height without scrolling (Vašek, 4. 11. 2026; tablets
   from 17. 11. 2026). The page is a column: header, the three till columns stretched to the rest of the height, the
   footer. Keys and payment buttons share the height; the minimum heights only make a tiny window scroll. */
@media (min-width: 992px) {
    body.till { display: flex; flex-direction: column; height: 100vh; }
    body.till > * { flex: none; }
    body.till > dialog:not([open]) { display: none; }
    body.till .till-header { margin-bottom: .5rem; padding: 6px 0; }
    body.till .ik-copyright { padding: 2px 0 4px; }
    body.till > .till-main { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; padding-bottom: .5rem !important; }
    .till-main > .row, .till-main .store > .row { flex: 1 1 auto; min-height: 0; }
    .till-main > .row > [class*="col-"], .till-main .store, .till-main .store > .row > [class*="col-"] { display: flex; flex-direction: column; margin-bottom: 0 !important; max-height: 100%; min-height: 0; }
    /* Calculator: seven rows of equal height */
    .till-main .calculator, .till-main .calculator > .btn-group-vertical { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; }
    .till-main .calculator .btn-group-vertical > .btn-group { flex: 1 1 0; min-height: 3.2rem; }
    .till-main .calculator .btn-group > .btn, .till-main .calculator #display { align-items: center; display: flex; height: 100%; justify-content: center; line-height: 1; padding-bottom: 0 !important; padding-top: 0 !important; }
    /* Items scroll inside their column when a bill gets long; the header and the total stay in view */
    .till-main .store .table-responsive { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
    .till-main .store .table thead th, .till-main .store .table tfoot th { background: #FFFFFF; position: sticky; z-index: 1; }
    .till-main .store .table thead th { top: 0; }
    .till-main .store .table tfoot th { bottom: 0; }
    /* Payment buttons share the height above ARCHIV */
    .till-main .store .btn-group-vertical { flex: 1 1 auto; min-height: 0; }
    .till-main .store .btn-group-vertical > .btn__pay { align-items: center; display: flex; flex: 1 1 0; justify-content: center; line-height: 1; margin-bottom: .5rem !important; min-height: 3.2rem; padding-bottom: 0 !important; padding-top: 0 !important; }
    .till-main .store hr { margin: .25rem 0 .5rem; }
    .till-main .till-archive { flex: none; margin-top: 0 !important; padding-bottom: .5rem !important; padding-top: .5rem !important; }
    /* VYTISKNOUT ZNOVU as tall as ARCHIV, so the bottom row lines up with the calculator's tick */
    .till-main .till-last__print { min-height: 68px; min-width: 220px; }
}

/* Tablets in landscape (992–1199 px): the same till in narrower columns, so the header gives up the name day and the
   big clock shrinks; keys and payment labels stay large enough for fingers */
@media (min-width: 992px) and (max-width: 1199px) {
    .till-header__nameday { display: none; }
    .till-header__time { font-size: 2.2rem; }
    .header__icons .btn-lg { padding: 8px 4px; }
    .till-header__shop { font-size: 1.7rem; }
    .till-total { padding: 4px 8px 5px; }
    .till-total__value { font-size: 1.15rem; }
    .till-main .calculator .btn:not(.btn-success) { font-size: 2.4rem !important; }
    .btn__pay { font-size: 1.3rem; }
    .till-main .store .table td, .till-main .store .table th { padding-left: .3rem; padding-right: .3rem; }
    .till-main .store .table tbody td { font-size: 1.15rem; }
    .till-main .store .table tfoot th { font-size: 1.5rem; }
    .till-main .store .table tfoot th:last-child { font-size: 2.4rem; }
}

/* Low windows (the shop PC in Hrabůvka leaves about 590 px): payment labels follow the height, so five buttons (with
   DOVOZ) still hold "PLATBA PŘEDEM" on two lines inside the frame */
@media (min-width: 992px) and (max-height: 700px) {
    .till-main .store .btn-group-vertical > .btn__pay { font-size: 4vh; }
}

/* Confirming the day closing or a logout: ZPĚT on the left, the action in words on the right */
.till-confirm__summary { color: var(--till-text-muted); font-size: 1.1rem; text-align: center; }
.till-confirm__total { color: var(--till-text); font-size: 2rem; font-weight: 700; line-height: 1.2; }
.till-confirm__total span { color: var(--till-text-muted); font-size: 1.2rem; font-weight: 400; }
.till-confirm > .btn { flex: 1 1 0; font-size: 1.4rem; padding: 18px 8px; }
.till-confirm__back, .till-confirm__back:hover, .till-confirm__back:focus { background: #FFFFFF !important; border: 2px solid var(--till-border) !important; color: var(--till-text) !important; }
.till-confirm__go, .till-confirm__go:hover, .till-confirm__go:focus, .till-confirm__go:not(:disabled):active { background: var(--till-red) !important; border: 2px solid var(--till-red) !important; color: #FFFFFF !important; text-decoration: none; }

/* Prepay and delivery dialogs: two equal choices like the payment column, ZPĚT under them */
.till-choice { display: block; padding: 1rem; }
.till-choice__row { display: flex; gap: 12px; }
/* Both choices alike: .btn__pay:first-child (the big HOTOVĚ) must not enlarge the first one */
.till-choice .till-choice__row > .till-choice__pay { border-width: 2px; flex: 1 1 0; font-size: 1.6rem; margin: 0 !important; min-height: 110px; white-space: normal; }
.till-choice .till-choice__back { display: block; font-size: 1.4rem; margin: 12px 0 0 !important; padding: 16px 8px; width: 100%; }

/* The last receipt under the bill until the next sale, with a reprint on one tap */
.till-last { align-items: center; border-top: 1px solid var(--till-border-light); color: var(--till-text-muted); display: flex; flex: none; flex-wrap: wrap; font-size: 1rem; gap: 8px 12px; justify-content: flex-end; padding: 8px 4px 0; text-align: right; }
.till-last__print { display: flex; flex-direction: column; justify-content: center; line-height: 1.2; }
.till-last__text { color: var(--till-text-muted); font-size: .85rem; font-weight: 400; margin-top: 2px; }
/* Grey like ARCHIV: both stay in the background next to the payment buttons */
.till-last__print, .till-last__print:hover, .till-last__print:focus { background: #EFEFEF; border: 2px solid var(--till-border); color: var(--till-text-muted); font-size: 1rem; font-weight: 700; padding: 8px 14px; }

/* No internet: a red bar over the top of the till, without moving anything (the till must still fit the screen) */
.till-offline { background: var(--till-red); color: #FFFFFF; font-size: 1.25rem; font-weight: 600; left: 0; padding: 14px 20px; position: fixed; right: 0; text-align: center; top: 0; z-index: 2000; }
.till-offline .fas { margin-right: 8px; }

/* Blocked login: the phone number stays readable */
.login-blocked a { color: inherit; }

/* The till app's store.scss / app.scss came after its theme, so these two win over the theme's sizes of the same
   specificity (payment labels, header buttons), on every screen size */
.btn-lg { font-size: 2rem; }
.header__icons .btn-lg { font-size: 1.5rem; }
