:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    color: #193241;
    background: #f5f8f8;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.55; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ffb650; outline-offset: 3px; }

/* Public kiosk: spacious touch targets and a clear reading order. */
.kiosk { background: #eaf2f1; color: #153543; }
.kiosk-shell { min-height: 100vh; display: flex; flex-direction: column; }
.kiosk-header, .kiosk-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px clamp(24px, 4vw, 70px);
}
.kiosk-header { background: #103d46; color: white; }
.kiosk-footer { color: #5c7378; font-size: 13px; }
.kiosk-logo { text-decoration: none; font-size: 22px; font-weight: 900; letter-spacing: .075em; color: white; }
.kiosk-logo span, .admin-brand span { color: #f9b958; }
.kiosk-header-right { color: #c1d8d8; font-size: 14px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #75deb2; margin-right: 8px; }
.kiosk-main {
    display: grid;
    grid-template-columns: minmax(330px, .85fr) minmax(440px, 1.15fr);
    width: min(1500px, 100%);
    flex: 1;
    margin: 0 auto;
    box-shadow: 0 18px 70px #17434c16;
}
.kiosk-side {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 5vw, 85px) clamp(30px, 5vw, 80px);
    background: linear-gradient(155deg, #10444c 0%, #0b303b 80%);
    color: white;
    display: flex;
    flex-direction: column;
    min-height: 720px;
}
.kiosk-tag, .workflow-label, .admin-overline {
    color: #b87829;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
}
.kiosk-tag { color: #aeeacb; }
.kiosk-side h1 { font-size: clamp(46px, 5vw, 76px); line-height: 1.06; letter-spacing: -.05em; margin: 22px 0; }
.kiosk-side h1 em { color: #ffca78; font-style: normal; }
.kiosk-side > p { color: #d4e5e2; max-width: 450px; font-size: 18px; }
.bank-illustration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 135px;
    height: 238px;
    margin: 56px auto;
    border: 7px solid #496f71;
    border-radius: 26px;
    background: linear-gradient(145deg, #295b5c, #0a2d38);
    box-shadow: 28px 32px 45px #071e2580, inset -8px -8px 26px #031b26;
    transform: rotate(12deg);
}
.bank-illustration::before { content: ""; position: absolute; width: 275px; height: 275px; border: 1px solid #5e9a95; border-radius: 50%; z-index: -1; }
.bank-cap { position: absolute; top: -15px; width: 48px; height: 9px; background: #739d99; border-radius: 5px; }
.bank-illustration span { font-size: 100px; line-height: 1; color: #ffcc7b; }
.bank-illustration small { color: #d8eee9; font-size: 9px; letter-spacing: .1em; font-weight: 800; }
.side-footer { margin-top: auto; border-top: 1px solid #4f7778; padding-top: 22px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.side-footer span, .side-footer small { color: #cfdfdb; }
.side-footer strong { color: #ffcd83; font-size: 26px; }
.kiosk-workflow { padding: clamp(34px, 5vw, 80px) clamp(26px, 5vw, 78px); background: #fff; min-width: 0; }
.workflow-top { display: flex; justify-content: space-between; gap: 16px; }
.workflow-step { font-weight: 650; font-size: 13px; color: #678084; }
.progress { height: 6px; border-radius: 99px; overflow: hidden; background: #e4eceb; margin: 18px 0 44px; }
.progress span { display: block; height: 100%; width: 33.333%; background: #d59548; transition: width .2s; }
.screen-icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 19px; background: #e9f5ef; color: #13665d; font-size: 34px; margin-bottom: 22px; }
.kiosk-screen h2 { margin: 0 0 12px; font-size: clamp(29px, 3vw, 43px); line-height: 1.13; letter-spacing: -.035em; }
.kiosk-screen > p { color: #5d777d; line-height: 1.65; margin: 0 0 27px; }
.touch-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 64px; border-radius: 14px; padding: 14px 20px; font-weight: 800; font-size: 17px; text-decoration: none; }
.touch-button.primary { justify-content: space-between; background: #126d61; color: white; border: 2px solid #126d61; margin-top: 20px; }
.touch-button.primary:hover { background: #0d584f; }
.touch-button.outline { background: white; border: 2px solid #96c4b7; color: #155b54; }
.input-label { display: block; margin: 25px 0 8px; color: #244e53; font-weight: 750; }
.kiosk-screen input, .kiosk-screen select { display: block; width: 100%; min-height: 60px; padding: 14px 16px; margin-top: 7px; border-radius: 11px; border: 1px solid #a9c0c2; background: #fff; color: #193b43; font-size: 17px; }
.screen-hint { color: #6d8386; font-size: 13px; margin: 10px 0; }
.kiosk-screen video { width: 100%; max-height: 270px; border-radius: 12px; margin-top: 15px; }
.back-button { background: none; border: 0; padding: 0 0 28px; color: #13675d; font-weight: 800; }
.battery-options { display: grid; gap: 12px; max-height: 430px; overflow: auto; }
.battery-option { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 84px; padding: 15px; text-align: left; background: #f7fbf9; color: #1c4147; border: 1px solid #c8dad5; border-radius: 14px; }
.battery-option:hover, .battery-option:focus-visible { border-color: #25826c; background: #ecf8f0; }
.option-symbol { font-size: 28px; color: #17806a; }
.battery-option strong, .battery-option small { display: block; }
.battery-option small { color: #667f81; }
.option-arrow { margin-left: auto; color: #14715f; }
.receipt { border: 1px solid #d8e4e0; border-radius: 15px; overflow: hidden; background: #f9fcfa; }
.receipt > div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 20px; border-bottom: 1px solid #e1e9e6; }
.receipt span { color: #647b7c; }
.receipt strong { text-align: right; }
.receipt .total { background: #e6f4eb; border-bottom: 0; font-size: 20px; }
.receipt .total strong { color: #0c6557; }
.deposit-info { font-size: 13px; margin: 20px 0 !important; }
.kiosk-notice { background: #fff6e8; color: #68471e; border-left: 4px solid #d99541; padding: 16px 19px; border-radius: 8px; line-height: 1.6; }
.kiosk-footer { border-top: 1px solid #d9e5e2; }

/* Management dashboard. */
.admin-body, .management-page { background: #f4f7f6; color: #193b42; }
.admin-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 16px; background: #103d46; color: white; }
.admin-brand { padding: 0 12px; color: white; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: .055em; }
.admin-caption { padding: 10px 12px 36px; color: #a2c7c0; font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.admin-sidebar nav { display: grid; gap: 4px; overflow-y: auto; }
.admin-sidebar nav a { padding: 11px 14px; border-radius: 10px; color: #d4e9e4; text-decoration: none; font-size: 14px; font-weight: 650; }
.admin-sidebar nav a:hover, .admin-sidebar nav a:focus-visible { background: #28616a; color: white; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid #417078; padding: 19px 12px 0; color: #cbe1dc; font-size: 13px; }
.sidebar-indicator { display: inline-block; width: 9px; height: 9px; margin-right: 6px; background: #efb35f; border-radius: 50%; }
.admin-content { min-width: 0; }
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 33px clamp(22px, 4vw, 62px); border-bottom: 1px solid #dce8e3; background: white; }
.admin-top h1 { margin: 5px 0; font-size: clamp(26px, 3vw, 39px); letter-spacing: -.04em; }
.admin-top p, .admin-section-heading p { margin: 0; color: #657d7e; }
.admin-top-actions { display: flex; gap: 10px; align-items: center; }
.admin-site-link { display: inline-block; border: 1px solid #b9d7cf; border-radius: 10px; padding: 11px 15px; color: #15675b; text-decoration: none; font-weight: 750; white-space: nowrap; }
.admin-main { max-width: 1380px; margin: 0 auto; padding: 34px clamp(22px, 4vw, 62px) 80px; }
.admin-main > section { margin-bottom: 26px; }
.admin-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.admin-section-heading h2 { margin: 3px 0; font-size: 25px; letter-spacing: -.03em; }
.admin-date { color: #6b8680; font-weight: 750; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.admin-stats article, .admin-card, .management-card { border: 1px solid #dfeae5; border-radius: 16px; background: white; box-shadow: 0 5px 24px #1749410b; }
.admin-stats article { display: flex; flex-direction: column; padding: 22px; }
.admin-stats article > span { color: #617e78; font-size: 13px; }
.admin-stats strong { margin: 7px 0; color: #14473e; font-size: 31px; }
.admin-stats small { color: #809690; }
.admin-card { padding: 28px; }
.admin-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 18px; padding: 20px 24px; border: 1px solid #c7dfd3; border-radius: 14px; background: #eaf5ed; }
.admin-banner strong { color: #175f48; }
.admin-banner p { margin: 5px 0 0; color: #4d7060; font-size: 14px; }
.admin-banner > span { padding: 7px 12px; border-radius: 20px; background: #d2e9d8; color: #256e4b; font-size: 11px; font-weight: 850; }
.integration-grid, .lab-grid, .management-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.integration-grid fieldset, .lab-card { min-width: 0; margin: 0; padding: 20px; border: 1px solid #dce9e3; border-radius: 13px; background: #fbfdfc; }
.integration-grid legend { color: #234f45; font-weight: 850; padding: 0 7px; }
.integration-grid fieldset > p, .lab-card p { color: #698177; margin: 0 0 17px; font-size: 14px; }
.mode-option { display: flex; align-items: center; gap: 12px; padding: 13px; margin: 9px 0; border: 1px solid #dce9e3; border-radius: 10px; background: white; cursor: pointer; }
.mode-option:has(input:checked) { border-color: #288b64; background: #f0faf3; }
.mode-option input { width: 20px; height: 20px; accent-color: #22885e; }
.mode-option strong, .mode-option small { display: block; }
.mode-option small, .provider-status { color: #6d867b; font-size: 12px; }
.provider-status { margin-top: 16px; }
.admin-button, .admin-ghost { border-radius: 10px; padding: 12px 17px; font-weight: 800; }
.admin-button { margin-top: 14px; border: 1px solid #146f55; background: #146f55; color: white; }
.admin-button:hover { background: #0c5c46; }
.admin-ghost { border: 1px solid #b8dac8; background: #eaf6ef; color: #176548; }
.lab-badge, .status-pill { display: inline-block; padding: 6px 10px; border-radius: 30px; background: #e9f3ed; color: #247050; font-size: 12px; font-weight: 800; }
.lab-grid { margin-top: 23px; }
.lab-card h3 { margin: 5px 0; font-size: 21px; }
.lab-card label, .admin-form label, .simulation-form label { display: block; margin: 14px 0; font-size: 13px; font-weight: 750; color: #31594b; }
.lab-card input:not([type=checkbox]), .lab-card select, .admin-form input, .simulation-form input:not([type=checkbox]) { display: block; width: 100%; min-height: 45px; margin-top: 7px; padding: 9px 11px; border: 1px solid #bfd5ca; border-radius: 9px; background: white; color: #193b34; }
.lab-confirm { display: flex !important; align-items: center; gap: 9px; }
.lab-confirm input { width: 19px; height: 19px; flex: none; }
.lab-card button { width: 100%; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.form-action { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.form-action span { color: #728981; font-size: 13px; }
.admin-table-wrap, .management-table-wrap { overflow-x: auto; margin-top: 19px; }
.admin-table-wrap table, .management-table-wrap table { width: 100%; min-width: 650px; border-collapse: collapse; }
.admin-table-wrap th, .admin-table-wrap td, .management-table-wrap th, .management-table-wrap td { padding: 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #e4ece8; font-size: 14px; }
.admin-table-wrap th, .management-table-wrap th { color: #698378; background: #f7faf8; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.admin-table-wrap td small { color: #6e8580; }
.simulation-form { min-width: 220px; }
.simulation-form .admin-button, .simulation-form .admin-ghost { margin: 6px 0; }

/* Account management, audit and login. */
.management-header { display: flex; justify-content: space-between; align-items: center; padding: 20px max(24px, calc((100vw - 1260px) / 2)); background: #103d46; color: white; }
.management-header nav { display: flex; gap: 20px; }
.management-header nav a { color: #e0eee9; text-decoration: none; }
.management-main { max-width: 1260px; padding: 35px 24px 80px; margin: 0 auto; }
.management-main h1 { margin: 6px 0; font-size: clamp(30px, 3vw, 42px); }
.management-main > p { color: #658078; }
.management-card { padding: 27px; margin: 22px 0; }
.management-card h2 { margin: 0 0 14px; }
.management-card input, .management-card select { display: block; width: 100%; min-height: 44px; margin-top: 7px; padding: 9px 11px; border: 1px solid #b9d1c8; border-radius: 9px; background: white; color: #193b34; }
.management-card label { display: block; font-weight: 700; }
.management-stack { display: grid; gap: 9px; min-width: 230px; }
.management-card details summary { color: #136e58; cursor: pointer; font-weight: 750; }
.permission-card { padding: 20px; border: 1px solid #dce9e3; border-radius: 12px; background: #fafdfb; }
.permission-card h3 { margin: 0 0 14px; }
.permission-option { display: flex !important; align-items: center; gap: 10px; margin: 10px 0; font-size: 13px; }
.permission-option input { width: 18px; height: 18px; min-height: 18px; margin: 0; flex: none; }
.management-card code { overflow-wrap: anywhere; }
.login-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at top, #dbeee8, #f3f7f4 60%); }
.login-card { width: min(440px, 100%); padding: 35px; border: 1px solid #d8e7df; border-radius: 20px; background: white; box-shadow: 0 20px 70px #1b53411c; }
.login-card .kiosk-logo { color: #103d46; }
.login-card .admin-overline { display: block; margin-top: 38px; }
.login-card h1 { margin: 5px 0; font-size: 36px; }
.login-card p { color: #657d78; }
.login-card label { display: block; margin: 17px 0; font-weight: 750; }
.login-card input { display: block; width: 100%; min-height: 50px; padding: 11px; margin-top: 8px; border: 1px solid #b4cbc1; border-radius: 10px; }
.login-card button { width: 100%; min-height: 50px; }
.login-error { border: 1px solid #e6bdb8; border-radius: 8px; padding: 12px; background: #fff2f0; color: #9b352d; }

@media (max-width: 1020px) {
    .kiosk-main { grid-template-columns: 1fr; }
    .kiosk-side { min-height: auto; padding: 38px 30px; }
    .bank-illustration { display: none; }
    .side-footer { margin-top: 24px; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .kiosk-workflow { padding: 34px 26px 60px; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; padding: 18px; }
    .admin-caption, .sidebar-bottom { display: none; }
    .admin-sidebar nav { display: flex; overflow-x: auto; margin-top: 12px; }
    .admin-sidebar nav a { white-space: nowrap; }
    .admin-top { display: block; }
    .admin-top-actions { margin-top: 18px; }
    .integration-grid, .lab-grid, .management-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
    .kiosk-header, .kiosk-footer { padding: 18px 20px; }
    .kiosk-header-right, .kiosk-footer span:last-child { display: none; }
    .kiosk-side { padding: 28px 20px; }
    .kiosk-side h1 { font-size: 42px; }
    .kiosk-workflow { padding: 30px 20px 50px; }
    .receipt > div { font-size: 14px; }
    .admin-stats, .admin-form { grid-template-columns: 1fr; }
    .admin-card { padding: 20px; }
    .admin-section-heading { align-items: flex-start; flex-direction: column; }
    .form-action { display: block; }
    .form-action button { width: 100%; }
    .management-header { flex-direction: column; gap: 10px; }
}

/* Station QR display and printable 100 × 150 mm equipment labels. */
.kiosk-qr-page { min-height: 100vh; display: flex; flex-direction: column; background: #103d46; }
.kiosk-qr-shell { flex: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(30px,6vw,100px); max-width: 1300px; width: 100%; margin: auto; padding: 45px 36px; }
.kiosk-qr-copy { color: white; }
.kiosk-qr-copy h1 { font-size: clamp(44px,6vw,83px); letter-spacing: -.055em; line-height: 1.03; }
.kiosk-qr-copy h1 em { color: #f9b958; font-style: normal; }
.kiosk-qr-copy p { max-width: 460px; font-size: 20px; color: #c5dedb; }
.kiosk-qr-panel { background: white; border-radius: 32px; padding: clamp(28px,4vw,60px); text-align: center; box-shadow: 0 35px 80px #021b2280; }
.kiosk-qr-panel h2 { font-size: clamp(32px,4vw,52px); margin: 5px 0 22px; line-height: 1.1; }
.kiosk-qr-art { max-width: 340px; margin: auto; padding: 13px; background: #fff; }
.kiosk-qr-art svg { display: block; width: 100%; }
.station-identity { color: #207365; font-weight: 850; letter-spacing: .04em; }
.kiosk-station-switch { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.kiosk-station-switch a { padding: 8px 13px; border-radius: 20px; background: #e7f1ed; font-size: 13px; text-decoration: none; }
.kiosk-station-switch a[aria-current] { background: #126d61; color: white; }
.label-page { background: #dbe4e1; }
.label-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 24px; background: white; }
.label-toolbar button { border: 0; border-radius: 9px; background: #126d61; color: white; padding: 10px 18px; }
.label-sheet { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; padding: 30px; }
.station-label { width: 100mm; height: 150mm; flex: none; overflow: hidden; position: relative; padding: 8mm; background: #103d46; color: white; border-radius: 7mm; display: flex; flex-direction: column; text-align: center; box-shadow: 0 10px 40px #102b3430; break-inside: avoid; page-break-inside: avoid; }
.label-top { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 22px; letter-spacing: .04em; }
.label-brand b { color: #ffcb7e; }
.label-bolt { display: grid; place-items: center; background: #197667; border-radius: 50%; width: 34px; height: 34px; color: #ffcb7e; }
.label-kicker { color: #b8ded4; letter-spacing: .16em; font-size: 9px; margin: 17px 0 7px; }
.station-label h1 { font-size: 37px; line-height: 1.05; letter-spacing: -.04em; margin: 0 0 10px; }
.label-qr { background: white; border-radius: 11px; width: 59mm; height: 59mm; padding: 2mm; margin: 3px auto 8px; }
.label-qr svg { width: 100%; height: 100%; display: block; }
.station-label h2 { font-size: 22px; margin: 0; color: #ffcb7e; }
.station-label > p:not(.label-kicker) { font-size: 11px; max-width: 76mm; margin: 6px auto 11px; line-height: 1.4; }
.label-steps { display: flex; justify-content: space-between; gap: 4px; font-size: 10px; border-top: 1px solid #66928c; padding-top: 10px; }
.label-bottom { display: flex; flex-direction: column; gap: 1px; margin-top: auto; padding-top: 8px; border-top: 1px solid #66928c; }
.label-bottom strong { font-size: 13px; }.label-bottom small { font-size: 8px; overflow-wrap: anywhere; }
@media(max-width:800px) { .kiosk-qr-shell { grid-template-columns: 1fr; } .kiosk-qr-copy h1 { margin-bottom: 12px; }.kiosk-qr-copy p { font-size: 16px; } }
@media print { @page { size: 100mm 150mm; margin: 0; } .label-toolbar { display: none; } .label-sheet { display: block; padding: 0; } .station-label { margin: 0; border-radius: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; page-break-after: always; } }
@media(max-width:760px) { body.kiosk:not(.kiosk-qr-page) .kiosk-side { display: none; } body.kiosk:not(.kiosk-qr-page) .kiosk-main { display: block; } }

/* Shared admin shell: one navigation structure for every management page. */
.admin-body { background: #f1f6f4; }
.admin-layout { grid-template-columns: 258px minmax(0,1fr); }
.admin-content { width: 100%; min-width: 0; }
.admin-sidebar { background: #0c343b; padding: 30px 15px 20px; box-shadow: 8px 0 36px #0a30300d; z-index: 10; }
.admin-brand { font-size: 21px; letter-spacing: .035em; }
.admin-caption { padding-bottom: 30px; color: #a6cac0; }
.admin-sidebar nav { gap: 5px; }
.admin-sidebar nav a { display: flex; align-items: center; min-height: 43px; padding: 10px 15px; border-radius: 11px; color: #c9dfd9; transition: background .16s ease,color .16s ease; }
.admin-sidebar nav a[aria-current="page"] { background: #e5f7ee; color: #0a5b4e; font-weight: 850; }
.admin-sidebar nav a:hover { background: #23535b; }
.sidebar-bottom { font-size: 12px; }
.admin-global-top { position: relative; gap: 25px; padding: 25px clamp(22px,3.3vw,52px); border-bottom: 1px solid #dbe9e3; }
.admin-global-top h1 { font-size: clamp(26px,2.9vw,38px); line-height: 1.15; }
.admin-global-top p { max-width: 570px; font-size: 14px; }
.admin-top-actions { flex-wrap: wrap; justify-content: flex-end; }
.admin-top-actions form { margin: 0; }
.admin-user-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 750; color: #45665f; }
.admin-mobile-menu { display: none; }
.admin-main, .management-main { width: 100%; max-width: 1420px; padding: clamp(22px,3vw,40px) clamp(20px,3.3vw,52px) 90px; }
.admin-main > section, .management-main > section { margin-bottom: 24px; }
.admin-card, .management-card { border: 1px solid #dce9e3; border-radius: 20px; box-shadow: 0 12px 34px #1749410a; }
.management-card { padding: clamp(20px,2vw,29px); }
.admin-card { padding: clamp(20px,2vw,29px); }
.management-card h2 { color: #153f3d; margin-top: 0; }
.management-main > h1 { font-size: clamp(27px,2.5vw,36px); line-height: 1.15; }
.management-main > .admin-overline { margin-bottom: 5px; }
.admin-stats article { border-radius: 18px; min-height: 136px; background: linear-gradient(145deg,#fff 54%,#f0f8f3); }
.admin-stats strong { line-height: 1.1; letter-spacing: -.04em; }
.admin-banner { border-radius: 18px; }
.admin-button, .admin-ghost, .admin-site-link { min-height: 42px; border-radius: 11px; }
.admin-button, .admin-ghost { font-weight: 750; }
.admin-table-wrap, .management-table-wrap { border: 1px solid #e1ebe7; border-radius: 13px; overflow-x: auto; overscroll-behavior-inline: contain; }
.admin-table-wrap table, .management-table-wrap table { min-width: 650px; }
.admin-table-wrap th, .management-table-wrap th { position: sticky; top: 0; }
.admin-table-wrap tbody tr:hover, .management-table-wrap tbody tr:hover { background: #f4faf6; }
.admin-table-wrap td form, .management-table-wrap td form { display: inline-flex; margin: 2px 5px 2px 0; }
.admin-table-wrap td a, .management-table-wrap td a { color: #126d61; font-weight: 700; }
.admin-form input:focus, .management-page input:focus, .management-page select:focus { border-color: #1b806c; outline: 2px solid #ccebdd; }
.label-page .label-toolbar { padding: 14px clamp(20px,3.3vw,52px); }
.label-page .label-sheet { max-width: 1420px; margin: auto; }
.payout-page .admin-layout { max-width: none; }
@media(max-width:1100px) { .admin-layout { grid-template-columns: 220px minmax(0,1fr); } .admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); } .admin-top-actions { gap: 7px; } }
@media(max-width:760px) {
 .admin-layout { display: block; }
 .admin-sidebar { display: none; }
 .admin-global-top { display: flex; align-items: flex-start; padding: 20px 20px 16px; }
 .admin-global-top h1 { margin-bottom: 4px; }
 .admin-global-top p, .admin-user-name { display: none; }
 .admin-top-actions { margin: 0; gap: 6px; }
 .admin-top-actions .admin-site-link, .admin-top-actions .admin-ghost { padding: 8px 10px; min-height: 38px; font-size: 12px; }
 .admin-mobile-menu { display: block; position: sticky; top: 0; z-index: 20; background: #103d46; color: white; box-shadow: 0 8px 20px #0a252630; }
 .admin-mobile-menu summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 10px 20px; cursor: pointer; font-weight: 800; list-style: none; }
 .admin-mobile-menu summary::-webkit-details-marker { display: none; }
 .admin-mobile-menu nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; padding: 6px 16px 18px; max-height: 65vh; overflow-y: auto; }
 .admin-mobile-menu nav a { padding: 11px 12px; border-radius: 9px; background: #1d535b; color: #f1faf5; text-decoration: none; font-size: 13px; }
 .admin-main, .management-main { padding: 22px 16px 70px; }
 .admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .admin-section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
 .management-card, .admin-card { padding: 20px 16px; }
 .label-page .label-toolbar { padding: 12px 16px; }
}
@media(max-width:480px) {
 .admin-global-top { flex-wrap: wrap; gap: 9px; }
 .admin-top-actions { width: 100%; justify-content: flex-start; }
 .admin-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
 .admin-stats article { min-height: 110px; padding: 15px; }
 .admin-stats strong { font-size: 25px; }
 .admin-mobile-menu nav { grid-template-columns: 1fr; }
 .label-toolbar strong { display: none; }
}
@media print {
 .label-page .admin-global-top, .label-page .admin-mobile-menu, .label-page .admin-sidebar { display: none !important; }
 .label-page .admin-layout, .label-page .admin-content { display: block; width: 100%; }
 .label-page .label-sheet { display: block; max-width: none; padding: 0; margin: 0; }
 .label-page .station-label { width: 100mm; height: 150mm; }
}
@media(max-width:760px) { .admin-mobile-menu nav a[aria-current="page"] { background:#e5f7ee; color:#0a5b4e; font-weight:850; } }

/* A4 landscape: 50 mm left/right and 70 mm top/bottom. */
.label-sheet {display:block; padding:25px;}
.station-label {width:197mm; height:70mm; margin:0 auto 24px; padding:6mm 6mm 6mm 7mm; border-radius:3mm; background:#103d46; color:white; display:flex; align-items:stretch; gap:7mm; text-align:left; overflow:hidden;}
.label-copy {min-width:0; flex:1; display:flex; flex-direction:column;}
.label-top {font-size:17px; line-height:1; letter-spacing:.025em;}
.label-brand b {color:#ffba5e;}
.label-kicker {color:#b8ded4; font-size:8px; letter-spacing:.12em; margin:5mm 0 2mm;}
.station-label h1 {font-size:22px; line-height:1.1; margin:0 0 2mm; white-space:nowrap;}
.label-lead {font-size:10px; line-height:1.3; color:#e5f3f1; margin:0;}
.label-process {border-top:1px solid #629da1; display:flex; justify-content:space-between; align-items:center; gap:2mm; margin-top:auto; padding-top:3mm; font-size:8px; font-weight:800; white-space:nowrap;}
.label-process b {background:#ffba5e; color:#103d46; display:inline-grid; place-items:center; width:8mm; height:8mm; margin-right:1mm; font-size:9px;}
.label-payment {font-size:9px; margin-top:2mm; color:#e5f3f1; white-space:nowrap;}
.label-scan {width:40mm; flex:none; background:white; color:#103d46; display:flex; flex-direction:column; align-items:center; gap:1mm; padding:2mm; text-align:center; overflow:hidden;}
.label-scan .label-qr {width:32mm; height:32mm;}
.label-scan .label-qr svg {width:100%; height:100%; display:block;}
.label-scan strong {font-size:8px; white-space:nowrap;}
.label-scan small {font-size:7px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
@media print {
 @page {size:A4 landscape; margin:0;}
 .label-page {background:white;}
 .label-page .label-sheet {padding:0;}
 .label-page .station-label {width:197mm; height:70mm; margin:70mm 50mm; border-radius:0; box-shadow:none; break-after:page; page-break-after:always; print-color-adjust:exact; -webkit-print-color-adjust:exact;}
}

.finance-page {display:grid; gap:18px;}
.finance-summary {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px;}
.finance-summary article {background:#fff; border:1px solid #d9e7e4; border-radius:15px; padding:18px; display:grid; gap:6px;}
.finance-summary article span {font-size:12px; color:#466d70; font-weight:700;}
.finance-summary article strong {font-size:clamp(17px,2vw,26px); color:#103d46; overflow-wrap:anywhere;}
.finance-summary article small,.finance-hint {color:#607c7d; font-size:12px;}
.finance-filter,.finance-entry {display:flex; flex-wrap:wrap; align-items:end; gap:12px;}
.finance-filter label,.finance-entry label {display:grid; gap:5px; font-size:12px; font-weight:700; color:#31594b;}
.finance-filter input,.finance-entry input,.finance-entry select {min-height:40px; padding:7px 10px; border:1px solid #c6d9d5; border-radius:8px; background:#fff;}
.finance-entry {padding:18px 0; border-top:1px solid #e1ebe9; margin-top:20px;}
.finance-entry label {flex:1 1 170px;}
.finance-entry .admin-button {flex:1 1 190px;}
.finance-summary-cash {margin:16px 0;}
@media(max-width:900px) {.finance-summary {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:520px) {.finance-summary {grid-template-columns:1fr;}.finance-filter label,.finance-filter button,.finance-entry label,.finance-entry button {width:100%;}}

.label-margin-fields {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;}
.label-margin-fields label {display:grid;gap:6px;font-weight:700;}
.label-margin-fields input {width:100%;padding:10px;border:1px solid #c8ded8;border-radius:8px;}
.label-actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:15px;}
#label-error {color:#9f2929;}#label-preview {width:100%;height:70vh;min-height:400px;border:1px solid #c8ded8;border-radius:8px;}
@media(max-width:600px){.label-margin-fields{grid-template-columns:repeat(2,minmax(0,1fr));}}
.label-actions [hidden] {display:none!important;}

.payment-logos {display:flex;align-items:center;justify-content:center;gap:9px;margin:14px 0;}
.payment-logos img,.payment-method img {display:block;object-fit:contain;border-radius:9px;}
.payment-methods {border:0;padding:0;margin:18px 0;min-width:0;}
.payment-methods legend {font-weight:700;font-size:14px;margin-bottom:9px;}
.payment-method-options {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
.payment-method-options .payment-method {position:relative;display:block;margin:0;cursor:pointer;}
.payment-method input {position:absolute;width:1px;height:1px;opacity:0;}
.payment-method > span {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;min-height:72px;padding:9px 5px;border:1px solid #d7e4df;border-radius:13px;background:#fff;color:#103d46;}
.payment-method small {font-size:10px;font-weight:700;text-align:center;}
.payment-method input:checked + span {border-color:#126d61;background:#eef9f4;box-shadow:0 0 0 1px #126d61;}
.payment-method input:focus-visible + span {outline:3px solid #d89f37;outline-offset:2px;}
@media(max-width:400px){.payment-method-options{grid-template-columns:repeat(2,minmax(0,1fr));}}
.payment-logos {justify-content:flex-end;gap:6px;}
.payment-logos img {width:16px;height:16px;border-radius:5px;}
.payment-method img {width:20px;height:20px;border-radius:6px;}
.payment-method > span {min-height:55px;padding:7px 4px;gap:4px;}
.kiosk-qr-panel .payment-logos {margin:8px 0;}


/* Responsive PaiementPro CI channels */
.payment-method-options {
    display:grid;
    gap:10px;
    width:100%;
    align-items:stretch;
}

/* 1 opérateur : carte unique, large et centrée */
.payment-method-options--1 {
    grid-template-columns:minmax(180px,280px);
    justify-content:center;
}

.payment-method-options--1 .payment-method > span {
    min-height:108px;
    padding:16px 18px;
}

.payment-method-options--1 .payment-method img {
    width:52px;
    height:52px;
}

/* 2 opérateurs */
.payment-method-options--2 {
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.payment-method-options--2 .payment-method > span {
    min-height:94px;
    padding:13px 10px;
}

.payment-method-options--2 .payment-method img {
    width:44px;
    height:44px;
}

/* 3 opérateurs */
.payment-method-options--3 {
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.payment-method-options--3 .payment-method > span {
    min-height:86px;
    padding:11px 8px;
}

.payment-method-options--3 .payment-method img {
    width:38px;
    height:38px;
}

/* 4 opérateurs */
.payment-method-options--4 {
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.payment-method-options--4 .payment-method > span {
    min-height:78px;
    padding:9px 6px;
}

.payment-method-options--4 .payment-method img {
    width:32px;
    height:32px;
}

.payment-method-options .payment-method small {
    font-size:11px;
    line-height:1.2;
}

@media (max-width:600px) {
    .payment-method-options--3,
    .payment-method-options--4 {
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .payment-method-options--1 {
        grid-template-columns:minmax(0,260px);
    }

    .payment-method-options--1 .payment-method img {
        width:48px;
        height:48px;
    }

    .payment-method-options--2 .payment-method img {
        width:40px;
        height:40px;
    }

    .payment-method-options--3 .payment-method img,
    .payment-method-options--4 .payment-method img {
        width:34px;
        height:34px;
    }
}

@media (max-width:340px) {
    .payment-method-options--2,
    .payment-method-options--3,
    .payment-method-options--4 {
        grid-template-columns:1fr;
    }
}
