/* kika App Styles */

:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #eef3f8;
    --text: #18212f;
    --muted: #64748b;
    --line: #d8e0ea;
    --brand: #1769aa;
    --brand-dark: #124d7c;
    --success: #16855f;
    --danger: #c2410c;
    --shadow: 0 14px 34px rgba(15, 23, 42, 0.09);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--text);
}

main {
    flex: 1;
}

.navbar.bg-primary {
    background: var(--brand-dark) !important;
}

.kika-topbar {
    min-height: 66px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.kika-topbar .container-fluid {
    gap: 14px;
}

.kika-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
    letter-spacing: 0;
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--brand-dark);
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.kika-topbar .navbar-nav {
    gap: 4px;
}

.kika-topbar .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    font-weight: 750;
}

.kika-topbar .app-nav-link i {
    font-size: 1.05rem;
}

.kika-topbar .nav-link:hover,
.kika-topbar .nav-link:focus,
.kika-topbar .nav-link.active {
    background: rgba(255, 255, 255, 0.13);
}

.account-menu {
    margin-left: 8px;
}

.account-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 5px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.account-toggle::after {
    margin-left: 4px;
}

.account-avatar {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #e8f2fb;
    color: var(--brand-dark);
    font-size: 0.82rem;
    font-weight: 900;
}

.account-avatar.large {
    width: 46px;
    height: 46px;
}

.account-copy {
    display: grid;
    min-width: 0;
    line-height: 1.12;
    text-align: left;
}

.account-name,
.account-role {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-name {
    color: #fff;
    font-size: 0.92rem;
    font-weight: 850;
}

.account-role {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.76rem;
    text-transform: capitalize;
}

.account-dropdown {
    width: 288px;
    margin-top: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
}

.account-dropdown-head {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 8px 8px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
}

.account-dropdown-head strong,
.account-dropdown-head small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown-head small {
    color: var(--muted);
}

.account-dropdown .dropdown-item {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 42px;
    border-radius: 8px;
    font-weight: 750;
}

.account-dropdown .dropdown-item i {
    color: var(--brand);
}

.account-dropdown .dropdown-item.active,
.account-dropdown .dropdown-item:active {
    background: var(--brand);
    color: #fff;
}

.account-dropdown .dropdown-item.active i,
.account-dropdown .dropdown-item:active i {
    color: #fff;
}

.account-dropdown .account-logout {
    color: var(--danger);
}

.account-dropdown .account-logout i {
    color: var(--danger);
}

@media (max-width: 991.98px) {
    .kika-topbar .navbar-collapse {
        padding-top: 12px;
    }

    .kika-topbar .navbar-nav {
        gap: 6px;
    }

    .account-menu {
        margin: 10px 0 0;
    }

    .account-toggle {
        width: 100%;
        justify-content: space-between;
    }

    .account-copy {
        margin-right: auto;
    }

    .account-name,
    .account-role {
        max-width: none;
    }

    .account-dropdown {
        width: 100%;
        margin-top: 8px;
    }
}

.btn {
    min-height: 44px;
    min-width: 44px;
}

.btn-primary {
    background: var(--brand);
    border-color: var(--brand);
}

.role-field-panel {
    margin: 16px 0;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfe;
}

.role-field-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.role-field-head i {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e8f2fb;
    color: var(--brand);
    font-size: 1.25rem;
}

.role-field-head strong,
.role-field-head span {
    display: block;
}

.role-field-head strong {
    font-weight: 850;
}

.role-field-head span {
    color: var(--muted);
    font-size: 0.92rem;
}

.user-card-admin-box {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dbe7f3;
    border-radius: 8px;
    background: #fff;
}

.user-card-list {
    display: grid;
    gap: 8px;
}

.user-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #e2ebf5;
    border-radius: 8px;
    background: #f8fbfe;
}

.user-card-row strong,
.user-card-row span {
    display: block;
}

.user-card-row span {
    color: var(--muted);
    font-weight: 750;
}

.user-card-row-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.user-card-row-end > span {
    color: var(--success);
    font-weight: 900;
}

.user-card-actions-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 0.7fr) auto;
    gap: 10px;
    align-items: end;
}

.payment-card-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.payment-stat {
    display: grid;
    gap: 6px;
    min-height: 96px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.payment-stat span {
    color: var(--muted);
    font-weight: 800;
}

.payment-stat strong {
    font-size: 1.6rem;
    line-height: 1;
    font-weight: 900;
}

.payment-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 16px;
}

.payment-admin-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #f8fbfe;
}

.payment-card-face {
    display: grid;
    align-content: space-between;
    min-height: 190px;
    padding: 20px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 84% 20%, rgba(255, 255, 255, 0.38), transparent 25%),
        linear-gradient(135deg, #1b2438, #1769aa);
    color: #fff;
    box-shadow: 0 16px 32px rgba(18, 77, 124, 0.25);
}

.payment-card-brand {
    font-size: 1rem;
    font-weight: 950;
}

.payment-card-face strong {
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    word-break: break-word;
}

.payment-card-face small {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
}

.payment-card-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-content: start;
}

.payment-card-meta div {
    display: grid;
    gap: 4px;
    min-height: 70px;
    padding: 12px;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #e4ebf3;
}

.payment-card-meta span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 800;
}

.payment-card-meta strong {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 900;
}

.payment-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.payment-status.active {
    background: #e8f5ef;
    color: var(--success);
}

.payment-status.inactive {
    background: #eef2f7;
    color: var(--muted);
}

.payment-balance {
    color: var(--success);
    font-size: 1.2rem;
}

.payment-card-actions {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-self: end;
}

.payment-empty {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 32px;
    border: 1px dashed var(--line);
    border-radius: 10px;
    background: #f8fbfe;
    color: var(--muted);
    text-align: center;
}

.payment-empty i {
    color: var(--brand);
    font-size: 2rem;
}

.payment-empty strong {
    color: var(--text);
    font-size: 1.1rem;
}

/* Startseite */
.landing-page {
    min-height: 100vh;
    background: #f5f7fb;
    color: #172033;
}

.landing-hero {
    min-height: min(680px, 76vh);
    display: grid;
    align-items: end;
    padding: clamp(28px, 5vw, 72px);
    background:
        linear-gradient(120deg, rgba(14, 32, 51, 0.9), rgba(14, 32, 51, 0.62)),
        linear-gradient(135deg, #14527d, #d71928);
    background-size: cover;
    background-position: center;
}

.landing-hero-inner {
    width: min(980px, 100%);
    padding-bottom: clamp(18px, 5vh, 52px);
    color: #fff;
}

.landing-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 850;
}

.landing-hero h1 {
    max-width: 900px;
    margin: 18px 0 14px;
    font-size: clamp(2.4rem, 6vw, 5.2rem);
    line-height: 0.98;
    font-weight: 950;
}

.landing-hero p {
    max-width: 720px;
    margin: 0 0 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.45;
}

.landing-actions,
.landing-strip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.landing-actions .btn {
    border-radius: 8px;
    font-weight: 850;
}

.landing-feature-band {
    margin-top: -32px;
    padding: 0 clamp(16px, 5vw, 64px) 28px;
}

.landing-feature-grid {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.landing-feature-grid article {
    min-height: 210px;
    padding: 22px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.1);
}

.landing-feature-grid i {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 8px;
    background: #e8f2fb;
    color: #1f6fae;
    font-size: 1.35rem;
}

.landing-feature-grid h2 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 900;
}

.landing-feature-grid p {
    margin: 0;
    color: #5f6c7d;
    line-height: 1.45;
}

.landing-login-strip {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px;
    border: 1px solid #dce5f0;
    border-radius: 8px;
    background: #fff;
}

.landing-login-strip strong,
.landing-login-strip span {
    display: block;
}

.landing-login-strip span {
    color: #667085;
}

.landing-strip-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #cfd9e6;
    border-radius: 8px;
    color: #172033;
    text-decoration: none;
    font-weight: 850;
}

.landing-strip-actions a:hover {
    border-color: #1f6fae;
    color: #1f6fae;
}

@media (max-width: 920px) {
    .payment-card-stats {
        grid-template-columns: 1fr;
    }

    .payment-card-grid {
        grid-template-columns: 1fr;
    }

    .payment-admin-card {
        grid-template-columns: 1fr;
    }

    .payment-card-actions {
        grid-column: auto;
    }
}

/* Kundenportal */
.customer-login-page,
.customer-app {
    min-height: 100vh;
    background: #fff;
    color: #151515;
}

.customer-login-shell {
    width: min(1040px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
    align-items: center;
}

.customer-login-brand {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.customer-brand-mark,
.customer-bonus-logo {
    display: inline-grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: #df0b21;
    color: #fff;
    font-weight: 900;
}

.customer-login-brand p,
.customer-kicker {
    margin: 0 0 8px;
    color: #df0b21;
    font-weight: 850;
}

.customer-login-brand h1 {
    max-width: 620px;
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    line-height: 1.02;
    font-weight: 950;
}

.customer-login-card {
    padding: 28px;
    border: 2px solid #e0e0e0;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.customer-login-card h2 {
    margin: 0 0 8px;
    font-weight: 900;
}

.customer-login-card p {
    color: #555;
}

.customer-login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    border-radius: 18px;
    background: #f1f5f9;
}

.customer-login-tabs .nav-link {
    width: 100%;
    min-height: 48px;
    border-radius: 14px;
    color: #1f2937;
    font-weight: 900;
}

.customer-login-tabs .nav-link.active {
    background: #df0b21;
}

.customer-login-subtabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    border-radius: 16px;
    background: #eef3f8;
}

.customer-login-subtabs .nav-link {
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    color: #1f2937;
    font-weight: 900;
}

.customer-login-subtabs .nav-link.active {
    background: #18212f;
    color: #fff;
}

