/*
 * Tokotill app chrome — ported from PaigeERP Pages/Shared/_Layout.cshtml (which kept it inline).
 * Cream / teal / charcoal: background #F5EFE5, primary #4A787D, text & bars #54514A.
 */
:root {
    --tt-bg: #F5EFE5;
    --tt-surface: #FFFFFF;
    --tt-surface-2: #FCF8F1;
    --tt-bar: #54514A;
    --tt-bar-border: #444240;
    --tt-text: #54514A;
    --tt-text-soft: #6f6b62;   /* soft captions and hints: 4.5:1 on cream and white */
    --tt-primary: #4A787D;
    --tt-primary-lt: #DCEEF0;
    --tt-peach: #FDB5A7;
    --tt-border: #d0ccc5;
    --tt-border-2: #e0dcd4;
    --tt-divider: #f0ece6;
    --tt-error: #c0392b;
    --tt-success: #72A86D;
}

html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 16px; } }

body {
    margin: 0;
    padding-top: 52px;
    background: var(--tt-bg);
    color: var(--tt-text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.tt-no-chrome { padding-top: 0; }

/* Safari (iPhone/iPad) does not pass the page font to form controls; without this they fall
   back to Times. */
button, input, select, textarea { font-family: inherit; }

a { color: var(--tt-primary); }

.tt-main { max-width: 1400px; margin: 0 auto; padding: 16px 16px 48px; }
@media (max-width: 640px) { .tt-main { padding: 12px 10px 40px; } }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.app-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 900; height: 52px; background: var(--tt-bar);
    border-bottom: 1px solid var(--tt-bar-border); display: flex; align-items: center; padding: 0 12px; gap: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,.07); padding-top: env(safe-area-inset-top); }
