html,
body {
    margin: 0;
    padding: 0;
    background: #eef2f4;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    touch-action: pan-y;
    -webkit-text-size-adjust: 100%;
}

* {
    box-sizing: border-box;
}

.erk-kasse-body {
    background: #eef2f4;
    color: #152033;
}

.erk-kasse-app {
    min-height: 100vh;
    background: #eef2f4;
}

.erk-kasse-shell {
    min-height: 100vh;
    padding: 14px 14px 112px;
}

.erk-screen[hidden],
.erk-kasse-step-panel[hidden] {
    display: none !important;
}

/* =========================================================
   STARTANSICHT
   ========================================================= */

.erk-app-header {
    margin-bottom: 16px;
}

.erk-app-header-inner {
    background: #0a366f;
    color: #ffffff;
    border-radius: 24px;
    padding: 22px 18px;
    box-shadow: 0 10px 24px rgba(10, 54, 111, 0.16);
}

.erk-app-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.erk-app-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.erk-app-logo {
    width: 84px;
    height: auto;
    flex-shrink: 0;
    align-self: flex-start;
}

.erk-app-header h1 {
    color: #c7d0db;
}

.erk-app-header h1 {
    margin: 0 0 8px;
    font-size: 40px;
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.erk-app-header p {
    margin: 0;
    font-size: 16.2px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
}

.erk-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.erk-home-tile {
    appearance: none;
    position: relative;
    border: 2px solid transparent;
    border-radius: 24px;
    aspect-ratio: 1 / 1;
    min-height: 168px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 8px 20px rgba(21, 32, 51, 0.08);
}

.erk-home-tile:active {
    transform: scale(0.98);
}

.erk-home-tile[data-open-screen="kasse"] {
    background: #0a366f;
    color: #ffffff;
}

.erk-home-tile[data-open-screen="cocktails"] {
    background: #0f7a6a;
    color: #ffffff;
}

.erk-home-tile[data-open-screen="statistik"] {
    background: #79be20;
    color: #17301f;
}

.erk-home-tile[data-open-screen="einstellungen"] {
    background: #ffffff;
    color: #152033;
    border-color: #d4dce6;
}

.erk-home-tile::before {
    content: "";
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 22px;
    background: #ffffff;
    border: 2px solid rgba(10, 54, 111, 0.08);
    box-shadow: 0 4px 10px rgba(10, 54, 111, 0.08);
    flex-shrink: 0;
}

.erk-home-tile[data-open-screen="einstellungen"]::before {
    background: #f7fafc;
    border-color: #d8e0ea;
}

.erk-home-tile::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    transform: translate(-50%, calc(-50% - 22px));
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.erk-home-tile[data-open-screen="kasse"]::after {
    background-image: url("icons/icon-kasse.svg");
}

.erk-home-tile[data-open-screen="cocktails"]::after {
    background-image: url("icons/icon-cocktails.svg");
}

.erk-home-tile[data-open-screen="statistik"]::after {
    background-image: url("icons/icon-statistik.svg");
}

.erk-home-tile[data-open-screen="einstellungen"]::after {
    background-image: url("icons/icon-einstellungen.svg");
}

.erk-home-tile-title {
    display: block;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-align: center;
}

.erk-home-tile-text {
    display: none;
}

/* =========================================================
   ALLGEMEINE KARTEN
   ========================================================= */

.erk-section-card,
.erk-kasse-flow-header,
.erk-kasse-card {
    background: #ffffff;
    border-radius: 22px;
    padding: 18px 16px;
    box-shadow: 0 8px 20px rgba(21, 32, 51, 0.07);
}

.erk-section-card h2,
.erk-kasse-flow-header h2,
.erk-kasse-card h3 {
    margin: 0 0 10px;
    color: #152033;
    letter-spacing: -0.02em;
}

.erk-section-card h2 {
    font-size: 29px;
    line-height: 1.15;
}

.erk-kasse-flow-header h2,
.erk-kasse-card h3 {
    font-size: 36px;
    line-height: 1.08;
}

.erk-section-card p,
.erk-kasse-flow-header p,
.erk-kasse-card p {
    margin: 0;
    font-size: 18px;
    line-height: 1.5;
    color: #5b6a80;
}

/* =========================================================
   KASSENSTART
   ========================================================= */

.erk-kasse-flow {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.erk-kasse-flow-badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 7px 10px;
    border-radius: 999px;
    background: #e8eef6;
    color: #0a366f;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.erk-kasse-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.erk-kasse-step {
    appearance: none;
    border: 2px solid #d9e1ea;
    border-radius: 18px;
    background: #ffffff;
    min-height: 72px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #55647a;
    cursor: pointer;
}

.erk-kasse-step:active {
    transform: scale(0.98);
}

.erk-kasse-step.is-active {
    background: #0a366f;
    border-color: #0a366f;
    color: #ffffff;
}

.erk-kasse-step-number {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

.erk-kasse-step:not(.is-active) .erk-kasse-step-number {
    background: #e9eef4;
    color: #42546b;
}

.erk-kasse-step-label {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.erk-kasse-step-panels {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.erk-kasse-card-success {
    border: 2px solid #cfe6d0;
    background: #ffffff;
}

.erk-kasse-inline-note {
    margin-top: 14px !important;
    font-size: 17px;
    line-height: 1.5;
    color: #4b5d73;
}

/* =========================================================
   DRINK-AUSWAHL
   ========================================================= */

.erk-drink-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 18px;
}

.erk-drink-btn {
    appearance: none;
    position: relative;
    border: 2px solid #d8e0e8;
    border-radius: 24px;
    background: #f9fbfc;
    color: #152033;
    min-height: 250px;
    padding: 14px 12px 16px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-shadow: none;
    transition: 0.2s ease;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.25;
    overflow: hidden;
    white-space: normal;
    word-break: break-word;
}

.erk-drink-btn:active {
    transform: scale(0.98);
}

.erk-drink-btn::before {
    content: "";
    display: block;
    width: 74%;
    height: 150px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background-color: #e5ebf1;
    background-image: var(--erk-drink-image);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border: 2px solid #d8e0e8;
    flex-shrink: 0;
}

.erk-drink-btn[data-drink-image-status="image"]::before {
    background-color: #ffffff;
    border-style: solid;
    border-color: #d5dee8;
}

.erk-drink-btn[data-drink-image-status="placeholder"]::before {
    background-image: linear-gradient(135deg, rgba(10, 54, 111, 0.08), rgba(15, 122, 106, 0.12));
    border-style: dashed;
    border-color: #bfd0dd;
}

.erk-drink-btn[data-drink-image-status="placeholder"]::after {
    content: "Bild folgt";
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
    border: 2px dashed #9bb0c4;
    color: #49627d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
}

.erk-drink-btn.is-active {
    background: #eaf6ea;
    border-color: #2f7d32;
    color: #153022;
    box-shadow: 0 0 0 2px rgba(47, 125, 50, 0.12);
}

.erk-drink-btn.is-active::before {
    border-color: #2f7d32;
}

.erk-drink-btn.is-active[data-drink-image-status="placeholder"]::after {
    border-color: #2f7d32;
    color: #1f5c29;
}

/* =========================================================
   COCKTAILS / VERWALTUNG
   ========================================================= */

.erk-cocktail-admin-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.erk-cocktail-admin-card {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid #dbe3ec;
    border-radius: 20px;
    background: #f8fafc;
}

.erk-cocktail-admin-image {
    position: relative;
    width: 100%;
    height: 108px;
    border-radius: 18px;
    background-color: #ffffff;
    background-image: var(--erk-cocktail-image);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 2px solid #d5dee8;
    overflow: hidden;
}

.erk-cocktail-admin-card[data-cocktail-admin-image-status="placeholder"] .erk-cocktail-admin-image {
    background-image: linear-gradient(135deg, rgba(10, 54, 111, 0.08), rgba(15, 122, 106, 0.12));
    border-style: dashed;
    border-color: #bfd0dd;
}

.erk-cocktail-admin-image-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.15;
    color: #49627d;
}

.erk-cocktail-admin-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.erk-cocktail-admin-head h4 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #152033;
}

.erk-cocktail-admin-head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    color: #5b6a80;
}