.customer-login-method {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid #dfe6ef;
    border-radius: 18px;
    background: #fbfdff;
}

.customer-login-method h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 950;
}

.customer-input {
    min-height: 54px;
    border-radius: 16px;
}

.customer-app {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 34px 22px 116px;
}

.customer-hero {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 28px 0 22px;
}

.customer-hero::after {
    content: "";
    position: absolute;
    top: -68px;
    right: -72px;
    width: 220px;
    height: 220px;
    border-radius: 0 0 0 96px;
    background: #df0b21;
    transform: rotate(-25deg);
    z-index: 0;
}

.customer-hero > * {
    position: relative;
    z-index: 1;
}

.customer-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 7vw, 4rem);
    line-height: 1.04;
    font-weight: 950;
}

.customer-profile-button {
    width: 64px;
    height: 64px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #222;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
    font-size: 1.8rem;
}

.customer-notice {
    display: grid;
    gap: 4px;
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #f2c94c;
    border-radius: 18px;
    background: #fff9df;
}

.customer-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.customer-balance-card {
    min-height: 168px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 18px;
    padding: 28px;
    border: 2px solid #d7d7d7;
    border-radius: 28px;
    background: #fff;
    text-align: left;
    font-size: 1.45rem;
}

.customer-balance-card.is-soft {
    background: #e8f3f1;
    border-color: #e8f3f1;
}

.customer-balance-card span:not(.customer-bonus-logo) {
    font-size: 2.4rem;
}

.customer-pay-card,
.customer-promo-card,
.customer-section {
    border: 2px solid #d7d7d7;
    border-radius: 28px;
    background: #fff;
}

.customer-pay-card {
    position: relative;
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
    padding: 28px 58px 28px 28px;
}

.customer-pay-card .btn-close {
    position: absolute;
    top: 18px;
    right: 18px;
}

.pay-icon {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #df0b21;
    color: #fff;
    font-weight: 950;
}

.customer-pay-card h2,
.customer-promo-content h2,
.customer-section h2,
.customer-account-head h2 {
    margin: 0;
    font-weight: 950;
}

.customer-pay-card p,
.customer-promo-content p {
    margin: 4px 0 0;
    font-size: 1.2rem;
}

.customer-promo-card {
    overflow: hidden;
    margin-bottom: 34px;
}

.customer-promo-image {
    height: 180px;
    background:
        radial-gradient(circle at 20% 35%, #df0b21 0 12%, transparent 13%),
        radial-gradient(circle at 76% 30%, #f4c542 0 11%, transparent 12%),
        linear-gradient(135deg, #1d9a8a, #e7f6f3 58%, #fbd4d9);
}

.customer-promo-content {
    padding: 28px;
}

.customer-promo-content .btn {
    width: 100%;
    min-height: 58px;
    margin-top: 18px;
    border-width: 2px;
    border-radius: 14px;
    font-weight: 900;
}

.customer-section {
    border: 0;
    margin-bottom: 30px;
}

.customer-section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.customer-section-head button,
.customer-section-head span {
    border: 0;
    background: transparent;
    color: #df0b21;
    font-weight: 900;
}

.customer-horizontal-list {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 34%);
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.customer-mini-card,
.customer-list-row,
.customer-empty,
.customer-modal-panel {
    border: 2px solid #dedede;
    border-radius: 22px;
    background: #fff;
}

.customer-mini-card {
    min-height: 178px;
    padding: 20px;
}

.customer-mini-card.accent {
    background: #e8f3f1;
}

.customer-mini-card .badge {
    margin-bottom: 24px;
    background: #0b8f7c;
    font-size: 0.95rem;
}

.customer-mini-card strong {
    display: block;
    font-size: 1.2rem;
}

.customer-mini-card p {
    color: #555;
}

.customer-list {
    display: grid;
    gap: 12px;
}

.customer-list-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
}

.customer-list-row small,
.customer-empty {
    color: #666;
}

.customer-empty {
    padding: 18px;
}

.row-icon {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #f1f4f8;
    font-size: 1.35rem;
}

.row-end {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.row-end a {
    color: #df0b21;
    font-weight: 850;
    text-decoration: none;
}

.customer-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 20;
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    width: min(840px, calc(100% - 32px));
    padding: 10px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(14px);
}

.customer-bottom-nav button {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 58px;
    border: 0;
    border-radius: 26px;
    background: transparent;
    font-weight: 900;
}

.customer-bottom-nav button.active {
    background: #eef6f4;
    color: #df0b21;
}

.customer-bottom-nav i {
    font-size: 1.35rem;
}

.customer-account-modal .modal-content {
    border: 0;
    border-radius: 28px;
}

.customer-account-modal .modal-header {
    align-items: center;
    justify-content: space-between;
    border-bottom: 0;
}

.customer-account-modal .modal-title {
    font-weight: 950;
}

.customer-account-head {
    display: grid;
    gap: 4px;
    margin-bottom: 26px;
}

.customer-account-head .link-danger {
    justify-self: start;
    margin-top: 12px;
    border: 0;
    background: transparent;
    font-weight: 900;
}

.customer-profile-form,
.customer-modal-panel {
    margin-bottom: 18px;
    padding: 18px;
}

.customer-account-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 6px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #f1f5f9;
}

.customer-account-tabs .nav-link {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    color: #1f2937;
    font-weight: 900;
}

.customer-account-tabs .nav-link.active {
    background: #df0b21;
}

.customer-account-content .customer-modal-panel h3 {
    margin-bottom: 6px;
}

.customer-switch-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #e5e5e5;
}

.customer-switch-row strong,
.customer-switch-row span {
    display: block;
}

.customer-switch-row span {
    color: #666;
}

.customer-account-list {
    display: grid;
}

.customer-account-list button {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 24px;
    align-items: center;
    min-height: 78px;
    border: 0;
    border-top: 1px solid #d7d7d7;
    background: #fff;
    text-align: left;
    font-size: 1.25rem;
}

.customer-account-list button i:first-child {
    font-size: 1.45rem;
}

.customer-card-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e5e5;
}

.customer-card-row span,
.customer-card-row strong {
    display: block;
}

.customer-card-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.print-card-stage {
    display: grid;
    justify-items: center;
    padding: 22px;
    border-radius: 10px;
    background: #eef3f8;
}

.print-card-design {
    width: 85.6mm;
    height: 53.98mm;
    display: grid;
    grid-template-rows: auto 1fr auto;
    padding: 5mm;
    border-radius: 3mm;
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.42), transparent 16mm),
        linear-gradient(135deg, #102033 0%, #1f6fae 58%, #d71928 100%);
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.22);
    overflow: hidden;
}

.print-card-top,
.print-card-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.print-card-top span {
    font-size: 5mm;
    font-weight: 950;
}

.print-card-top i {
    font-size: 7mm;
}

.print-card-number {
    align-self: center;
    font-size: 5.2mm;
    letter-spacing: 0.7mm;
    font-weight: 850;
    white-space: nowrap;
}

.print-card-bottom small,
.print-card-bottom strong {
    display: block;
}

.print-card-bottom small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 2.5mm;
    text-transform: uppercase;
}

.print-card-bottom strong {
    max-width: 46mm;
    overflow: hidden;
    color: #fff;
    font-size: 3.6mm;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.print-card-qr {
    display: grid;
    place-items: center;
    width: 18mm;
    height: 18mm;
    padding: 1.4mm;
    border-radius: 2mm;
    background: #fff;
    color: #111;
}

.print-card-qr img,
.print-card-qr canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Bankautomat */
.bank-page {
    min-height: 100vh;
    padding: 28px;
    background:
        linear-gradient(135deg, rgba(13, 88, 119, 0.95), rgba(18, 77, 124, 0.96)),
        #124d7c;
}

.bank-machine {
    width: min(1520px, 100%);
    margin: 0 auto;
    padding: 22px;
    border-radius: 18px;
    background: #eef3f8;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.bank-header,
.bank-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bank-header {
    padding: 8px 4px 22px;
}

.bank-kicker {
    margin: 0 0 4px;
    color: var(--brand);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.bank-header h1,
.bank-action-card h2,
.bank-section-head h2 {
    margin: 0;
    font-weight: 900;
}

.bank-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e8f5ef;
    color: var(--success);
    font-weight: 850;
}

.bank-atm-layout {
    display: grid;
    grid-template-columns: minmax(720px, 1fr) 360px;
    gap: 18px;
    align-items: stretch;
}

.bank-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.bank-screen-panel,
.bank-control-panel {
    padding: 18px;
}

.bank-control-panel {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 14px;
    align-content: start;
}

.bank-card-visual {
    display: grid;
    align-content: space-between;
    min-height: 190px;
    padding: 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 85% 18%, rgba(255, 255, 255, 0.42), transparent 24%),
        linear-gradient(135deg, #172033, #1769aa);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.bank-card-visual span {
    font-size: 1.35rem;
    font-weight: 950;
}

.bank-card-visual strong {
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}

.bank-card-visual small {
    color: rgba(255, 255, 255, 0.78);
}

.bank-form {
    display: grid;
    gap: 10px;
}

.bank-control-hint {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #dce8f3;
    border-radius: 10px;
    background: #f8fbfe;
}

.bank-control-hint strong,
.bank-control-hint span {
    display: block;
}

.bank-control-hint span {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 750;
}

.bank-input {
    min-height: 50px;
    border-radius: 8px;
}

.bank-screen {
    position: relative;
    overflow: hidden;
    min-height: 680px;
    padding: 22px;
    border: 1px solid #9fb9cf;
    border-radius: 16px;
    background:
        radial-gradient(circle at 82% 8%, rgba(68, 142, 191, 0.24), transparent 34%),
        linear-gradient(180deg, #f8fbfd, #e7f0f7);
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.86),
        inset 0 -18px 42px rgba(27, 62, 95, 0.08);
}

.bank-screen-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 850;
}

.atm-screen-message {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #c8d7e6;
    background: #f8fbfe;
    color: #172033;
    font-weight: 850;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.06);
}