.hamburger-btn { background: none; border: none; cursor: pointer; font-size: 22px; color: #f5f5f5; width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; transition: background .15s; }
.hamburger-btn:hover { background: rgba(255,255,255,.15); }
.app-brand { font-size: 17px; font-weight: 700; color: #f5f5f5; text-decoration: none; flex: 1; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; }
.app-brand:hover { color: #fff; text-decoration: none; }
.app-brand small { font-weight: 500; opacity: .75; margin-left: 6px; font-size: 13px; }
.topbar-right { display: flex; align-items: center; gap: 8px; }
.topbar-user-link { font-size: 13px; color: #f5f5f5; text-decoration: none; font-weight: 500; }
.topbar-user-link:hover { color: #fff; text-decoration: none; }
.topbar-logout-btn { background: var(--tt-bg, #F5EFE5); border: 1px solid transparent; cursor: pointer; font-size: 12px;
    color: var(--tt-text, #54514A); padding: 4px 10px; border-radius: 6px; font-weight: 600; }
.topbar-logout-btn:hover { background: #fff; }
/* Public site language switch: stays visible on phones (unlike the user name). */
.topbar-lang-link { font-size: 13px; font-weight: 700; color: #f5f5f5; text-decoration: none; padding: 6px 10px; border-radius: 6px;
    min-width: 36px; text-align: center; opacity: .7; }
.topbar-lang-link.on { background: rgba(255,255,255,.16); opacity: 1; }
.topbar-lang-link:hover { color: #fff; opacity: 1; text-decoration: none; }
.topbar-lang { background: none; border: 1px solid rgba(255,255,255,.3); color: #f5f5f5; border-radius: 6px; font-size: 12px;
    padding: 3px 6px; }
.topbar-lang option { color: var(--tt-text); }
@media (max-width: 640px) {
    .app-topbar { gap: 6px; padding: 0 8px; }
    .topbar-user-link, .topbar-logout-btn { display: none; }
    .topbar-right { margin-left: auto; }
}

/* Impersonation banner: an operator is working inside this business. */
.tt-imp-banner { position: sticky; top: 52px; z-index: 850; background: #fadfb5; color: #54514A; border-bottom: 1px solid #e8c98f;
    padding: 8px 16px; font-size: 13px; display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.tt-imp-banner button { background: #54514A; color: #fff; border: none; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }

/* ── Navigation drawer ───────────────────────────────────────────────── */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 1000; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-backdrop.visible { opacity: 1; pointer-events: all; }
/* Closed, the drawer is pushed past its own shadow and hidden, so no shadow strip shows at the
   screen edge and its links cannot be reached by Tab. */
.nav-drawer { position: fixed; top: 0; left: 0; width: 300px; max-width: 86vw; height: 100vh; height: 100dvh; background: var(--tt-bg);
    z-index: 1001; display: flex; flex-direction: column; transform: translateX(calc(-100% - 32px)); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s; box-shadow: 4px 0 24px rgba(0,0,0,.14); }
.nav-drawer.open { transform: translateX(0); visibility: visible; transition: transform .25s ease, visibility 0s; }
.drawer-hdr { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--tt-bar);
    color: #fff; flex-shrink: 0; padding-top: calc(14px + env(safe-area-inset-top)); }
.drawer-hdr-title { font-size: 15px; font-weight: 700; }
.drawer-close-btn { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center; border-radius: 6px; }
.drawer-close-btn:hover { background: rgba(255,255,255,.18); }
.drawer-search-wrap { padding: 10px 12px; border-bottom: 1px solid var(--tt-border-2); flex-shrink: 0; }
.drawer-search-input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--tt-border); border-radius: 8px; font-size: 16px;
    outline: none; box-sizing: border-box; background: #fff; color: var(--tt-text); }
.drawer-search-input:focus { border-color: var(--tt-bar); }
.drawer-body { flex: 1; overflow-y: auto; }
.drawer-sec-label { font-size: 10px; font-weight: 700; color: var(--tt-text); text-transform: uppercase; letter-spacing: .5px; padding: 10px 16px 3px; }
.drawer-nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; transition: background .1s; min-height: 44px; box-sizing: border-box; }
.drawer-nav-item:hover { background: #e8e4df; }
.drawer-nav-item.active { background: #e8e4df; }
.drag-handle { cursor: grab; color: #b0aca5; font-size: 14px; flex-shrink: 0; user-select: none; }
.drag-handle:hover { color: #7a7670; }
.nav-item-icon { font-size: 18px; width: 24px; text-align: center; flex-shrink: 0; }
.nav-item-link { flex: 1; font-size: 14px; color: var(--tt-text); text-decoration: none; font-weight: 500; }
.nav-item-link:hover { color: #3a3833; text-decoration: none; }
.heart-btn { background: none; border: none; cursor: pointer; font-size: 22px; line-height: 1; padding: 4px; flex-shrink: 0; transition: transform .15s; }
.heart-btn:hover { transform: scale(1.25); }
.heart-on { color: var(--tt-peach); }
.heart-off { color: var(--tt-text); }
.drawer-empty-msg { padding: 20px 16px; font-size: 13px; color: #aaa; text-align: center; }
.drawer-footer { flex-shrink: 0; border-top: 1px solid var(--tt-border-2); padding: 12px 16px; display: flex; align-items: center; gap: 10px;
    background: #efe9dd; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
.drawer-footer-email { flex: 1; min-width: 0; font-size: 13px; color: var(--tt-text); text-decoration: none; font-weight: 600;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-logout-btn { background: none; border: 1px solid var(--tt-border); cursor: pointer; font-size: 12px; color: var(--tt-text);
    padding: 6px 12px; border-radius: 6px; font-weight: 600; flex-shrink: 0; }
.drawer-logout-btn:hover { background: #e8e4df; }

/* ── Quick-access favourite tiles (home page) ───────────────────────── */
.fav-section { margin-bottom: 24px; }
.fav-section-title { font-size: 14px; font-weight: 700; color: var(--tt-text); margin-bottom: 12px; }
.fav-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.fav-tile { width: 112px; height: 100px; background: #fff; border-radius: 14px; border: 1.5px solid var(--tt-border); display: flex;
    flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-decoration: none; color: var(--tt-text);
    transition: all .15s; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.fav-tile:hover { border-color: var(--tt-bar); box-shadow: 0 4px 14px rgba(84,81,74,.14); transform: translateY(-2px); color: #3a3833; text-decoration: none; }
.fav-tile-icon { font-size: 30px; line-height: 1; }
.fav-tile-name { font-size: 11px; font-weight: 600; text-align: center; padding: 0 6px; line-height: 1.3; }
.fav-tiles-empty { flex: 1; max-width: 520px; background: var(--tt-surface); border: 1.5px dashed var(--tt-border); border-radius: 14px;
    padding: 28px 20px; text-align: center; box-sizing: border-box; }
.fav-empty-icon { font-size: 40px; line-height: 1; margin-bottom: 10px; }
.fav-empty-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.fav-empty-text { font-size: 14px; color: var(--tt-text-soft); margin-bottom: 16px; }

/* ── Plain (non-Vue) auth pages: login, welcome, console ─────────────── */
.tt-auth-wrap { min-height: calc(100vh - 52px); display: flex; align-items: center; justify-content: center; padding: 24px 16px; box-sizing: border-box; }
body.tt-no-chrome .tt-auth-wrap { min-height: 100vh; }
.tt-card { background: var(--tt-surface); border: 1.5px solid #ddd6cc; border-radius: 14px; padding: 28px 24px; width: 100%; max-width: 400px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05); box-sizing: border-box; }
.tt-card h1 { font-size: 22px; margin: 0 0 4px; color: var(--tt-text); }
.tt-card .tt-sub { color: var(--tt-text-soft); font-size: 14px; margin: 0 0 20px; }
.tt-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tt-field label { font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--tt-text); }
.tt-field input, .tt-field select { font-size: 16px; padding: 11px 12px; border: 1.5px solid var(--tt-border); border-radius: 8px; outline: none;
    color: var(--tt-text); background: #fff; }
.tt-field input:focus, .tt-field select:focus { border-color: var(--tt-primary); }
.tt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 8px;
    border: none; background: var(--tt-primary); color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; }
.tt-btn:hover { filter: brightness(1.06); color: #fff; }
.tt-btn.block { width: 100%; }
.tt-btn.ghost { background: transparent; color: var(--tt-text); border: 1.5px solid var(--tt-border); }
.tt-alert { border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.tt-alert.error { background: #fde8e5; color: #8a2a1f; border: 1px solid #f3c1b9; }
.tt-alert.info { background: var(--tt-primary-lt); color: #2f5559; border: 1px solid #b9dde1; }
.tt-alert.ok { background: #e4f1e2; color: #3f6b3b; border: 1px solid #c3e0bf; }
.tt-muted { color: var(--tt-text-soft); font-size: 13px; }

/* ── Page helpers: every back-office page, Vue or plain (the dashboard) ── */
/* Left-aligned page header: emoji title, soft caption, actions on the right. On phones the actions
   take the whole row under the caption, side by side when they fit. */
.tt-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tt-page-head h1 { font-size: 22px; font-weight: 700; color: var(--tt-text); margin: 0; line-height: 1.3; }
.tt-page-head p { font-size: 13px; color: var(--tt-text-soft); margin: 2px 0 0; }
@media (max-width: 599.98px) {
    .tt-page-head > :first-child { flex: 1 1 100%; }
    .tt-page-head > .v-btn:not(.v-btn--variant-text), .tt-page-head > div:not(:first-child) { flex: 1 1 100%; }
    .tt-page-head > div:not(:first-child) > .v-btn { flex: 1 1 auto; }
}

/* Uppercase teal section divider inside forms. */
.tt-section { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--tt-primary); margin: 12px 0 6px; }

/* Stat boxes (PaigeERP Reports/Sales .stat-box). */
.tt-stat { background: #fff; border: 1.5px solid var(--tt-border-2); border-radius: 12px; padding: 14px 16px; }
.tt-stat .label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--tt-text-soft); }
.tt-stat .value { font-size: 26px; font-weight: 800; color: var(--tt-text); line-height: 1.2; }

/* Empty state: big emoji + muted text. */
.tt-empty { text-align: center; padding: 32px 16px; color: var(--tt-text-soft); }
.tt-empty .e { font-size: 44px; line-height: 1; margin-bottom: 8px; }

/* Language switch (profile): two equal halves that never cut "Bahasa Indonesia" off on a phone. */
.tt-lang-toggle { width: 100%; max-width: 440px; }
.tt-lang-toggle .v-btn { flex: 1 1 0; min-width: 0; text-transform: none; letter-spacing: normal; font-size: 15px; }

/* ── Data tables: columns on tablets and computers, one card per row on phones ── */
.tt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tt-table th { text-align: left; background: var(--tt-surface-2); padding: 10px 12px; font-weight: 700; white-space: nowrap; }
.tt-table td { padding: 8px 12px; border-top: 1px solid var(--tt-divider); vertical-align: top; }
.tt-table tr.tt-row-bad td { background: #fdf1ef; }
.tt-table td.nowrap { white-space: nowrap; }
@media (max-width: 640px) {
    .tt-table thead { display: none; }
    .tt-table, .tt-table tbody, .tt-table tr, .tt-table td { display: block; width: 100%; box-sizing: border-box; }
    .tt-table tr { border-top: 1px solid var(--tt-divider); padding: 8px 0; }
    .tt-table tr:first-child { border-top: none; }
    .tt-table tr.tt-row-bad { background: #fdf1ef; }
    .tt-table td, .tt-table tr.tt-row-bad td { border: none; padding: 2px 14px; display: flex; gap: 10px; background: none; word-break: break-word; }
    .tt-table td::before { content: attr(data-label); flex: 0 0 88px; color: var(--tt-text-soft); font-size: 12px; }
    .tt-table td:empty, .tt-table tr.tt-row-bad td:empty { display: none; }   /* a flagged row too (its rule above outranks :empty) */
}

/* Clickable rows (open the edit dialog), a bold title cell, a right-aligned end cell. */
.tt-table tr.tt-click { cursor: pointer; }
.tt-table tr.tt-click:hover td, .tt-table tr.tt-click:focus-visible td { background: #faf6ee; }
.tt-table tr.tt-click:focus-visible { outline: 2px solid var(--tt-primary); outline-offset: -2px; }
.tt-table td.tt-cell-end { text-align: right; white-space: nowrap; }
.tt-table .tt-muted { font-size: 12px; }
@media (max-width: 640px) {
    /* The card's title: a code or a note beside a short name, under a long one (never squeezed into a sliver). */
    .tt-table td.tt-cell-title { font-size: 15px; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
    .tt-table td.tt-cell-title::before, .tt-table td:not([data-label])::before { display: none; }
    .tt-table td.tt-cell-end { text-align: left; }
    .tt-table tr.tt-click:hover td { background: none; }
}

/* List toolbar: search grows, filters sit beside it and wrap under it on phones. */
.tt-toolbar { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 12px; }
/* Two classes: Vuetify's .v-input { flex: 1 1 auto } loads after this file. */
.tt-toolbar .tt-toolbar-search { flex: 1 1 280px; min-width: 0; }
.tt-toolbar .v-switch { flex: 0 0 auto; }
@media (max-width: 640px) { .tt-toolbar .tt-toolbar-search { flex-basis: 100%; } .tt-toolbar { gap: 4px 20px; } }

/* Dialog footer: Delete on the left, Cancel / Save on the right; wraps on narrow screens. */
.tt-dialog-actions { padding: 8px 16px 16px !important; flex-wrap: wrap; gap: 8px; }

/* ── Touch screens (the tablet till, phones): bigger targets, larger small print ── */
@media (pointer: coarse) {
    .tt-field input, .tt-field select { min-height: 48px; box-sizing: border-box; }
    .tt-btn { min-height: 48px; }
    .hamburger-btn, .drawer-close-btn { width: 44px; height: 44px; }
    .topbar-user-link { font-size: 14px; }
    .topbar-logout-btn { font-size: 14px; padding: 8px 14px; }
    .drawer-nav-item { min-height: 52px; }
    .heart-btn { padding: 8px; }
    .drawer-logout-btn { font-size: 14px; padding: 9px 14px; }
}
/* Tablets (the till): list rows are what a finger taps to open, so they get a finger's height and
   easier-to-read text. Phones show cards instead, sized above. */
@media (pointer: coarse) and (min-width: 641px) {
    .tt-table { font-size: 14px; }
    .tt-table th { padding-top: 12px; padding-bottom: 12px; }
    .tt-table td { padding-top: 13px; padding-bottom: 13px; }
    .tt-table .tt-muted { font-size: 13px; }
}

/* Vue pages: hide un-mounted templates. */
[v-cloak] { display: none; }

/* ── 📣 What's new popup (wwwroot/js/whats-new.js) ──────────────────────
   ISXerp's WhatsNewDialog as a Vuetify-style dialog in the Tokotill theme, in plain CSS because it
   opens on every back-office page, Vue or not. Persistent, no scrim (the page behind is inert, not
   dimmed); full screen on phones with the footer always in reach. */
html.tt-wn-open { overflow: hidden; }
.drawer-whatsnew-btn { flex-shrink: 0; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 9px 16px;
    border: none; border-top: 1px solid var(--tt-border-2); background: transparent; color: var(--tt-text); font-size: 14px; font-weight: 600;
    text-align: left; cursor: pointer; box-sizing: border-box; }
.drawer-whatsnew-btn:hover { background: #e8e4df; }
.drawer-whatsnew-btn span { font-size: 18px; width: 24px; text-align: center; }

.tt-wn { position: fixed; inset: 0; z-index: 2400; display: flex; align-items: center; justify-content: center; padding: 24px;
    box-sizing: border-box; }
.tt-wn-card { position: relative; display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: 85vh; max-height: 85dvh;
    background: var(--tt-surface); color: var(--tt-text); border: 1.5px solid #ddd6cc; border-radius: 14px; overflow: hidden; outline: none;
    box-shadow: 0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12);
    animation: tt-wn-in .225s cubic-bezier(0, 0, .2, 1); }
.tt-wn-leaving .tt-wn-card { animation: tt-wn-out .15s cubic-bezier(.4, 0, 1, 1) forwards; }
.tt-wn-card.tt-wn-bounce { animation: tt-wn-bounce .15s cubic-bezier(.4, 0, .2, 1); }
@keyframes tt-wn-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes tt-wn-out { to { opacity: 0; transform: scale(.95); } }
@keyframes tt-wn-bounce { 50% { transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .tt-wn-card, .tt-wn-card.tt-wn-bounce, .tt-wn-leaving .tt-wn-card { animation: none; } }

/* Title bar: the tt-card-title teal accent, then 📣 What's new, the count on the right. */
.tt-wn-title { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 14px 20px 12px;
    border-bottom: 1px solid rgba(84,81,74,.12); }
.tt-wn-title::before { content: ''; width: 3px; height: 20px; background: var(--tt-primary); border-radius: 2px; flex-shrink: 0; }
.tt-wn-heading { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1.6; letter-spacing: .0125em;
    color: var(--tt-text); display: flex; align-items: center; gap: 8px; }
.tt-wn-icon { font-size: 1.2rem; line-height: 1; }
.tt-wn-count { flex-shrink: 0; font-size: .75rem; letter-spacing: .0333em; color: var(--tt-text-soft); }

.tt-wn-body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 14px 18px; outline: none;
    -webkit-overflow-scrolling: touch; }
.tt-wn-body:focus-visible { box-shadow: inset 0 0 0 2px var(--tt-primary-lt); }
.tt-wn-empty { margin: 8px 0; font-size: .875rem; color: var(--tt-text-soft); }

/* The latest pushes: each its own box; the newest tinted teal, accent-bordered and chipped. */
.tt-wn-push { padding: 10px 12px; border: 1px solid rgba(84,81,74,.14); border-radius: 10px; margin-bottom: 10px; }
.tt-wn-push--latest { border-color: var(--tt-primary); background: #EAF4F5; }
.tt-wn-push-head { display: flex; align-items: center; margin-bottom: 8px; font-size: .75rem; font-weight: 600;
    color: rgba(84,81,74,.62); }
.tt-wn-push--latest .tt-wn-push-head { color: #2f5559; }
.tt-wn-when { font-variant-numeric: tabular-nums; }
.tt-wn-chip { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: 8px; border-radius: 4px;
    background: var(--tt-primary); color: #fff; font-size: .6875rem; font-weight: 600; letter-spacing: .02em; }

/* "Earlier": the paged history, plainer and set apart from the latest pushes. */
.tt-wn-earlier { margin: 14px 0 6px; padding-top: 10px; border-top: 1px solid rgba(84,81,74,.12); font-size: .7rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: rgba(84,81,74,.55); }
.tt-wn-old { padding: 8px 2px; }
.tt-wn-old + .tt-wn-old { border-top: 1px solid rgba(84,81,74,.08); }
.tt-wn-old-head { font-size: .72rem; font-weight: 600; margin-bottom: 6px; color: rgba(84,81,74,.55); font-variant-numeric: tabular-nums; }

.tt-wn-list { list-style: none; margin: 0; padding: 0; }
.tt-wn-item { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.35; letter-spacing: .0178em; }
.tt-wn-item + .tt-wn-item { margin-top: 7px; }
.tt-wn-dot { flex: 0 0 auto; width: 6px; height: 6px; margin-top: .45em; border-radius: 50%; background: var(--tt-primary); }
.tt-wn-dot--muted { background: rgba(84,81,74,.3); }
.tt-wn-text { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* Footer (v-card-actions): pager on the left; the opt-out and Understood together on the right. */
.tt-wn-footer { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 52px; padding: 8px 12px;
    border-top: 1px solid rgba(84,81,74,.12); box-sizing: border-box; }
.tt-wn-pager { display: flex; align-items: center; }
.tt-wn-pager[hidden] { display: none; }
.tt-wn-page { min-width: 56px; text-align: center; font-size: .75rem; color: var(--tt-text-soft); font-variant-numeric: tabular-nums; }
.tt-wn-icon-btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: none;
    border-radius: 50%; background: transparent; color: var(--tt-text); cursor: pointer; }
.tt-wn-icon-btn svg { width: 22px; height: 22px; fill: currentColor; }
@media (hover: hover) { .tt-wn-icon-btn:hover:not(:disabled) { background: rgba(84,81,74,.08); } }
.tt-wn-icon-btn:active:not(:disabled) { background: rgba(84,81,74,.12); }
.tt-wn-icon-btn:disabled { opacity: .35; cursor: default; }
.tt-wn-actions { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.tt-wn-suppress { display: flex; align-items: center; gap: 8px; max-width: 230px; cursor: pointer; font-size: .8rem; line-height: 1.2;
    color: var(--tt-text); }
.tt-wn-suppress[hidden] { display: none; }
.tt-wn-suppress input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--tt-primary); cursor: pointer; }
.tt-wn-ok { flex-shrink: 0; min-width: 64px; height: 36px; padding: 0 16px; border: none; border-radius: 4px; background: var(--tt-primary);
    color: #fff; font-size: .9375rem; font-weight: 600; cursor: pointer;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,.2), 0 2px 2px 0 rgba(0,0,0,.14), 0 1px 5px 0 rgba(0,0,0,.12); }
@media (hover: hover) { .tt-wn-ok:hover { filter: brightness(1.06); } }
.tt-wn-ok:disabled { opacity: .6; cursor: default; }
.tt-wn-ok:focus-visible, .tt-wn-icon-btn:focus-visible, .tt-wn-suppress input:focus-visible { outline: 2px solid var(--tt-primary); outline-offset: 2px; }

/* Phones (Vuetify xs): full screen, the footer pinned to the bottom above the home indicator. */
@media (max-width: 599.98px) {
    .tt-wn { padding: 0; align-items: stretch; }
    .tt-wn-card { max-width: none; height: 100%; max-height: none; border: none; border-radius: 0; }
    .tt-wn-title { padding: calc(12px + env(safe-area-inset-top)) 16px 10px; }
    .tt-wn-body { padding: 12px 14px; }
    .tt-wn-footer { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
}
@media (pointer: coarse) {
    .drawer-whatsnew-btn { min-height: 52px; }
    .tt-wn-icon-btn { width: 48px; height: 48px; }
    .tt-wn-ok { height: 48px; padding: 0 20px; }
    .tt-wn-suppress { min-height: 48px; font-size: .85rem; }
    .tt-wn-suppress input { width: 22px; height: 22px; }
}

/* ── Sign-up, "check your email", find my business, forgot/reset password (plain forms) ── */
.tt-site-narrow { max-width: 560px; margin: 8px auto 0; }
.tt-site-head { text-align: center; margin: 8px 0 18px; }
.tt-site-head .e { font-size: 44px; line-height: 1; }
.tt-site-head h1 { font-size: 26px; margin: 10px 0 6px; color: var(--tt-text); }
.tt-site-head p { margin: 0; font-size: 15px; }
.tt-card.tt-card-wide { max-width: none; }
.tt-card .tt-big-emoji { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.tt-center { text-align: center; }
.tt-section-label { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--tt-primary);
    margin: 6px 0 12px; padding-top: 4px; }
.tt-section-label:not(:first-child) { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--tt-divider); }
.tt-label { font-size: 12px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: var(--tt-text); }
.tt-hint { font-size: 13px; color: var(--tt-text-soft); }
.tt-field-error { font-size: 13px; color: var(--tt-error); }
.tt-field.has-error input, .tt-field.has-error select, .tt-field.has-error .tt-addr, .tt-field.has-error .tt-choice-item { border-color: var(--tt-error); }
/* Plain selects look the same on iPhone/iPad (WebKit draws them grey) as elsewhere. */
.tt-field select { -webkit-appearance: none; appearance: none; padding-right: 40px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2354514A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; }
/* A link styled .tt-btn.block would otherwise be 100% wide plus its padding. */
.tt-btn { box-sizing: border-box; }
.tt-btn.tt-btn-lg { min-height: 50px; font-size: 16px; margin-top: 8px; }
.tt-btn:disabled { opacity: .65; cursor: default; filter: none; }
.tt-link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; font-size: 14px; }

/* Address: "yourbusiness" + ".tokotill.com" in one box, with the live check under it. */
.tt-addr { display: flex; align-items: stretch; border: 1.5px solid var(--tt-border); border-radius: 8px; background: #fff; overflow: hidden; }
.tt-addr:focus-within { border-color: var(--tt-primary); }
.tt-field .tt-addr input { flex: 1 1 auto; min-width: 0; border: none; border-radius: 0; }
.tt-addr-suffix { display: flex; align-items: center; padding: 0 12px; background: var(--tt-surface-2); color: var(--tt-text-soft);
    border-left: 1px solid var(--tt-divider); font-size: 15px; white-space: nowrap; }
.tt-check { font-size: 13px; color: var(--tt-text-soft); min-height: 18px; }
.tt-check.ok { color: #3f6b3b; font-weight: 600; }
.tt-check.ok::before { content: '✓ '; }
.tt-check.bad { color: var(--tt-error); }

/* Business type: three tiles, one choice. */
.tt-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tt-field .tt-choice-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    min-height: 76px; padding: 10px 6px; border: 1.5px solid var(--tt-border); border-radius: 10px; background: #fff; cursor: pointer;
    text-align: center; font-size: 14px; font-weight: 600; line-height: 1.25; text-transform: none; letter-spacing: normal; color: var(--tt-text); }
.tt-choice-item .e { font-size: 24px; line-height: 1; }
.tt-choice-item input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tt-choice-item:has(input:checked) { border-color: var(--tt-primary); background: var(--tt-primary-lt); box-shadow: inset 0 0 0 1px var(--tt-primary); }
.tt-choice-item:has(input:focus-visible) { outline: 2px solid var(--tt-primary); outline-offset: 2px; }

/* Password with a show/hide switch inside the box. */
.tt-pw { position: relative; display: flex; }
.tt-field .tt-pw input { flex: 1 1 auto; min-width: 0; padding-right: 72px; }
.tt-pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--tt-primary);
    font-size: 14px; font-weight: 600; padding: 8px 10px; cursor: pointer; border-radius: 6px; }
.tt-pw-toggle:hover { background: var(--tt-primary-lt); }

/* Honeypot: present for robots, invisible and unreachable for people. */
.tt-hp { position: absolute !important; left: -10000px !important; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
    .tt-site-head h1 { font-size: 22px; }
    .tt-card.tt-card-wide { padding: 22px 16px; }
}

/* Settings → Subscription (Vue): plan and usage side by side from tablets up, plan cards in a grid. */
.tt-sub-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .tt-sub-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.tt-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.tt-plan-card { display: flex; flex-direction: column; }
.tt-plan-card.current { border-color: var(--tt-primary) !important; box-shadow: inset 0 0 0 1px var(--tt-primary); }
.tt-plan-limits { list-style: none; padding: 0; margin: 0; }
.tt-plan-limits li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--tt-divider); font-size: 14px; }
.tt-plan-limits li:first-child { border-top: none; }
.tt-usage-row + .tt-usage-row { margin-top: 16px; }
.tt-usage-row .top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 6px; }

/* ── Setup pages (settings, taxes, receipt): a plain sentence under a setting, and its live example ── */
.tt-explain { font-size: 13px; color: var(--tt-text-soft); line-height: 1.45; }
.tt-example { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--tt-surface-2); border: 1px solid var(--tt-border-2);
    font-size: 13px; color: var(--tt-text); line-height: 1.45; }
/* Field hints and errors that wrap onto a second line (phones, Indonesian) get room to breathe:
   Vuetify sets them 12px apart and clips the last line. Everywhere, dialogs included (they are
   rendered outside the page's v-app). */
.v-messages .v-messages__message { line-height: 1.35; padding-bottom: 2px; }

/* ── Dashboard: "Getting started" checklist for a new business ─────────── */
.tt-start { background: var(--tt-surface); border: 1.5px solid var(--tt-border-2); border-radius: 14px; padding: 16px; margin-bottom: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05); max-width: 760px; }
.tt-start-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tt-start-head h2 { font-size: 17px; margin: 0; flex: 1 1 auto; }
.tt-start-count { font-size: 13px; color: var(--tt-text-soft); font-weight: 600; }
/* Right-hand end of its line, also when a phone wraps it under the title. */
.tt-start-hide { background: none; border: none; color: var(--tt-text-soft); font-size: 13px; cursor: pointer; padding: 6px 8px; border-radius: 6px;
    margin-left: auto; }
@media (pointer: coarse) { .tt-start-hide { min-height: 44px; padding: 8px 12px; font-size: 14px; } }
.tt-start-hide:hover { background: var(--tt-divider); color: var(--tt-text); }
.tt-start-bar { height: 6px; background: var(--tt-divider); border-radius: 3px; margin: 10px 0 8px; overflow: hidden; }
.tt-start-bar span { display: block; height: 100%; background: var(--tt-primary); border-radius: 3px; }
.tt-start-steps { list-style: none; margin: 0; padding: 0; }
.tt-start-steps li + li { border-top: 1px solid var(--tt-divider); }
.tt-start-steps a { display: flex; align-items: center; gap: 12px; padding: 12px 4px; text-decoration: none; color: var(--tt-text); min-height: 48px; }
.tt-start-steps a:hover { background: #faf6ee; }
.tt-start-icon { font-size: 22px; width: 30px; text-align: center; flex-shrink: 0; }
.tt-start-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tt-start-text strong { font-size: 15px; }
.tt-start-text span { font-size: 13px; color: var(--tt-text-soft); }
.tt-start-go { font-size: 24px; color: var(--tt-text-soft); flex-shrink: 0; }
.tt-start-steps li.done strong { text-decoration: line-through; color: var(--tt-text-soft); }
/* Getting started beside Quick Access when there is room for both (the till in landscape). */
.tt-home { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 24px; align-items: start; }
@media (min-width: 1000px) {
    .tt-home:has(> .tt-start:not([hidden])) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
    .tt-home .tt-start { max-width: none; }
}