.erk-cocktail-admin-values {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e1e8f0;
}

.erk-cocktail-admin-value-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    line-height: 1.4;
    color: #5a6b81;
}

.erk-cocktail-admin-value-row strong {
    color: #152033;
    text-align: right;
    font-size: 15px;
}

.erk-cocktail-admin-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.erk-cocktail-admin-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

.erk-cocktail-admin-switch-field,
.erk-cocktail-admin-price-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.erk-cocktail-admin-switch-field {
    flex: 1 1 auto;
    min-width: 0;
}

.erk-cocktail-admin-price-field {
    flex: 0 0 auto;
}

.erk-cocktail-admin-switch-field > span,
.erk-cocktail-admin-price-field > span {
    font-size: 15px;
    font-weight: 700;
    color: #24344d;
}

.erk-cocktail-admin-input-wrap input {
    width: 92px;
    height: 48px;
    border: 2px solid #d3dce8;
    border-radius: 16px;
    background: #ffffff;
    padding: 0 12px;
    font-size: 17px;
    color: #152033;
    outline: none;
    appearance: none;
    text-align: center;
}

.erk-cocktail-admin-input-wrap input:focus {
    border-color: #0a366f;
    box-shadow: 0 0 0 3px rgba(10, 54, 111, 0.08);
}

.erk-cocktail-admin-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.erk-cocktail-admin-input-wrap span {
    min-width: 16px;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #4b5d73;
}

.erk-cocktail-admin-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
}

.erk-cocktail-admin-switch input {
    position: absolute;
    top: 0;
    left: 0;
    width: 58px;
    height: 34px;
    margin: 0;
    opacity: 0;
    cursor: grab;
    z-index: 2;
}

.erk-cocktail-admin-switch input:active {
    cursor: grabbing;
}

.erk-cocktail-admin-switch-slider {
    position: relative;
    width: 58px;
    height: 34px;
    border-radius: 999px;
    background: #d7e0ea;
    border: 2px solid #c6d2de;
    transition: background 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.erk-cocktail-admin-switch-slider::before {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(21, 32, 51, 0.18);
    transition: transform 0.2s ease;
}

.erk-cocktail-admin-switch-status {
    font-size: 14px;
    font-weight: 700;
    color: #7a3f16;
    white-space: nowrap;
}

.erk-cocktail-admin-switch input:checked + .erk-cocktail-admin-switch-slider {
    background: #0f7a6a;
    border-color: #0f7a6a;
}

.erk-cocktail-admin-switch input:checked + .erk-cocktail-admin-switch-slider::before {
    transform: translateX(24px);
}

.erk-cocktail-admin-switch input:checked ~ .erk-cocktail-admin-switch-status {
    display: none;
}

.erk-cocktail-admin-switch input:focus-visible + .erk-cocktail-admin-switch-slider {
    box-shadow: 0 0 0 3px rgba(10, 54, 111, 0.12);
}


.erk-cocktail-discount-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.erk-cocktail-discount-card {
    padding: 12px;
    border: 1px solid #dbe3ec;
    border-radius: 18px;
    background: #f8fafc;
}

.erk-cocktail-discount-head h4 {
    margin: 0 0 3px;
    font-size: 20px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #152033;
}

.erk-cocktail-discount-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #5b6a80;
}