.atm-screen-message.danger {
    border-color: #f3b9ad;
    background: #fff1ed;
    color: var(--danger);
}

.atm-screen-message.warning {
    border-color: #f1d38c;
    background: #fff8e5;
    color: #8a5f00;
}

.atm-screen-message.success {
    border-color: #b9dfc7;
    background: #eef9f2;
    color: var(--success);
}

.atm-screen-message.info {
    border-color: #c8d7e6;
    background: #eef6fd;
    color: var(--brand-dark);
}

.atm-process-modal {
    position: absolute;
    inset: 22px;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 18px;
    border-radius: 14px;
    background:
        radial-gradient(circle at 78% 12%, rgba(40, 109, 158, 0.22), transparent 34%),
        linear-gradient(180deg, rgba(235, 244, 250, 0.96), rgba(214, 229, 240, 0.98));
    box-shadow:
        inset 0 0 0 1px rgba(132, 160, 184, 0.55),
        inset 0 -18px 38px rgba(30, 69, 105, 0.12);
    backdrop-filter: blur(3px);
}

.atm-process-modal.d-none {
    display: none !important;
}

.atm-process-card {
    width: min(520px, 100%);
    padding: 28px;
    border: 1px solid #b7cce0;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 253, 0.97)),
        #fff;
    box-shadow: 0 24px 50px rgba(18, 43, 70, 0.18);
    text-align: center;
}

.atm-process-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #e8f2fb;
    color: var(--brand);
    font-size: 2rem;
}

.atm-process-modal.info .atm-process-icon i {
    animation: atm-spin 1.15s linear infinite;
}

.atm-process-modal.success .atm-process-icon {
    background: #e8f7ef;
    color: var(--success);
}

.atm-process-modal.danger .atm-process-icon {
    background: #fff1ed;
    color: var(--danger);
}

.atm-process-kicker {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0;
    text-transform: uppercase;
}

.atm-process-card h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    font-weight: 950;
}

.atm-process-card p:not(.atm-process-kicker) {
    margin: 10px auto 0;
    max-width: 420px;
    color: var(--muted);
    font-weight: 800;
}

.atm-process-steps {
    display: grid;
    gap: 8px;
    margin-top: 22px;
    text-align: left;
}

.atm-process-steps span {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #d9e6f0;
    border-radius: 8px;
    background: #f8fbfd;
    color: var(--muted);
    font-weight: 850;
}

.atm-process-steps i {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e8f2fb;
    color: var(--brand);
}

.atm-process-steps span.pending i {
    animation: atm-spin 1.15s linear infinite;
}

.atm-process-steps span.done {
    border-color: #c7e7d2;
    background: #f0fbf4;
    color: var(--success);
}

.atm-process-steps span.done i {
    background: #dff6e8;
    color: var(--success);
}

.atm-process-steps span.danger {
    border-color: #f4c2b9;
    background: #fff3ef;
    color: var(--danger);
}

.atm-process-steps span.danger i {
    background: #ffe3dc;
    color: var(--danger);
}

@keyframes atm-spin {
    to {
        transform: rotate(360deg);
    }
}

.atm-view {
    min-height: 540px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 12px;
    padding: 30px;
    border: 1px solid #d8e5f0;
    border-radius: 16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(244,248,251,0.94)),
        #f6fafc;
    text-align: center;
}

.atm-screen-form {
    width: min(460px, 100%);
    display: grid;
    gap: 9px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #dde8f2;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 34px rgba(16, 24, 40, 0.08);
    text-align: left;
}

.atm-screen-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.atm-compact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 7px 13px;
    border: 1px solid #c8d7e6;
    border-radius: 8px;
    background: #f8fbfe;
    color: #172033;
    font-weight: 850;
}

.atm-compact-button.primary {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.atm-view i {
    display: inline-grid;
    place-items: center;
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: #e4f0fa;
    color: var(--brand);
    font-size: 2rem;
}

.atm-view h2,
.atm-panel h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    font-weight: 950;
}

.atm-view p,
.atm-panel p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.atm-menu {
    display: grid;
    gap: 16px;
}

.atm-greeting {
    padding: 14px 16px;
    border: 1px solid #d8e5f0;
    border-radius: 12px;
    background: #fff;
    color: #172033;
    font-size: 1.06rem;
    font-weight: 850;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.06);
}

.bank-balance-box {
    display: grid;
    gap: 8px;
    padding: 24px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, #eef9f3, #f7fbfe);
    border: 1px solid #d5e6dd;
}

.bank-balance-box span,
.bank-balance-box small {
    color: var(--muted);
    font-weight: 750;
}

.bank-balance-box strong {
    color: var(--brand-dark);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
    font-weight: 950;
}

.atm-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.atm-menu-grid button {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 88px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    text-align: left;
    font-weight: 900;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.atm-menu-grid button:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(31, 111, 174, 0.12);
}

.atm-menu-grid i {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #e8f2fb;
}

.atm-menu-grid span {
    display: grid;
    gap: 2px;
}

.atm-menu-grid small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 750;
}

.atm-panel {
    display: grid;
    gap: 12px;
    align-content: start;
    min-height: 540px;
    padding: 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #dde8f2;
}

.atm-back-button {
    justify-self: start;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfe;
    color: var(--text);
    font-weight: 850;
}

.atm-big-amount {
    color: var(--success);
    font-size: clamp(2.8rem, 7vw, 5.2rem);
    line-height: 1;
    font-weight: 950;
}

.bank-quick-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.bank-quick-row button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfe;
    font-weight: 850;
}

.bank-transaction-list {
    display: grid;
    gap: 10px;
}

.bank-empty {
    padding: 18px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    color: var(--muted);
    text-align: center;
}

.bank-transaction {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.bank-transaction-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-weight: 950;
}

.bank-transaction-icon.positive {
    background: #e8f5ef;
    color: var(--success);
}

.bank-transaction-icon.negative {
    background: #fff1ed;
    color: var(--danger);
}

.bank-transaction small {
    display: block;
    color: var(--muted);
}

.bank-transaction-end {
    display: grid;
    justify-items: end;
    gap: 2px;
}

.bank-transaction-end .positive {
    color: var(--success);
}

.bank-transaction-end .negative {
    color: var(--danger);
}

.atm-statement-preview {
    max-height: 390px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #dde8f2;
    border-radius: 10px;
    background: #f7fafc;
}

.bank-statement-print {
    width: min(100%, 720px);
    margin: 0 auto;
    padding: 18px;
    border: 1px solid #d8e2ec;
    border-radius: 8px;
    background: #fff;
    color: #172033;
    font-family: Arial, sans-serif;
}

.bank-statement-print header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid #172033;
}

.bank-statement-print header strong {
    font-size: 1.45rem;
    font-weight: 950;
}

.bank-statement-print header span {
    color: var(--muted);
    font-weight: 850;
}

.statement-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
}

.statement-meta div {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid #edf1f5;
    border-radius: 6px;
}

.statement-meta span,
.statement-balance span {
    color: #667085;
    font-size: 0.82rem;
    font-weight: 800;
}

.statement-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px;
    border-radius: 6px;
    background: #edf7f1;
}

.statement-balance strong {
    color: var(--success);
    font-size: 1.4rem;
    font-weight: 950;
}

.bank-statement-print table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.bank-statement-print th,
.bank-statement-print td {
    padding: 9px 6px;
    border-bottom: 1px solid #e5ecf3;
    vertical-align: top;
}

.bank-statement-print th {
    color: #667085;
    font-size: 0.78rem;
    text-transform: uppercase;
}

.bank-statement-print small {
    color: #667085;
}

.bank-statement-print .positive {
    color: var(--success);
    font-weight: 900;
}

.bank-statement-print .negative {
    color: var(--danger);
    font-weight: 900;
}

.bank-statement-print footer {
    padding-top: 12px;
    color: #667085;
    font-size: 0.82rem;
    text-align: center;
}

.atm-keypad {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-content: end;
    align-self: end;
    padding: 12px;
    border-radius: 12px;
    background: #d9e4ef;
    border: 1px solid #c2d2e2;
}

.atm-keypad button {
    min-height: 66px;
    border: 1px solid #b5c4d4;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #eef3f7);
    color: #172033;
    font-size: 1.2rem;
    font-weight: 950;
    box-shadow: 0 3px 0 #a6b8c8;
}

.atm-keypad button:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 #a6b8c8;
}

