/* iPOS Home (back office) screen - js/home-kit.js */
body.hk-mode .topbar { display: none !important; }
body.hk-mode .content { padding: 0 !important; max-width: none !important; }
.hk-shell { min-height: calc(100vh - 96px); background: linear-gradient(135deg, var(--hk-1, #0d1b2a), var(--hk-2, #12324d) 55%, var(--hk-3, var(--brand, #0f5c8c))); color: #fff; display: flex; }
.hk-hero { flex: 1; display: flex; flex-direction: column; padding: clamp(18px, 3.5vw, 40px); gap: 20px; }
.hk-top { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hk-logo { width: 74px; height: 74px; border-radius: 18px; background: #fff; object-fit: contain; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.hk-greet { font-size: 17px; opacity: .9; }
.hk-top h1 { font-size: clamp(28px, 4.5vw, 50px); margin: 2px 0; text-shadow: 0 2px 14px rgba(0,0,0,.45); color: #fff; }
.hk-sub { font-size: 15px; opacity: .92; }
.hk-clock { text-align: right; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hk-clock b { display: block; font-size: clamp(32px, 4.5vw, 54px); font-variant-numeric: tabular-nums; line-height: 1; }
.hk-clock span { font-size: 15px; opacity: .92; }
.hk-figs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.hk-fig { background: rgba(0,0,0,.32); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; color: #fff; text-decoration: none; backdrop-filter: blur(4px); }
.hk-fig small { font-size: 12px; opacity: .85; } .hk-fig b { font-size: 20px; font-variant-numeric: tabular-nums; } .hk-fig em { font-style: normal; font-size: 12px; opacity: .8; }
.hk-fig.warn b { color: #fde68a; } .hk-fig.bad b { color: #fca5a5; } .hk-fig.ok b { color: #bbf7d0; } .hk-fig.link:hover { background: rgba(0,0,0,.45); }
.hk-tiles { margin-top: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 14px; }
.hk-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; text-decoration: none; color: #1d1a16; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .12s, box-shadow .12s; }
.hk-tile:hover, .hk-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.32); outline: none; }
.hk-tile svg { width: 32px; height: 32px; color: var(--brand); margin-bottom: 4px; }
.hk-tile b { font-size: 18px; } .hk-tile small { color: #5f5a52; font-size: 13px; }
.hk-tile.main { background: var(--hk-accent, #f59e0b); grid-row: span 2; justify-content: center; } .hk-tile.main svg { color: #2b1800; width: 46px; height: 46px; } .hk-tile.main b { font-size: 24px; } .hk-tile.main small { color: #4a3000; }
.hk-promos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hk-promo { background: rgba(0,0,0,.3); border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.hk-promo-h { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px 0; opacity: .85; }
.hk-promo-body { overflow: hidden; padding: 8px 0 10px; }
.hk-track { display: flex; gap: 10px; width: max-content; animation: hkslide linear infinite; padding-left: 12px; }
.hk-promo:hover .hk-track { animation-play-state: paused; }
.hk-chip { background: rgba(255,255,255,.12); border-radius: 10px; padding: 7px 12px; min-width: 210px; display: flex; flex-direction: column; }
.hk-chip b { font-size: 14px; } .hk-chip span { font-size: 12px; opacity: .85; }
@keyframes hkslide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hk-foot { font-size: 12px; opacity: .75; text-align: center; }
@media (max-width: 900px) { .hk-promos { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .hk-clock { text-align: left; } .hk-tiles { grid-template-columns: 1fr 1fr; } .hk-tile { padding: 12px; } .hk-tile.main { grid-column: 1 / -1; grid-row: auto; } }
@media (prefers-reduced-motion: reduce) { .hk-track { animation: none; } }
/* phone Home */
.hk-ptop { display: flex; align-items: center; gap: 10px; padding: 16px 14px 14px; margin: -2px -2px 10px; border-radius: 0 0 18px 18px; background: linear-gradient(135deg, var(--hk-1, #0d1b2a), var(--hk-3, var(--brand, #0f5c8c))); color: #fff; }
.hk-ptop > div { flex: 1; min-width: 0; } .hk-ptop small { display: block; opacity: .85; font-size: 12px; } .hk-ptop b { display: block; font-size: 20px; }
.hk-ptop .mp-ic { color: #fff; }
.hk-ptiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }
.hk-ptile { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px; min-height: 96px; border-radius: 16px; background: var(--card, #fff); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.hk-ptile svg { width: 28px; height: 28px; color: var(--brand); } .hk-ptile b { font-size: 16px; } .hk-ptile small { font-size: 12px; color: var(--muted); }
.hk-ptile:active { transform: scale(.98); }
.hk-ic { font-size: 30px; line-height: 1; color: var(--brand, #16697a); margin-bottom: 4px; } .hk-tile.main .hk-ic { font-size: 44px; color: #2b1800; }
.hk-shell { max-width: none !important; }
body.hk-mode .app, body.hk-mode .main { min-height: 0 !important; }
/* Home fits the window: hk-c1 drops the promo slider, hk-c2 is compact, hk-c3 hides the small lines */
.hk-shell { overflow: hidden; }
.hk-hero { min-height: 0; }
.hk-c1 .hk-promos { display: none; }
.hk-c2 { padding: 14px 26px 12px; gap: 12px; }
.hk-c2 .hk-logo { width: 54px; height: 54px; border-radius: 14px; }
.hk-c2 .hk-top h1 { font-size: clamp(24px, 3vw, 36px); }
.hk-c2 .hk-greet, .hk-c2 .hk-sub { font-size: 14px; }
.hk-c2 .hk-clock b { font-size: clamp(28px, 3vw, 40px); }
.hk-c2 .hk-fig { padding: 6px 12px; } .hk-c2 .hk-fig b { font-size: 17px; }
.hk-c2 .hk-tiles { gap: 10px; }
.hk-c2 .hk-tile { padding: 10px 14px; gap: 2px; border-radius: 14px; }
.hk-c2 .hk-tile svg { width: 26px; height: 26px; margin-bottom: 2px; } .hk-c2 .hk-tile b { font-size: 16px; } .hk-c2 .hk-tile small { font-size: 12px; }
.hk-c2 .hk-tile.main svg { width: 38px; height: 38px; } .hk-c2 .hk-tile.main b { font-size: 21px; }
.hk-c2 .hk-ic { font-size: 24px; } .hk-c2 .hk-tile.main .hk-ic { font-size: 36px; }
.hk-c3 .hk-tile:not(.main) small, .hk-c3 .hk-sub, .hk-c3 .hk-fig em, .hk-c3 .hk-foot { display: none; }
.hk-c3 .hk-tile { padding: 9px 12px; }
/* licence notice in the top bar, right side */
.hk-lic { margin-left: auto; display: flex; align-items: center; min-width: 0; max-width: 56%; padding-left: 12px; }
.hk-lic > #licBanner, .hk-lic > #licBar { margin: 0 !important; padding: 5px 14px !important; border-radius: 999px !important; font-size: 13px; line-height: 1.35; position: static !important; width: auto !important;
  background: rgba(255,255,255,.1) !important; border: 1px solid rgba(255,255,255,.24) !important; color: #f4f1ec !important; box-shadow: none !important;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; white-space: normal; }
.hk-lic > #licBanner[hidden] { display: none !important; }
.hk-lic > #licBar { display: flex !important; align-items: center; gap: 10px; white-space: nowrap; }
.hk-lic > #licBar .btn { padding: 3px 10px; font-size: 12px; }
.hk-lic a:not(.btn) { color: #fcd34d !important; font-weight: 600; }
.hk-lic > #licBanner.warn, .hk-lic > #licBar.warn { background: rgba(245,158,11,.22) !important; border-color: rgba(245,158,11,.55) !important; }
.hk-lic > #licBanner.bad, .hk-lic > #licBar.bad { background: rgba(239,68,68,.25) !important; border-color: rgba(239,68,68,.6) !important; }
.hk-lic.light { margin-left: 0; margin-right: 10px; max-width: 520px; }
.hk-lic.light > #licBanner, .hk-lic.light > #licBar { background: #fff4e5 !important; border-color: #f5c98b !important; color: #6b3a10 !important; font-size: 12.5px; }
.hk-lic.light a:not(.btn) { color: #9a3412 !important; }
.hk-top .spacer { flex: 1; }
#top .top-right .hk-lic.light { margin-right: 4px; max-width: 560px; }