.erk-cocktail-discount-fields {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr 0.85fr;
    gap: 8px;
    margin-top: 12px;
}

.erk-cocktail-discount-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.erk-cocktail-discount-field > span {
    font-size: 14px;
    font-weight: 700;
    color: #24344d;
}

.erk-cocktail-discount-field input,
.erk-cocktail-discount-field select {
    width: 100%;
    height: 44px;
    border: 2px solid #d3dce8;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 12px;
    font-size: 16px;
    color: #152033;
    outline: none;
    appearance: none;
}

.erk-cocktail-discount-field input:focus,
.erk-cocktail-discount-field select:focus {
    border-color: #0a366f;
    box-shadow: 0 0 0 3px rgba(10, 54, 111, 0.08);
}

.erk-cocktail-discount-value-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.erk-cocktail-discount-value-wrap input {
    text-align: center;
}

.erk-cocktail-discount-value-wrap span {
    min-width: 34px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: #4b5d73;
}

.erk-cocktail-discount-field.is-hidden {
    display: none;
}

.erk-cocktail-discount-field-quantity {
    grid-column: 1 / -1;
}

.erk-cocktail-discount-quantity-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.erk-cocktail-discount-quantity-box {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.erk-cocktail-discount-quantity-box span {
    font-size: 13px;
    font-weight: 700;
    color: #4b5d73;
}

.erk-cocktail-discount-quantity-box input {
    width: 100%;
    height: 44px;
    border: 2px solid #d3dce8;
    border-radius: 14px;
    background: #ffffff;
    padding: 0 12px;
    font-size: 16px;
    color: #152033;
    outline: none;
    text-align: center;
}

.erk-cocktail-discount-quantity-box input:focus {
    border-color: #0a366f;
    box-shadow: 0 0 0 3px rgba(10, 54, 111, 0.08);
}

.erk-cocktail-discount-quantity-note {
    margin: 8px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #5b6a80;
}

.erk-cocktail-setup-panels .erk-kasse-step-panel.is-locked .erk-kasse-card {
    background: #f3f6f8;
}

.erk-cocktail-setup-panels .erk-kasse-step-panel.is-locked .erk-cocktail-admin-card,
.erk-cocktail-setup-panels .erk-kasse-step-panel.is-locked .erk-summary-box,
.erk-cocktail-setup-panels .erk-kasse-step-panel.is-locked .erk-cocktail-discount-card,
.erk-cocktail-setup-panels .erk-kasse-step-panel.is-locked .erk-input-row {
    opacity: 0.62;
}

.erk-cocktail-setup-panels .erk-kasse-step-panel.is-locked .erk-kasse-actions .erk-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================================
   INPUTS / FORM
   ========================================================= */

.erk-input-label {
    display: block;
    margin-top: 16px;
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #24344d;
}

.erk-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.erk-input-row input {
    width: 100%;
    height: 56px;
    border: 2px solid #d3dce8;
    border-radius: 18px;
    background: #ffffff;
    padding: 0 15px;
    font-size: 20px;
    color: #152033;
    outline: none;
}

.erk-input-row input:focus {
    border-color: #0a366f;
    box-shadow: 0 0 0 3px rgba(10, 54, 111, 0.08);
}

.erk-input-addon {
    min-width: 42px;
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    color: #4b5d73;
}

/* =========================================================
   ZUSAMMENFASSUNG
   ========================================================= */

.erk-summary-box {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #f7f9fb;
    border: 1px solid #e1e8f0;
}

.erk-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    font-size: 18px;
    line-height: 1.5;
    color: #5a6b81;
}

.erk-summary-row strong {
    color: #152033;
    text-align: right;
    font-size: 18px;
}

/* =========================================================
   BUTTONS / AKTIONEN
   ========================================================= */

.erk-kasse-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.erk-btn {
    appearance: none;
    border: none;
    border-radius: 18px;
    min-height: 54px;
    padding: 0 16px;
    font-size: 19px;
    font-weight: 800;
    cursor: pointer;
    flex: 1 1 auto;
}

.erk-btn:active {
    transform: scale(0.98);
}

.erk-btn-primary {
    background: #0a366f;
    color: #ffffff;
}

.erk-btn-secondary {
    background: #e8eef4;
    color: #24344d;
}

/* =========================================================
   BOTTOM NAV
   ========================================================= */

.erk-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid #d8e1eb;
    box-shadow: 0 -8px 24px rgba(20, 32, 51, 0.08);
}

.erk-bottom-nav-btn {
    appearance: none;
    border: 2px solid transparent;
    border-radius: 16px;
    height: 50px;
    background: #e8eef4;
    color: #42546b;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: -0.01em;
}

.erk-bottom-nav-btn:active {
    transform: scale(0.98);
}

