:root { --kiosk-dark: #031f4c; }
body { overflow: hidden; background: #edf4fb; }
.kiosk { height: 100vh; height: 100dvh; min-height: 0; display: flex; flex-direction: column; background: radial-gradient(circle at 50% 10%, rgba(20,185,254,.18), transparent 34%), #edf4fb; }
.kiosk-head { height: 84px; min-height: 84px; display: flex; align-items: center; gap: 24px; padding: 0 32px; color: #fff; background: linear-gradient(100deg, var(--blue-950), #064798); box-shadow: 0 4px 18px rgba(2,43,110,.2); }
.kiosk-head img { width: 172px; height: 55px; object-fit: contain; filter: brightness(0) invert(1); }
.kiosk-head .place { padding-left: 22px; border-left: 1px solid rgba(255,255,255,.35); font-size: 18px; font-weight: 700; }
.kiosk-head .place strong, .kiosk-head .place small { display: block; }
.kiosk-head .place small { margin-top: 3px; color: rgba(255,255,255,.74); font-size: 12px; font-weight: 500; }
.kiosk-head .clock { margin-left: auto; font-size: 26px; font-variant-numeric: tabular-nums; font-weight: 300; }
.kiosk-main { min-height: 0; flex: 1; display: grid; place-items: center; overflow-y: auto; padding: 28px; }
.station-panel { width: min(940px, 100%); text-align: center; }
.scan-icon { width: 124px; height: 124px; margin: 0 auto 20px; display: grid; place-items: center; color: var(--blue-800); background: #fff; border: 2px solid #b9d9f5; border-radius: 50%; box-shadow: 0 14px 38px rgba(2,43,110,.13); font-size: 54px; animation: pulse 2.5s infinite; }
.station-panel h1 { margin: 0 0 10px; color: var(--blue-950); font-size: clamp(30px, 4vw, 48px); }
.station-panel .lead { margin: 0; color: var(--muted); font-size: 20px; }
.action-card { box-sizing: border-box; width: min(940px, 100%); max-height: 100%; overflow-y: auto; overscroll-behavior: contain; padding: 34px; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--blue-600); border-radius: 10px; box-shadow: 0 24px 70px rgba(2,43,110,.16); }
.action-card h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 52px); color: var(--blue-950); }
.action-card .status { margin: 0 0 22px; color: var(--muted); font-size: 19px; }
.time-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.time-stat { padding: 17px; background: #f2f6fa; border: 1px solid #dce4ed; border-radius: 6px; }
.time-stat span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 700; }
.time-stat strong { display: block; margin-top: 4px; color: var(--blue-950); font-size: 25px; }
.kiosk-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.kiosk-action { min-height: 112px; border: 0; border-radius: 7px; color: #fff; background: var(--blue-800); font-size: 23px; font-weight: 800; box-shadow: 0 7px 18px rgba(2,43,110,.2); }
.kiosk-action.pause { color: #503100; background: #ffc44d; }
.kiosk-action.out { background: var(--blue-950); }
.kiosk-action:active { transform: scale(.98); }
.employee-choice { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; max-height: 45vh; overflow: auto; margin-top: 24px; text-align: left; }
.employee-choice button { min-height: 78px; padding: 14px 18px; border: 2px solid #cbd8e6; border-radius: 6px; color: var(--ink); background: #fff; font-size: 18px; font-weight: 750; }
.employee-choice button small { display: block; margin-top: 5px; color: var(--muted); font-weight: 400; }
.result-animation { width: min(270px, 45vw); max-height: 220px; object-fit: contain; }
.success-title { color: var(--success) !important; }
.error-title { color: var(--danger) !important; }
.kiosk-footer { height: 52px; min-height: 52px; display: flex; align-items: center; justify-content: center; padding: 0 24px; color: #607087; font-size: 13px; }
.kiosk-footer-actions { position: absolute; left: 18px; display: flex; gap: 6px; }
.kiosk-footer button { padding: 7px 10px; border: 0; background: transparent; color: inherit; }
.warning-list { display: grid; gap: 8px; margin: 16px 0; padding: 0; list-style: none; }
.warning-list li { padding: 11px 14px; color: #704300; background: #fff2cf; border: 1px solid #f2c35d; border-radius: 5px; }
.idle-ad { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; cursor: pointer; background: #06172d; }
.idle-ad img, .idle-ad video { width: 100%; height: 100%; object-fit: contain; }
.idle-ad-hint { position: absolute; bottom: 18px; padding: 7px 12px; color: #fff; background: rgba(0,0,0,.55); border-radius: 20px; font-size: 13px; }
.admin-mode .kiosk-head { background: linear-gradient(100deg, #8f1d05, #e86912); }
.admin-mode .action-card { border-top-color: #e86912; }
.admin-tools { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.admin-tools button { min-height: 90px; }
.readonly-list { display: grid; gap: 10px; max-height: 48vh; overflow: auto; margin-top: 20px; text-align: left; }
.readonly-person { display: flex; justify-content: space-between; gap: 14px; padding: 14px 16px; background: #f2f6fa; border: 1px solid #d9e2ec; border-radius: 6px; }
.correction-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.correction-time { padding: 18px; background: #f2f6fa; border: 1px solid #d9e2ec; border-radius: 8px; }
.correction-time > span { display: block; color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.correction-time output { display: block; margin: 5px 0 2px; color: var(--blue-950); font-size: clamp(34px,5vw,48px); font-weight: 850; font-variant-numeric: tabular-nums; }
.correction-time > small { color: var(--muted); }
.time-adjust-buttons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.time-adjust-button { min-height: 52px; padding: 8px; border: 1px solid #afc3d8; border-radius: 6px; color: var(--blue-950); background: #fff; font-size: 16px; font-weight: 800; }
.time-adjust-button:active { color: #fff; background: var(--blue-800); transform: scale(.98); }
.correction-actions { justify-content: center; margin-top: 20px; }
#rfid-capture { position: fixed; left: -10000px; top: -10000px; opacity: 0; }
@keyframes pulse { 0%,100% { box-shadow: 0 14px 38px rgba(2,43,110,.13); } 50% { box-shadow: 0 14px 50px rgba(1,131,234,.32), 0 0 0 14px rgba(20,185,254,.08); } }
@media (max-width: 760px) { .kiosk-head { height: 70px; min-height:70px; padding: 0 16px; } .kiosk-head img { width: 112px; } .kiosk-head .place { font-size: 13px; padding-left: 10px; } .kiosk-head .clock { font-size: 17px; } .kiosk-main { padding: 15px; } .action-card { padding: 24px 16px; } .employee-choice, .admin-tools { grid-template-columns: 1fr; } .kiosk-footer { justify-content:flex-end; padding-right:12px; font-size:10px; }.kiosk-footer-actions{left:5px}.kiosk-footer button{font-size:11px;padding:6px} }
@media (max-width: 650px) { .correction-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .time-stats, .kiosk-actions, .employee-choice { grid-template-columns: 1fr; } }
@media (max-height: 760px) { .kiosk-head { height:64px; min-height:64px; padding:0 20px; } .kiosk-head img { width:132px; height:46px; } .kiosk-head .place { font-size:14px; } .kiosk-head .clock { font-size:20px; } .kiosk-main { padding:12px 18px; } .action-card { padding:16px 22px; } .action-card h1 { font-size:clamp(27px,4vw,38px); } .action-card .status { margin-bottom:10px; font-size:16px; } .time-stats { gap:8px; margin:10px 0; } .time-stat { padding:9px; } .time-stat strong { font-size:20px; } .kiosk-actions { gap:10px; margin-top:12px; } .kiosk-action { min-height:68px; font-size:20px; } .warning-list { gap:5px; margin:8px 0; } .warning-list li { padding:7px 10px; } .action-card > .actions { margin-top:10px !important; } .result-animation { width:min(160px,30vw); max-height:105px; } .kiosk-footer { height:42px; min-height:42px; } .correction-grid { margin-top:10px; } .correction-time { padding:10px; } .correction-time output { font-size:32px; } .time-adjust-buttons { margin-top:8px; } .time-adjust-button { min-height:42px; } }