.atm-keypad .atm-key-warning {
    background: linear-gradient(180deg, #fff7df, #f4d680);
}

.atm-keypad .atm-key-ok {
    background: linear-gradient(180deg, #eaf8ef, #8fd9aa);
    color: #0f5f3d;
}

/* Bankautomat: Geräte-Design */
.bank-page {
    --atm-ink: #191713;
    --atm-soft-ink: #343027;
    --atm-case: #d7d0c4;
    --atm-case-dark: #2c2923;
    --atm-panel: #f5f1e9;
    --atm-panel-2: #ebe4d8;
    --atm-screen: #edf1e9;
    --atm-screen-line: #8b9588;
    --atm-line: #c9c0b1;
    --atm-muted: #706a5e;
    --atm-accent: #0f766e;
    --atm-accent-dark: #0b4f49;
    --atm-gold: #c3912e;
    --atm-gold-soft: #fff2c6;
    --atm-danger: #b64635;
    padding: 22px;
    background:
        linear-gradient(145deg, #1d1a16 0%, #27322d 48%, #0f4a47 100%);
}

.bank-machine {
    position: relative;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 26px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.58), rgba(255,255,255,0.12)),
        linear-gradient(135deg, #e1dbcf 0%, #bdb4a5 100%);
    box-shadow:
        0 36px 90px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        inset 0 -22px 50px rgba(64, 56, 45, 0.16);
}

.bank-header {
    min-height: 92px;
    padding: 0 4px 26px;
}

.bank-kicker {
    color: var(--atm-accent-dark);
    font-size: 0.95rem;
}

.bank-header h1 {
    color: var(--atm-ink);
    font-size: clamp(2.3rem, 4vw, 4.2rem);
    line-height: 0.98;
}

.bank-status {
    border: 1px solid rgba(15, 118, 110, 0.22);
    background: #e7f3ec;
    color: var(--atm-accent-dark);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.64);
}

.bank-atm-layout {
    grid-template-columns: minmax(760px, 1fr) 360px;
    gap: 20px;
}

.bank-panel {
    border-color: rgba(73, 68, 58, 0.24);
    border-radius: 18px;
    background: var(--atm-panel);
    box-shadow:
        0 18px 34px rgba(34, 29, 22, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.bank-screen-panel {
    padding: 22px;
    background:
        linear-gradient(180deg, #3b3730, #27241f);
    border-color: rgba(20, 18, 15, 0.56);
}

.bank-control-panel {
    padding: 20px;
    border-color: rgba(20, 18, 15, 0.5);
    background:
        linear-gradient(180deg, #343027, #25221d);
    box-shadow:
        0 20px 40px rgba(34, 29, 22, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.1);
}

.bank-card-visual {
    min-height: 184px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.14), transparent 42%),
        linear-gradient(145deg, #26231e 0%, #0f766e 100%);
    box-shadow:
        0 18px 32px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.bank-card-visual strong {
    letter-spacing: 0;
}

.bank-control-hint {
    border-color: rgba(211, 192, 143, 0.42);
    background: #f4ead7;
    color: var(--atm-soft-ink);
}

.bank-control-hint span {
    color: var(--atm-muted);
}

.bank-screen {
    min-height: 700px;
    padding: 26px;
    border: 1px solid var(--atm-screen-line);
    border-radius: 18px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 32%, rgba(255,255,255,0.22) 100%),
        linear-gradient(180deg, #f3f6ef, var(--atm-screen));
    box-shadow:
        inset 0 0 0 3px rgba(62, 69, 60, 0.18),
        inset 0 26px 58px rgba(255, 255, 255, 0.7),
        inset 0 -22px 42px rgba(73, 88, 73, 0.1),
        0 0 0 5px rgba(255,255,255,0.14);
}

.bank-screen-top {
    color: var(--atm-muted);
    font-size: 0.95rem;
}

.atm-screen-message {
    border-color: #d5cab8;
    background: #fbf5e9;
    color: var(--atm-soft-ink);
    box-shadow: none;
}

.atm-screen-message.success {
    border-color: rgba(15, 118, 110, 0.3);
    background: #e5f2ec;
    color: var(--atm-accent-dark);
}

.atm-screen-message.info {
    border-color: #d7c28f;
    background: #fff6d8;
    color: #725217;
}

.atm-screen-message.warning {
    border-color: #d7b15b;
    background: #fff2c6;
    color: #6f4b00;
}

.atm-screen-message.danger {
    border-color: rgba(182, 70, 53, 0.35);
    background: #fff0eb;
    color: var(--atm-danger);
}

.atm-view,
.atm-panel {
    border-color: rgba(139, 149, 136, 0.28);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.92), rgba(247,244,237,0.95)),
        var(--atm-panel);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.86),
        0 14px 30px rgba(53, 48, 38, 0.08);
}

.atm-view i {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: #e1eee9;
    color: var(--atm-accent-dark);
}

.atm-view .atm-compact-button i {
    display: inline-flex;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-size: 1rem;
}

.atm-view h2,
.atm-panel h2 {
    color: var(--atm-ink);
}

.atm-view p,
.atm-panel p,
.bank-balance-box span,
.bank-balance-box small,
.atm-menu-grid small,
.bank-empty,
.bank-transaction small {
    color: var(--atm-muted);
}

.atm-screen-form {
    border-color: rgba(139, 149, 136, 0.28);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 28px rgba(53, 48, 38, 0.1);
}

.bank-input,
.bank-page .form-control {
    border-color: #d2c8b8;
    background: #fffdf9;
    color: var(--atm-ink);
}

.bank-page .form-control:focus {
    border-color: var(--atm-accent);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.16);
}

.atm-compact-button,
.atm-back-button,
.bank-quick-row button {
    border-color: #cfc4b2;
    background: linear-gradient(180deg, #fffdf8, #ebe2d3);
    color: var(--atm-soft-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
}

.atm-compact-button.primary,
.bank-page .btn-primary,
.bank-page .btn-dark {
    border-color: var(--atm-accent-dark);
    background: linear-gradient(180deg, var(--atm-accent), var(--atm-accent-dark));
    color: #fff;
}

.bank-page .btn-success {
    border-color: #a06f18;
    background: linear-gradient(180deg, #d9a842, #a06f18);
    color: #1f1708;
    font-weight: 900;
}

.atm-greeting {
    border-color: rgba(201, 192, 177, 0.72);
    background: #fffaf0;
    color: var(--atm-soft-ink);
    box-shadow: none;
}

.bank-balance-box {
    border-color: rgba(15, 118, 110, 0.2);
    background:
        linear-gradient(135deg, #edf6ef, #fff8e5);
}

.bank-balance-box strong,
.atm-big-amount {
    color: var(--atm-accent-dark);
}

.atm-menu-grid button {
    min-height: 82px;
    border-color: rgba(201, 192, 177, 0.8);
    border-radius: 14px;
    background:
        linear-gradient(180deg, #fffdf9, #f0e7d8);
    color: var(--atm-soft-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
}

.atm-menu-grid button:hover {
    border-color: var(--atm-accent);
    color: var(--atm-accent-dark);
    box-shadow: 0 12px 22px rgba(15, 118, 110, 0.14);
}

.atm-menu-grid i {
    border-radius: 12px;
    background: #e3efe8;
    color: var(--atm-accent-dark);
}

.bank-transaction,
.bank-empty,
.atm-statement-preview,
.bank-statement-print {
    border-color: rgba(201, 192, 177, 0.75);
}

.bank-transaction-icon.positive {
    background: #e1f0e7;
    color: var(--atm-accent-dark);
}

.bank-transaction-end .positive,
.bank-statement-print .positive {
    color: var(--atm-accent-dark);
}

.atm-process-modal {
    background:
        linear-gradient(90deg, rgba(255,255,255,0.42), rgba(255,255,255,0.02) 38%, rgba(255,255,255,0.28) 100%),
        linear-gradient(180deg, rgba(239, 242, 235, 0.97), rgba(217, 223, 211, 0.98));
}

.atm-process-card {
    border-color: rgba(201, 192, 177, 0.86);
    background:
        linear-gradient(180deg, #fffdf8, #f1eadf);
}

.atm-process-icon,
.atm-process-steps i {
    background: #e1eee9;
    color: var(--atm-accent-dark);
}

.atm-process-card p:not(.atm-process-kicker),
.atm-process-kicker {
    color: var(--atm-muted);
}

.atm-process-steps span {
    border-color: rgba(201, 192, 177, 0.75);
    background: #fffaf0;
    color: var(--atm-muted);
}

.atm-process-modal.success .atm-process-icon,
.atm-process-steps span.done i {
    background: #dff0e6;
    color: var(--atm-accent-dark);
}

.atm-process-steps span.done {
    border-color: rgba(15, 118, 110, 0.24);
    background: #ecf6ef;
    color: var(--atm-accent-dark);
}

.atm-keypad {
    gap: 9px;
    padding: 14px;
    border-color: rgba(255,255,255,0.12);
    border-radius: 16px;
    background:
        linear-gradient(180deg, #4a453b, #2b2822);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.1),
        0 16px 30px rgba(0,0,0,0.2);
}

.atm-keypad button {
    min-height: 58px;
    border-color: #a79a86;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8f4ed, #d6cbbb);
    color: var(--atm-ink);
    box-shadow: 0 4px 0 #8d806d;
}

.atm-keypad button:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0 #8d806d;
}

.atm-keypad .atm-key-warning {
    border-color: #c69a32;
    background: linear-gradient(180deg, #fff6cf, #d59d2f);
    color: #3d2b08;
}

.atm-keypad .atm-key-ok {
    border-color: #0f766e;
    background: linear-gradient(180deg, #85d8bf, #0f766e);
    color: #062d29;
}

/* Onlinebanking */
.online-bank-page {
    min-height: 100vh;
    padding: 16px;
    background:
        radial-gradient(circle at 90% 0%, rgba(215, 25, 40, 0.16), transparent 32%),
        linear-gradient(180deg, #f4f8fb, #e9f1f7);
}

.online-bank-shell {
    width: min(820px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.online-bank-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 4px 8px;
}

.online-bank-hero p {
    margin: 0;
    color: var(--brand);
    font-weight: 950;
    text-transform: uppercase;
}

.online-bank-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 10vw, 3.2rem);
    font-weight: 950;
}

.online-bank-desktop-link {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #cbd8e5;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 850;
}

.online-login-card,
.online-panel,
.online-balance-card {
    padding: 18px;
    border: 1px solid #d5e1ed;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 42px rgba(16, 24, 40, 0.08);
}

.online-login-card h2,
.online-panel h2 {
    margin: 0 0 8px;
    font-weight: 950;
}

.online-login-card p {
    color: var(--muted);
    font-weight: 750;
}

.online-bank-input {
    min-height: 52px;
    border-radius: 10px;
}

.online-bank-message {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #c8d7e6;
    background: #eef6fd;
    color: var(--brand-dark);
    font-weight: 850;
}

.online-bank-message.danger {
    border-color: #f3b9ad;
    background: #fff1ed;
    color: var(--danger);
}

.online-bank-message.warning {
    border-color: #f1d38c;
    background: #fff8e5;
    color: #8a5f00;
}

.online-bank-message.success {
    border-color: #b9dfc7;
    background: #eef9f2;
    color: var(--success);
}

.online-dashboard {
    display: grid;
    gap: 14px;
}

.online-balance-card {
    display: grid;
    gap: 8px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.32), transparent 26%),
        linear-gradient(135deg, #172033, #1769aa);
}

.online-balance-card span,
.online-balance-card small {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 850;
}

.online-balance-card strong {
    font-size: clamp(2.4rem, 12vw, 4rem);
    line-height: 1;
    font-weight: 950;
}

.online-balance-card button {
    justify-self: start;
    min-height: 38px;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 850;
}

.online-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.online-action-grid button {
    display: grid;
    justify-items: start;
    gap: 8px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid #d5e1ed;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-weight: 900;
    text-align: left;
}

.online-action-grid i {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #e8f2fb;
    color: var(--brand);
}

.online-quick-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.online-quick-row button {
    min-height: 42px;
    border: 1px solid #d5e1ed;
    border-radius: 10px;
    background: #f8fbfe;
    font-weight: 850;
}

.online-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.online-section-head h2 {
    margin: 0;
}

.online-section-head span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #e8f2fb;
    color: var(--brand);
    font-weight: 950;
}

/* Onlinebanking: responsive Browser-Oberfläche */
.online-bank-page {
    --online-ink: #191713;
    --online-muted: #706a5e;
    --online-line: #d5cbbb;
    --online-panel: #fffdf8;
    --online-soft: #f3eee5;
    --online-accent: #0f766e;
    --online-accent-dark: #0b4f49;
    --online-gold: #c3912e;
    min-height: 100dvh;
    padding: clamp(16px, 3vw, 42px);
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    background:
        linear-gradient(145deg, #1d1a16 0%, #27322d 48%, #0f4a47 100%);
}

.online-bank-shell {
    width: min(1180px, 100%);
    max-width: 100%;
    min-width: 0;
    min-height: calc(100dvh - clamp(32px, 6vw, 84px));
    gap: clamp(14px, 2vw, 22px);
}

.online-bank-hero {
    padding: 0;
    min-width: 0;
}

.online-bank-hero > div {
    min-width: 0;
}

.online-bank-hero p {
    color: #a9ddd1;
    font-size: 0.9rem;
    letter-spacing: 0;
}

.online-bank-hero h1 {
    color: #fffdf8;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1;
    max-width: 100%;
}

.online-bank-desktop-link {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.12);
    color: #fffdf8;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

.online-bank-message {
    border-color: rgba(211, 192, 143, 0.52);
    background: #fff6d8;
    color: #725217;
}

.online-bank-message.success {
    border-color: rgba(15, 118, 110, 0.32);
    background: #e5f2ec;
    color: var(--online-accent-dark);
}

.online-bank-message.danger {
    border-color: rgba(182, 70, 53, 0.35);
    background: #fff0eb;
    color: #b64635;
}

.online-login-card {
    width: min(540px, 100%);
    max-width: 100%;
    box-sizing: border-box;
    justify-self: center;
    align-self: center;
    margin-top: min(7vh, 70px);
}

.online-login-card,
.online-panel,
.online-balance-card {
    border-color: rgba(213, 203, 187, 0.9);
    border-radius: 18px;
    background: var(--online-panel);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.online-login-card,
.online-panel {
    padding: clamp(18px, 2.2vw, 28px);
}

.online-login-card h2,
.online-panel h2 {
    color: var(--online-ink);
}

.online-login-card p,
.online-panel p {
    color: var(--online-muted);
}

.online-bank-input,
.online-bank-page .form-control {
    border-color: var(--online-line);
    background: #fffefa;
    color: var(--online-ink);
}

.online-bank-page .form-control:focus {
    border-color: var(--online-accent);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.16);
}

.online-bank-page .btn-primary,
.online-bank-page .btn-dark {
    border-color: var(--online-accent-dark);
    background: linear-gradient(180deg, var(--online-accent), var(--online-accent-dark));
    color: #fff;
}

.online-bank-page .btn-success {
    border-color: #a06f18;
    background: linear-gradient(180deg, #d9a842, #a06f18);
    color: #1f1708;
    font-weight: 900;
}

.online-dashboard {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    grid-template-areas:
        "balance actions"
        "balance work"
        "history history";
    align-items: start;
    gap: clamp(14px, 2vw, 20px);
}

.online-balance-card {
    grid-area: balance;
    min-height: 310px;
    align-content: space-between;
    position: sticky;
    top: 18px;
    padding: clamp(22px, 2.4vw, 32px);
    background:
        radial-gradient(circle at 86% 16%, rgba(255, 255, 255, 0.26), transparent 27%),
        linear-gradient(145deg, #26231e 0%, #0f766e 100%);
}

.online-balance-card strong {
    font-size: clamp(2.8rem, 7vw, 4.8rem);
}

.online-balance-card button {
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.14);
}

.online-action-grid {
    grid-area: actions;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.online-action-grid button {
    min-height: 112px;
    border-color: rgba(213, 203, 187, 0.9);
    border-radius: 16px;
    background:
        linear-gradient(180deg, #fffdf9, #f0e7d8);
    color: var(--online-ink);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.86);
}

.online-action-grid button:hover {
    border-color: var(--online-accent);
    color: var(--online-accent-dark);
}

.online-action-grid i {
    background: #e3efe8;
    color: var(--online-accent-dark);
}

.online-work-panel:not(.d-none) {
    grid-area: work;
}

.online-history-panel {
    grid-area: history;
}

.online-quick-row button {
    border-color: var(--online-line);
    background: linear-gradient(180deg, #fffdf8, #ebe2d3);
    color: var(--online-ink);
}

.online-section-head span {
    background: #e3efe8;
    color: var(--online-accent-dark);
}

.online-bank-page .bank-transaction,
.online-bank-page .bank-empty,
.online-bank-page .atm-statement-preview {
    border-color: rgba(213, 203, 187, 0.85);
}

@media (max-width: 1080px) {
    .online-dashboard {
        grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    }

    .online-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    html:has(.online-bank-page),
    body:has(.online-bank-page) {
        overflow-x: hidden;
        background: #171b17;
    }

    .online-bank-page {
        min-height: 100dvh;
        padding: max(14px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
        overflow-x: hidden;
        background:
            linear-gradient(180deg, rgba(19, 25, 21, 0.96) 0%, rgba(19, 25, 21, 0.96) 42%, rgba(12, 75, 70, 0.96) 100%);
    }

    .online-bank-shell {
        width: 100%;
        max-width: 100%;
        min-height: auto;
        gap: 18px;
    }

    .online-bank-hero {
        display: grid;
        grid-template-columns: 1fr;
        align-items: start;
        justify-content: start;
        gap: 12px;
        padding: 4px 2px 6px;
    }

    .online-bank-hero h1 {
        max-width: 100%;
        font-size: clamp(2.25rem, 10.4vw, 3rem);
        line-height: 0.96;
        overflow-wrap: normal;
    }

    .online-bank-desktop-link {
        justify-self: start;
        max-width: 100%;
        min-height: 36px;
        padding: 7px 12px;
        background: rgba(255,255,255,0.1);
        color: #fffdf8;
        font-size: 0.92rem;
    }

    .online-login-card {
        justify-self: stretch;
        width: 100%;
        margin-top: 8px;
        padding: 22px 18px;
        border-radius: 22px;
    }

    .online-login-card h2 {
        font-size: clamp(1.75rem, 8vw, 2.15rem);
        line-height: 1;
    }

    .online-login-card p {
        margin-bottom: 18px;
        font-size: 1rem;
        line-height: 1.38;
    }

    .online-bank-input {
        min-height: 54px;
        font-size: 16px;
    }

    .online-bank-page .btn {
        min-height: 54px;
        border-radius: 12px;
        font-size: 1rem;
    }

    .online-dashboard {
        grid-template-columns: 1fr;
        grid-template-areas:
            "balance"
            "actions"
            "work"
            "history";
    }

    .online-balance-card {
        position: static;
        min-height: 210px;
    }

    .online-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .online-bank-page {
        padding: max(12px, env(safe-area-inset-top)) 10px max(16px, env(safe-area-inset-bottom));
    }

    .online-bank-hero {
        gap: 9px;
    }

    .online-bank-hero p {
        font-size: 0.82rem;
    }

    .online-bank-hero h1 {
        font-size: clamp(2rem, 9.6vw, 2.55rem);
    }

    .online-bank-desktop-link {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .online-login-card,
    .online-panel,
    .online-balance-card {
        border-radius: 14px;
    }

    .online-login-card {
        padding: 20px 16px;
    }

    .online-action-grid button {
        min-height: 88px;
        padding: 12px;
    }

    .online-quick-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .bank-page {
        padding: 12px;
    }

    .bank-machine {
        padding: 14px;
        border-radius: 14px;
    }

    .bank-atm-layout,
    .bank-control-panel {
        grid-template-columns: 1fr;
    }

    .bank-screen {
        min-height: 480px;
    }

    .atm-process-modal {
        inset: 12px;
        padding: 10px;
    }

    .atm-process-card {
        padding: 20px;
    }

    .atm-view,
    .atm-panel {
        min-height: 360px;
    }

    .atm-screen-actions,
    .atm-compact-button {
        width: 100%;
    }

    .bank-header,
    .bank-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .bank-transaction {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .bank-transaction-end {
        grid-column: 2;
        justify-items: start;
    }
}

@media (max-width: 760px) {
    .customer-login-shell {
        grid-template-columns: 1fr;
        align-content: center;
    }

    .customer-login-brand {
        display: grid;
    }

    .customer-action-grid {
        grid-template-columns: 1fr 1fr;
    }

    .customer-balance-card {
        min-height: 128px;
        padding: 18px;
        font-size: 1.08rem;
    }

    .customer-pay-card {
        grid-template-columns: 58px 1fr;
        padding: 22px 46px 22px 18px;
    }

    .pay-icon {
        width: 52px;
        height: 52px;
    }

    .customer-pay-card p,
    .customer-promo-content p {
        font-size: 1rem;
    }

    .customer-horizontal-list {
        grid-auto-columns: minmax(210px, 72%);
    }

    .customer-account-tabs {
        grid-template-columns: 1fr 1fr;
    }

    .customer-list-row {
        grid-template-columns: 48px minmax(0, 1fr);
    }

    .row-end {
        grid-column: 2;
        justify-items: start;
    }
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
}

.kika-page,
.pos-app {
    width: 100%;
    padding: 18px;
}

.kika-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 16px;
}

.panel-title,
.panel-title-row .panel-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text);
}

.panel-title-row,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading h1,
.pos-toolbar h1 {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 850;
    letter-spacing: 0;
}

.eyebrow {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.field-label {
    display: block;
    margin: 12px 0 6px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 750;
}

.icon-button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
}

.icon-button:hover {
    background: var(--surface-2);
}

.icon-button.small {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
}

.icon-button.danger {
    color: var(--danger);
}

.muted-note,
.panel small {
    color: var(--muted);
}

/* POS */
.pos-app {
    max-width: 1720px;
    margin: 0 auto;
}

.pos-toolbar {
    display: grid;
    grid-template-columns: minmax(170px, 260px) 1fr;
    align-items: end;
    gap: 16px;
    margin-bottom: 16px;
}

.pos-search {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.pos-search i {
    display: grid;
    place-items: center;
    color: var(--brand);
    font-size: 1.35rem;
}

.pos-search input {
    min-width: 0;
    height: 44px;
    border: 0;
    outline: 0;
    font-size: 1rem;
    background: transparent;
}

.pos-layout {
    display: grid;
    grid-template-columns: minmax(330px, 0.9fr) minmax(420px, 1.35fr) minmax(300px, 0.8fr);
    gap: 16px;
    align-items: start;
}

.pos-receipt,
.pos-catalog,
.pos-side {
    min-width: 0;
}

.pos-side {
    display: grid;
    gap: 16px;
}

.receipt-lines {
    display: grid;
    gap: 8px;
    min-height: 310px;
    max-height: 54vh;
    overflow: auto;
    padding: 12px 0;
}

.receipt-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.line-main {
    min-width: 0;
}

.line-main strong,
.line-main span {
    display: block;
    overflow-wrap: anywhere;
}

.line-main span {
    color: var(--muted);
    font-size: 0.88rem;
}

.line-actions {
    display: grid;
    grid-template-columns: 34px 54px 34px minmax(82px, auto) 34px;
    align-items: center;
    gap: 6px;
}

.line-actions strong {
    text-align: right;
    white-space: nowrap;
}

.qty-input {
    width: 54px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: center;
}

.receipt-summary {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.receipt-summary div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.receipt-total {
    font-size: 1.35rem;
    font-weight: 850;
}

.tax-summary-line strong {
    max-width: 58%;
    text-align: right;
    overflow-wrap: anywhere;
}

.receipt-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.category-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 7px 11px;
    font-weight: 700;
}

.category-tab span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.category-tab.active {
    border-color: var(--brand);
    background: #e8f2fb;
    color: var(--brand-dark);
}

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
    min-height: 360px;
}

.item-tile {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 92px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--text);
    padding: 10px;
    text-align: left;
}

.item-tile:hover,
.item-tile:focus {
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(23, 105, 170, 0.14);
}

.item-image {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--brand);
    overflow: hidden;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-info {
    min-width: 0;
}

.item-info strong,
.item-info small,
.item-info b {
    display: block;
    overflow-wrap: anywhere;
}

.item-info small {
    color: var(--muted);
}

.item-info b {
    margin-top: 4px;
    color: var(--success);
}

.input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 10px;
}

.button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.small-pill {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 0.8rem;
}

.keypad-panel {
    user-select: none;
}

.keypad-display {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 46px;
    margin-top: 12px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #101827;
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keypad-targets {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0;
}

.keypad-target,
.keypad-grid button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-weight: 800;
}

.keypad-target.active {
    border-color: var(--brand);
    background: #e8f2fb;
    color: var(--brand-dark);
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.keypad-grid button {
    min-height: 54px;
    font-size: 1.15rem;
}

.keypad-grid button:hover,
.keypad-grid button:focus {
    border-color: var(--brand);
    background: var(--surface-2);
}

.keypad-enter {
    grid-row: span 2;
    background: var(--brand) !important;
    color: #fff !important;
    border-color: var(--brand) !important;
}

.keypad-zero {
    grid-column: span 2;
}

.void-preview {
    display: grid;
    gap: 7px;
    min-height: 88px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.void-head,
.void-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.void-item span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.conditional-box,
.cash-box {
    margin-top: 12px;
}

.change-row {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    padding: 10px;
    border-radius: 8px;
    background: var(--surface-2);
}

.cash-quick {
    display: grid;
    grid-template-columns: 1.3fr repeat(4, 1fr);
    gap: 6px;
    margin-top: 8px;
}

.cash-quick button {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-weight: 800;
}

.cash-quick button:hover,
.cash-quick button:focus {
    border-color: var(--brand);
    background: var(--surface-2);
}

.scanner-qr {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 24px;
    text-align: center;
}

.scanner-qr img {
    max-width: 180px;
    width: 100%;
    height: auto;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 120px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
    padding: 18px;
}

.pos-workspace {
    width: min(1680px, 100%);
    margin: 0 auto;
    padding: 16px;
}

.pos-commandbar {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(320px, 1fr) minmax(390px, auto);
    gap: 12px;
    align-items: stretch;
    margin-bottom: 14px;
}

.pos-title,
.scan-bar,
.pos-modebar,
.receipt-panel,
.checkout-card,
.checkout-tools,
.scanner-connect {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.pos-title {
    display: grid;
    align-content: center;
    padding: 14px 16px;
}

.pos-title h1,
.receipt-panel-head h2,
.checkout-card h2 {
    margin: 0;
    font-weight: 850;
    letter-spacing: 0;
}

.pos-title h1 {
    font-size: 1.55rem;
}

.scan-bar {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 7px;
    min-height: 72px;
}

.scan-bar i {
    display: grid;
    place-items: center;
    height: 48px;
    border-radius: 8px;
    background: #e8f2fb;
    color: var(--brand);
    font-size: 1.35rem;
}

.scan-bar input {
    width: 100%;
    min-width: 0;
    height: 48px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 1.06rem;
    font-weight: 700;
}

.pos-modebar {
    display: grid;
    grid-template-columns: repeat(5, minmax(74px, 1fr));
    gap: 6px;
    padding: 7px;
}

.mode-button {
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 58px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    font-weight: 800;
}

.mode-button i {
    color: var(--brand);
    font-size: 1.2rem;
}

.mode-button span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.82rem;
}

.mode-button:hover,
.mode-button:focus {
    border-color: var(--brand);
    background: #e8f2fb;
}

.pos-clean-layout {
    display: grid;
    grid-template-columns: minmax(420px, 1fr) minmax(320px, 410px);
    gap: 14px;
    align-items: start;
}

.receipt-panel {
    min-width: 0;
    overflow: hidden;
}

.receipt-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid var(--line);
}

.receipt-panel-head h2,
.checkout-card h2 {
    font-size: 1.35rem;
}

.receipt-head-actions {
    display: flex;
    gap: 8px;
}

.receipt-stream {
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 420px;
    max-height: calc(100vh - 365px);
    overflow: auto;
    padding: 12px 16px;
    background: linear-gradient(#fbfdff, #f6f9fc);
}

.receipt-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-weight: 750;
    text-align: center;
    padding: 18px;
}

.receipt-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) minmax(128px, auto);
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: var(--surface);
}

.receipt-row.correction {
    border-style: dashed;
    background: #fff8f4;
}

.receipt-row.voided {
    background: #f8fafc;
}

.receipt-line-no {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e8f2fb;
    color: var(--brand-dark);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.8rem;
    font-weight: 850;
}

.receipt-row-main {
    min-width: 0;
}

.receipt-row-main strong,
.receipt-row-main span,
.receipt-row-main em {
    display: block;
    overflow-wrap: anywhere;
}

.receipt-row-main span {
    color: var(--muted);
    font-size: 0.9rem;
}

.receipt-row-main b {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-left: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #fee2e2;
    color: var(--danger);
    font-size: 0.72rem;
    font-weight: 850;
    vertical-align: middle;
}

.receipt-row-main em {
    margin-top: 2px;
    color: var(--danger);
    font-size: 0.84rem;
    font-style: normal;
    font-weight: 800;
}

.receipt-row-side {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.receipt-row-side strong {
    white-space: nowrap;
    font-size: 1.02rem;
}

.receipt-row-actions {
    display: grid;
    grid-template-columns: repeat(3, 36px);
    gap: 5px;
}

.receipt-row-actions button {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
}

.receipt-row-actions button:hover,
.receipt-row-actions button:focus {
    border-color: var(--brand);
    background: #e8f2fb;
}

.receipt-row-actions button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.receipt-row-actions .storno {
    color: var(--danger);
}

.receipt-locked {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.receipt-totalbox {
    display: grid;
    gap: 8px;
    padding: 14px 16px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface);
}

.receipt-totalbox > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.receipt-totalbox span {
    color: var(--muted);
}

.receipt-totalbox strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.receipt-totalbox .grand-total {
    align-items: center;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.receipt-totalbox .grand-total span {
    color: var(--text);
    font-weight: 850;
}

.receipt-totalbox .grand-total strong {
    color: var(--success);
    font-size: 1.7rem;
}

.checkout-panel {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.checkout-card {
    padding: 16px;
}

.pay-section {
    margin-top: 10px;
}

.money-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.checkout-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
}

.checkout-tools button,
.checkout-tools a {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    color: var(--text);
    padding: 8px 10px;
    text-decoration: none;
    font-weight: 800;
}

.checkout-tools i {
    color: var(--brand);
    font-size: 1.1rem;
}

.checkout-tools span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.checkout-tools button:hover,
.checkout-tools a:hover,
.checkout-tools button:focus,
.checkout-tools a:focus {
    border-color: var(--brand);
    background: #e8f2fb;
}

.void-current-panel,
.void-archive-panel,
.deposit-receipt-result {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.void-line-list,
.deposit-receipt-result {
    display: grid;
    gap: 8px;
}

.void-line-option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 96px;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.void-line-option:has(input[type="radio"]:checked) {
    border-color: var(--brand);
    box-shadow: 0 10px 24px rgba(23, 105, 170, 0.12);
}

.void-line-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.void-line-copy strong,
.void-line-copy small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.void-line-copy small {
    color: var(--muted);
    font-weight: 720;
}

.scanner-connect {
    display: grid;
    place-items: center;
    min-height: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

.scanner-connect:not(:empty) {
    min-height: 92px;
    padding: 12px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.scanner-connect.waiting:not(:empty) {
    min-height: 275px;
}

.scanner-connect img {
    width: 150px;
    height: 150px;
}

.scanner-connect small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-weight: 750;
    text-align: center;
}

.scanner-status-card {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.scanner-status-card strong,
.scanner-status-card small {
    display: block;
    overflow-wrap: anywhere;
}

.scanner-status-card small {
    color: var(--muted);
}

.scanner-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #94a3b8;
}

.scanner-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(22, 133, 95, 0.14);
}

.scanner-dot.waiting {
    background: #d97706;
    box-shadow: 0 0 0 5px rgba(217, 119, 6, 0.14);
}

.pos-modal .modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.pos-modal .modal-header {
    align-items: center;
    border-bottom-color: var(--line);
}

.product-modal-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.product-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    min-height: 320px;
}

.product-choice {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 104px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--text);
    padding: 10px;
    text-align: left;
}

.product-choice:hover,
.product-choice:focus {
    border-color: var(--brand);
    background: #f2f8fd;
    box-shadow: 0 10px 24px rgba(23, 105, 170, 0.14);
}

.product-choice-img {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--brand);
    overflow: hidden;
}

.product-choice-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-choice strong,
.product-choice small,
.product-choice b {
    display: block;
    overflow-wrap: anywhere;
}

.product-choice small {
    color: var(--muted);
}

.product-choice b {
    margin-top: 5px;
    color: var(--success);
}

.manual-entry-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 16px;
}

.modal-keypad {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fafc;
    user-select: none;
}

.modal-keypad .keypad-targets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kika-dialog-modal .modal-content {
    border: 0;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.22);
}

.kika-dialog-modal .modal-header {
    border-bottom-color: var(--line);
}

.kika-dialog-modal .modal-footer {
    border-top-color: var(--line);
}

.kika-dialog-message {
    margin: 0;
    color: var(--text);
    font-weight: 700;
}

@media (max-width: 1280px) {
    .pos-commandbar {
        grid-template-columns: 1fr;
    }

    .pos-modebar {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .pos-workspace {
        padding: 10px;
    }

    .pos-clean-layout,
    .manual-entry-grid {
        grid-template-columns: 1fr;
    }

    .receipt-stream {
        min-height: 300px;
        max-height: none;
    }
}

@media (max-width: 640px) {
    .scan-bar {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .scan-bar .btn {
        grid-column: 1 / -1;
    }

    .pos-modebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .receipt-row,
    .product-modal-toolbar {
        grid-template-columns: 1fr;
    }

    .receipt-row-side {
        justify-items: stretch;
    }

    .receipt-row-side strong {
        text-align: right;
    }

    .receipt-row-actions {
        justify-content: end;
    }

    .product-grid-large {
        grid-template-columns: 1fr;
    }

    .checkout-tools {
        grid-template-columns: 1fr;
    }
}

/* Account */
.account-shell {
    padding-top: 8px;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.account-panel {
    min-height: 310px;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e8f2fb;
    color: var(--brand-dark);
    font-weight: 800;
}

.status-pill.small-pill {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 0.8rem;
}

.permission-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.permission-list span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 650;
}

/* Bonjournal */
.journal-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.journal-search {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.journal-search i {
    display: grid;
    place-items: center;
    color: var(--brand);
}

.journal-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    height: 44px;
}

.journal-table th {
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0;
}

/* Admin */
.admin-layout {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    align-items: start;
    width: 100%;
    min-height: calc(100vh - 66px);
}

.admin-content {
    min-width: 0;
}

.admin-nav-shell {
    position: sticky;
    top: 0;
    align-self: start;
    height: calc(100vh - 66px);
    overflow: auto;
    background: #edf3f8;
    border-right: 1px solid var(--line);
    box-shadow: 10px 0 24px rgba(15, 23, 42, 0.04);
}

.admin-nav-brand {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.52);
}

.admin-nav-brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
}

.admin-nav-brand strong,
.admin-nav-brand small {
    display: block;
    min-width: 0;
}

.admin-nav-brand strong {
    font-size: 1.05rem;
    font-weight: 900;
}

.admin-nav-brand small {
    color: var(--muted);
    font-weight: 750;
}

.admin-nav-inner {
    display: grid;
    gap: 16px;
    width: 100%;
    margin: 0;
    padding: 14px;
    overflow: visible;
}

.admin-nav-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.admin-nav-group-title {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0;
}

.admin-nav-group-title i {
    color: var(--brand);
    font-size: 0.95rem;
}

.admin-nav-links {
    display: grid;
    gap: 8px;
}

.admin-nav-group a {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-height: 60px;
    padding: 9px 10px;
    border: 1px solid #d5e2ee;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.66);
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.admin-nav-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #e8f2fb;
    color: var(--brand-dark);
}

.admin-nav-copy {
    display: grid;
    min-width: 0;
    line-height: 1.12;
}

.admin-nav-copy strong,
.admin-nav-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-nav-copy strong {
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 850;
}

.admin-nav-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 720;
}

.admin-nav-group a:hover,
.admin-nav-group a:focus,
.admin-nav-group a.active {
    border-color: #9fc4e2;
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 12px 26px rgba(23, 105, 170, 0.14);
}

.admin-nav-group a.active .admin-nav-icon {
    background: var(--brand);
    color: #fff;
}

.admin-nav-group a.active .admin-nav-copy strong {
    color: var(--brand-dark);
}

@media (max-width: 1180px) {
    .admin-layout {
        grid-template-columns: 246px minmax(0, 1fr);
    }
}

@media (max-width: 820px) {
    .admin-layout {
        display: block;
    }

    .admin-nav-shell {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .admin-nav-brand {
        display: none;
    }

    .admin-nav-inner {
        grid-auto-flow: column;
        grid-auto-columns: minmax(210px, max-content);
        gap: 10px;
        overflow-x: auto;
    }

    .admin-nav-group a {
        grid-template-columns: 32px minmax(86px, 1fr);
        min-height: 54px;
        padding: 8px;
    }

    .admin-nav-icon {
        width: 32px;
        height: 32px;
    }
}

.admin-page {
    width: 100%;
    margin: 0;
    padding: 22px 22px 32px;
}

.admin-footer {
    margin: 0;
    padding: 18px 22px;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}

.admin-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-page-head h1 {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 850;
    letter-spacing: 0;
}

.admin-page-head p:not(.eyebrow) {
    margin: 4px 0 0;
    color: var(--muted);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.stat-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 94px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.stat-card i {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: #e8f2fb;
    color: var(--brand);
    font-size: 1.25rem;
    grid-row: span 2;
}

.stat-card span {
    color: var(--muted);
    font-weight: 800;
}

.stat-card strong {
    font-size: 1.45rem;
    line-height: 1;
}

.admin-workbench {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.work-card {
    display: grid;
    gap: 8px;
    min-height: 170px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    text-decoration: none;
    box-shadow: var(--shadow);
}

.work-card:hover,
.work-card:focus {
    border-color: var(--brand);
    color: var(--text);
    transform: translateY(-1px);
}

.work-card i {
    color: var(--brand);
    font-size: 1.45rem;
}

.work-card strong {
    font-size: 1.08rem;
}

.work-card span,
.quick-links span,
.stack-item span {
    color: var(--muted);
}

.work-card.primary {
    background: #f2f8fd;
    border-color: #bdd3e8;
}

.admin-grid {
    display: grid;
    gap: 14px;
}

.admin-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-grid.sidebar-main {
    grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
}

.admin-tabs {
    margin-top: 8px;
    border-bottom-color: var(--line);
}

.admin-tabs .nav-link {
    color: var(--muted);
    font-weight: 850;
}

.admin-tabs .nav-link.active {
    color: var(--brand-dark);
    border-color: var(--line) var(--line) var(--surface);
}

.admin-tab-content {
    padding-top: 14px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.quick-links a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    color: var(--text);
    text-decoration: none;
    font-weight: 800;
}

.quick-links i {
    color: var(--brand);
}

.stack-list {
    display: grid;
    gap: 8px;
}

.stack-list.compact {
    gap: 6px;
}

.stack-item {
    display: grid;
    gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    overflow-wrap: anywhere;
}

.stack-item.muted {
    opacity: 0.72;
}

.system-status {
    margin-bottom: 14px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    font-weight: 800;
}

.system-status.success {
    border-color: #9fd4bf;
    background: #edf9f3;
    color: #126142;
}

.system-status.warning {
    border-color: #f1ce85;
    background: #fff7e6;
    color: #855d10;
}

.system-status.danger {
    border-color: #efb6a1;
    background: #fff1ec;
    color: #9a3412;
}

.backup-facts {
    display: grid;
    gap: 8px;
}

.backup-facts div {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.backup-facts span {
    color: var(--muted);
    font-weight: 800;
}

.backup-facts strong {
    overflow-wrap: anywhere;
}

.admin-note {
    margin-top: 14px;
    padding: 12px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--muted);
}

.admin-note code {
    display: block;
    margin-top: 6px;
    color: var(--text);
    white-space: normal;
}

.compact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.category-filter-list {
    display: grid;
    gap: 8px;
}

.category-filter {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
    cursor: pointer;
}

.category-filter span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 800;
}

.category-filter i,
.category-overview-row > span {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.item-admin-list {
    display: grid;
    gap: 8px;
}

.item-admin-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.item-admin-thumb {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--brand);
    overflow: hidden;
}

.item-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-admin-main {
    min-width: 0;
}

.item-admin-main strong,
.item-admin-main span,
.item-admin-main small {
    display: block;
    overflow-wrap: anywhere;
}

.item-admin-main span,
.item-admin-main small {
    color: var(--muted);
}

.item-admin-side {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.item-admin-side strong {
    color: var(--success);
    white-space: nowrap;
}

.item-editor-modal .modal-dialog {
    --bs-modal-width: min(1320px, calc(100vw - 28px));
}

.item-editor-modal .modal-content {
    border: 0;
    border-radius: 8px;
    overflow: hidden;
}

.item-editor-modal .modal-header,
.item-editor-modal .modal-footer {
    background: #fbfdff;
}

.schema-warning {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #facc15;
    border-radius: 8px;
    background: #fffbeb;
    color: #713f12;
}

.item-editor-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.item-editor-side,
.item-editor-main {
    min-width: 0;
}

.quick-item-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.quick-item-side,
.quick-item-main {
    min-width: 0;
}

.quick-item-side {
    position: sticky;
    top: 0;
    display: grid;
    gap: 10px;
}

.quick-item-main {
    display: grid;
    gap: 12px;
}

.item-editor-side {
    position: sticky;
    top: 0;
    display: grid;
    gap: 10px;
}

.item-image-stage {
    display: grid;
    place-items: center;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--brand);
    font-size: 2rem;
    overflow: hidden;
}

.item-image-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}

.open-data-box {
    margin-top: 6px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.open-data-box small {
    display: block;
    margin-top: 8px;
}

.open-data-result {
    margin-top: 10px;
}

.open-data-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.open-data-card.danger {
    display: block;
    color: var(--danger);
}

.open-data-card img,
.open-data-empty {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    background: var(--surface-2);
    object-fit: cover;
}

.open-data-empty {
    display: grid;
    place-items: center;
    color: var(--brand);
}

.open-data-card strong,
.open-data-card small {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.item-editor-tabs {
    gap: 8px;
    margin-bottom: 12px;
}

.item-editor-tabs .nav-link {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font-weight: 800;
}

.item-editor-tabs .nav-link.active {
    background: var(--brand);
    border-color: var(--brand);
}

.item-editor-content {
    min-height: 510px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.editor-grid {
    display: grid;
    gap: 10px 12px;
}

.editor-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editor-check {
    display: flex;
    align-items: center;
    min-height: 74px;
    padding-top: 28px;
}

.mono-field {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
}

.category-overview {
    display: grid;
    gap: 8px;
}

.category-overview-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.category-overview-main {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.category-overview-row strong,
.category-overview-main small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-overview-row strong {
    overflow-wrap: anywhere;
}

.category-overview-row small {
    color: var(--muted);
}

.deposit-preset-list {
    display: grid;
    gap: 10px;
}

.deposit-preset-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 120px 110px auto;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}

.deposit-preset-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
}

.deposit-preset-actions .form-check {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    white-space: nowrap;
}

/* Scanner */
.scanner-page {
    min-height: 100vh;
    background: #edf3f8;
    padding: 18px;
}

.scanner-shell {
    display: grid;
    gap: 12px;
    width: min(760px, 100%);
    margin: 0 auto;
}

.scanner-hero,
.scanner-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.scanner-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
}

.scanner-hero h1 {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 850;
}

.scanner-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 11px;
    border-radius: 999px;
    font-weight: 850;
    white-space: nowrap;
}

.scanner-pill.online {
    background: #edf9f3;
    color: #126142;
}

.scanner-pill.waiting {
    background: #fff7e6;
    color: #855d10;
}

.scanner-pill.offline {
    background: var(--surface-2);
    color: var(--muted);
}

.scanner-card {
    padding: 14px;
}

.scanner-camera-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 390px;
    overflow: hidden;
    border-radius: 8px;
    background: #101827;
}

.scanner-camera-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-window {
    position: absolute;
    inset: 20%;
    border: 2px solid rgba(255, 255, 255, 0.88);
    border-radius: 8px;
    box-shadow: 0 0 0 999px rgba(15, 23, 42, 0.32);
}

.scan-window span {
    position: absolute;
    left: 10%;
    right: 10%;
    top: 50%;
    height: 2px;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
}

.scanner-controls {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.mobile-scanner-status,
.last-scan-box {
    margin-top: 12px;
    padding: 11px;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    font-weight: 750;
}

.manual-scan-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

#cameraContainer {
    position: relative;
}

#video {
    border-radius: 8px;
}

@media print {
    .no-print,
    .navbar,
    .btn,
    footer {
        display: none !important;
    }

    body.printing-card * {
        visibility: hidden !important;
    }

    body.printing-card .print-card-design,
    body.printing-card .print-card-design * {
        visibility: visible !important;
    }

    body.printing-card .print-card-design {
        position: fixed;
        top: 0;
        left: 0;
        box-shadow: none;
    }

    body.printing-card .modal,
    body.printing-card .modal-dialog,
    body.printing-card .modal-content,
    body.printing-card .modal-body,
    body.printing-card .print-card-stage {
        display: block !important;
        visibility: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body.printing-statement * {
        visibility: hidden !important;
    }

    body.printing-statement .bank-statement-print,
    body.printing-statement .bank-statement-print * {
        visibility: visible !important;
    }

    body.printing-statement .bank-statement-print {
        position: fixed;
        top: 0;
        left: 0;
        width: 190mm;
        margin: 0;
        padding: 10mm;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.printing-statement .bank-statement-print footer {
        display: block !important;
    }
}

@media (max-width: 1180px) {
    .landing-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pos-layout {
        grid-template-columns: 1fr 1fr;
    }

    .pos-side {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-stats,
    .admin-workbench {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-grid.two,
    .admin-grid.sidebar-main {
        grid-template-columns: 1fr;
    }

    .item-editor-shell {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .editor-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .landing-hero {
        min-height: 70vh;
        padding: 24px 16px;
    }

    .landing-actions,
    .landing-actions .btn,
    .landing-strip-actions,
    .landing-strip-actions a {
        width: 100%;
    }

    .landing-feature-band {
        margin-top: -18px;
        padding: 0 12px 20px;
    }

    .landing-feature-grid,
    .landing-login-strip {
        grid-template-columns: 1fr;
    }

    .landing-login-strip {
        flex-direction: column;
        align-items: stretch;
    }

    .customer-card-row {
        grid-template-columns: 1fr;
    }

    .customer-card-actions {
        justify-content: stretch;
    }

    .customer-card-actions .btn {
        flex: 1 1 auto;
    }

    .user-card-row,
    .user-card-actions-grid {
        grid-template-columns: 1fr;
    }

    .user-card-row-end {
        justify-content: stretch;
    }

    .kika-page,
    .pos-app {
        padding: 10px;
    }

    .pos-toolbar,
    .pos-layout,
    .pos-side,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .pos-search {
        grid-template-columns: 42px 1fr;
    }

    .pos-search .btn {
        grid-column: 1 / -1;
    }

    .receipt-line {
        grid-template-columns: 1fr;
    }

    .line-actions {
        grid-template-columns: 34px 54px 34px minmax(76px, 1fr) 34px;
    }

    .admin-page {
        padding: 12px 10px 24px;
    }

    .admin-footer {
        padding: 16px 10px;
    }

    .admin-page-head {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-stats,
    .admin-workbench,
    .quick-links {
        grid-template-columns: 1fr;
    }

    .admin-nav-inner {
        padding: 8px 10px;
    }

    .item-admin-row {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .item-admin-side {
        grid-column: 1 / -1;
        justify-items: stretch;
    }

    .item-editor-shell,
    .quick-item-layout,
    .editor-grid.two,
    .editor-grid.three,
    .schema-warning,
    .open-data-card {
        grid-template-columns: 1fr;
    }

    .item-editor-side,
    .quick-item-side {
        position: static;
    }

    .item-image-stage {
        max-height: 260px;
    }

    .item-editor-content {
        min-height: auto;
    }

    .category-overview-row,
    .deposit-preset-row,
    .backup-facts div {
        grid-template-columns: 1fr;
    }

    .scanner-page {
        padding: 10px;
    }

    .scanner-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .scanner-controls,
    .manual-scan-row,
    .scanner-status-card {
        grid-template-columns: 1fr;
    }

    .scanner-status-card {
        justify-items: start;
    }
}