.erk-bottom-nav-btn.is-active {
    background: #0a366f;
    color: #ffffff;
    border-color: #0a366f;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .erk-home-grid {
        gap: 18px;
    }

    .erk-home-tile {
        min-height: 430px;
        padding: 348px 22px 28px;
        border-radius: 28px;
        justify-content: flex-start;
        gap: 0;
    }

    .erk-home-tile::before {
        position: absolute;
        top: 54px;
        left: 50%;
        width: 252px;
        height: 252px;
        border-radius: 42px;
        transform: translateX(-50%);
    }

    .erk-home-tile::after {
        position: absolute;
        top: 105px;
        left: 50%;
        width: 150px;
        height: 150px;
        transform: translateX(-50%);
    }

    .erk-home-tile-title {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 96px;
        margin-top: 22px;
        font-size: 48px;
        line-height: 1.04;
    }

    .erk-home-tile[data-open-screen="cocktails"]::after {
        width: 168px;
        height: 168px;
        top: 96px;
    }
}

@media (min-width: 1025px) and (max-width: 1366px) {
    .erk-home-grid {
        gap: 22px;
    }

    .erk-home-tile {
        min-height: 470px;
        padding: 372px 26px 32px;
        border-radius: 30px;
        justify-content: flex-start;
        gap: 0;
    }

    .erk-home-tile::before {
        position: absolute;
        top: 58px;
        left: 50%;
        width: 276px;
        height: 276px;
        border-radius: 46px;
        transform: translateX(-50%);
    }

    .erk-home-tile::after {
        position: absolute;
        top: 114px;
        left: 50%;
        width: 164px;
        height: 164px;
        transform: translateX(-50%);
    }

    .erk-home-tile-title {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 108px;
        margin-top: 24px;
        font-size: 52px;
        line-height: 1.04;
    }

    .erk-home-tile[data-open-screen="cocktails"]::after {
        width: 182px;
        height: 182px;
        top: 105px;
    }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 481px) and (max-width: 767px) {
    .erk-home-grid {
        gap: 14px;
    }

    .erk-home-tile {
        min-height: 214px;
        padding: 128px 14px 20px;
        border-radius: 24px;
        justify-content: flex-start;
        gap: 0;
    }

    .erk-home-tile::before {
        position: absolute;
        top: 20px;
        left: 50%;
        width: 102px;
        height: 102px;
        border-radius: 24px;
        transform: translateX(-50%);
    }

    .erk-home-tile::after {
        position: absolute;
        top: 33px;
        left: 50%;
        width: 76px;
        height: 76px;
        transform: translateX(-50%);
    }

    .erk-home-tile-title {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 64px;
        margin-top: 10px;
        font-size: 24px;
        line-height: 1.08;
    }

    .erk-home-tile[data-open-screen="cocktails"] .erk-home-tile-title {
        margin-top: 10px;
    }

    .erk-home-tile:not([data-open-screen="cocktails"]) .erk-home-tile-title {
        margin-top: 14px;
    }

    .erk-home-tile[data-open-screen="cocktails"]::after {
        width: 84px;
        height: 84px;
        top: 29px;
    }
}

@media (max-width: 900px) {
    .erk-cocktail-discount-card {
        padding: 11px;
        border-radius: 17px;
    }

    .erk-cocktail-discount-head h4 {
        font-size: 19px;
    }

    .erk-cocktail-discount-head p,
    .erk-cocktail-discount-field > span,
    .erk-cocktail-discount-value-wrap span {
        font-size: 13px;
    }

    .erk-cocktail-discount-fields {
        grid-template-columns: 1.05fr 0.95fr 0.8fr;
        gap: 7px;
        margin-top: 10px;
    }

    .erk-cocktail-discount-field-value,
    .erk-cocktail-discount-field-quantity {
        grid-column: 1 / -1;
    }

    .erk-cocktail-discount-field input,
    .erk-cocktail-discount-field select,
    .erk-cocktail-discount-quantity-box input {
        height: 42px;
        font-size: 15px;
        padding: 0 10px;
    }

    .erk-cocktail-discount-quantity-grid {
        gap: 7px;
    }
}

