:root {
    --navy-950: #101d31;
    --navy-900: #182a45;
    --navy-800: #213958;
    --navy-700: #2e4c70;
    --blue-100: #eaf1f8;
    --blue-50: #f4f7fb;
    --ink: #172033;
    --muted: #6c778b;
    --line: #e4e9f0;
    --surface: #ffffff;
    --canvas: #f5f7fa;
    --green: #159b73;
    --green-soft: #e8f7f2;
    --amber: #c58118;
    --amber-soft: #fff5df;
    --red: #c74d55;
    --red-soft: #fdebed;
    --shadow: 0 18px 50px rgba(24, 42, 69, .10);
    --shadow-sm: 0 8px 24px rgba(24, 42, 69, .07);
    --radius: 16px;
    --radius-sm: 10px;
    --sidebar: 268px;
}

* { box-sizing: border-box; }
html { min-height: 100%; color-scheme: light; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.brand-lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-lockup > span:last-child { display: grid; min-width: 0; }
.brand-lockup strong { font-size: 16px; line-height: 1.15; letter-spacing: -.02em; }
.brand-lockup small { margin-top: 3px; overflow: hidden; color: #8ea0b8; font-size: 10px; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.brand-lockup--light strong { color: #fff; }
.brand-mark { position: relative; display: inline-flex; flex: 0 0 42px; width: 42px; height: 42px; align-items: flex-end; justify-content: center; gap: 3px; padding: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(255,255,255,.09); }
.brand-mark span { display: block; width: 5px; border-radius: 3px; background: #fff; }
.brand-mark span:nth-child(1) { height: 11px; opacity: .72; }
.brand-mark span:nth-child(2) { height: 19px; }
.brand-mark span:nth-child(3) { height: 15px; opacity: .86; }
.brand-mark--dark { margin: 0 auto 22px; border: 0; background: var(--navy-900); }

.eyebrow, .page-kicker, .panel-kicker { color: #94a9c0; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.eyebrow--dark, .page-kicker, .panel-kicker { color: var(--navy-700); }

/* Guest and authentication */
.guest-body { background: var(--navy-950); }
.guest-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .86fr) minmax(520px, 1.14fr); }
.guest-brand { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 48px clamp(36px, 5vw, 80px); color: #fff; background: linear-gradient(145deg, #14253d 0%, #203a5b 60%, #172d49 100%); }
.guest-brand::before, .guest-brand::after { position: absolute; content: ""; pointer-events: none; border: 1px solid rgba(255,255,255,.055); border-radius: 50%; }
.guest-brand::before { right: -210px; bottom: -190px; width: 540px; height: 540px; box-shadow: 0 0 0 80px rgba(255,255,255,.018), 0 0 0 160px rgba(255,255,255,.012); }
.guest-brand::after { top: 32%; left: -150px; width: 280px; height: 280px; }
.guest-copy { position: relative; z-index: 1; max-width: 520px; margin: auto 0; }
.guest-copy h1 { max-width: 470px; margin: 20px 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 68px); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.guest-copy p { max-width: 440px; margin: 0; color: #b8c5d4; font-size: 16px; line-height: 1.7; }
.guest-status { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #aebdce; font-size: 12px; }
.guest-status span { width: 8px; height: 8px; border-radius: 50%; background: #45d5a7; box-shadow: 0 0 0 5px rgba(69,213,167,.11); }
.guest-main { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 36px; background: #f7f8fa; }
.guest-card { width: min(100%, 485px); padding: 45px 48px; border: 1px solid #e9edf2; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.guest-footer { position: absolute; bottom: 18px; color: #939baa; font-size: 11px; }
.auth-heading { margin-bottom: 28px; }
.auth-heading h2 { margin: 10px 0 8px; color: var(--navy-950); font-size: 29px; letter-spacing: -.035em; }
.auth-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-form { display: grid; gap: 18px; }
.setup-form { gap: 26px; }
.setup-form fieldset { display: grid; gap: 16px; margin: 0; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--line); }
.setup-form legend { margin-bottom: 16px; color: var(--navy-900); font-size: 13px; font-weight: 800; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { color: #364156; font-size: 12px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 0 14px; border: 1px solid #dce2e9; border-radius: 9px; outline: none; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input, .field select { height: 48px; }
.field textarea { min-height: 86px; padding-block: 12px; resize: vertical; line-height: 1.5; }
.field input::placeholder { color: #a3abb8; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #bac6d4; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(46,76,112,.10); }
.field-error { color: var(--red); font-size: 11px; }
.field-help { color: #8b95a4; font-size: 10px; line-height: 1.45; }
.field label em { color: #98a1af; font-size: 9px; font-style: normal; font-weight: 500; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 56px; }
.password-wrap button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); padding: 8px; border: 0; color: var(--navy-700); background: transparent; cursor: pointer; font-size: 11px; font-weight: 800; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 0 18px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; cursor: pointer; font-size: 12px; font-weight: 800; transition: transform .15s, box-shadow .2s, background .2s; }
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid rgba(32,180,134,.26); outline-offset: 2px; }
.button--primary { color: #fff; background: var(--navy-900); box-shadow: 0 9px 20px rgba(24,42,69,.16); }
.button--primary:hover { background: #203957; }
.button--secondary { border-color: var(--line); color: var(--ink); background: #fff; box-shadow: none; }
.button--small { min-height: 36px; padding-inline: 12px; font-size: 10px; }
.button--danger { color: #fff; background: var(--red); }
.button--danger:hover { background: #ad3f47; }
.button--danger-outline { border-color: #efc9cd; color: #a83e46; background: #fff; }
.button:disabled { cursor: not-allowed; transform: none; opacity: .58; }
.button--full { width: 100%; min-height: 50px; margin-top: 2px; }
.button--full span { margin-left: auto; font-size: 17px; font-weight: 400; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; color: #98a1ae; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.setup-callout { padding: 18px; border: 1px solid #cfe2f4; border-radius: 10px; background: var(--blue-50); }
.setup-callout strong { font-size: 13px; }
.setup-callout p { margin: 4px 0 12px; color: var(--muted); font-size: 12px; }
.setup-callout a { color: var(--navy-700); font-size: 12px; font-weight: 800; }
.password-rules, .form-note { padding: 12px 14px; border-radius: 8px; color: #596579; background: var(--blue-50); font-size: 11px; line-height: 1.55; }
.password-rules { display: grid; gap: 2px; }
.validation-list { margin: 0; padding: 12px 12px 12px 30px; border-radius: 8px; color: #9d333b; background: var(--red-soft); font-size: 11px; line-height: 1.55; }
.form-grid { display: grid; gap: 15px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field--span-2 { grid-column: span 2; }

/* Alerts */
.alert { display: flex; align-items: center; gap: 11px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid transparent; border-radius: 10px; font-size: 12px; }
.alert > span { display: grid; flex: 0 0 24px; height: 24px; place-items: center; border-radius: 50%; font-weight: 900; }
.alert p { flex: 1; margin: 0; line-height: 1.45; }
.alert button { border: 0; color: inherit; background: transparent; cursor: pointer; font-size: 18px; opacity: .65; }
.alert--success { border-color: #cbeade; color: #147859; background: var(--green-soft); }
.alert--success > span { color: #fff; background: var(--green); }
.alert--error { border-color: #f4ced2; color: #a43b43; background: var(--red-soft); }
.alert--error > span { color: #fff; background: var(--red); }
.alert--warning { border-color: #f1deb8; color: #936312; background: var(--amber-soft); }
.alert--warning > span { color: #fff; background: var(--amber); }

/* Application shell */
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; width: var(--sidebar); flex-direction: column; color: #d4dde8; background: var(--navy-950); box-shadow: 8px 0 28px rgba(9,20,37,.08); }
.sidebar-head { display: flex; min-height: 84px; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-head .brand-lockup { max-width: 205px; }
.sidebar-close { display: none; color: #fff; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 22px 12px; }
.nav-label { display: block; margin: 15px 13px 8px; color: #63758c; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.nav-label:first-child { margin-top: 0; }
.nav-item { display: flex; min-height: 43px; align-items: center; gap: 11px; margin: 3px 0; padding: 0 13px; border-radius: 9px; color: #aab8c9; text-decoration: none; font-size: 12px; font-weight: 650; transition: color .18s, background .18s; }
.nav-item:hover:not(.is-disabled) { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.is-active { color: #fff; background: #243c5b; box-shadow: inset 3px 0 #42c9a0; }
.nav-item.is-disabled { cursor: default; opacity: .56; }
.nav-item small { margin-left: auto; padding: 3px 5px; border-radius: 4px; color: #8493a7; background: rgba(255,255,255,.06); font-size: 8px; }
.nav-icon { display: grid; width: 19px; height: 19px; place-items: center; color: #91a3b8; font-size: 15px; }
.sidebar-user { display: flex; min-height: 76px; align-items: center; gap: 10px; padding: 15px 17px; border-top: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.09); }
.avatar { display: grid; flex: 0 0 36px; width: 36px; height: 36px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #3b5e84, #274461); font-size: 12px; font-weight: 800; }
.sidebar-user-copy { display: grid; min-width: 0; flex: 1; }
.sidebar-user-copy strong { overflow: hidden; color: #fff; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-copy small { margin-top: 3px; color: #8395ab; font-size: 9px; }
.logout-button, .icon-button { display: grid; border: 0; place-items: center; cursor: pointer; background: transparent; }
.logout-button { width: 32px; height: 32px; border-radius: 8px; color: #8da0b6; font-size: 19px; }
.logout-button:hover { color: #fff; background: rgba(255,255,255,.07); }
.app-main { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { position: sticky; z-index: 30; top: 0; display: flex; min-height: 84px; align-items: center; justify-content: space-between; padding: 15px clamp(20px, 3vw, 42px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(15px); }
.topbar-title { display: flex; align-items: center; gap: 12px; }
.topbar-title span { color: #8a94a3; font-size: 8px; font-weight: 800; letter-spacing: .14em; }
.topbar-title h1 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.025em; }
.menu-button { display: none; width: 40px; height: 40px; border-radius: 9px; color: var(--navy-900); font-size: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.environment-badge, .date-chip { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: #697487; background: #fff; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.environment-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.environment-badge.is-production i { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.page-content { max-width: 1500px; margin: 0 auto; padding: 34px clamp(20px, 3vw, 42px) 50px; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-intro h2 { margin: 6px 0; color: var(--navy-950); font-size: 28px; letter-spacing: -.04em; }
.page-intro p:not(.page-kicker) { margin: 0; color: var(--muted); font-size: 13px; }
.page-kicker { margin: 0; }
.foundation-badge { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border-radius: 8px; color: #167b5c; background: var(--green-soft); font-size: 10px; font-weight: 800; text-decoration: none; }

/* Dashboard */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 18px; }
.metric-card { min-width: 0; padding: 21px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.metric-card--primary { border-color: var(--navy-900); color: #fff; background: linear-gradient(145deg, var(--navy-900), #254362); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #7f8a9b; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.metric-top i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: var(--navy-700); background: var(--blue-50); font-size: 13px; font-style: normal; }
.metric-card--primary .metric-top { color: #b8c6d6; }
.metric-card--primary .metric-top i { color: #fff; background: rgba(255,255,255,.11); }
.metric-card > strong { display: block; margin: 15px 0 4px; color: var(--navy-950); font-size: 25px; letter-spacing: -.04em; }
.metric-card--primary > strong { color: #fff; }
.metric-card p { margin: 0; color: #8d96a5; font-size: 10px; }
.metric-card--primary p { color: #aebed0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 18px; margin-bottom: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 23px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 5px 0 0; color: var(--navy-950); font-size: 16px; letter-spacing: -.025em; }
.provider-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 7px; color: #596579; background: var(--blue-50); font-size: 9px; font-weight: 800; }
.provider-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.fiscal-status-grid { display: grid; grid-template-columns: repeat(3,1fr); padding: 20px 23px; }
.fiscal-stat { position: relative; display: grid; padding: 2px 20px; border-right: 1px solid var(--line); }
.fiscal-stat:first-child { padding-left: 0; }
.fiscal-stat:last-child { border: 0; }
.fiscal-stat .status-dot { position: absolute; top: 4px; right: 19px; width: 7px; height: 7px; border-radius: 50%; }
.fiscal-stat--ok .status-dot { background: var(--green); }
.fiscal-stat--wait .status-dot { background: var(--amber); }
.fiscal-stat--error .status-dot { background: var(--red); }
.fiscal-stat strong { color: var(--navy-950); font-size: 25px; }
.fiscal-stat small { margin-top: 3px; color: #8a94a4; font-size: 10px; }
.integration-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 23px 22px; padding: 14px; border-radius: 10px; background: var(--blue-50); }
.integration-row > div { display: flex; align-items: center; gap: 11px; }
.integration-row > div > div { display: grid; }
.integration-row strong { font-size: 11px; }
.integration-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.integration-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; color: var(--navy-800); background: #dfe9f4; }
.status-pill { display: inline-flex; width: max-content; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.status-pill--success { color: #137757; background: var(--green-soft); }
.status-pill--neutral { color: #6e7887; background: #eef1f5; }
.status-pill--warning { color: #996713; background: var(--amber-soft); }
.roadmap-list { display: grid; gap: 0; margin: 0; padding: 12px 23px 18px; list-style: none; }
.roadmap-list li { display: grid; grid-template-columns: 31px 1fr auto; align-items: center; gap: 11px; padding: 12px 0; border-bottom: 1px solid #edf0f4; }
.roadmap-list li:last-child { border: 0; }
.roadmap-list li > span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #dbe1e8; border-radius: 8px; color: #8290a0; font-size: 9px; font-weight: 800; }
.roadmap-list li > div { display: grid; }
.roadmap-list strong { font-size: 11px; }
.roadmap-list small { margin-top: 3px; color: #929baa; font-size: 9px; }
.roadmap-list em { padding: 4px 6px; border-radius: 5px; color: #8590a0; background: #f1f3f6; font-size: 8px; font-style: normal; font-weight: 800; }
.roadmap-list .is-complete > span { border-color: var(--green); color: #fff; background: var(--green); }
.roadmap-list .is-complete em { color: #147859; background: var(--green-soft); }
.roadmap-list .is-next > span { border-color: var(--navy-700); color: #fff; background: var(--navy-700); }
.roadmap-list .is-next em { color: var(--navy-700); background: var(--blue-100); }
.readiness-panel { padding-bottom: 21px; }
.readiness-panel .panel-head { border-bottom: 0; padding-bottom: 14px; }
.readiness-score { color: var(--green); font-size: 21px; }
.progress-track { height: 7px; margin: 0 23px 18px; overflow: hidden; border-radius: 99px; background: #e8ecf1; }
.progress-track span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1eaa7f, #41c89e); }
.progress-track span.is-full { width: 100%; }
.readiness-items { display: flex; flex-wrap: wrap; gap: 9px 22px; padding: 0 23px; }
.readiness-items span { color: #657184; font-size: 9px; font-weight: 700; }
.readiness-items i { display: inline-grid; width: 17px; height: 17px; margin-right: 5px; place-items: center; border-radius: 50%; color: var(--green); background: var(--green-soft); font-style: normal; }

/* Tables and users */
.table-panel { overflow: hidden; }
.table-toolbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 22px; border-bottom: 1px solid var(--line); }
.table-toolbar > div { display: grid; }
.table-toolbar strong { font-size: 13px; }
.table-toolbar small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.table-search { display: flex; width: min(260px, 100%); height: 39px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; color: #8792a3; background: #fff; }
.table-search input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--ink); font-size: 11px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 20px; border-bottom: 1px solid #edf0f4; text-align: left; vertical-align: middle; }
th { color: #7f8998; background: #fafbfd; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
td { font-size: 11px; }
tbody tr:hover { background: #fbfcfd; }
.user-cell { display: flex; min-width: 210px; align-items: center; gap: 10px; }
.avatar--table { flex-basis: 34px; width: 34px; height: 34px; border-radius: 9px; }
.user-cell > div { display: grid; }
.user-cell strong { font-size: 11px; }
.user-cell small { margin-top: 3px; color: #8993a2; font-size: 9px; }
.role-tag { display: inline-flex; padding: 5px 8px; border-radius: 6px; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.role-tag--administrador { color: #294d72; background: #e4edf6; }
.role-tag--gerente { color: #805f17; background: #fff1ce; }
.role-tag--caixa { color: #31705d; background: #e6f5f0; }
.muted { color: #8792a2; font-size: 9px; }
.permission-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 18px; }
.permission-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.permission-grid p { margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

/* Cashier */
.cashier-intro { align-items: center; }
.cashier-intro-actions { display: flex; align-items: center; gap: 10px; }
.cashier-state { display: inline-flex; min-height: 35px; align-items: center; gap: 8px; padding: 0 11px; border-radius: 8px; font-size: 9px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; }
.cashier-state i { width: 7px; height: 7px; border-radius: 50%; }
.cashier-state--open { color: #147859; background: var(--green-soft); }
.cashier-state--open i { background: var(--green); box-shadow: 0 0 0 4px rgba(21,155,115,.10); }
.cashier-state--closed { color: #7a8493; background: #e9edf2; }
.cashier-state--closed i { background: #8d97a5; }
.cashier-opening-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 18px; max-width: 960px; }
.opening-panel { overflow: hidden; }
.cashier-number, .counter-badge { padding: 6px 9px; border-radius: 7px; color: #667386; background: var(--blue-50); font-size: 9px; font-weight: 800; }
.cashier-form { display: grid; gap: 18px; padding: 23px; }
.money-input { display: flex; height: 48px; align-items: center; overflow: hidden; border: 1px solid #dce2e9; border-radius: 9px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.money-input:focus-within { border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(46,76,112,.10); }
.money-input > span { display: grid; align-self: stretch; place-items: center; padding: 0 12px; border-right: 1px solid var(--line); color: #748196; background: #f7f9fb; font-size: 11px; font-weight: 800; }
.money-input input { min-width: 0; height: 100%; flex: 1; padding: 0 13px; border: 0; outline: 0; color: var(--ink); background: transparent; font-weight: 750; }
.field > .money-input input { border: 0; box-shadow: none; }
.operator-confirmation { display: flex; align-items: center; gap: 10px; padding: 13px; border-radius: 10px; background: var(--blue-50); }
.operator-confirmation > div { display: grid; }
.operator-confirmation small { color: #8a95a5; font-size: 8px; font-weight: 900; letter-spacing: .09em; }
.operator-confirmation strong { margin-top: 3px; font-size: 11px; }
.opening-guide { align-self: start; padding: 30px; border: 1px solid #dfe8f2; border-radius: var(--radius); color: #dce8f4; background: linear-gradient(145deg, var(--navy-900), #254362); box-shadow: var(--shadow-sm); }
.opening-guide-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: #fff; background: rgba(255,255,255,.11); }
.opening-guide h3 { margin: 18px 0 8px; color: #fff; font-size: 18px; }
.opening-guide ul { display: grid; gap: 14px; margin: 22px 0 0; padding: 0; list-style: none; }
.opening-guide li { display: grid; grid-template-columns: 19px 1fr; gap: 9px; color: #b8c8d9; font-size: 10px; line-height: 1.5; }
.opening-guide li i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #4ad1a4; background: rgba(74,209,164,.12); font-style: normal; font-weight: 900; }
.cashier-metrics { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.cashier-metrics article { display: grid; min-width: 0; padding: 18px 19px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); }
.cashier-metrics article > span { color: #7d899a; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.cashier-metrics strong { margin-top: 12px; color: var(--navy-950); font-size: 21px; letter-spacing: -.035em; }
.cashier-metrics small { margin-top: 4px; color: #929baa; font-size: 9px; }
.cashier-metrics .is-highlighted { border-color: var(--navy-800); color: #fff; background: linear-gradient(145deg, var(--navy-900), #284866); }
.cashier-metrics .is-highlighted > span, .cashier-metrics .is-highlighted small { color: #b3c2d2; }
.cashier-metrics .is-highlighted strong { color: #fff; }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.cashier-workspace { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 18px; margin-bottom: 18px; }
.movements-panel, .cashier-summary-panel { overflow: hidden; }
.movement-actions { display: flex; gap: 7px; }
.movement-list { display: grid; padding: 7px 22px; }
.movement-item { display: grid; grid-template-columns: 36px minmax(0,1fr) auto auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf0f4; }
.movement-item:last-child { border: 0; }
.movement-symbol { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); font-weight: 900; }
.movement-item--sangria .movement-symbol, .movement-item--estorno .movement-symbol { color: var(--red); background: var(--red-soft); }
.movement-copy { display: grid; min-width: 0; }
.movement-copy strong { font-size: 11px; }
.movement-copy small { margin-top: 3px; overflow: hidden; color: #8a94a3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.movement-item time { color: #8b96a6; font-size: 9px; }
.movement-item b { min-width: 92px; text-align: right; font-size: 11px; }
.empty-state { display: grid; min-height: 260px; place-items: center; align-content: center; padding: 35px; text-align: center; }
.empty-state span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; color: #8090a3; background: var(--blue-50); }
.empty-state strong { margin-top: 12px; font-size: 12px; }
.empty-state p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.permission-note, .compact-empty { padding: 17px 22px; color: #7f8998; background: #fafbfd; font-size: 10px; }
.permission-note { border-top: 1px solid var(--line); }
.payment-summary { display: grid; padding: 11px 22px; }
.payment-summary > div { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid #edf0f4; }
.payment-summary span { color: #788496; font-size: 10px; }
.payment-summary strong { font-size: 11px; }
.summary-total { display: flex; align-items: center; justify-content: space-between; margin: 0 22px; padding: 15px 0; border-top: 1px solid #cad4df; }
.summary-total span { color: var(--navy-700); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.summary-total strong { color: var(--navy-950); font-size: 16px; }
.cashier-summary-panel > p { margin: 0; padding: 13px 22px 18px; color: #8a94a3; font-size: 9px; line-height: 1.55; }
.company-cashiers-panel, .recent-cashiers-panel { margin-top: 18px; overflow: hidden; }
.difference-value { display: inline-flex; min-width: 78px; justify-content: flex-end; font-weight: 800; }
.difference-value.is-zero { color: var(--green); }
.difference-value.is-positive { color: var(--amber); }
.difference-value.is-negative { color: var(--red); }
.table-action { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; color: var(--navy-700); background: #fff; cursor: pointer; font-size: 9px; font-weight: 800; }
.table-action:hover { border-color: #c8d4df; background: var(--blue-50); }
.table-actions { display: inline-flex; gap: 5px; white-space: nowrap; }
.table-action--danger { color: #a94249; }
.table-action--danger:hover { border-color: #efc9cd; background: var(--red-soft); }
.close-result { display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 15px; margin-bottom: 22px; padding: 16px 18px; border: 1px solid; border-radius: 13px; }
.close-result.is-balanced { border-color: #cbeade; background: var(--green-soft); }
.close-result.has-difference { border-color: #f0dcb5; background: var(--amber-soft); }
.close-result-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 11px; color: #fff; background: var(--green); font-size: 18px; font-weight: 900; }
.has-difference .close-result-icon { background: var(--amber); }
.close-result-copy { display: grid; }
.close-result-copy span { color: #728092; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.close-result-copy h2 { margin: 4px 0; font-size: 15px; }
.close-result-copy p { margin: 0; color: #718093; font-size: 10px; }
.close-result > strong { color: var(--navy-950); font-size: 17px; }
.modal-card--compact { width: min(100%, 490px); }
.modal-card--wide { width: min(100%, 850px); }
.modal-card form { display: grid; gap: 16px; }
.close-instruction { margin: 0; color: #6d798c; font-size: 11px; line-height: 1.55; }
.conference-table { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.conference-head, .conference-row { display: grid; grid-template-columns: 1fr 1fr 1.35fr 1fr; align-items: center; gap: 10px; }
.conference-head { padding: 10px 13px; color: #7d8898; background: #f7f9fb; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.conference-row { padding: 9px 13px; border-top: 1px solid #edf0f4; }
.conference-row strong, .conference-row > span, .conference-row b { font-size: 10px; }
.conference-row > span { color: #667386; }
.conference-row b { text-align: right; }
.conference-row b.is-positive { color: var(--amber); }
.conference-row b.is-negative { color: var(--red); }
.money-input--small { height: 38px; }
.money-input--small > span { padding-inline: 8px; font-size: 9px; }
.money-input--small input { padding-inline: 9px; font-size: 10px; }
.close-totals { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.close-totals > div { display: grid; padding: 13px; border-radius: 9px; background: var(--blue-50); }
.close-totals span { color: #7a8697; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.close-totals strong { margin-top: 5px; font-size: 13px; }
.close-totals strong.is-positive { color: var(--amber); }
.close-totals strong.is-negative { color: var(--red); }
.confirm-check { display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; border-radius: 9px; color: #616e80; background: #f7f9fb; font-size: 10px; line-height: 1.45; }
.confirm-check input { margin: 1px 0 0; accent-color: var(--navy-700); }

/* Modal */
.modal { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(12,23,39,.58); backdrop-filter: blur(3px); }
.modal-card { position: relative; z-index: 1; width: min(100%, 580px); max-height: calc(100vh - 40px); overflow-y: auto; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px rgba(7,17,32,.25); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 4px 0 0; font-size: 18px; }
.modal-head button { width: 34px; height: 34px; border: 0; border-radius: 8px; color: #718093; background: #f2f4f7; cursor: pointer; font-size: 20px; }
.modal-card form { padding: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.form-note { margin: 16px 0 0; }
body.has-modal { overflow: hidden; }

/* Errors */
.error-body { display: grid; min-height: 100vh; padding: 24px; place-items: center; background: radial-gradient(circle at 50% 0, #fff 0, #f3f6f9 65%); }
.error-card { width: min(100%, 470px); padding: 44px; text-align: center; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.error-code { display: block; margin-bottom: 8px; color: var(--navy-700); font-size: 13px; font-weight: 900; letter-spacing: .12em; }
.error-card h1 { margin: 8px 0; color: var(--navy-950); font-size: 25px; }
.error-card p { margin: 0 auto 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.error-card code { display: block; width: max-content; margin: -8px auto 24px; padding: 7px 10px; border-radius: 6px; color: #7b4b50; background: var(--red-soft); font-size: 11px; }

@media (max-width: 1100px) {
    .metric-grid { grid-template-columns: repeat(2,1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .cashier-workspace { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .guest-shell { grid-template-columns: 1fr; }
    .guest-brand { display: none; }
    .guest-main { padding: 24px; }
    .guest-footer { position: fixed; }
    .sidebar { transform: translateX(-102%); transition: transform .22s ease; }
    body.sidebar-open .sidebar { transform: translateX(0); }
    .sidebar-close { display: grid; }
    .sidebar-overlay { position: fixed; z-index: 40; inset: 0; visibility: hidden; background: rgba(12,23,39,.45); opacity: 0; transition: opacity .2s, visibility .2s; }
    body.sidebar-open .sidebar-overlay { visibility: visible; opacity: 1; }
    .app-main { margin-left: 0; }
    .menu-button { display: grid; }
    .cashier-opening-grid { grid-template-columns: 1fr; }
    .cashier-metrics { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
    .guest-main { align-items: flex-start; padding: 18px 14px 60px; }
    .guest-card { padding: 30px 22px; border-radius: 15px; }
    .auth-heading h2 { font-size: 25px; }
    .form-grid--2 { grid-template-columns: 1fr; }
    .field--span-2 { grid-column: auto; }
    .topbar { min-height: 70px; padding: 12px 15px; }
    .topbar-title h1 { font-size: 16px; }
    .topbar-actions .date-chip { display: none; }
    .environment-badge { padding: 0 8px; font-size: 8px; }
    .page-content { padding: 24px 15px 40px; }
    .page-intro { align-items: flex-start; flex-direction: column; }
    .page-intro h2 { font-size: 24px; }
    .page-intro-actions, .page-intro-actions .button { width: 100%; }
    .cashier-intro-actions { width: 100%; align-items: stretch; flex-direction: column; }
    .cashier-intro-actions .cashier-state, .cashier-intro-actions .button { width: 100%; justify-content: center; }
    .metric-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .metric-card { padding: 16px; }
    .metric-card > strong { font-size: 20px; }
    .metric-card p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .fiscal-status-grid { padding: 17px; }
    .fiscal-stat { padding: 2px 11px; }
    .fiscal-stat strong { font-size: 21px; }
    .fiscal-stat .status-dot { right: 8px; }
    .integration-row { align-items: flex-start; flex-direction: column; margin-inline: 17px; }
    .panel-head { padding: 18px 17px; }
    .readiness-items { display: grid; padding-inline: 17px; }
    .progress-track { margin-inline: 17px; }
    .table-toolbar { align-items: stretch; flex-direction: column; }
    .table-search { width: 100%; }
    .permission-grid { grid-template-columns: 1fr; }
    .cashier-metrics { gap: 10px; }
    .cashier-metrics article { padding: 15px; }
    .cashier-metrics strong { font-size: 18px; }
    .movement-actions { width: 100%; margin-top: 12px; }
    .movement-actions .button { flex: 1; }
    .movements-panel .panel-head { align-items: stretch; flex-direction: column; }
    .movement-item { grid-template-columns: 34px minmax(0,1fr) auto; }
    .movement-item time { display: none; }
    .movement-item b { min-width: 78px; }
    .close-result { grid-template-columns: 42px 1fr; }
    .close-result > strong { grid-column: 2; }
    .conference-head { display: none; }
    .conference-row { grid-template-columns: 1fr 1fr; padding: 13px; }
    .conference-row > span { text-align: right; }
    .conference-row b { text-align: right; }
    .close-totals { grid-template-columns: 1fr; }
    .modal { padding: 10px; }
    .modal-actions { flex-direction: column-reverse; }
    .modal-actions .button { width: 100%; }
}

@media (max-width: 390px) {
    .metric-grid { grid-template-columns: 1fr; }
    .cashier-metrics { grid-template-columns: 1fr; }
    .movement-item { grid-template-columns: 32px minmax(0,1fr); }
    .movement-item b { grid-column: 2; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
