/* POS event list - week view (box office, sell mode). Seven day columns, one big tappable chip per sellable session.
   Touch first: chips at least 44px high, text at least 13px, nothing that depends on hover.
   Looks like the rest of the POS (admira-pc.css): white panel with the 5px blue top border of the event cards, buttons
   and chips shaped like .generic-btn (light grey, blue bold text, rounded with a square top right corner, 3px shadow),
   day headers like the grey filter bar, blue (#005EA4, sell mode) for what is current or pressed. */

/* the filter bar is fixed at the top of the page: start below it, at the same place as the event cards
   (their zone has a 10px top margin and each card another 20px) */
.pos-week-zone {width: 98%; margin: 0 auto; padding-top: 30px;}

.pos-week {background: #fff; padding: 10px 10px 14px; margin-top: 0; border-top: 5px solid #005EA4; border-radius: 5px; box-shadow: 0 3px 3px rgba(0, 0, 0, .1);}

/* ---- the Week / Events toggle in the filter bar: blue, not the orange of the "Clear" button ---- */
.quickfilter .filter-btn.pos-week-toggle {background: #005EA4 !important; color: #fff !important; border-bottom-color: #005EA4;}
.quickfilter .filter-btn.pos-week-toggle:hover, .quickfilter .filter-btn.pos-week-toggle:focus, .quickfilter .filter-btn.pos-week-toggle:active {background: #00447a !important; color: #fff !important; border-bottom-color: #00447a;}

/* ---- navigation: .generic-btn shapes ---- */
.pos-week-nav {display: flex; align-items: center; gap: 8px; margin-bottom: 12px;}
.pos-week-nav-btn, .pos-week-today-btn {display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; padding: 0 16px; border-radius: 22px; border-top-right-radius: 0; background: #f5f5f5; color: #005EA4; font-size: 22px; font-weight: bold; text-decoration: none; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); -webkit-tap-highlight-color: transparent;}
.pos-week-today-btn {font-size: 15px;}
/* the theme recolours links on hover/focus, and on a touch screen that state sticks after a tap: keep the colours fixed
   (before :active, which must win while pressed) */
.pos-week-nav-btn:link, .pos-week-nav-btn:visited, .pos-week-nav-btn:hover, .pos-week-nav-btn:focus,
.pos-week-today-btn:link, .pos-week-today-btn:visited, .pos-week-today-btn:hover, .pos-week-today-btn:focus {background: #f5f5f5; color: #005EA4; text-decoration: none; outline: none;}
.pos-week-nav-btn:active, .pos-week-today-btn:active {background: #005EA4; color: #fff; box-shadow: none;}
.pos-week-nav-btn.disabled {background: #f6f6f6; color: #ccc; box-shadow: none;}
.pos-week-title {flex: 1; text-align: center; font-size: 20px; font-weight: bold; color: #005EA4;}

.pos-week-warning, .pos-week-empty {margin-bottom: 10px; padding: 10px 12px; font-size: 14px; font-weight: bold; border-radius: 15px; border-top-right-radius: 0;}
.pos-week-warning {background: #fff3cd; color: #7a5a00;}
.pos-week-empty {background: #f5f5f5; color: #555;}

/* ---- the grid: one scrolling area, day headers stay in view ---- */
.pos-week-scroll {max-height: 58vh; overflow: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin;}
.pos-week-scroll::-webkit-scrollbar {width: 8px; height: 8px;}
.pos-week-scroll::-webkit-scrollbar-thumb {background: #c1c1c1; border-radius: 4px;}
.pos-week-scroll::-webkit-scrollbar-track {background: #f5f5f5;}
.pos-week-grid {display: flex; align-items: stretch; min-width: 760px; gap: 6px;}
.pos-week-day {flex: 1 1 0; min-width: 0; border-radius: 5px; background: #fafafa;}
.pos-week-day-head {position: sticky; top: 0; z-index: 2; padding: 7px 4px; text-align: center; background: #ebebeb; color: #333; font-size: 14px; line-height: 1.2; border-radius: 15px; border-top-right-radius: 0; box-shadow: 0 3px 0 rgba(0, 0, 0, .15);}
.pos-week-day-name {display: block; font-weight: bold; text-transform: uppercase;}
.pos-week-day-date {display: block; font-size: 13px;}

.pos-week-day.today {background: #eef5fb;}
.pos-week-day.today .pos-week-day-head {background: #005EA4; color: #fff; box-shadow: 0 3px 0 #00447a;}
.pos-week-day.past .pos-week-day-head {color: #999;}

/* ---- a session: a .generic-btn with the dot on the left ---- */
.pos-week-chip-wrap {padding: 6px 4px 4px;}
.pos-week-chip {position: relative; display: block; min-height: 44px; padding: 7px 24px 7px 26px; border-radius: 15px; border-top-right-radius: 0; background: #f5f5f5; color: #333; font-size: 13px; line-height: 1.25; text-decoration: none; overflow: hidden; box-shadow: 0 3px 0 rgba(0, 0, 0, .3); -webkit-tap-highlight-color: transparent;}
.pos-week-chip:before {content: ''; position: absolute; top: 13px; left: 9px; width: 10px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, .25);}
.pos-week-time {display: block; font-size: 17px; font-weight: bold; color: #005EA4;}
.pos-week-name {display: block; font-size: 14px; font-weight: bold; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;}
.pos-week-room {display: block; font-size: 13px; color: #666;}
.pos-week-state {display: inline-block; margin-top: 4px; padding: 1px 8px; font-size: 13px; font-weight: bold; border-radius: 10px; border-top-right-radius: 0; background: #ebebeb; color: #333;}
.pos-week-lock {position: absolute; top: 8px; right: 8px; font-size: 13px; color: #005EA4;}

/* the chip colours must not change on hover/focus/visited (a tapped link keeps that state on touch screens) */
.pos-week-chip.sellable:link, .pos-week-chip.sellable:visited, .pos-week-chip.sellable:hover, .pos-week-chip.sellable:focus {color: #333; text-decoration: none; outline: none;}
.pos-week-chip.soldout:link, .pos-week-chip.soldout:visited, .pos-week-chip.soldout:hover, .pos-week-chip.soldout:focus {color: #fff; text-decoration: none; outline: none;}
.pos-week-chip.canceled:link, .pos-week-chip.canceled:visited, .pos-week-chip.canceled:hover, .pos-week-chip.canceled:focus {color: #999; text-decoration: none; outline: none;}

/* pressed: blue like a pressed .generic-btn (sell mode) */
.pos-week-chip.sellable:active {background: #005EA4; color: #fff; box-shadow: none;}
.pos-week-chip.sellable:active .pos-week-time, .pos-week-chip.sellable:active .pos-week-room, .pos-week-chip.sellable:active .pos-week-lock {color: #fff;}
.pos-week-chip.sellable:active:before {background: rgba(255, 255, 255, .6);}

/* states: always a word as well as a colour. Sold out like the cards' sold out button (dark red, white text) */
.pos-week-chip.soldout {background: rgba(172, 29, 33, .5); color: #fff; box-shadow: none;}
.pos-week-chip.soldout .pos-week-time, .pos-week-chip.soldout .pos-week-room, .pos-week-chip.soldout .pos-week-lock {color: #fff;}
.pos-week-chip.soldout .pos-week-name, .pos-week-chip.soldout .pos-week-time {text-shadow: 0 2px 1px rgba(0, 0, 0, .4);}
.pos-week-chip.soldout .pos-week-state {background: rgba(0, 0, 0, .25); color: #fff;}
.pos-week-chip.soldout:before {background: rgba(255, 255, 255, .5);}
.pos-week-chip.canceled, .pos-week-chip.limit {background: #f6f6f6; color: #999; box-shadow: none; cursor: default;}
.pos-week-chip.canceled .pos-week-time, .pos-week-chip.limit .pos-week-time,
.pos-week-chip.canceled .pos-week-room, .pos-week-chip.limit .pos-week-room {color: #aaa;}
.pos-week-chip.canceled .pos-week-name {text-decoration: line-through;}
.pos-week-chip.canceled:before, .pos-week-chip.limit:before {background: rgba(0, 0, 0, .1);}