@media (max-width: 480px) {
    .erk-app-logo {
        width: 70px;
    }

    .erk-kasse-shell {
        padding: 12px 12px 104px;
    }

    .erk-app-header-inner {
        border-radius: 22px;
        padding: 20px 16px;
    }

    .erk-app-header h1 {
        font-size: 34px;
    }

    .erk-app-header p {
        font-size: 14.6px;
    }

    .erk-sale-payment-grid {
        grid-template-columns: 1fr;
    }

    .erk-return-box,
    .erk-return-counter-box,
    .erk-return-summary-box {
        border-radius: 16px;
    }

    .erk-home-grid {
        gap: 12px;
    }

    .erk-home-tile {
        min-height: 178px;
        padding: 104px 12px 18px;
        border-radius: 22px;
        justify-content: flex-start;
        gap: 0;
    }

    .erk-home-tile::before {
        position: absolute;
        top: 18px;
        left: 50%;
        width: 84px;
        height: 84px;
        border-radius: 22px;
        transform: translateX(-50%);
    }

    .erk-home-tile::after {
        position: absolute;
        top: 28px;
        left: 50%;
        width: 65px;
        height: 65px;
        transform: translateX(-50%);
    }

    .erk-home-tile-title {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 54px;
        margin-top: 8px;
        font-size: 21px;
        line-height: 1.08;
    }

    .erk-home-tile[data-open-screen="cocktails"] .erk-home-tile-title {
        margin-top: 8px;
    }

    .erk-home-tile:not([data-open-screen="cocktails"]) .erk-home-tile-title {
        margin-top: 11px;
    }

    .erk-home-tile[data-open-screen="cocktails"]::after {
        width: 72px;
        height: 72px;
        top: 24px;
    }

    .erk-kasse-flow-header,
    .erk-kasse-card,
    .erk-section-card {
        padding: 16px 14px;
        border-radius: 20px;
    }

    .erk-kasse-flow-header h2,
    .erk-kasse-card h3 {
        font-size: 30px;
    }

    .erk-kasse-flow-header p,
    .erk-kasse-card p,
    .erk-section-card p {
        font-size: 16px;
    }

    .erk-kasse-step {
        min-height: 64px;
        border-radius: 16px;
        padding: 8px 4px;
    }

    .erk-kasse-step-number {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .erk-kasse-step-label {
        font-size: 12px;
    }

    .erk-drink-grid {
        gap: 10px;
    }

    .erk-drink-btn {
        min-height: 224px;
        padding: 12px 10px 14px;
        font-size: 16px;
    }

    .erk-drink-btn::before {
        width: 72%;
        height: 128px;
        margin-bottom: 12px;
        border-radius: 16px;
    }

    .erk-drink-btn[data-drink-image-status="placeholder"]::after {
        top: 42px;
        width: 60px;
        height: 60px;
        font-size: 12px;
        border-radius: 16px;
    }

    .erk-cocktail-admin-card {
        grid-template-columns: 96px 1fr;
        gap: 12px;
        padding: 12px;
        border-radius: 18px;
    }

    .erk-cocktail-admin-image {
        height: 96px;
        border-radius: 16px;
    }

    .erk-cocktail-admin-head h4 {
        font-size: 19px;
    }

    .erk-cocktail-admin-head p,
    .erk-cocktail-admin-value-row,
    .erk-cocktail-admin-value-row strong,
    .erk-cocktail-admin-switch-field > span,
    .erk-cocktail-admin-price-field > span {
        font-size: 14px;
    }

    .erk-cocktail-admin-input-wrap input {
        width: 82px;
        height: 44px;
        font-size: 16px;
        border-radius: 14px;
    }

    .erk-cocktail-admin-input-wrap span {
        font-size: 16px;
    }

    .erk-cocktail-admin-switch {
        gap: 8px;
        min-height: 32px;
    }

    .erk-cocktail-admin-switch input {
        width: 54px;
        height: 32px;
    }

    .erk-cocktail-admin-switch-slider {
        width: 54px;
        height: 32px;
    }

    .erk-cocktail-admin-switch-slider::before {
        width: 22px;
        height: 22px;
    }

    .erk-cocktail-admin-switch-status {
        font-size: 13px;
    }


    .erk-cocktail-discount-card {
        padding: 10px;
        border-radius: 16px;
    }

    .erk-cocktail-discount-head h4 {
        font-size: 18px;
    }

    .erk-cocktail-discount-head p,
    .erk-cocktail-discount-field > span,
    .erk-cocktail-discount-value-wrap span {
        font-size: 13px;
    }

    .erk-cocktail-discount-fields {
        grid-template-columns: 1fr;
        gap: 7px;
        margin-top: 9px;
    }

    .erk-cocktail-discount-field-value,
    .erk-cocktail-discount-field-quantity {
        grid-column: auto;
    }

    .erk-cocktail-discount-field input,
    .erk-cocktail-discount-field select,
    .erk-cocktail-discount-quantity-box input {
        height: 42px;
        font-size: 15px;
        padding: 0 10px;
    }

    .erk-cocktail-discount-quantity-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .erk-cocktail-discount-quantity-note {
        margin-top: 7px;
        font-size: 12px;
    }

    .erk-cocktail-admin-switch input:checked + .erk-cocktail-admin-switch-slider::before {
        transform: translateX(22px);
    }

    .erk-input-label,
    .erk-summary-row,
    .erk-summary-row strong {
        font-size: 16px;
    }

    .erk-input-row input {
        height: 52px;
        font-size: 18px;
    }

    .erk-btn {
        min-height: 50px;
        font-size: 17px;
    }

    .erk-bottom-nav {
        gap: 6px;
        padding: 9px 8px calc(9px + env(safe-area-inset-bottom));
    }

    .erk-bottom-nav-btn {
        height: 46px;
        font-size: 13px;
    }

    .erk-bottom-nav-btn[data-open-screen="cocktails"] {
        font-size: 12px;
        line-height: 1.05;
        padding: 0 4px;
    }
}

@media (max-width: 380px) {
    .erk-home-tile {
        min-height: 164px;
        padding: 96px 10px 16px;
    }

    .erk-home-tile::before {
        top: 16px;
        left: 50%;
        width: 74px;
        height: 74px;
        border-radius: 20px;
        transform: translateX(-50%);
    }

    .erk-home-tile::after {
        position: absolute;
        top: 24px;
        left: 50%;
        width: 57px;
        height: 57px;
        transform: translateX(-50%);
    }

    .erk-home-tile-title {
        min-height: 48px;
        margin-top: 7px;
        font-size: 18px;
    }

    .erk-home-tile[data-open-screen="cocktails"] .erk-home-tile-title {
        margin-top: 7px;
    }

    .erk-home-tile:not([data-open-screen="cocktails"]) .erk-home-tile-title {
        margin-top: 10px;
    }

    .erk-home-tile[data-open-screen="cocktails"]::after {
        width: 63px;
        height: 63px;
        top: 20px;
    }

    .erk-drink-btn {
        min-height: 206px;
        font-size: 14px;
    }

    .erk-drink-btn::before {
        width: 70%;
        height: 114px;
    }

    .erk-drink-btn[data-drink-image-status="placeholder"]::after {
        top: 38px;
        width: 54px;
        height: 54px;
        font-size: 11px;
        border-radius: 14px;
    }

    .erk-cocktail-admin-card {
        grid-template-columns: 1fr;
    }

    .erk-cocktail-admin-image {
        width: 96px;
        height: 96px;
    }

    .erk-cocktail-admin-row {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .erk-cocktail-admin-price-field {
        width: 100%;
    }

    .erk-cocktail-admin-input-wrap input {
        width: 78px;
    }

    .erk-kasse-step-label {
        font-size: 11px;
    }

    .erk-bottom-nav-btn {
        font-size: 12px;
    }

    .erk-bottom-nav-btn[data-open-screen="cocktails"] {
        font-size: 11px;
        line-height: 1.02;
        padding: 0 3px;
    }
}

/* =========================================================
   VERKAUF / BESTELLUNG / ZAHLUNG
   ========================================================= */

.erk-kasse-actions-sale {
    flex-wrap: wrap;
}

.erk-sale-section {
    margin-top: 22px;
}

.erk-sale-section-head h4 {
    margin: 0 0 6px;
    font-size: 20px;
    color: #152033;
}

.erk-sale-section-head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: #5a6b81;
}

.erk-sale-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.erk-sale-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dfe7ef;
}

.erk-sale-item-media {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: #edf2f7 center center / cover no-repeat;
    border: 1px solid #d8e1eb;
    flex-shrink: 0;
    overflow: hidden;
}

.erk-sale-item-media.has-image {
    background-image: var(--erk-sale-image);
}

.erk-sale-item-media.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    color: #6a7b90;
}

.erk-sale-item-main {
    min-width: 0;
    flex: 1 1 auto;
}

.erk-sale-item-title {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.25;
    color: #152033;
}

.erk-sale-item-meta {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #607186;
}

.erk-sale-item-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.erk-sale-qty-btn {
    appearance: none;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: #0a366f;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.erk-sale-qty-btn.is-minus {
    background: #d9e3ee;
    color: #24344d;
}

.erk-sale-qty-btn:active,
.erk-sale-history-cancel-btn:active {
    transform: scale(0.98);
}

.erk-sale-qty-value {
    min-width: 28px;
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #152033;
}

.erk-sale-empty {
    margin: 14px 0 0;
    padding: 14px;
    border-radius: 18px;
    background: #f7f9fb;
    border: 1px dashed #d5dee8;
    font-size: 15px;
    line-height: 1.45;
    color: #607186;
}

.erk-sale-summary-sticky {
    position: sticky;
    bottom: 0;
    margin-top: 16px;
    padding-top: 10px;
    background: linear-gradient(to bottom, rgba(244, 248, 251, 0), #f4f8fb 24px);
}

.erk-sale-summary-box,
.erk-sale-payment-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbe5ee;
    box-shadow: 0 8px 20px rgba(21, 32, 51, 0.06);
}

.erk-sale-payment-box {
    margin-top: 14px;
    gap: 0;
}

.erk-free-donation-box {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbe5ee;
    box-shadow: 0 8px 20px rgba(21, 32, 51, 0.06);
}

.erk-free-donation-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    grid-template-columns: 1fr;
}

.erk-kasse-actions-free-donation {
    margin-top: 12px;
}

.erk-sale-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 16px;
    color: #607186;
}

.erk-sale-summary-row strong {
    color: #152033;
}

.erk-sale-summary-row-total {
    padding-top: 8px;
    border-top: 1px solid #e2e9f0;
    font-size: 18px;
    font-weight: 800;
}

.erk-sale-payment-head h4 {
    margin: 0 0 4px;
    font-size: 18px;
    color: #152033;
}

.erk-sale-payment-head p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #607186;
}

.erk-sale-payment-grid {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    grid-template-columns: 1fr 1fr;
}

.erk-sale-payment-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.erk-sale-payment-field span {
    font-size: 14px;
    font-weight: 700;
    color: #24344d;
}

.erk-sale-payment-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d5dee8;
    border-radius: 14px;
    background: #f7f9fb;
    padding: 0 14px;
    font-size: 17px;
    color: #152033;
}

.erk-sale-payment-field input:focus {
    outline: none;
    border-color: #0a366f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(10, 54, 111, 0.12);
}

.erk-sale-payment-note {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #607186;
}

.erk-return-box {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dbe5ee;
    box-shadow: 0 8px 20px rgba(21, 32, 51, 0.06);
}

.erk-return-counter-box,
.erk-return-summary-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    border-radius: 18px;
    background: #f7f9fb;
    border: 1px solid #e1e8f0;
}

.erk-return-counter-label {
    font-size: 14px;
    font-weight: 700;
    color: #24344d;
}

.erk-return-counter-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.erk-kasse-actions-return {
    margin-top: 0;
    flex-wrap: nowrap;
}

.erk-kasse-actions-return-three .erk-btn {
    min-width: 0;
    padding: 0 10px;
    font-size: 15px;
    line-height: 1.15;
    text-align: center;
}

.erk-sale-history-section {
    margin-top: 22px;
}

.erk-sale-history-summary {
    margin-top: 14px;
    padding: 14px;
    border-radius: 18px;
    background: #f7f9fb;
    border: 1px solid #dbe5ee;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    line-height: 1.45;
    color: #607186;
}

.erk-sale-history-list {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.erk-sale-history-item {
    padding: 14px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #dfe7ef;
}

.erk-sale-history-item-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.erk-sale-history-item-head h5 {
    margin: 0;
    font-size: 17px;
    color: #152033;
}

.erk-sale-history-item-head strong {
    font-size: 17px;
    color: #152033;
}

.erk-sale-history-item-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #5a6b81;
}

.erk-sale-history-item-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: 14px;
    color: #607186;
}

.erk-sale-history-cancel-btn {
    appearance: none;
    border: none;
    border-radius: 16px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    background: #eef2f6;
    color: #31435d;
}

@media (max-width: 520px) {
    .erk-sale-item {
        align-items: flex-start;
    }

    .erk-sale-item-controls {
        margin-left: auto;
    }
}

.erk-sale-payment-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e9f0;
    font-size: 16px;
    color: #607186;
}

.erk-sale-payment-result strong {
    font-size: 20px;
    color: #152033;
}

.erk-sale-payment-field input[type="number"]::-webkit-outer-spin-button,
.erk-sale-payment-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.erk-sale-payment-field input[type="number"] {
    -moz-appearance: textfield;
}

/* =========================================================
   ERK DIALOG
   ========================================================= */

.erk-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(21, 32, 51, 0.58);
}

.erk-dialog-overlay[hidden] {
    display: none !important;
}

.erk-dialog {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 22px;
    border: 1px solid #dbe5ee;
    box-shadow: 0 18px 48px rgba(21, 32, 51, 0.24);
    overflow: hidden;
}

.erk-dialog-content {
    padding: 22px 18px 16px;
}

.erk-dialog-title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #152033;
}

.erk-dialog-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: #5b6a80;
}

.erk-dialog-actions {
    display: flex;
    gap: 10px;
    padding: 0 18px 18px;
}

.erk-dialog-actions .erk-btn {
    flex: 1 1 auto;
}

body.erk-dialog-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .erk-dialog-overlay {
        align-items: flex-end;
        padding: 14px;
    }

    .erk-dialog {
        max-width: none;
        border-radius: 20px;
    }

    .erk-dialog-content {
        padding: 20px 16px 14px;
    }

    .erk-dialog-title {
        font-size: 26px;
    }

    .erk-dialog-message {
        font-size: 15px;
    }

    .erk-dialog-actions {
        padding: 0 16px 16px;
    }
}


@media (max-width: 480px) {
    .erk-kasse-actions-return-three {
        gap: 8px;
    }

    .erk-kasse-actions-return-three .erk-btn {
        min-height: 50px;
        padding: 0 8px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .erk-kasse-actions-return-three .erk-btn {
        font-size: 12px;
    }
}


/* =========================================================
   OFFENE KASSE – OPTISCHER FEINSCHLIFF / RABATTBLOCK
   ========================================================= */

.erk-kasse-open-shell {
    padding: 18px;
}

.erk-kasse-open-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.erk-kasse-open-header-main {
    min-width: 0;
    flex: 1 1 auto;
}

.erk-kasse-open-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e8eef6;
    color: #0a366f;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.erk-kasse-open-header-main h3 {
    margin-top: 12px;
    margin-bottom: 8px;
}

.erk-kasse-open-header-main p {
    max-width: 640px;
}

.erk-kasse-timer {
    min-width: 138px;
    padding: 12px 14px;
    border-radius: 18px;
    background: #f7f9fb;
    border: 1px solid #dbe5ee;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.82);
    text-align: right;
    flex: 0 0 auto;
}

.erk-kasse-timer-label {
    display: block;
    font-size: 11px;
    line-height: 1.35;
    font-weight: 700;
    color: #607186;
}

.erk-kasse-timer-value {
    display: block;
    margin-top: 4px;
    font-size: 18px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #152033;
}

.erk-kasse-open-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.erk-kasse-open-meta-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 13px 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f4f8fb 100%);
    border: 1px solid #dfe7ef;
}

.erk-kasse-open-meta-item span {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: #607186;
}

.erk-kasse-open-meta-item strong {
    font-size: 17px;
    line-height: 1.3;
    color: #152033;
    word-break: break-word;
}

.erk-sale-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 16px;
    margin-top: 18px;
    align-items: start;
}

.erk-sale-workspace-main,
.erk-sale-workspace-side {
    min-width: 0;
}

.erk-sale-section {
    margin-top: 0;
}

.erk-sale-section-head-main,
.erk-sale-section-head-history,
.erk-sale-block-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.erk-sale-section-head-main h4,
.erk-sale-section-head-history h4,
.erk-sale-block-head h4 {
    margin-bottom: 0;
}

.erk-sale-section-head-main p,
.erk-sale-section-head-history p,
.erk-sale-block-head p {
    font-size: 13px;
    line-height: 1.45;
    color: #6b7b90;
}

.erk-sale-list {
    margin-top: 14px;
}

.erk-sale-item,
.erk-return-box,
.erk-sale-summary-box,
.erk-sale-payment-box,
.erk-sale-discount-box,
.erk-free-donation-box,
.erk-sale-history-item,
.erk-sale-history-summary {
    box-shadow: 0 8px 20px rgba(21, 32, 51, 0.05);
}

.erk-sale-item {
    padding: 11px 12px;
}

.erk-return-box,
.erk-sale-summary-box,
.erk-sale-payment-box,
.erk-sale-discount-box,
.erk-free-donation-box {
    border-radius: 20px;
}

.erk-sale-summary-sticky {
    position: sticky;
    top: 14px;
    bottom: auto;
    margin-top: 0;
    padding-top: 0;
    background: none;
}

.erk-sale-summary-box {
    gap: 9px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.erk-sale-summary-row {
    align-items: center;
}

.erk-sale-summary-row strong {
    font-weight: 800;
}

.erk-sale-discount-box {
    margin-top: 12px;
    padding: 14px;
    background: linear-gradient(180deg, #fbfcfd 0%, #f6f9fb 100%);
    border: 1px solid #dbe5ee;
}

.erk-sale-discount-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.erk-sale-discount-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef3f7;
    border: 1px solid #d8e2eb;
    color: #54657b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.erk-sale-discount-option.is-active {
    background: #0a366f;
    border-color: #0a366f;
    color: #ffffff;
}

.erk-sale-discount-field {
    margin-top: 12px;
}

.erk-sale-discount-box[hidden] {
    display: none !important;
}

.erk-sale-payment-field select {
    width: 100%;
    height: 52px;
    border: 2px solid #d3dce8;
    border-radius: 18px;
    background: #fbfcfd;
    padding: 0 15px;
    font-size: 18px;
    color: #152033;
    outline: none;
    appearance: none;
}

.erk-sale-payment-field select:focus {
    border-color: #0a366f;
    box-shadow: 0 0 0 3px rgba(10, 54, 111, 0.08);
}

.erk-sale-discount-note {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.45;
    color: #5b6a80;
}

.erk-sale-payment-box,
.erk-free-donation-box {
    margin-top: 12px;
}

.erk-sale-payment-grid-compact {
    grid-template-columns: 1.2fr 0.8fr;
}

.erk-sale-payment-field input {
    background: #fbfcfd;
}

.erk-sale-payment-result {
    margin-top: 14px;
    padding-top: 14px;
}

.erk-sale-payment-result strong {
    font-size: 22px;
}

.erk-kasse-actions-sale {
    margin-top: 16px;
}

.erk-kasse-actions-sale .erk-btn-primary {
    flex-basis: 100%;
}

.erk-kasse-actions-sale .erk-btn-secondary {
    flex-basis: calc(50% - 5px);
}

.erk-sale-history-section {
    margin-top: 18px;
}

.erk-sale-history-summary {
    gap: 6px;
    font-size: 14px;
}

.erk-sale-history-list {
    gap: 10px;
}

.erk-sale-history-item {
    padding: 12px 13px;
}

.erk-sale-history-item-head {
    margin-bottom: 8px;
}

.erk-sale-history-item-head h5,
.erk-sale-history-item-head strong {
    font-size: 16px;
}

.erk-sale-history-item-list,
.erk-sale-history-item-meta {
    font-size: 13px;
}

@media (max-width: 900px) {
    .erk-sale-workspace {
        grid-template-columns: 1fr;
    }

    .erk-sale-summary-sticky {
        position: static;
    }
}

@media (max-width: 640px) {
    .erk-kasse-open-shell {
        padding: 16px 14px;
    }

    .erk-kasse-open-header {
        flex-direction: column;
        gap: 12px;
    }

    .erk-kasse-timer {
        width: 100%;
        text-align: left;
    }

    .erk-kasse-open-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .erk-sale-discount-choice {
        gap: 7px;
    }

    .erk-sale-discount-option {
        min-height: 36px;
        padding: 0 11px;
        font-size: 12px;
    }

    .erk-sale-payment-grid-compact {
        grid-template-columns: 1fr;
    }

    .erk-sale-payment-field select {
        height: 50px;
        font-size: 16px;
    }

    .erk-kasse-actions-sale .erk-btn-secondary,
    .erk-kasse-actions-sale .erk-btn-primary {
        flex-basis: 100%;
    }
}


.erk-statistik-empty {
    margin-top: 16px;
    padding: 14px;
    border-radius: 18px;
    background: #f7f9fb;
    border: 1px dashed #d5dee8;
    font-size: 15px;
    line-height: 1.45;
    color: #607186;
}

.erk-statistik-summary {
    margin-top: 16px;
}

.erk-dialog-actions {
    flex-wrap: wrap;
}

.erk-dialog-actions .erk-btn {
    flex: 1 1 calc(33.333% - 7px);
}

@media (max-width: 480px) {
    .erk-dialog-actions .erk-btn {
        flex: 1 1 100%;
    }
}

@media (max-width: 900px) {
    .erk-cocktail-admin-card {
        grid-template-columns: 92px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .erk-cocktail-admin-image {
        height: 92px;
        border-radius: 16px;
    }

    .erk-cocktail-admin-content {
        gap: 10px;
    }

    .erk-cocktail-admin-values {
        padding: 10px;
    }

    .erk-cocktail-admin-row {
        align-items: center;
        gap: 10px;
    }

    .erk-cocktail-admin-switch {
        min-height: 32px;
        align-items: center;
    }

    .erk-cocktail-admin-switch-field > span,
    .erk-cocktail-admin-price-field > span {
        margin-bottom: 2px;
    }

    .erk-cocktail-admin-input-wrap input {
        width: 82px;
        height: 46px;
        font-size: 16px;
    }

    .erk-cocktail-admin-switch-status {
        min-width: 44px;
        font-size: 13px;
    }

    .erk-cocktail-setup-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}
