/* YaSaadi – Designsystem. Farben, Schrift und Bausteine für alle Seiten. */

@font-face {
    font-family: 'Readex Pro';
    font-style: normal;
    font-display: swap;
    font-weight: 160 700;
    src: url('../fonts/readex-pro-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
    font-family: 'Readex Pro';
    font-style: normal;
    font-display: swap;
    font-weight: 160 700;
    src: url('../fonts/readex-pro-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --navy: #0E1B33;
    --accent: #E8562A;
    --bg: #F5F7FB;
    --surface: #FFFFFF;
    --field: #F2F4F8;
    --line: #E9EDF3;
    --muted: #64708A;
    --ok: #146C43;
    --ok-bg: #E3F5EC;
    --err: #B3261E;
    --err-bg: #FCEBEA;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    /* Weiße Seite, oben blass das Zellige-Muster (public/img/zellij.svg), das nach unten ausläuft. */
    background: linear-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0) 150px, #FFFFFF 460px) no-repeat,
        url('../img/zellij.svg') top center / 152px repeat, #FFFFFF;
    color: var(--navy);
    font-family: 'Readex Pro', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
}

body.white { background-color: var(--surface); }

a { color: var(--navy); }

main {
    max-width: 430px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 24px 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

h1 { margin: 0; font-size: 30px; font-weight: 500; line-height: 1.3; letter-spacing: -0.4px; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.center { text-align: center; }
.grow { margin-top: auto; }
.accent { color: var(--accent); }

/* Kopfzeile */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 600; letter-spacing: -0.2px; text-decoration: none; }
.lang { display: flex; gap: 4px; background: var(--field); border-radius: 999px; padding: 3px; font-size: 12px; margin-inline-start: auto; }
body:not(.white) .lang { background: var(--line); }
.lang a { padding: 5px 10px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang a[aria-current="true"] { background: var(--surface); color: var(--navy); font-weight: 500; box-shadow: 0 1px 2px rgba(14, 27, 51, 0.08); }

.who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-weight: 500; font-size: 16px; }
.who .name { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Logo */
.ys-logo { color: var(--navy); flex-shrink: 0; display: block; }
@keyframes ys-draw { to { stroke-dashoffset: 0; } }
@keyframes ys-pop { 0% { transform: scale(0.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.ys-logo--animate .ys-logo__smile { stroke-dasharray: 60; stroke-dashoffset: 60; animation: ys-draw 0.9s 0.3s ease-out forwards; }
.ys-logo--animate .ys-logo__seal { transform-box: fill-box; transform-origin: center; animation: ys-pop 0.7s ease-out; }
@media (prefers-reduced-motion: reduce) {
    .ys-logo--animate .ys-logo__smile { animation: none; stroke-dashoffset: 0; }
    .ys-logo--animate .ys-logo__seal { animation: none; }
}

/* Bausteine */
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--field); padding: 5px 12px; border-radius: 999px; }
.pill.ok { color: var(--ok); background: var(--ok-bg); }
.pill.center { align-self: center; }

.card { background: var(--surface); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 1px 2px rgba(14, 27, 51, 0.04), 0 16px 40px -12px rgba(14, 27, 51, 0.12); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head .label { font-size: 12px; color: var(--muted); }
.card-head .title { font-size: 20px; font-weight: 500; line-height: 1.35; }

.note { border-radius: 14px; padding: 12px 14px; font-size: 14px; background: var(--err-bg); color: var(--err); }
.note.ok { background: var(--ok-bg); color: var(--ok); }
.error { margin-top: 6px; font-size: 13px; color: var(--err); }

/* Formulare */
form { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input[type=text], input[type=tel], input[type=password], select {
    width: 100%; height: 54px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--navy);
    border: 1px solid transparent; border-radius: 14px; background: var(--field); appearance: none; -webkit-appearance: none;
}
body:not(.white) .card input[type=text], body:not(.white) .card select { background: var(--bg); }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }

.btn { height: 54px; width: 100%; border: 0; border-radius: 14px; background: var(--navy); color: #FFFFFF; font: inherit; font-size: 16px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(14, 27, 51, 0.5); }
.btn.ghost { background: transparent; color: var(--navy); box-shadow: none; border: 1px solid var(--line); }
.btn svg { flex-shrink: 0; }
[dir=ltr] .flip { transform: scaleX(-1); }
.link { font-size: 13px; text-align: center; color: var(--muted); }

.checks { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--muted); }
.checks span { display: flex; align-items: center; gap: 5px; }

/* Verkaufscode */
.qr { padding: 14px; border-radius: 20px; background: var(--bg); align-self: center; width: 100%; max-width: 260px; }
.qr svg { display: block; width: 100%; height: auto; border-radius: 8px; }
.bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar div { height: 4px; border-radius: 2px; background: var(--accent); width: 100%; transition: width 1s linear; }
.bar-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* Kundenkarte */
.pass { border-radius: 24px; background: var(--pass-bg, var(--navy)); color: var(--pass-ink, #FFFFFF); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 48px -20px rgba(14, 27, 51, 0.6); transition: background-color 0.25s ease, color 0.25s ease; }
.pass-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pass .who .name { color: inherit; }
/* Hintergrundbild: liegt unter einem Schleier in der Kartenfarbe, damit die Schrift lesbar bleibt */
.pass.has-img { position: relative; isolation: isolate; overflow: hidden; }
.pass.has-img::before, .pass.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.pass.has-img::before { background: var(--pass-img) center / cover no-repeat; }
.pass.has-img::after { background: var(--pass-bg, var(--navy)); opacity: 0.58; }
.pass .avatar.logo { background: none; border-radius: 9px; object-fit: contain; }
.pass-code span, .pass-count .of, .pass-label, .pass-foot span { color: var(--pass-label, inherit); }
.stamps.round i img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.stamps.round.pic i { border: 0; opacity: 0.28; filter: grayscale(1); }
.stamps.round.pic i.on { background: none; opacity: 1; filter: none; }
.pass .avatar { width: 34px; height: 34px; font-size: 15px; background: var(--pass-ink, #FFFFFF); color: var(--pass-bg, var(--navy)); }
.pass-code { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; font-size: 10px; letter-spacing: 0.4px; }
.pass-code span { opacity: 0.8; }
.pass-code strong { font-size: 13px; font-weight: 500; letter-spacing: 1px; }
.pass-count { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.pass-count .big { font-size: 64px; font-weight: 300; line-height: 1; }
.pass-count .of { font-size: 22px; font-weight: 300; opacity: 0.85; }
.pass-label { font-size: 11px; letter-spacing: 0.6px; opacity: 0.75; }
/* Stempel auf der Karte: "lines" = Striche (Standard), "round" = runde Stempel mit Zahl oder Symbol */
.stamps i { font-style: normal; }
.stamps.lines { display: flex; gap: 6px; }
.stamps.lines i { flex: 1; height: 6px; border-radius: 3px; background: currentColor; opacity: 0.22; font-size: 0; }
.stamps.lines i svg { display: none; }
.stamps.lines i.on { opacity: 1; }
.stamps.lines i.new { background: var(--pass-new, var(--accent)); }
.stamps.round { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px 8px; justify-items: center; }
.stamps.round i { width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.38; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stamps.round i svg { width: 56%; height: 56%; }
.stamps.round i.on { opacity: 1; background: var(--pass-ink, #FFFFFF); border-color: var(--pass-ink, #FFFFFF); color: var(--pass-bg, var(--navy)); }
.stamps.round i.new { animation: ys-pop 0.7s ease-out; }
@media (prefers-reduced-motion: reduce) { .pass { transition: none; } .stamps.round i.new { animation: none; } }
.pass-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.pass-foot div { display: flex; flex-direction: column; gap: 2px; }
.pass-foot div:last-child { align-items: flex-end; flex-shrink: 0; }
.pass-foot span { opacity: 0.7; }
.pass-foot strong { font-size: 14px; font-weight: 500; }
.pass.own-label .pass-code span, .pass.own-label .pass-count .of, .pass.own-label .pass-label, .pass.own-label .pass-foot span { opacity: 1; }
.sign { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 14px; font-weight: 600; letter-spacing: -0.2px; }

/* Startseite Händler */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { background: var(--surface); border-radius: 22px; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; font-size: 15px; font-weight: 500; box-shadow: 0 1px 2px rgba(14, 27, 51, 0.04); }
.tile.dark { background: var(--navy); color: #FFFFFF; }
.tile-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: flex; align-items: center; justify-content: center; }
.tile.dark .tile-icon { background: rgba(255, 255, 255, 0.12); }

/* Startseite Händler: Zahlen (nach dem freigegebenen Screen "لوحة التاجر") */
.hello { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hello div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.hello .label { font-size: 12px; color: var(--muted); }
.hello .title { font-size: 20px; font-weight: 500; letter-spacing: -0.3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats { background: var(--surface); border-radius: 22px; padding: 12px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 10px; box-shadow: 0 1px 2px rgba(14, 27, 51, 0.04), 0 12px 32px -14px rgba(14, 27, 51, 0.12); }
.stat { background: var(--bg); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.stat.row { flex-direction: row; align-items: center; gap: 10px; }
.stat .label { font-size: 11px; color: var(--muted); line-height: 1.4; }
.stat .t { font-size: 13px; font-weight: 500; line-height: 1.4; }
.stat .big { font-size: 26px; font-weight: 500; line-height: 1.3; }
.stat svg text { font-family: inherit; }
.pill.tiny { font-size: 10px; padding: 3px 8px; }
.panel { background: var(--surface); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(14, 27, 51, 0.04); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 500; }
.panel-head .muted { font-size: 11px; font-weight: 400; }
.bars { height: 104px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; }
.bars div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bars i { display: block; width: 100%; border-radius: 6px; background: #D5DCE8; }
.bars i.top { background: var(--navy); }
.bars span { font-size: 10px; color: var(--muted); }
.feed-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #EEF1F6; font-size: 13px; }
.feed-row .code { min-width: 44px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--bg); font-size: 11px; font-weight: 500; display: flex; align-items: center; justify-content: center; letter-spacing: 0.5px; flex-shrink: 0; }
.feed-row .what { flex-grow: 1; }
.feed-row .when { font-size: 11px; color: var(--muted); }
.live { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 400; color: var(--ok); }
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #1F9D61; }
.nudge { display: flex; align-items: center; gap: 12px; background: var(--navy); color: #FFFFFF; border-radius: 22px; padding: 14px 16px; }
.nudge div { flex-grow: 1; display: flex; flex-direction: column; line-height: 1.45; }
.nudge strong { font-size: 14px; font-weight: 500; }
.nudge div span { font-size: 12px; opacity: 0.7; }
.nudge .soon { flex-shrink: 0; height: 32px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); font-size: 12px; display: flex; align-items: center; }

/* Untere Leiste der Händlerseiten */
body.has-nav main { padding-bottom: 96px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); box-shadow: 0 -1px 0 #EEF1F6; }
.tabbar div { max-width: 430px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 8px calc(14px + env(safe-area-inset-bottom)); font-size: 11px; text-align: center; }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--muted); }
.tabbar a[aria-current="page"] { color: var(--navy); font-weight: 500; }
.tabbar div { grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; }
.tabbar .ico { display: flex; align-items: center; justify-content: center; }
.tabbar a.main { color: var(--navy); font-weight: 500; }
.tabbar a.main .ico { width: 54px; height: 54px; margin-top: -30px; border-radius: 50%; background: var(--navy); color: #FFFFFF; box-shadow: 0 0 0 6px var(--bg), 0 8px 18px -6px rgba(14, 27, 51, 0.5); }
a.hello { text-decoration: none; }
.who svg { flex-shrink: 0; color: var(--muted); }

/* Menü */
.menu { gap: 0; padding: 6px 16px; }
.menu a, .menu button { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--navy); text-decoration: none; text-align: start; cursor: pointer; }
.menu a + a { border-top: 1px solid #EEF1F6; }
.menu a svg, .menu button svg { flex-shrink: 0; color: var(--muted); }
.menu a span:first-of-type, .menu button span { flex-grow: 1; }
.menu .danger, .menu .danger svg { color: var(--err); }

/* Verkauf: Karte des Kunden scannen */
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modes input { position: absolute; opacity: 0; pointer-events: none; }
.modes label span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px; border-radius: 22px; background: var(--surface); text-align: center; cursor: pointer; box-shadow: 0 1px 2px rgba(14, 27, 51, 0.04); border: 2px solid transparent; }
.modes strong { font-size: 15px; font-weight: 500; margin-top: 4px; }
.modes small { font-size: 11px; color: var(--muted); }
.modes input:checked + span { background: var(--navy); color: #FFFFFF; }
.modes input:checked + span small { color: rgba(255, 255, 255, 0.7); }
.modes input:focus-visible + span { border-color: var(--accent); }
.scanner { position: relative; aspect-ratio: 1; max-height: 46vh; width: 100%; border-radius: 24px; background: #0A0F1C; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner p { position: relative; margin: 0 16px 14px; padding: 6px 12px; border-radius: 999px; background: rgba(10, 15, 28, 0.6); color: #FFFFFF; font-size: 12px; text-align: center; }
.scanner i { position: absolute; width: 34px; height: 34px; border: 3px solid #FFFFFF; opacity: 0.9; }
.scanner i:nth-of-type(1) { top: 16%; left: 16%; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.scanner i:nth-of-type(2) { top: 16%; right: 16%; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.scanner i:nth-of-type(3) { bottom: 16%; left: 16%; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.scanner i:nth-of-type(4) { bottom: 16%; right: 16%; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.inline { display: flex; gap: 8px; }
body:not(.white) .inline input[type=text] { background: var(--surface); }
[hidden] { display: none !important; }
.menu .pill { align-self: center; flex-grow: 0; }

/* ---- Richtung "أرقام كبار" (Entscheidung 2026-11-13): weiße Seite, große Zahlen, feine Linien ---- */
.card, .panel, .tile, .stats, .modes label span { border: 1px solid var(--line); }
.card { box-shadow: 0 10px 30px -18px rgba(14, 27, 51, 0.25); }
body:not(.white) .lang { background: var(--field); }
.tabbar { box-shadow: none; border-top: 1px solid var(--line); }
.tabbar a.main .ico { box-shadow: 0 0 0 6px #FFFFFF; }
.modes input:checked + span { border-color: var(--navy); }
body:not(.white) .inline input[type=text] { background: var(--field); }

.dash-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; text-decoration: none; min-width: 0; }
.dash-head span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seg { display: flex; gap: 14px; font-size: 13px; margin-inline-start: auto; flex-shrink: 0; }
.seg a { color: var(--muted); text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid transparent; }
.seg a[aria-current="true"] { color: var(--navy); font-weight: 600; border-bottom-color: var(--accent); }
.hero { display: flex; flex-direction: column; margin-top: 10px; }
.hero .label { font-size: 13px; color: var(--muted); }
.hero .giant { font-size: 128px; font-weight: 600; line-height: 0.95; letter-spacing: -6px; margin-top: 2px; }
.hero .giant.d4 { font-size: 104px; letter-spacing: -5px; }
.hero .giant.d5 { font-size: 84px; letter-spacing: -4px; }
.hero .line { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 14px; }
.hero .line b { color: var(--accent); font-weight: 600; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 4px 0 0; width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.two b { display: block; font-size: 44px; font-weight: 600; letter-spacing: -2px; line-height: 1; }
.two b.o { color: var(--accent); }
.two small { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: 74px; }
.week div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; font-size: 10px; color: var(--muted); }
.week i { display: block; border-radius: 50%; background: var(--navy); }
.week i.top { background: var(--accent); }
.week i.none { background: var(--line); }
.feed { display: flex; flex-direction: column; }
.feed .feed-row { border-top: 1px solid var(--line); font-size: 14px; padding: 9px 0; align-items: baseline; }
.feed .feed-row .code { background: none; height: auto; padding: 0; min-width: 48px; justify-content: flex-start; font-size: 13px; font-weight: 600; }
.nudge { border-radius: 18px; }
.nudge .soon { background: var(--accent); color: #FFFFFF; text-decoration: none; font-size: 13px; font-weight: 500; }

/* Kein blauer Kasten beim Antippen (Android). Der Rahmen für die Tastatur bleibt über :focus-visible. */
* { -webkit-tap-highlight-color: transparent; }
a, button, label, .tile, .btn { -webkit-touch-callout: none; touch-action: manipulation; }
:focus:not(:focus-visible) { outline: none; }
.btn:active, .tile:active, .tabbar a:active .ico, .modes label:active span, .menu a:active { opacity: 0.85; }

/* ---- Geschmeidig (2026-11-13): weiche Seitenwechsel, kein Springen, Menü klappt auf statt neu zu laden ---- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.16s; }
.tabbar { view-transition-name: ys-tabbar; }
html { background: #FFFFFF; overflow-x: clip; }
body { overflow-x: clip; overscroll-behavior-y: none; }
.top { min-height: 44px; }
button.who { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; min-width: 0; text-align: start; }
.who .ys-logo { flex-shrink: 0; }
.sheet { inset: 0 0 auto 0; margin: 60px auto 0; width: min(398px, calc(100% - 32px)); max-height: calc(100dvh - 90px); overflow-y: auto; border: 0; padding: 6px 18px 10px; border-radius: 24px; background: #FFFFFF; color: var(--navy); box-shadow: 0 30px 70px -24px rgba(14, 27, 51, 0.55);
    opacity: 0; transform: translateY(-10px) scale(0.98); transform-origin: top center;
    transition: opacity 0.18s ease, transform 0.18s ease, overlay 0.18s allow-discrete, display 0.18s allow-discrete; }
.sheet:popover-open { opacity: 1; transform: none; }
@starting-style { .sheet:popover-open { opacity: 0; transform: translateY(-10px) scale(0.98); } }
.sheet::backdrop { background: rgba(14, 27, 51, 0); transition: background 0.18s ease, overlay 0.18s allow-discrete, display 0.18s allow-discrete; }
.sheet:popover-open::backdrop { background: rgba(14, 27, 51, 0.3); }
@starting-style { .sheet:popover-open::backdrop { background: rgba(14, 27, 51, 0); } }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.sheet-head .name { flex-grow: 1; font-size: 16px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet .menu, .menu-page .menu { padding: 0; }
.sheet .menu + .menu, .menu-page .menu + .menu { border-top: 1px solid var(--line); }
.menu-page { gap: 0; padding: 6px 16px; }
@media (prefers-reduced-motion: reduce) { .sheet, .sheet::backdrop { transition: none; } ::view-transition-old(root), ::view-transition-new(root) { animation: none; } }
.who .ys-logo { color: var(--navy); }

/* Knopf "امسح": bleibt rund, strahlt aber (Entscheidung 2026-11-13). Ein weicher Schein, der atmet, und ein Ring, der nach außen läuft. */
.tabbar a.main .ico { position: relative; animation: ys-glow 2.6s ease-in-out infinite; }
.tabbar a.main .ico::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ys-ring 2.6s ease-out infinite; pointer-events: none; }
@keyframes ys-glow {
    0%, 100% { box-shadow: 0 0 0 6px #FFFFFF, 0 0 14px 6px rgba(232, 86, 42, 0.28); }
    50% { box-shadow: 0 0 0 6px #FFFFFF, 0 0 26px 12px rgba(232, 86, 42, 0.5); }
}
@keyframes ys-ring {
    0% { transform: scale(1); opacity: 0.55; }
    70%, 100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .tabbar a.main .ico { animation: none; box-shadow: 0 0 0 6px #FFFFFF, 0 0 20px 8px rgba(232, 86, 42, 0.4); }
    .tabbar a.main .ico::after { animation: none; }
}

/* ---- Startseite, alle Blöcke (2026-11-13): gleiche Sprache wie "أرقام كبار": Zahlen, feine Linien, ein Akzent ---- */
.seg.wide { margin: 0; justify-content: space-between; }
.acts { display: flex; gap: 8px; }
.acts a { flex: 1; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; text-decoration: none; }
.acts a + a { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.start { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #FFFFFF; padding: 14px 16px 6px; }
.start strong { font-size: 15px; font-weight: 500; padding-bottom: 6px; }
.start a { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; text-decoration: none; }
.start a i { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%; background: var(--navy); color: #FFFFFF; font-style: normal; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.start a.done { color: var(--muted); text-decoration: line-through; }
.start a.done i { background: var(--ok-bg); color: var(--ok); }
.start a small { display: block; font-size: 12px; color: var(--muted); }
.two { row-gap: 22px; }
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 16px; font-weight: 500; margin-top: 4px; }
.sec small, .sec a { font-size: 12px; font-weight: 400; color: var(--muted); }
.sec a { color: var(--accent); text-decoration: none; font-weight: 500; }
.cols { display: flex; align-items: flex-end; gap: 6px; height: 100px; padding-bottom: 18px; }
.cols div { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.cols i { display: block; width: 100%; max-width: 22px; border-radius: 999px; background: var(--navy); }
.cols i.top { background: var(--accent); }
.cols b { font-size: 11px; font-weight: 600; line-height: 1; min-height: 11px; }
.cols span { position: absolute; bottom: -18px; font-size: 10px; color: var(--muted); }
.cols.h24 { gap: 3px; height: 86px; }
.cols.h24 i { background: #C9D1DF; }
.cols.h24 i.top { background: var(--accent); }
.trend { display: block; width: 100%; height: 72px; overflow: visible; }
.trend polyline { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.trend polygon { fill: rgba(232, 86, 42, 0.1); }
.axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: -10px; }
.split { display: flex; gap: 3px; height: 10px; }
.split i, .legend i { display: block; border-radius: 999px; background: var(--line); }
.split i.google, .legend i.google { background: var(--navy); }
.split i.apple, .legend i.apple { background: var(--accent); }
.split i.web, .legend i.web { background: #C9D1DF; }
.legend { display: flex; flex-direction: column; }
.legend div { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.legend div + div { border-top: 1px solid var(--line); }
.legend i { width: 10px; height: 10px; flex-shrink: 0; }
.legend span { flex-grow: 1; }
.legend b { font-weight: 600; }
.feed-row .rank { width: 18px; flex-shrink: 0; font-size: 18px; font-weight: 600; color: var(--accent); }

/* ---- PC-Ansicht (2026-11-13): ab 960 px Seitenleiste statt unterer Leiste, Startseite als Raster ---- */
.side { display: none; }
.grid, .blk { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 960px) {
    .tabbar { display: none; }
    body.has-nav { padding-inline-start: 264px; background-position: 0 0, top center, 0 0; }
    body.has-nav main { max-width: 1120px; padding: 28px 36px 48px; gap: 20px; }
    body.has-nav .top .who { display: none; }
    body.has-nav .top { min-height: 0; }
    .side { display: flex; flex-direction: column; gap: 6px; position: fixed; inset-block: 0; inset-inline-start: 0; width: 264px; padding: 22px 18px; background: #FFFFFF; border-inline-end: 1px solid var(--line); overflow-y: auto; }
    .side .brand { padding: 0 6px 14px; }
    .side-shop { display: flex; align-items: center; gap: 10px; padding: 12px 6px; border-block: 1px solid var(--line); }
    .side-shop .name { flex-grow: 1; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .side-shop .lang { margin: 0; }
    .side-scan { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; margin: 12px 0 6px; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-weight: 500; text-decoration: none; box-shadow: 0 0 18px 4px rgba(232, 86, 42, 0.32); }
    .side .menu { padding: 0; }
    .side .menu + .menu { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
    .side .menu a, .side .menu button { min-height: 44px; padding: 0 10px; border-radius: 12px; font-size: 14px; gap: 12px; }
    .side .menu a + a { border-top: 0; }
    .side .menu a:hover, .side .menu button:hover { background: var(--field); }
    .side .menu a[aria-current="page"] { background: var(--field); font-weight: 600; }
    .side .menu a[aria-current="page"] svg { color: var(--accent); }

    .seg.wide { justify-content: flex-start; gap: 26px; font-size: 14px; }
    .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
    .grid > .rule { display: none; }
    .blk, .grid > .start { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
    .b-start { grid-column: span 12; }
    .b-hero { grid-column: span 4; justify-content: space-between; }
    .b-kpi { grid-column: span 8; justify-content: space-between; }
    .b-hours, .b-trend, .b-feed, .b-months { grid-column: span 6; }
    .b-fill { grid-column: span 5; }
    .b-wallet { grid-column: span 3; }
    .b-top { grid-column: span 4; }
    .b-hero .hero { margin-top: 0; }
    .b-hero .giant { font-size: 112px; }
    .b-kpi .two { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .b-kpi .week { height: 86px; }
    .blk .sec { margin-top: 0; }
    .blk .cols { height: 150px; }
    .blk .cols i { max-width: 28px; }
    .blk .cols.h24 { height: 150px; }
    .blk .trend { height: 132px; }
    .b-wallet .sec { flex-direction: column; gap: 2px; }
}

/* ---- Kundenliste (2026-11-13): Kennzahlen, Filter, Suche, Zeilen. Handy zuerst, ab 960 px als Tabelle ---- */
.page-head h1 { font-size: 26px; font-weight: 600; }
.page-head p { font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 12px; }
.kpis b { display: block; font-size: 34px; font-weight: 600; letter-spacing: -1.5px; line-height: 1; }
.kpis b.o { color: var(--accent); }
.kpis small { display: block; margin-top: 6px; font-size: 11px; line-height: 1.4; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex-shrink: 0; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; gap: 6px; font-size: 13px; text-decoration: none; }
.chips a b { font-weight: 500; color: var(--muted); }
.chips a[aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; font-weight: 500; }
.chips a[aria-current="true"] b { color: rgba(255, 255, 255, 0.7); }
.find input[type=text] { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; padding: 0 18px; font: inherit; font-size: 14px; color: var(--navy); text-align: start; }
html[dir=rtl] .find input[type=text] { text-align: right; }
.find input:focus { outline: 0; border-color: var(--navy); }
.rows { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "code prog state" "code when state"; align-items: center; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row.head, .row .visits { display: none; }
.row .code { grid-area: code; font-size: 14px; font-weight: 600; letter-spacing: 0.5px; }
.row .prog { grid-area: prog; display: flex; align-items: center; gap: 10px; min-width: 0; }
.row .when { grid-area: when; font-size: 11px; color: var(--muted); }
.row .state { grid-area: state; }
.dots { display: flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--navy); }
.state { justify-self: end; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--field); color: var(--muted); font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; }
.state.ready { background: var(--accent); color: #FFFFFF; }
.state.new, .state.active { background: var(--ok-bg); color: var(--ok); }
.state.regular { background: var(--navy); color: #FFFFFF; }
.state.risk { background: #FFF1E0; color: #9A5B00; }
@media (min-width: 960px) {
    .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; }
    .kpis b { font-size: 40px; }
    .kpis small { font-size: 12px; }
    .kpis + .rule { display: none; }
    .chips { margin: 0; padding: 0; flex-wrap: wrap; }
    .find { max-width: 360px; }
    .rows { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 6px 22px; }
    .row { grid-template-columns: 1fr 2.4fr 1fr 1.2fr 1fr; grid-template-areas: none; padding: 14px 0; }
    .row > * { grid-area: auto !important; }
    .row.head { display: grid; border-top: 0; font-size: 12px; color: var(--muted); padding: 12px 0 8px; }
    .row.head span:last-child { justify-self: end; }
    .row .visits { display: block; }
    .row .when { font-size: 13px; }
    .dots i { width: 10px; height: 10px; }
}

/* ---- Einstellungen (2026-11-13): Auswahl als runde Knöpfe statt Auswahlliste ---- */
.pick { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pick { margin-top: 6px; }
.pick legend { padding: 0; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.pick > div { display: flex; flex-wrap: wrap; gap: 8px; }
.pick label { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; inset: 0; }
.pick span { min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; }
.pick input:checked + span { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.pick input:focus-visible + span { border-color: var(--accent); }
.pick small { font-size: 12px; color: var(--muted); }
@media (min-width: 960px) {
    .sheet-form { max-width: 620px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
    .sheet-form .btn { width: auto; padding: 0 44px; align-self: flex-start; }
}

/* ---- تصميم البطاقة (v21): Karte auf einer Bühne, Abschnitte als Kästen, Stempel-Formen als Kacheln ---- */
.design { display: flex; flex-direction: column; gap: 18px; }
.design-view { display: flex; flex-direction: column; gap: 10px; }
.stage { display: flex; justify-content: center; }
.stage .pass { width: 100%; max-width: 420px; }
.design-opts { display: flex; flex-direction: column; gap: 14px; }
.opt { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.opt h2 { font-size: 15px; font-weight: 600; }
.opt .pick { margin: 0; }
.opt small { display: block; font-size: 12px; color: var(--muted); }
.swatches > div { gap: 10px; }
.swatches span { width: 44px; min-width: 44px; padding: 0; position: relative; border-color: rgba(14, 27, 51, 0.12); }
.swatches input:checked + span { border-color: #FFFFFF; box-shadow: 0 0 0 2px var(--navy); }
.swatches .own span { overflow: hidden; border-style: dashed; border-color: var(--muted); color: var(--navy); }
.swatches .own input:checked + span { border-style: solid; }
.swatches .own input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.swatches .auto span { width: auto; padding: 0 16px; }
.swatches .auto input:checked + span { border-color: var(--navy); box-shadow: none; }
.inks { gap: 12px; }
.inks .pick { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.inks .pick legend { float: inline-start; margin: 0; font-size: 14px; color: var(--navy); }
/* Stempel-Formen: jede Kachel zeigt die Form in der gewählten Kartenfarbe */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 10px; }
.tiles label { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; }
.tiles input { position: absolute; inset: 0; opacity: 0; }
.tiles .face { width: 100%; height: 62px; border-radius: 16px; background: var(--pass-bg, var(--navy)); color: var(--pass-ink, #FFFFFF); display: flex; align-items: center; justify-content: center; gap: 6px; transition: background-color 0.25s ease, box-shadow 0.15s ease; }
.tiles input:checked + .face { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--accent); }
.tiles input:focus-visible + .face { box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--navy); }
.tiles .cap { font-size: 12px; color: var(--muted); text-align: center; }
.tiles input:checked ~ .cap { color: var(--navy); font-weight: 600; }
.tiles .st { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; opacity: 0.4; display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 600; }
.tiles .st svg { width: 58%; height: 58%; }
.tiles .st.on { opacity: 1; background: var(--pass-ink, #FFFFFF); border-color: var(--pass-ink, #FFFFFF); color: var(--pass-bg, var(--navy)); }
.tiles .ln { width: 14px; height: 5px; border-radius: 3px; background: currentColor; opacity: 0.3; }
.tiles .ln.on { opacity: 1; }
/* Bilder wählen */
.upload { display: flex; align-items: center; gap: 14px; }
.upload[hidden] { display: none; }
.upload > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 0; }
.upload .thumb { width: 64px; height: 64px; flex-shrink: 0; border: 1.5px dashed #B9C1D1; border-radius: 16px; background: var(--field) center / contain no-repeat; }
.upload .thumb.round { border-radius: 50%; background-size: cover; }
.upload .thumb.wide { width: 104px; background-size: cover; }
.upload .thumb[style] { border-style: solid; border-color: var(--line); }
.pickfile { position: relative; align-self: flex-start; height: 42px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; display: inline-flex; align-items: center; font-size: 14px; font-weight: 500; color: var(--navy); overflow: hidden; cursor: pointer; }
.pickfile input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pickfile:focus-within { border-color: var(--accent); }
@media (min-width: 960px) {
    .design-opts .btn { width: auto; padding: 0 56px; align-self: flex-start; }
    /* Karte bleibt links stehen, auch beim Scrollen; rechts die Kästen untereinander */
    .design { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 22px; align-items: start; direction: ltr; }
    .design > * { direction: rtl; }
    html[dir=ltr] .design > * { direction: ltr; }
    .design-view { position: sticky; top: 24px; }
    .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- كود التسجيل (v23): Blatt zum Drucken, Schritte, Link. Beitrittsseite des Kunden ---- */
.poster { background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-bottom: 20px; text-align: center; box-shadow: 0 24px 48px -28px rgba(14, 27, 51, 0.35); }
.poster-top { align-self: stretch; background: var(--pass-bg, var(--navy)); color: var(--pass-ink, #FFFFFF); padding: 20px; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; }
.poster-top .avatar { width: 38px; height: 38px; background: var(--pass-ink, #FFFFFF); color: var(--pass-bg, var(--navy)); }
.poster-top .avatar.logo { background: none; border-radius: 9px; object-fit: contain; }
.poster-title { font-size: 24px; font-weight: 600; line-height: 1.3; padding: 4px 20px 0; }
.poster-qr { width: 62%; max-width: 250px; }
.poster-qr svg { display: block; width: 100%; height: auto; }
.poster-offer { font-size: 17px; font-weight: 600; color: var(--accent); padding: 0 20px; }
.poster-foot { font-size: 12px; color: var(--muted); padding: 0 20px; }
.poster .sign { font-size: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 500; }
.steps i { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--field); font-style: normal; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.steps small { margin-top: 2px; font-weight: 400; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1 1 0; min-width: 0; height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); font: inherit; font-size: 13px; color: var(--navy); }
.copy .pickfile { flex-shrink: 0; font-family: inherit; }
.join-head { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; margin-top: 2vh; }
.join-logo { width: 64px; height: 64px; border-radius: 18px; object-fit: contain; font-size: 26px; margin-bottom: 6px; }
.join-head h1 { font-size: 26px; font-weight: 600; }
.join-offer { font-size: 16px; font-weight: 600; color: var(--accent); }
@media print {
    body { background: #FFFFFF !important; padding: 0 !important; }
    .side, .tabbar, header.top, .page-head, .design-opts { display: none !important; }
    main { max-width: none !important; padding: 0 !important; }
    .design { display: block !important; }
    .design-view { position: static !important; }
    .poster { border: 0; box-shadow: none; border-radius: 0; gap: 9mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .poster-top { padding: 12mm; font-size: 26pt; }
    .poster-title { font-size: 34pt; }
    .poster-qr { width: 110mm; max-width: none; }
    .poster-offer { font-size: 22pt; }
    .poster-foot, .poster .sign { font-size: 12pt; }
}

/* ---- صفحة التسجيل (v24): Vorschau im Handy, Bild oben, freiwillige Fragen, Bewertungsknopf ---- */
.phone { width: 100%; max-width: 360px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 34px; padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 48px -28px rgba(14, 27, 51, 0.35); }
.phone .join-head { margin-top: 0; }
.join-cover { height: 132px; border-radius: 20px; background: var(--field) center / cover no-repeat; }
.join-cover[hidden], .join-form [hidden], .review[hidden] { display: none; }
.join-cover + .join-head { margin-top: -46px; }
.join-cover + .join-head .join-logo { border: 3px solid #FFFFFF; background-color: #FFFFFF; }
.join-cover + .join-head .avatar.join-logo { background-color: var(--navy); }
.join-text { font-size: 14px; color: var(--muted); max-width: 320px; }
.join-form .field input, .join-form .field select { margin-top: 0; }
.bday { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.bday select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236B7386' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.500l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; }
html[dir=ltr] .bday select { background-position: right 16px center; }
.btn.review { color: var(--navy); }
.btn.review svg { color: #F5B301; }
.opt .field input { height: 48px; font-size: 15px; }
.opt .pick input[type=checkbox]:checked + span::before { content: '✓'; margin-inline-end: 6px; }
.row .code small { display: block; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.row { grid-template-columns: minmax(56px, max-content) minmax(0, 1fr) auto; }
@media (min-width: 960px) {
    .row { grid-template-columns: 1fr 2.4fr 1fr 1.2fr 1fr; }
    .row .code small { max-width: 160px; font-size: 12px; }
    .phone { max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
}

/* ---- الرسائل (v25): Nachricht schreiben, Vorschau als Benachrichtigung auf dem Sperrbildschirm, gespeicherte Liste ---- */
.note.wait { background: var(--field); color: var(--navy); border: 1px solid var(--line); }
.lock { width: 100%; max-width: 360px; min-height: 300px; border-radius: 34px; padding: 30px 14px 22px; display: flex; flex-direction: column; align-items: center; color: #FFFFFF; background: radial-gradient(120% 70% at 50% 0, #24406F 0, var(--navy) 70%); box-shadow: 0 24px 48px -28px rgba(14, 27, 51, 0.6); }
.lock-time { font-size: 60px; font-weight: 300; line-height: 1; letter-spacing: -2px; }
.lock-day { font-size: 13px; opacity: 0.7; margin: 6px 0 26px; }
.lock-note { align-self: stretch; background: rgba(255, 255, 255, 0.96); color: var(--navy); border-radius: 22px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 0 0 1px rgba(232, 86, 42, 0.0), 0 14px 30px -14px rgba(0, 0, 0, 0.5); animation: ys-pop 0.5s ease-out; }
.lock-head { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.lock-head .avatar { width: 24px; height: 24px; font-size: 11px; border-radius: 7px; }
.lock-head .avatar.logo { background: none; object-fit: contain; }
.lock-head strong { flex-grow: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lock-head span:last-child { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.lock-note p { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; text-align: start; }
.lock-note p.empty { color: #A7B0C2; }
.write { position: relative; }
.write textarea { display: block; width: 100%; min-height: 120px; padding: 14px 16px 30px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--navy); border: 1px solid transparent; border-radius: 14px; background: var(--field); resize: vertical; }
.write textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.write .count { position: absolute; bottom: 8px; inset-inline-end: 14px; font-size: 11px; color: var(--muted); pointer-events: none; }
.write .count b { font-weight: 500; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tags > span { flex-basis: 100%; font-size: 13px; color: var(--muted); }
.tags button { height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; font: inherit; font-size: 13px; color: var(--navy); cursor: pointer; }
.tags button:active { background: var(--field); }
.opt .pick span b { font-weight: 500; color: var(--muted); }
.opt .pick input:checked + span b { color: rgba(255, 255, 255, 0.7); }
.opt .pick input[type=radio]:checked + span::before { content: none; }
.reach { font-size: 14px; font-weight: 500; color: var(--accent); }
.reach.none { color: var(--muted); font-weight: 400; }
input[type=datetime-local] { width: 100%; height: 48px; padding: 0 16px; font: inherit; font-size: 15px; color: var(--navy); border: 1px solid transparent; border-radius: 14px; background: var(--field); }
.msg { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "text state" "when del"; gap: 6px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.msg:first-child { border-top: 0; }
.msg p { grid-area: text; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.msg .when { grid-area: when; font-size: 12px; color: var(--muted); }
.msg .state { grid-area: state; align-self: start; }
.msg form { grid-area: del; justify-self: end; }
.msg .del { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 12px; color: var(--err); cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .lock-note { animation: none; } }
@media (min-width: 960px) {
    .msgs { padding: 6px 22px; }
    .msg { padding: 16px 0; }
}

/* ---- الأوتوماتيك (v26): ein Kasten pro automatischer Nachricht mit Schalter und Text ---- */
.auto-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.auto-head small { margin-top: 2px; }
.switch { position: relative; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.switch span { display: block; width: 44px; height: 26px; border-radius: 999px; background: #D5DCE8; transition: background-color 0.2s ease; }
.switch span::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(14, 27, 51, 0.3); transition: transform 0.2s ease; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(-18px); }
html[dir=ltr] .switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.auto .write textarea { min-height: 84px; font-size: 15px; transition: opacity 0.2s ease; }
.auto:has(.switch input:not(:checked)) .write { opacity: 0.55; }
@media (prefers-reduced-motion: reduce) { .switch span, .switch span::after, .auto .write textarea { transition: none; } }

/* ---- أعياد الميلاد (v27): nur Zahlen. Kennzahlen, Monate, Stand der Einstellungen, Erklärung ---- */
.bday-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bday-set .feed-row { align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 0; }
.bday-set .feed-row:first-child { border-top: 0; }
.bday-set .what { flex: 1 1 100%; font-weight: 500; }
.bday-set .what small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.bday-set .state { justify-self: auto; }
.bday-set .go { margin-inline-start: auto; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.bday-how .steps li span { display: flex; flex-direction: column; }
.bday-how .steps small { font-size: 12px; color: var(--muted); }
@media (min-width: 960px) {
    .bday-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .bday-months { grid-column: span 12; }
    .bday-set, .bday-how { grid-column: span 6; }
    .bday-set .what { flex: 1 1 0; }
}

/* v28: Vorschau unter "صفحة التسجيل" ohne Bild oben: das versteckte Bild darf den Kopf nicht nach oben ziehen (Logo war abgeschnitten). */
.join-cover[hidden] + .join-head { margin-top: 0; }
.join-cover[hidden] + .join-head .join-logo { border: 0; }

/* v30: "استعمل" neben jeder gespeicherten Nachricht */
.msg-acts { grid-area: del; justify-self: end; display: flex; align-items: center; gap: 14px; }
.msg .use { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 12px; font-weight: 600; color: var(--accent); cursor: pointer; }

/* v31: unter jedem Schalter steht das Wort (مشعولة / مطفية), damit an und aus nicht zu verwechseln sind */
.switch { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.switch em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); }
.switch em::after { content: attr(data-off); }
.switch input:checked ~ em { color: var(--accent); }
.switch input:checked ~ em::after { content: attr(data-on); }
.auto .write textarea { resize: none; }
.auto:has(.switch input:not(:checked)) .write { opacity: 0.75; }

/* v32: gespeicherte Nachrichten in einem Kasten wie die Kästen darüber (auch am Handy), Löschen als rundes ×, "استعمل" als Knopf */
.msgs { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 4px 18px; }
.msg { grid-template-areas: "text del" "when when" "state use"; gap: 8px 12px; padding: 16px 0; }
.msg form { grid-area: del; align-self: start; justify-self: end; }
.msg .del { width: 32px; height: 32px; padding: 0; border-radius: 50%; background: var(--field); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.msg .del:hover, .msg .del:active { background: var(--err-bg); color: var(--err); }
.msg .state { grid-area: state; justify-self: start; align-self: center; }
.msg .use { grid-area: use; justify-self: end; height: 34px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; color: var(--navy); font-size: 13px; font-weight: 500; }
.msg .use:active { background: var(--field); }
@media (min-width: 960px) { .msgs { padding: 6px 22px; } }

/* ---- الإحصائيات (v33): jeder Block im Kasten (auch am Handy), Balken, Wochen, Wochentag × Uhrzeit ---- */
.grid.boxed > .blk { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.grid.boxed .sec { margin-top: 0; }
.sec.sub { margin-top: 6px; font-size: 14px; }
.ticket { gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.ticket label { font-size: 13px; color: var(--muted); }
.ticket .inline input[type=text] { height: 46px; width: 110px; flex: 0 0 auto; font-size: 16px; background: var(--field); }
.ticket .pickfile { height: 46px; font-family: inherit; }
.ticket small { font-size: 12px; color: var(--muted); }
.hbars { display: flex; flex-direction: column; gap: 12px; }
.hbars > div { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.hbars i { display: block; height: 10px; border-radius: 999px; background: var(--field); overflow: hidden; }
.hbars u { display: block; height: 100%; border-radius: 999px; background: var(--navy); text-decoration: none; }
html[dir=rtl] .hbars u { margin-inline-start: 0; }
.hbars u.top { background: var(--accent); display: block; min-height: 0; }
.hbars b { min-width: 34px; text-align: end; font-weight: 600; font-size: 14px; }
.hbars em { font-style: normal; font-weight: 400; font-size: 11px; color: var(--muted); }
.an-cohorts .hbars > div { grid-template-columns: 44px minmax(0, 1fr) 78px; }
.cols.d30 { gap: 2px; height: 82px; padding-bottom: 0; }
.cols.d30 i { max-width: none; border-radius: 3px; background: var(--navy); }
.cols.d30 i.top { background: var(--accent); }
.cols.d30.low { height: 44px; }
.cols.d30.low i { background: #C9D1DF; }
.an-daily .axis { margin-top: 0; }
.heat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.heat > div { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.heat i { display: block; aspect-ratio: 1; max-height: 26px; width: 100%; border-radius: 5px; background: color-mix(in srgb, var(--navy) calc(var(--v) * 100%), var(--field)); }
.heat .hours { grid-template-columns: repeat(6, minmax(0, 1fr)); font-size: 10px; }
.heat .hours b { font-weight: 400; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); background: none; border: 0; padding: 0; }
.an-staff .feed-row b { font-weight: 600; }
.an-staff .feed-row:first-child, .an-staff .feed .feed-row:first-child { border-top: 0; }
@media (min-width: 960px) {
    .grid.boxed > .blk { padding: 22px; }
    .an-money, .an-funnel, .an-cohorts, .an-heat, .an-away, .an-staff { grid-column: span 6; }
    .an-daily { grid-column: span 12; }
    .an-money .two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cols.d30 { height: 130px; gap: 4px; }
    .cols.d30.low { height: 56px; }
    .hbars > div { grid-template-columns: 120px minmax(0, 1fr) auto; }
    .an-cohorts .hbars > div { grid-template-columns: 52px minmax(0, 1fr) 90px; }
}

/* v34: große Zahlen brechen nicht mehr um (15 040 stand in zwei Zeilen); ab 10 000 kleiner gesetzt */
.an-money .two b { white-space: nowrap; }
.an-money .two b.s1 { font-size: 34px; letter-spacing: -1.5px; line-height: 44px; }
.an-money .two b.s2 { font-size: 26px; letter-spacing: -1px; line-height: 44px; }
.an-money .two b:not(.s1):not(.s2) { line-height: 44px; }

/* ---- أوقات الفتح (v36): sieben Zeilen (Tag, von–bis, Schalter); auf der Kundenkarte die Zeile für heute ---- */
.hours-form { gap: 14px; }
.hours { display: flex; flex-direction: column; }
.hours-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.hours-row:first-child { border-top: 0; padding-top: 0; }
.hours-row strong { font-size: 15px; font-weight: 500; }
.hours-row .error { grid-column: 1 / -1; margin: 0; }
.times { display: flex; align-items: center; gap: 6px; color: var(--muted); }
input[type=time] { height: 44px; padding: 0 10px; font: inherit; font-size: 15px; color: var(--navy); border: 1px solid transparent; border-radius: 12px; background: var(--field); font-variant-numeric: tabular-nums; }
.hours-row:has(.switch input:not(:checked)) .times { opacity: 0.45; }
.hours-form .opt > .pickfile { font-family: inherit; }
.today { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ok); }
.today.shut { color: var(--muted); }
@media (min-width: 960px) {
    .hours-form { max-width: 620px; }
    .hours-form .btn { width: auto; padding: 0 56px; align-self: flex-start; }
}
/* أوقات الفتح am Handy: Tag und Schalter in einer Zeile, die Zeiten darunter über die ganze Breite */
.hours-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "day sw" "times times"; }
.hours-row strong { grid-area: day; }
.hours-row .switch { grid-area: sw; flex-direction: row-reverse; gap: 8px; }
.hours-row .times { grid-area: times; }
.hours-row .times input { flex: 1 1 0; min-width: 0; width: 100%; }
@media (min-width: 960px) {
    .hours-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "day times sw"; column-gap: 18px; }
    .hours-row .times input { flex: 0 0 auto; width: auto; }
    .hours-row .switch { min-width: 110px; justify-content: flex-start; }
}
/* Der Knopf des Schalters hängt am Schalter selbst, nicht am ganzen Etikett: so stimmt er auch mit dem Wort daneben. */
.switch span { position: relative; flex-shrink: 0; }

/* v37: أوقات رمضان – zweiter Kasten mit eigenem Hauptschalter; die Zeile auf der Kundenkarte nennt den Ramadan */
.hours-form .opt > .same { font-family: inherit; }
.ramadan .auto-head h2 { font-size: 15px; font-weight: 600; }
.ramadan:has(.auto-head .switch input:not(:checked)) .hours { opacity: 0.6; }
.today b { font-weight: 600; }

/* Erinnerung an den Ramadan (Startseite und أوقات الفتح) */
.ramadan-note .soon { white-space: nowrap; }
/* v38: der Ramadan-Kasten zeigt seine sieben Zeilen erst, wenn "رمضان دابا" an ist */
.ramadan:has(.auto-head .switch input:not(:checked)) .hours,
.ramadan:has(.auto-head .switch input:not(:checked)) .same { display: none; }
/* v41: Knopf "zu Google Wallet" auf der Kundenkarte (schwarz, wie Google es vorgibt) */
.btn.gw { background: #1F1F1F; box-shadow: none; }
/* v43: Seite "الشرح": sechs Schritte, jeder im Kasten mit Nummer und Weg zur Seite */
.guide .blk { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.guide .blk > i { width: 34px; height: 34px; border-radius: 50%; background: var(--field); font-style: normal; font-size: 15px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.guide .blk:first-child > i { background: var(--accent); color: #FFFFFF; }
.guide h2 { font-size: 17px; font-weight: 600; margin: 0; }
.guide p { font-size: 13px; margin: 0; line-height: 1.6; }
.guide .go { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
@media (min-width: 960px) {
    .guide .blk { grid-column: span 4; }
}
/* v45: "امسح" im neuen Design: Seitenkopf, Kästen, Wahl als schmale runde Knöpfe; am PC Kamera neben den Kästen */
.modes.slim { gap: 8px; }
.modes.slim label span { flex-direction: row; justify-content: center; gap: 8px; padding: 0 10px; height: 48px; border-radius: 999px; background: #FFFFFF; box-shadow: none; }
.modes.slim strong { margin: 0; font-size: 14px; }
.modes.slim small { display: none; }
.modes.slim input:checked + span { background: var(--navy); }
.scan .blk { display: flex; flex-direction: column; gap: 12px; }
.grid.boxed > .scan-cam { background: none; border: 0; padding: 0; border-radius: 0; }
.scan .scan-new form { display: flex; flex-direction: column; gap: 10px; }
.scan .scan-new p { margin: 0; }
.scan .inline input[type=text] { background: var(--field); }
@media (min-width: 960px) {
    .grid.boxed > .scan-cam { grid-column: span 7; grid-row: span 2; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
    .scan .scan-manual, .scan .scan-new { grid-column: span 5; }
    .scan .scanner { aspect-ratio: auto; height: 440px; max-height: none; }
    .scan .scanner i:nth-of-type(1), .scan .scanner i:nth-of-type(3) { left: calc(50% - 150px); }
    .scan .scanner i:nth-of-type(2), .scan .scanner i:nth-of-type(4) { right: calc(50% - 150px); }
    .modes.slim small { display: inline; }
    .scan { align-items: start; grid-template-rows: auto 1fr; }
}
/* v46: "الخدامة" und "شكون خدام دابا؟" im neuen Design */
.person { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.sec + .person { border-top: 0; }
.person .avatar { width: 36px; height: 36px; font-size: 15px; flex-shrink: 0; }
.person strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .state { justify-self: auto; flex-shrink: 0; }
.person .go { flex-shrink: 0; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; padding: 6px 0 6px 4px; }
.page-head .back { color: var(--accent); text-decoration: none; font-weight: 500; }
@media (min-width: 960px) {
    .staff { align-items: start; }
    .staff .staff-list { grid-column: span 7; }
    .staff .staff-add { grid-column: span 5; }
}
/* v47: "بطاقات الطابع", neue Karte, Einlösen von Hand, Verkaufscode und "قريبا" im neuen Design */
.person strong small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.person form { flex-shrink: 0; }
.mini { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--navy); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.nfc .person { flex-wrap: wrap; }
.nfc .person strong { flex: 1 1 140px; white-space: normal; }
.code-show .blk { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.code-show .qr { align-self: center; width: 100%; max-width: 280px; }
.sheet-form .pick span b { margin-inline-start: 8px; font-weight: 500; opacity: 0.6; }
.soon .blk p { margin: 0; font-size: 15px; line-height: 1.7; }
@media (min-width: 960px) {
    .nfc > .blk { grid-column: span 8; }
    .code-show > .blk, .soon > .blk { grid-column: span 6; }
}
/* v47: Login am PC: Satz groß auf der einen Seite, Formular im Kasten auf der anderen. Am Handy unverändert. */
.login-say, .login-box { display: contents; }
@media (min-width: 960px) {
    body.login main { max-width: 1040px; padding: 36px 36px 48px; display: grid; grid-template-columns: minmax(0, 1fr) 440px; grid-template-rows: auto 1fr auto; column-gap: 72px; row-gap: 24px; }
    body.login main > header.top { grid-column: 1 / -1; }
    .login-say { display: flex; flex-direction: column; gap: 16px; grid-column: 1; grid-row: 2; align-self: center; }
    .login-say .pill { margin-top: 0 !important; }
    .login-say h1 { font-size: 60px; line-height: 1.15; letter-spacing: -1px; }
    .login-say p { font-size: 17px; }
    .login-box { display: flex; flex-direction: column; gap: 16px; grid-column: 2; grid-row: 2; align-self: center; background: #FFFFFF; border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: 0 30px 60px -40px rgba(14, 27, 51, 0.35); }
    .login-box form { margin-top: 0 !important; }
    body.login .checks { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
}
/* v48: Verwaltung der Plattform, Hilfe, Hinweise der Plattform auf der Startseite, gesperrtes Geschäft */
.nudge.notice { background: var(--accent); }
.nudge.notice .soon { background: rgba(255, 255, 255, 0.22); }
.nudge.news { background: #FFFFFF; color: var(--navy); border: 1px solid var(--line); }
.nudge.news strong { color: var(--accent); font-size: 12px; }
.nudge.news div span { font-size: 14px; opacity: 1; }
.btn.wa { background: #1F9D61; box-shadow: none; }
.help .blk { display: flex; flex-direction: column; gap: 12px; }
.help .blk p { margin: 0; font-size: 14px; }
.adm .blk { display: flex; flex-direction: column; gap: 12px; }
.adm textarea, .sheet-form textarea { width: 100%; border: 0; border-radius: 14px; background: var(--field); padding: 12px 14px; font: inherit; font-size: 15px; color: var(--navy); resize: none; }
.adm .person strong { white-space: normal; }
.person .del { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #FFFFFF; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.mini.on { background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.sheet-form .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sheet-form .tags button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; font: inherit; font-size: 13px; color: var(--navy); cursor: pointer; }
@media (min-width: 960px) {
    body.admin main { max-width: 1120px; padding: 28px 36px 48px; gap: 20px; }
    .help > .blk { grid-column: span 6; }
    .adm { align-items: start; }
    .adm .adm-support { grid-column: span 5; }
    .adm .adm-news { grid-column: span 7; grid-row: span 2; }
    .adm .adm-merchants { grid-column: span 12; }
}
/* v49: Abo "bezahlt bis": Liste "خاصهم المتابعة" in der Verwaltung, WhatsApp-Knopf, Datumsfeld */
.mini.wa { display: inline-flex; align-items: center; text-decoration: none; background: #1F9D61; border-color: transparent; color: #FFFFFF; flex-shrink: 0; }
.sheet-form input[type=date] { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--field); padding: 0 14px; font: inherit; font-size: 16px; color: var(--navy); }
.adm .person { flex-wrap: wrap; }
.adm .person strong { flex: 1 1 150px; }
@media (min-width: 960px) {
    .adm .adm-due { grid-column: span 12; }
    .adm .adm-days { grid-column: span 5; }
}
/* v50: Verwaltung, Fristen des Abos einstellbar */
.adm .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.adm input[type=number] { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--field); padding: 0 14px; font: inherit; font-size: 18px; font-weight: 500; color: var(--navy); }
/* v51: Konto selbst eröffnen, Streifen der Gratiszeit, Seite "الاشتراك" */
.trial-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin: -24px -20px 0; padding: 11px 16px; background: var(--navy); color: #FFFFFF; font-size: 13px; font-weight: 500; text-decoration: none; }
.trial-bar b { font-weight: 600; color: #FFB59E; }
.trial-bar span { min-width: 0; }
/* v244: «Team» als App aufs Handy; nur sichtbar, wenn der Browser es anbietet */
.team-add { display: none; width: calc(100% + 40px); border: 0; font: inherit; font-size: 13px; cursor: pointer; }
html.can-install .team-add { display: flex; }
.subs .blk { display: flex; flex-direction: column; gap: 14px; }
.subs-top { display: flex; align-items: center; gap: 16px; }
.subs-top h2 { margin: 6px 0 2px; font-size: 19px; font-weight: 600; }
.subs-top p { margin: 0; font-size: 14px; }
.subs-top .state { justify-self: auto; }
.ring { --p: 100; flex-shrink: 0; width: 92px; height: 92px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; background: radial-gradient(closest-side, #FFFFFF 82%, transparent 83%), conic-gradient(var(--navy) calc(var(--p) * 1%), var(--line) 0); }
.ring.due { background: radial-gradient(closest-side, #FFFFFF 82%, transparent 83%), conic-gradient(var(--accent) calc(var(--p) * 1%), var(--line) 0); }
.ring b { font-size: 28px; font-weight: 500; }
.ring small { font-size: 11px; color: var(--muted); }
.subs-line { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.subs-line li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.subs-line li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.subs-line li.on::before { background: var(--navy); }
.subs-line li span { flex: 1; }
.subs-line li small { font-size: 13px; font-weight: 400; color: var(--muted); }
.pay-info { margin: 0; font-size: 15px; line-height: 1.8; }
.adm .two.three { grid-template-columns: 1fr 1fr 1fr; }
.adm input[type=text] { width: 100%; }
@media (min-width: 960px) {
    .trial-bar { margin: 0; border-radius: 14px; }
    .team-add { width: 100%; }
    .subs > .blk { grid-column: span 6; }
    .adm .adm-pay { grid-column: span 5; }
}
/* v52: Kundennummer des Händlers auf der Seite "الاشتراك" */
.cust-no { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--field); }
.cust-no span { font-size: 12px; color: var(--muted); }
.cust-no b { font-size: 26px; font-weight: 600; letter-spacing: 1px; align-self: flex-start; }
.cust-no small { font-size: 12px; color: var(--muted); line-height: 1.6; }
/* v53: drei Pakete auf der Seite "الاشتراك", gesperrte Seite, Pakete in der Verwaltung */
.plans .plan { display: flex; flex-direction: column; gap: 10px; }
.plans .plan.best { border-color: var(--navy); box-shadow: 0 18px 40px -28px rgba(14, 27, 51, 0.5); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.plan-head .state { justify-self: auto; }
.plan p { margin: 0; font-size: 13px; }
.plan .plan-price { font-size: 24px; font-weight: 600; color: var(--navy); }
.plan ul { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 600; flex-shrink: 0; }
.plan li.later { color: var(--muted); }
.plan li.later::before { color: var(--line); }
.plan li.all { font-weight: 500; }
.soon .blk { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 960px) {
    .plans > .plan { grid-column: span 4; }
    .adm .adm-plans { grid-column: span 7; }
    .soon .blk .btn { width: auto; align-self: flex-start; padding: 0 36px; }
}
/* v54: Pakete als Reiter, darunter die Laufzeit (شهر / 6 شهور / عام) mit geschenkten Monaten */
.plans-form { gap: 14px; }
.plan-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 5px; border-radius: 18px; background: var(--field); }
.plan-tabs input, .terms input { position: absolute; opacity: 0; pointer-events: none; }
.plan-tabs span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 52px; padding: 6px 4px; border-radius: 14px; font-size: 15px; font-weight: 500; text-align: center; cursor: pointer; color: var(--muted); }
.plan-tabs small { font-size: 10px; font-weight: 400; }
.plan-tabs input:checked + span { background: var(--navy); color: #FFFFFF; }
.plan-tabs input:focus-visible + span, .terms input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.terms span { display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; padding: 0 6px 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #FFFFFF; text-align: center; cursor: pointer; overflow: hidden; }
.terms em { align-self: stretch; margin: 0 -6px 8px; padding: 6px 4px; background: var(--field); font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); }
.terms em.gift { background: var(--ok-bg); color: var(--ok); }
.terms strong { font-size: 14px; font-weight: 500; }
.terms b { font-size: 17px; font-weight: 600; min-height: 22px; }
.terms small { font-size: 10.5px; color: var(--muted); min-height: 14px; }
.terms i { font-style: normal; }
.terms b i { font-size: 12px; font-weight: 500; }
.terms input:checked + span { border-color: var(--navy); box-shadow: 0 10px 24px -16px rgba(14, 27, 51, 0.6); }
.terms input:checked + span em { background: var(--navy); color: #FFFFFF; }
.plans > .plan[hidden] { display: none; }
@media (min-width: 960px) {
    .plans-form { max-width: 760px; }
    .plans > .plan { grid-column: span 12; }
    .plans-form .btn { width: auto; align-self: flex-start; padding: 0 44px; }
    .terms b { font-size: 20px; }
}
/* v55: öffentliche Startseite */
body.land main { gap: 34px; }
.land-hero { display: flex; flex-direction: column; gap: 26px; }
.land-hero .say { display: flex; flex-direction: column; gap: 14px; }
.land-hero .say .pill { align-self: flex-start; }
.land-hero h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.8px; }
.land-hero .say > p { font-size: 16px; line-height: 1.7; margin: 0; }
.land-hero .cta { display: flex; flex-direction: column; gap: 10px; }
.land-hero .checks { justify-content: flex-start; }
.land-hero .show { display: flex; flex-direction: column; gap: 10px; }
.land-sec { display: flex; flex-direction: column; gap: 14px; }
.land-sec h2, .land-end h2 { margin: 0; font-size: 26px; font-weight: 600; letter-spacing: -0.3px; }
.land-sec > p { margin: -6px 0 0; font-size: 14px; }
.land-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.land-steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; row-gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: 20px; background: #FFFFFF; }
.land-steps i { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--field); font-style: normal; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.land-steps li:first-child i { background: var(--accent); color: #FFFFFF; }
.land-steps strong { font-size: 16px; font-weight: 600; align-self: end; }
.land-steps span { font-size: 13px; color: var(--muted); line-height: 1.6; }
.land-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.land-tiles div { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 20px; background: var(--field); }
.land-tiles strong { font-size: 15px; font-weight: 600; }
.land-tiles span { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.land-plans { display: flex; flex-direction: column; gap: 12px; }
.land-plans .plan { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #FFFFFF; }
.land-plans .plan.best { border-color: var(--navy); box-shadow: 0 18px 40px -28px rgba(14, 27, 51, 0.5); }
.land-plans h3 { margin: 0; font-size: 20px; font-weight: 600; }
.land-plans .plan-price small { font-size: 13px; font-weight: 400; color: var(--muted); }
.land-gift { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0; }
.land-gift span { padding: 7px 14px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-size: 13px; font-weight: 500; }
.land-end { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 22px; border-radius: 26px; background: var(--navy); color: #FFFFFF; text-align: center; }
.land-end p { margin: 0; font-size: 14px; opacity: 0.75; }
.land-end .btn { background: var(--accent); box-shadow: none; margin-top: 8px; }
.land-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding-top: 4px; font-size: 13px; }
.land-foot a { color: var(--muted); text-decoration: none; }
.land-foot .sign { margin: 0; }
a.mini { display: inline-flex; align-items: center; text-decoration: none; }
@media (min-width: 960px) {
    body.land main { max-width: 1120px; padding: 30px 36px 48px; gap: 76px; }
    .land-hero { flex-direction: row; align-items: center; gap: 72px; padding-top: 26px; }
    .land-hero .say { flex: 1; gap: 18px; }
    .land-hero h1 { font-size: 68px; letter-spacing: -1.4px; }
    .land-hero .say > p { font-size: 19px; max-width: 520px; }
    .land-hero .cta { flex-direction: row; }
    .land-hero .cta .btn { width: auto; padding: 0 34px; }
    .land-hero .show { flex: 0 0 420px; }
    .land-sec h2, .land-end h2 { font-size: 36px; }
    .land-steps { flex-direction: row; gap: 18px; }
    .land-steps li { flex: 1; padding: 24px; grid-template-columns: 1fr; row-gap: 6px; }
    .land-steps i { grid-row: auto; margin-bottom: 8px; }
    .land-tiles { grid-template-columns: repeat(4, 1fr); gap: 18px; }
    .land-tiles div { padding: 22px; }
    .land-plans { flex-direction: row; gap: 18px; align-items: stretch; }
    .land-plans .plan { flex: 1; padding: 24px; }
    .land-end { padding: 56px 22px; }
    .land-end .btn { width: auto; padding: 0 44px; }
}
/* v56: Seite "الهدايا" und die Leiter der Prämien auf der Kundenkarte */
.rw .blk { display: flex; flex-direction: column; gap: 12px; }
.rw .person.off { opacity: 0.55; }
.rw .person .avatar { font-size: 14px; font-weight: 600; }
.rw .person strong { white-space: normal; }
.rw input[type=number], .sheet-form input[type=number] { width: 100%; height: 52px; border: 0; border-radius: 14px; background: var(--field); padding: 0 14px; font: inherit; font-size: 18px; font-weight: 500; color: var(--navy); }
.ladder { gap: 0; padding-block: 6px; }
.ladder > div { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.ladder > div:first-child { border-top: 0; }
.ladder i { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); font-style: normal; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.ladder strong { flex: 1; font-size: 15px; font-weight: 500; }
.ladder span { font-size: 12px; color: var(--muted); }
.ladder .got i { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.ladder .got span { color: var(--accent); font-weight: 600; }
@media (min-width: 960px) {
    .rw { align-items: start; }
    .rw .rw-list { grid-column: span 7; }
    .rw .rw-add, .rw .rw-welcome, .rw .rw-mode { grid-column: span 5; }
    .rw .rw-list { grid-row: span 3; }
}
/* v57: Willkommens-Stempel */
.rw .rw-welcome p { margin: 0; font-size: 14px; }
.pill.gift { color: var(--accent); background: #FFF1EC; }
/* v59: Zahl der Stempel einer Prämie mit Minus und Plus (der Schieber aus v58 gefiel nicht) */
.stepper { display: flex; flex-direction: column; gap: 8px; }
.stepper label { font-size: 13px; color: var(--muted); }
.stepper > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper button { flex-shrink: 0; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--navy); font: inherit; font-size: 30px; line-height: 1; cursor: pointer; }
.stepper button.plus { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.stepper button:active { opacity: 0.8; }
.rw .stepper input[type=number], .sheet-form .stepper input[type=number] { flex: 1; min-width: 0; width: auto; height: 64px; border: 0; background: none; padding: 0; text-align: center; font-size: 54px; font-weight: 500; color: var(--navy); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* v60: Art der Prämien (wählen oder Stationen) */
.mode-tiles { display: flex; flex-direction: column; gap: 8px; }
.mode-tiles input { position: absolute; opacity: 0; pointer-events: none; }
.mode-tiles span { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #FFFFFF; cursor: pointer; }
.mode-tiles strong { font-size: 15px; font-weight: 600; }
.mode-tiles small { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.mode-tiles input:checked + span { border-color: var(--navy); background: var(--navy); color: #FFFFFF; }
.mode-tiles input:checked + span small { color: rgba(255, 255, 255, 0.75); }
.mode-tiles input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ladder .passed strong, .ladder .passed span { color: var(--muted); }
.ladder .passed i { background: var(--field); border-color: var(--field); }

/* v64: Reiter der Einstellungen (المحل / الباقات والدفع) */
.set-tabs { display: grid; grid-template-columns: 1fr 2.1fr 1fr; gap: 6px; padding: 5px; margin: 0 0 16px; border-radius: 18px; background: #FFFFFF; border: 1px solid var(--line, #E6E8EF); }
.set-tabs a { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 4px; border-radius: 14px; font-size: 14px; line-height: 1.25; font-weight: 500; text-align: center; text-decoration: none; color: var(--muted); }
.set-tabs a.on { background: var(--navy); color: #FFFFFF; }
.set-tabs a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 960px) { .set-tabs { max-width: 520px; } }
.acc-phone { margin: 10px 0 6px; font-size: 22px; font-weight: 600; }
.set-panel[hidden] { display: none; }

/* v68: Ort des Geschäfts in den Einstellungen */
.loc { display: flex; flex-direction: column; gap: 8px; }
.loc .lbl { font-size: 14px; color: var(--muted); }
.loc-state { font-size: 15px; font-weight: 500; }
.loc-state.ok { color: var(--ok); }
.loc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-acts .mini { display: inline-flex; align-items: center; height: 40px; text-decoration: none; }
.loc-acts .mini[hidden] { display: none; }
.loc-acts [data-take] { background: var(--navy); border-color: transparent; color: #FFFFFF; }
.loc small { font-size: 12px; color: var(--muted); }

/* v69: الأوتوماتيك, wie viele Kunden zurückkamen */
.auto-back { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 14px; padding: 16px 18px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); text-align: start; }
.auto-back > div { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.auto-back h2 { font-size: 17px; }
.auto-back-n { display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.auto-back-n b { font-size: 34px; font-weight: 600; line-height: 1; }
.auto-back-n span { font-size: 13px; color: var(--muted); }
.auto-res { display: block; color: var(--ok); font-weight: 500; }


/* ---- الأوتوماتيك: "دايز من حدا المحل" (v70): Schalter, Stand des Ortes, Link zum Reiter "المحل" ---- */
.near-loc { display: flex; align-items: center; gap: 10px; margin: 12px 0 8px; }
.near-loc .state { justify-self: auto; }
.near-loc .go { margin-inline-start: auto; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }

/* ---- الأوتوماتيك: Regeln für alle Arten (v71): Hauptschalter, Abstand, Stunden, Dirham ---- */
.auto-all { display: flex; flex-direction: column; gap: 12px; }
.auto-all .stepper input[type=number] { flex: 1; min-width: 0; width: auto; height: 64px; border: 0; background: none; padding: 0; text-align: center; font-size: 54px; font-weight: 500; color: var(--navy); -moz-appearance: textfield; appearance: textfield; }
.auto-hours { display: grid; gap: 14px; }
.auto-all:has(.auto-head .switch input:not(:checked)) .stepper, .auto-all:has(.auto-head .switch input:not(:checked)) ~ .auto { opacity: 0.5; }
.auto-back { flex-wrap: wrap; }
.auto-back-dh { flex-basis: 100%; margin: 0; color: var(--muted); }
.auto-back-dh .go { font-weight: 500; color: var(--accent); text-decoration: none; }
/* v179: nebeneinander nur, wenn beide in den Kasten passen (bei 1080 px Fensterbreite ragte „حتى“ aus dem Kasten). */
@media (min-width: 960px) { .auto-hours { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 14px 24px; } .auto-hours > .stepper { min-width: 0; } }

/* ---- Ort des Geschäfts: Zusatz "ab dem mittleren Paket" als Link zu den Paketen (v76) ---- */
.loc-plan { color: var(--accent); font-weight: 500; text-decoration: none; white-space: nowrap; }

/* ---- Ort des Geschäfts mit erklärenden Symbolen (v77, Spakpos Wahl: Bild 4) ---- */
.ico-badge { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #FDE9E2; color: var(--accent); flex-shrink: 0; }
.loc .lbl { display: inline-flex; align-items: center; gap: 8px; }
.loc-row { display: flex; align-items: center; gap: 8px; margin: 0; }
.loc-row svg { display: none; color: var(--ok); flex-shrink: 0; }
.loc-row:has(.loc-state.ok) svg { display: block; }
.loc-acts .mini { gap: 8px; }
.loc-hint { display: flex; align-items: flex-start; gap: 10px; }
.loc-hint > svg { flex-shrink: 0; margin-top: 3px; color: var(--accent); }
.loc-plan { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border-radius: 999px; background: #FDE9E2; white-space: normal; }

/* ---- Ort des Geschäfts am Handy (v78, Spakpos Wahl: Bild 4): weniger Zeilen, ein großer Knopf, zwei runde Symbol-Knöpfe ---- */
.loc-short { display: none; }
@media (max-width: 959px) {
    .loc { display: grid; grid-template-columns: 1fr auto; gap: 12px 8px; align-items: center; padding: 16px; border-radius: 20px; background: #F6F7FA; }
    .loc .lbl { grid-column: 1; grid-row: 1; }
    .loc-row { grid-column: 2; grid-row: 1; gap: 6px; padding: 5px 10px; border-radius: 999px; }
    .loc-row:has(.loc-state.ok) { background: var(--ok-bg); }
    /* Ohne Ort oder bei einer Fehlermeldung steht der Satz in einer eigenen Zeile: er ist zu lang für die Pille. */
    .loc-row:not(:has(.loc-state.ok)) { grid-column: 1 / -1; grid-row: auto; padding: 0; }
    .loc-row svg { width: 16px; height: 16px; }
    .loc-row:has(.loc-state.ok) .loc-state { font-size: 12px; }
    .loc-acts, .loc-hint, .loc > .error { grid-column: 1 / -1; }
    .loc-acts { flex-wrap: nowrap; }
    .loc-acts [data-take] { flex: 1; height: 50px; justify-content: center; font-size: 15px; }
    .loc-acts [data-map], .loc-acts [data-clear] { flex-shrink: 0; width: 50px; height: 50px; padding: 0; justify-content: center; font-size: 0; background: #FFFFFF; }
    .loc-long { display: none; }
    .loc-short { display: inline; }
}

/* ---- Reiter "المحل" am Handy (v79): geprüft bei 360 px Breite (Spakpos Handy). Nichts bricht in zwei Zeilen. ---- */
.cool legend { display: flex; align-items: center; gap: 8px; }
@media (max-width: 959px) {
    .loc { padding: 14px; }
    .loc .lbl { white-space: nowrap; font-size: 13px; }
    .loc .ico-badge, .cool .ico-badge { width: 30px; height: 30px; }
    .loc-acts [data-take] { white-space: nowrap; font-size: 14px; padding: 0 10px; gap: 6px; }
    .loc-acts [data-map], .loc-acts [data-clear] { width: 46px; height: 50px; }
    .cool { padding: 14px; border-radius: 20px; background: #F6F7FA; }
    .cool legend { float: inline-start; width: 100%; margin-bottom: 12px; }
    .cool > div { clear: both; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .cool span { min-width: 0; padding: 0 2px; font-size: 13px; white-space: nowrap; }
}
.cool legend .ico-badge { min-width: 0; padding: 0; border: 0; background: #FDE9E2; font-size: inherit; }

/* ---- الأوتوماتيك am Handy (v80), geprüft bei 360 px: Symbol pro Art, kleine Minus/Plus-Zeilen, Text nur bei AN ---- */
.auto-head > div { flex: 1; min-width: 0; }
.auto-all .stepper label { display: flex; align-items: center; gap: 8px; }
.auto-all .stepper label svg { flex-shrink: 0; color: var(--accent); }
@media (max-width: 959px) {
    .auto-head { gap: 10px; }
    .auto-head .ico-badge { width: 32px; height: 32px; align-self: flex-start; }
    .auto-head h2 { font-size: 15px; }
    /* Ausgeschaltete Art: nur Titel und Schalter. Der Text erscheint, sobald sie an ist (wie bei سيدنا رمضان). */
    .auto:has(.switch input:not(:checked)) .write { display: none; }
    .auto-all .stepper { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
    .auto-all .stepper label { flex: 1; min-width: 0; font-size: 13px; }
    .auto-all .stepper > div { flex-shrink: 0; gap: 4px; }
    .auto-all .stepper button { width: 40px; height: 40px; font-size: 22px; }
    .auto-all .stepper input[type=number] { flex: none; width: 46px; height: 40px; font-size: 24px; }
    .auto-hours { gap: 10px; }
    .auto-all > small { font-size: 12px; }
}

/* ---- الهدايا (v81): Symbol an jedem Abschnitt, Passwort erst nach einer Änderung, "زيد هدية" zugeklappt ---- */
.rw .sec span { display: inline-flex; align-items: center; gap: 8px; }
.rw .sec span svg { color: var(--accent); flex-shrink: 0; }
.reveal { display: flex; flex-direction: column; gap: 12px; }
.reveal[hidden] { display: none; }
.rw-more summary { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 999px; border: 1.5px dashed var(--line); font-size: 15px; font-weight: 500; color: var(--navy); cursor: pointer; list-style: none; }
.rw-more summary::-webkit-details-marker { display: none; }
.rw-more summary svg { color: var(--accent); }
.rw-more[open] summary { margin-bottom: 16px; border-style: solid; }

/* ---- الرسائل am Handy (v82), geprüft bei 360 px ---- */
.opt h2 { display: flex; align-items: center; gap: 8px; }
.opt h2 svg, .sec-ico svg { color: var(--accent); flex-shrink: 0; }
.sec-ico { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 959px) {
    /* Sperrbildschirm kleiner: er soll zeigen, nicht die halbe Seite füllen. */
    .lock { min-height: 0; padding: 20px 12px 16px; border-radius: 28px; }
    .lock-time { font-size: 40px; letter-spacing: -1px; }
    .lock-day { margin: 4px 0 14px; }
    .write textarea { min-height: 96px; }
    /* Felder und Vorlagen: EINE Zeile zum Wischen statt zwei bis drei umbrochene. */
    .tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -18px; padding-inline: 18px; }
    .tags::-webkit-scrollbar { display: none; }
    .tags > span { flex: 0 0 auto; }
    .tags button { flex-shrink: 0; white-space: nowrap; }
    /* Gruppen in zwei gleichen Spalten. */
    .pick.aud > div { display: grid; grid-template-columns: 1fr 1fr; }
    .pick.aud span { justify-content: space-between; padding: 0 14px; font-size: 13px; }
}

/* ---- الزبناء (v83): Lupe im Suchfeld; am Handy steht die Liste im weißen Kasten (wie die gespeicherten Nachrichten) ---- */
.find { position: relative; }
.find svg { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.find input[type=text] { padding-right: 44px; }
html[dir=ltr] .find svg { right: auto; left: 16px; }
html[dir=ltr] .find input[type=text] { padding-right: 18px; padding-left: 44px; }
@media (max-width: 959px) {
    .rows { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 2px 12px; }
    .rows .row { column-gap: 8px; }
    .rows .row .prog { gap: 6px; }
    .rows .row .prog .num { white-space: nowrap; }
    .rows .row:nth-child(2) { border-top: 0; }
}

/* ---- الرئيسية (v84): Symbol in den zwei Knöpfen oben. Sonst bleibt die Seite, wie sie ist (große Zahlen). ---- */
.acts a { gap: 8px; }

/* ---- الإحصائيات am Handy (v85), geprüft bei 360 px: Titel brechen nicht um, die Erklärung rutscht darunter ---- */
@media (max-width: 959px) {
    .blk .sec { flex-wrap: wrap; row-gap: 2px; }
    .blk .sec .sec-ico { white-space: nowrap; }
    .kpis.three small { font-size: 11px; white-space: nowrap; }
}

/* ---- تصميم البطاقة (v87): Hochladen klarer. Symbol im Kästchen, Knopf mit Symbol, Hintergrund als zwei Kacheln ---- */
.upload label.thumb { display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: pointer; }
.upload label.thumb[style] svg { display: none; }
.pickfile { gap: 8px; }
.bg-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bg-tile { position: relative; height: 64px; border-radius: 16px; border: 1.5px solid var(--line); background: #FFFFFF center / cover no-repeat; font: inherit; font-size: 14px; font-weight: 500; color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; }
.bg-tile.up { border-style: dashed; border-color: #B9C1D1; color: var(--muted); }
.bg-tile.up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.bg-tile.up span { display: inline-flex; align-items: center; gap: 8px; }
.bg-tile.up[style*=url] span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--navy); font-size: 13px; }
.bg-tile.up.fit { background-size: contain; }
.bg-tile.on { border: 2px solid var(--navy); color: var(--navy); }
.bg-tile[data-none].on { background: var(--navy); color: #FFFFFF; }

/* ---- أوقات العمل am Handy (v88): ein geschlossener Tag zeigt nur Tag und Schalter; die Zeiten erscheinen beim Öffnen ---- */
@media (max-width: 959px) {
    .hours-row:has(.switch input:not(:checked)) .times { display: none; }
}

/* ---- Vorschau als Handy der neuen Generation (v89): Rahmen, Insel, Statuszeile, Strich unten; klein (ohne graue Bühne, v90),
        damit das ganze Handy ohne Scrollen zu sehen ist. Gilt für صفحة التسجيل, الرسائل, الأوتوماتيك. ---- */
.stage.device { padding: 6px 0 14px; }
.stage.device .phone, .stage.device .lock { zoom: 0.74; border: 11px solid var(--navy); border-radius: 56px; box-shadow: 0 0 0 1.500px #2A3A5C, 0 30px 50px -28px rgba(14, 27, 51, 0.55); }
.stage.device .phone { padding: 10px 12px; gap: 14px; }
.stage.device .lock { border-color: #0B1220; padding: 10px 12px; min-height: 470px; }
.ph-bar { align-self: stretch; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; height: 30px; padding: 0 10px; color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1; }
.ph-t { min-width: 42px; }
.ph-isl { width: 86px; height: 25px; border-radius: 99px; background: #0B1220; }
.ph-s { display: flex; gap: 5px; align-items: center; min-width: 42px; justify-content: flex-end; }
.ph-s svg { fill: currentColor; }
.ph-home { align-self: center; flex-shrink: 0; width: 112px; height: 4px; border-radius: 9px; background: var(--navy); opacity: 0.85; margin-top: 2px; }
.lock .ph-bar { color: #FFFFFF; margin-bottom: 26px; }
.lock .ph-isl { background: #000000; }
.lock .ph-home { background: #FFFFFF; margin-top: auto; }
.lock .lock-note { margin-bottom: 18px; }
.stage.device .lock-note p { font-size: 17px; }
.stage.device .lock-head { font-size: 14px; }
@media (max-width: 959px) { .stage.device .lock { min-height: 390px; } .lock .ph-bar { margin-bottom: 14px; } }
@media (min-width: 960px) {
    /* Die Höhe rechnet im verkleinerten Maß; die Statuszeile bleibt beim Scrollen im Handy oben stehen. */
    .stage.device .phone { zoom: 0.8; max-height: calc((100vh - 170px) / 0.8); scrollbar-width: none; }
    .stage.device .lock { zoom: 0.8; }
    .phone .ph-bar { position: sticky; top: -10px; z-index: 2; background: #FFFFFF; margin: -10px -12px 0; padding: 10px 22px 0; height: 40px; }
}

/* ---- Eigene Fragen auf der Beitrittsseite (v91): Einstellen (.qs), Seite des Kunden (.join-qs), Antworten in der Kundenliste, Zahlen unter الإحصائيات (v92) ---- */
.asks { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #FFFFFF; }
.ask { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 12px 14px; }
.ask + .ask { border-top: 1px solid var(--line); }
.ask[hidden], .q-opts[hidden] { display: none; }
.ask-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--field); display: flex; align-items: center; justify-content: center; color: var(--navy); }
.ask strong { font-size: 15px; font-weight: 500; }
.ask input[type=text] { min-width: 0; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; padding: 0 12px; font: inherit; font-size: 15px; color: var(--navy); }
.ask.q > input[type=text] { border: 0; padding: 0; background: none; font-weight: 500; }
.ask.q > input[type=text]::placeholder { font-weight: 400; }
.ask .del { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--field); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.ask .del:hover, .ask .del:active { background: var(--err-bg); color: var(--err); }
.ask .pick, .ask .q-opts { grid-column: 1 / -1; margin-top: 0; }
.ask .pick > div { display: grid; grid-template-columns: 1fr 1fr; }
.ask .pick span { gap: 6px; padding: 0 8px; font-size: 13px; white-space: nowrap; }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-opts input[type=text] { height: 42px; font-size: 14px; }
.q-add { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: var(--navy); text-align: start; cursor: pointer; }
.q-add .ask-ico { background: none; border: 1.5px dashed var(--line); color: var(--accent); }
.join-qs { display: flex; flex-direction: column; gap: 14px; }
.join-qs:empty { display: none; }
.join-q { margin-top: 0; }
.join-q legend { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.row .answers { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.row .answers > span { max-width: 100%; padding: 4px 10px; border-radius: 10px; background: var(--field); font-size: 13px; color: var(--navy); overflow-wrap: anywhere; }
.an-answers .hbars span { overflow-wrap: anywhere; }

/* ---- Vorschau der Beitrittsseite (v93): Wallet-Knopf im Handy, mit Schild "قريبا", solange die Wallet nicht angebunden ist ---- */
.tag-off { display: none; font-style: normal; font-size: 11px; font-weight: 600; color: var(--accent); background: #FDEDE7; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.off .tag-off { display: inline-block; }
.btn.wallet { display: flex; align-items: center; justify-content: center; gap: 12px; position: relative; cursor: default; background: #000000; color: #FFFFFF; box-shadow: none; }
.btn.wallet span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn.wallet small { font-size: 11px; font-weight: 400; opacity: 0.85; }
.btn.wallet b { font-weight: 600; font-size: 18px; }
.wallet-sub { margin-top: -6px; font-size: 11px; }
.btn.wallet .tag-off { position: absolute; inset-inline-end: 10px; top: -9px; }
.join-form { display: flex; flex-direction: column; gap: 14px; }
.join-form > .btn { margin-top: 0; }

/* ---- تصميم البطاقة (v94): das eigene Stempelbild als dieselbe Kachel wie Logo und Hintergrund ---- */
.bg-tiles.one { grid-template-columns: 1fr; }
.bg-tiles[hidden] { display: none; }

/* ---- الزبناء (v95): Liste herunterladen, zugeklappt unter der Liste ---- */
.rw-more.exp summary { height: 46px; font-size: 14px; }
.rw-more.exp[open] { margin-bottom: 6px; }

/* ---- امسح (v98): darf der Kassierer nur eines von beiden, füllt der eine Knopf die Zeile ---- */
.modes:has(label:only-child) { grid-template-columns: 1fr; }

/* ---- Eigene Angaben des Kunden (v99): Hinweis auf der Beitrittsseite, "المعلومات ديالي" auf der Kartenseite ---- */
.join-info { text-align: center; }
.join-info[hidden] { display: none; }
.mine { border: 1px solid var(--line); border-radius: 18px; background: #FFFFFF; padding: 0 16px; }
.mine summary { height: 48px; display: flex; align-items: center; justify-content: space-between; font-size: 14px; font-weight: 500; color: var(--navy); cursor: pointer; list-style: none; }
.mine summary::-webkit-details-marker { display: none; }
.mine summary::after { content: '+'; font-size: 20px; font-weight: 400; color: var(--muted); }
.mine[open] summary::after { content: '−'; }
.mine[open] { padding-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
.mine ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.mine ul b { font-weight: 500; color: var(--navy); }
.btn.danger { color: var(--err); border-color: var(--err-bg); }
.mine > * + * { margin-top: 12px; }
.mine summary + * { margin-top: 0; }

/* ---- Karte (v100): der letzte Platz ist das Geschenk ---- */
.stamps.round i.gift { opacity: 0.85; border-style: dashed; }
.stamps.round i.gift.on { border-style: solid; opacity: 1; }
.stamps.round.pic i.gift { border: 1.5px dashed currentColor; filter: none; opacity: 0.85; }
.stamps.round.pic i.gift.on { border-style: solid; opacity: 1; background: var(--pass-ink, #FFFFFF); border-color: var(--pass-ink, #FFFFFF); color: var(--pass-bg, var(--navy)); }

/* ---- Kartenseite (v101): Prämie erreicht, die Seite feiert ---- */
.won { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 6px 0 2px; }
.won-ico { width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 8px rgba(232, 86, 42, 0.14); animation: ys-pop 0.7s ease-out; margin-bottom: 8px; }
.won h1 { font-size: 26px; }
.won strong { font-size: 18px; font-weight: 600; color: var(--accent); }
.won p { font-size: 14px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .won-ico { animation: none; } }

/* v105: Ein Kasten in `.grid.boxed`, dem keine Breite gegeben wurde, nahm am PC nur 1 von 12 Spalten ein (Reiter
   "الحساب": Text Wort für Wort untereinander). Vorgabe ist jetzt die halbe Breite; jede eigene Regel einer Seite gewinnt. */
@media (min-width: 960px) {
    :where(.grid.boxed) > :where(.blk) { grid-column: span 6; }
}

/* v106: Seite der Mitarbeiter. Kasten "رابط الخدامة" auf der Seite "الخدامة"; am PC über die ganze Breite unter den zwei anderen. */
.staff-link { display: grid; gap: 12px; }
.staff-link form { display: grid; gap: 10px; }
span.who { cursor: default; }
@media (min-width: 960px) {
    .staff .staff-link { grid-column: span 12; grid-template-columns: 260px 1fr; align-items: start; column-gap: 24px; }
    .staff .staff-link > .sec, .staff .staff-link > p:first-of-type { grid-column: 1 / -1; }
    .staff .staff-link .qr { grid-row: span 3; }
}
@media (min-width: 960px) {
    /* Seite der Mitarbeiter am PC: keine Seitenleiste, also auch kein Platz dafür; der Name des Geschäfts bleibt oben. */
    body.counter.has-nav { padding-inline-start: 0; }
    body.counter.has-nav .top .who { display: flex; }
}

/* v114: Seite "الهدايا" – Vorschau der Karte eines neuen Kunden. Am PC links unter der Liste, die drei Kästen der Einstellungen rechts daneben. */
.rw-preview .pass { align-self: center; width: 100%; max-width: 380px; }
@media (min-width: 960px) {
    .rw .rw-list { grid-column: 1 / span 7; grid-row: 1; }
    .rw .rw-preview { grid-column: 1 / span 7; grid-row: 2 / span 3; }
    .rw .rw-add, .rw .rw-welcome, .rw .rw-mode { grid-column: 8 / span 5; }
}
.rw-preview .steps li span { display: flex; flex-direction: column; }
.rw-preview .steps small { font-size: 12px; color: var(--muted); }
.rw-preview .pill { align-self: center; }

/* v116: Seite "الهدايا" – Prämien direkt in der Liste ändern (aufklappen) und mit den Punkten am Rand umsortieren. */
.rw-items { display: flex; flex-direction: column; }
.rw-item { border-top: 1px solid var(--line); background: #FFFFFF; }
.rw-item:first-child { border-top: 0; }
.rw-item summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.rw-item summary::-webkit-details-marker { display: none; }
.rw-item .avatar { width: 36px; height: 36px; font-size: 15px; flex-shrink: 0; }
.rw-item summary strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-item summary strong small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.rw-item .state { flex-shrink: 0; }
.rw-item .chev { flex-shrink: 0; color: var(--muted); transition: transform 0.2s; }
.rw-item[open] .chev { transform: rotate(180deg); }
.rw-item.off summary strong, .rw-item.off .avatar { opacity: 0.55; }
.rw-item .grip { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 30px; height: 44px; margin-inline-start: -8px; color: #B9BECB; cursor: grab; touch-action: none; }
.rw-item .grip:active { cursor: grabbing; }
.rw-edit { display: flex; flex-direction: column; gap: 14px; padding: 4px 0 18px; }
.rw-items.sorting .rw-item { transition: transform 0.18s ease; }
.rw-items.sorting .rw-item.dragging { transition: none; position: relative; z-index: 2; border-top-color: transparent; border-radius: 16px; box-shadow: 0 10px 28px rgba(14, 27, 51, 0.16); padding-inline: 10px; margin-inline: -10px; }
.rw-items.sorting { user-select: none; -webkit-user-select: none; }
#rw-all { display: flex; flex-direction: column; gap: 12px; }

/* v122: "زيد هدية" liegt jetzt im Kasten der Liste, nicht mehr in einem eigenen. */
.rw .rw-list .rw-add { grid-column: auto; }

/* v123: Prämie entfernen, rundes × in der Zeile (wie bei den Nachrichten). */
.rw-item .del { flex-shrink: 0; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: var(--field); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.rw-item .del:hover, .rw-item .del:active { background: var(--err-bg); color: var(--err); }
.rw-item summary { gap: 8px; }

/* v124: Seite "الهدايا" in zwei eigenen Spalten. Vorher teilten sich links und rechts die Zeilen des Rasters:
   wuchs rechts ein Kasten, rutschte links die Vorschau der Karte nach unten. */
.rw-cols { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 960px) {
    .rw-cols { display: grid; grid-template-columns: 7fr 5fr; gap: 20px; align-items: start; }
    .rw-cols > .grid { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
}

/* v125: Nachfrage im eigenen Aussehen (statt des Fensters des Browsers). Am Handy unten, am PC in der Mitte. */
.ask-box { border: 0; padding: 22px 20px 20px; width: min(380px, calc(100% - 32px)); border-radius: 24px; background: #FFFFFF; color: var(--navy); box-shadow: 0 24px 60px rgba(14, 27, 51, 0.28); text-align: center; margin: auto auto 24px; }
.ask-box[open] { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: ask-in 0.18s ease; }
.ask-box::backdrop { background: rgba(14, 27, 51, 0.38); }
.ask-box p { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.5; }
.ask-ico { width: 48px; height: 48px; border-radius: 50%; background: var(--err-bg); color: var(--err); display: flex; align-items: center; justify-content: center; }
.ask-btns { display: flex; gap: 10px; width: 100%; margin-top: 4px; }
.ask-btns .btn { flex: 1 1 0; height: 50px; }
.ask-btns .btn.danger { background: var(--err); color: #FFFFFF; border: 0; box-shadow: none; }
@keyframes ask-in { from { opacity: 0; transform: translateY(10px); } }
@media (min-width: 960px) { .ask-box { margin: auto; } }
@media (prefers-reduced-motion: reduce) { .ask-box[open] { animation: none; } }

/* ---- المينو (v128): Speisekarte beim Händler (.mn-*) und beim Gast (.gm-*) ---- */
.mn-top .steps li span { display: flex; flex-direction: column; }
.mn-top .steps small { font-size: 12px; color: var(--muted); }
.mn-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mn-acts .btn { height: 50px; font-size: 14px; padding: 0 8px; white-space: nowrap; }
.mn-head { display: flex; align-items: center; gap: 8px; }
.mn-head strong { flex: 0 1 auto; min-width: 0; font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-head small { flex: 1; font-size: 12px; color: var(--muted); }
.mn-head form { display: flex; }
.mn-btn { flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--field); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.mn-btn.del:hover, .mn-btn.del:active { background: var(--err-bg); color: var(--err); }
.mn-rename[hidden] { display: none; }
.mn-rename .copy input { background: #FFFFFF; font-size: 15px; }
.mn-items { display: flex; flex-direction: column; margin-block: -6px; }
.mn-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.mn-item:first-child { border-top: 0; }
.mn-item > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.mn-item img, .mn-ph { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; object-fit: cover; background: var(--field); }
.mn-ph { display: flex; align-items: center; justify-content: center; color: #A9B2C4; }
.mn-name { min-width: 0; display: flex; flex-direction: column; }
.mn-name strong { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-name small { font-size: 13px; color: var(--muted); }
.mn-item.off > a { opacity: 0.5; }
.mn-item .switch { width: 48px; }
/* Seitenleiste am PC (v132): mit den neuen Zeilen wird sie höher als ein kleiner Bildschirm; nichts darin darf schrumpfen, sie rollt. */
@media (min-width: 960px) { .side > * { flex-shrink: 0; } }
.mn-add { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 999px; border: 1.5px dashed var(--line); font-size: 14px; font-weight: 500; text-decoration: none; color: var(--navy); }
.mn-add svg { color: var(--accent); }
.mn-new form { display: flex; flex-direction: column; gap: 14px; }
.mn-price { position: relative; display: block; }
.mn-price input { width: 100%; padding-right: 70px; }
/* Das Feld ist LTR (Zahl), die Seite RTL: "درهم" steht links, die Zahl beginnt rechts. Deshalb feste Seiten statt inline-end. */
html[dir=rtl] .mn-price input { text-align: right; padding-right: 16px; padding-left: 70px; }
.mn-price b { position: absolute; inset-inline-end: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 500; color: var(--muted); pointer-events: none; }
.mn-remove { margin-top: 4px; }
.mn-remove .btn { height: 48px; font-size: 14px; }
@media (min-width: 960px) {
    .mn { align-items: start; }
    .mn > .blk { grid-column: span 6; }
    .mn > .mn-top, .mn > .mn-new { grid-column: span 12; }
    .mn-orders .mode-tiles { display: grid; grid-template-columns: 1fr 1fr; }
    .mn-acts { grid-template-columns: repeat(2, 220px); }
    .mn-new form, .mn-new .rw-more summary { max-width: 420px; }
    .mn-orders form { max-width: 620px; }
    .mn-remove { max-width: 620px; }
    .mn-remove .btn { width: auto; padding: 0 28px; }
}

/* Gast: Kopf in der Farbe des Geschäfts, Leiste der Abschnitte bleibt oben stehen. */
body.gm-page { background: #FFFFFF; }
.gm-page .top { display: none; }
.gm-page main { padding: 0 0 28px; gap: 0; }
.gm { display: flex; flex-direction: column; flex: 1; }
.gm-head { background: var(--pass-bg, var(--navy)); color: var(--pass-ink, #FFFFFF); padding: 22px 20px 26px; display: flex; align-items: center; gap: 12px; }
.gm-head h1 { flex: 1; min-width: 0; margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; }
.gm-logo { flex-shrink: 0; width: 52px; height: 52px; border-radius: 14px; object-fit: contain; }
.gm-head .avatar.gm-logo { background: var(--pass-ink, #FFFFFF); color: var(--pass-bg, var(--navy)); font-size: 22px; }
.gm-head .lang { flex-shrink: 0; background: rgba(127, 127, 127, 0.22); }
.gm-head .lang a { color: inherit; opacity: 0.75; }
.gm-head .lang a[aria-current="true"] { background: var(--pass-ink, #FFFFFF); color: var(--pass-bg, var(--navy)); opacity: 1; box-shadow: none; }
.gm-tabs { position: sticky; top: 0; z-index: 3; display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; margin-top: -14px; background: #FFFFFF; border-radius: 18px 18px 0 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.gm-tabs::-webkit-scrollbar { display: none; }
.gm-tabs a { flex-shrink: 0; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--field); display: flex; align-items: center; font-size: 14px; font-weight: 500; text-decoration: none; color: var(--navy); }
.gm-tabs a[aria-current="true"] { background: var(--navy); color: #FFFFFF; }
.gm-sec { padding: 22px 20px 0; scroll-margin-top: 60px; }
.gm-sec h2 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.gm-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.gm-sec h2 + .gm-item { border-top: 0; }
.gm-item > div { flex: 1; min-width: 0; }
.gm-item h3 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.4; }
.gm-item p { margin: 2px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.gm-item b { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--accent); }
.gm-item b .state { height: 22px; }
.gm-item img { flex-shrink: 0; width: 84px; height: 84px; border-radius: 16px; object-fit: cover; background: var(--field); }
.gm-item.off h3, .gm-item.off p, .gm-item.off img { opacity: 0.45; }
.gm-item.off b { color: var(--muted); }
.gm-card { margin: 26px 20px 0; padding: 14px 16px; border-radius: 18px; background: var(--field); display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.gm-card svg { flex-shrink: 0; color: var(--accent); }
.gm-card span { display: flex; flex-direction: column; min-width: 0; }
.gm-card strong { font-size: 15px; font-weight: 600; }
.gm-card small { font-size: 12px; color: var(--muted); }
.gm .sign { margin-top: auto; padding-top: 28px; font-size: 12px; color: var(--muted); }
html:has(.gm) { scroll-behavior: smooth; }

/* ---- الطلبات (v129): Bestellen am Tisch. Knopf am Gericht, Warenkorb, Stand beim Gast, Liste an der Kasse ---- */
.gm-note { margin: 14px 20px 0; }
.gm-table { position: relative; margin: -14px 0 0; padding: 16px 20px 2px; background: #FFFFFF; border-radius: 18px 18px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.gm-table + .gm-tabs { margin-top: 0; border-radius: 0; }
.gm-table svg { color: var(--accent); flex-shrink: 0; }
.gm-add { flex-shrink: 0; align-self: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--navy); font: inherit; font-size: 22px; font-weight: 500; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; }
.gm-add.on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; font-size: 16px; font-weight: 600; }
.gm-add.pop { animation: ys-pop 0.3s ease-out; }
body.has-cart .gm { padding-bottom: 84px; }
/* Auf den Händlerseiten am Handy sitzt die Leiste über der unteren Leiste; auf der Seite der Mitarbeiter gibt es keine. */
body.has-nav .cart-bar { bottom: 100px; }
body.has-nav.counter .cart-bar { bottom: 16px; }
.cart-bar { position: fixed; z-index: 5; bottom: 16px; inset-inline: 0; margin: 0 auto; width: min(398px, calc(100% - 32px)); height: 58px; padding: 0 18px; border: 0; border-radius: 18px; background: var(--navy); color: #FFFFFF; font: inherit; font-size: 15px; display: flex; align-items: center; gap: 12px; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(14, 27, 51, 0.6); animation: ask-in 0.18s ease; }
.cart-bar[hidden] { display: none; }
.cart-bar strong { flex: 1; text-align: start; font-weight: 500; }
.cart-n { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.cart-box { border: 0; padding: 0; width: min(430px, 100%); max-width: 100%; max-height: 86dvh; margin: auto auto 0; border-radius: 24px 24px 0 0; background: #FFFFFF; color: var(--navy); box-shadow: 0 -10px 40px rgba(14, 27, 51, 0.25); }
.cart-box[open] { animation: ask-in 0.18s ease; }
.cart-box::backdrop { background: rgba(14, 27, 51, 0.38); }
.cart-box form { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px 20px; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cart-head strong { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 600; }
.cart-lines { display: flex; flex-direction: column; }
.cart-line { padding: 12px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.cart-line:first-child { border-top: 0; padding-top: 0; }
.cart-row { display: flex; align-items: center; gap: 12px; }
.cart-row strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; }
.qty { flex-shrink: 0; display: flex; align-items: center; gap: 10px; }
.qty button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--navy); font: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.qty button.plus { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.qty b { min-width: 18px; text-align: center; font-size: 16px; font-weight: 600; }
.cart-line input[type=text] { width: 100%; height: 40px; border: 0; border-radius: 12px; background: var(--field); padding: 0 12px; font: inherit; font-size: 14px; color: var(--navy); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.cart-total b { font-size: 20px; font-weight: 600; color: var(--navy); }

/* Stand der Bestellung beim Gast: sichtbar ist nur der Zustand, der gilt. */
.os { margin: -14px 0 0; padding: 22px 20px 6px; background: #FFFFFF; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; gap: 16px; }
.os-no { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; font-weight: 500; }
.os-no b { font-size: 26px; font-weight: 600; }
.os-state { display: none; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border-radius: 20px; background: var(--field); text-align: center; }
.os[data-state=pending] [data-for=pending], .os[data-state=kitchen] [data-for=kitchen], .os[data-state=done] [data-for=done],
.os[data-state=rejected] [data-for=rejected], .os[data-state=expired] [data-for=expired] { display: flex; }
.os-state strong { font-size: 20px; font-weight: 600; }
.os-state p { margin: 0; font-size: 14px; color: var(--muted); }
.os-ico { width: 56px; height: 56px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; color: var(--muted); }
[data-for=pending] .os-ico { color: var(--accent); animation: os-wait 1.6s ease-in-out infinite; }
[data-for=kitchen], [data-for=done] { background: var(--ok-bg); }
[data-for=kitchen] .os-ico, [data-for=done] .os-ico { color: var(--ok); }
[data-for=kitchen] strong, [data-for=done] strong { color: var(--ok); }
[data-for=rejected], [data-for=expired] { background: var(--err-bg); }
[data-for=rejected] .os-ico, [data-for=expired] .os-ico { color: var(--err); }
@keyframes os-wait { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.os-lines { padding-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.os-line { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.os-line b { flex-shrink: 0; min-width: 28px; font-weight: 600; color: var(--accent); }
.os-line span { flex: 1; min-width: 0; font-weight: 500; }
.os-line small { display: block; font-size: 13px; font-weight: 500; color: var(--accent); }
.os-line em { flex-shrink: 0; font-style: normal; color: var(--muted); }
.os-more { margin: 22px 20px 0; width: auto; height: 50px; font-size: 15px; }

/* Kasse: Bestellungen bestätigen. */
.od-new, .od-link { height: 50px; font-size: 15px; }
.od { padding: 14px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.od-group .sec + .od { border-top: 0; padding-top: 0; }
.od-head { display: flex; align-items: center; gap: 8px; }
.od-head strong { font-size: 20px; font-weight: 600; }
.od-head small { font-size: 13px; color: var(--muted); }
.od-head .state { margin-inline-start: auto; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.od-head time { font-size: 12px; color: var(--muted); white-space: nowrap; }
.od-lines { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 14px; background: var(--field); }
.od-foot { display: flex; align-items: center; gap: 8px; }
.od-foot > b { flex: 1; font-size: 15px; font-weight: 600; white-space: nowrap; }
.od-foot .btn { width: auto; height: 46px; padding: 0 22px; font-size: 15px; box-shadow: none; }
.od-group.pending .od-foot form:last-child .btn { padding: 0 34px; background: var(--ok); }
.mn-orders form { display: flex; flex-direction: column; gap: 14px; }
.mn-orders .stepper input[type=number] { flex: 1; min-width: 0; width: auto; height: 64px; border: 0; background: none; padding: 0; text-align: center; font-size: 54px; font-weight: 500; color: var(--navy); -moz-appearance: textfield; appearance: textfield; }
.od-tables { margin-top: 0; }
.od-tables span { min-width: 48px; padding: 0 10px; }
.gm-in { margin-inline: -20px; }
.gm-in .gm-tabs { margin-top: 0; border-radius: 0; background: #FFFFFF; top: 0; }
.poster.more { display: none; }
@media (min-width: 960px) {
    .od-new, .od-link { width: auto; align-self: flex-start; padding: 0 28px; }
    .od-feed > .od-group { grid-column: span 6; }
    .od-feed { align-items: start; }
    .gm-in { margin-inline: 0; max-width: 620px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; overflow: clip; padding-bottom: 12px; }
    body.gm-staff .cart-bar { inset-inline-start: 264px; bottom: 20px; }
    body.gm-staff .cart-box { margin: auto; border-radius: 24px; }
}
@media print {
    .poster.more { display: flex; }
    .poster { break-after: page; page-break-after: always; }
    .poster:last-of-type { break-after: auto; page-break-after: auto; }
}

/* ---- برنامج الخدمة (v133): Wochenplan der Mitarbeiter ---- */
.ro-week { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ro-week strong { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 20px; font-weight: 600; }
.ro-week .state { text-decoration: none; }
.ro-week .mn-btn { width: 42px; height: 42px; background: #FFFFFF; border: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.ro-week .mn-btn.off { visibility: hidden; }
/* Der Pfeil zeigt in Leserichtung zurück bzw. vor: im Arabischen liegt "zurück" rechts. */
html[dir=ltr] .ro-week .mn-btn:not(.flip) svg, html[dir=rtl] .ro-week .mn-btn.flip svg { transform: scaleX(-1); }
.ro-copy .btn, .ro-none .btn { height: 48px; font-size: 14px; }
.ro-head { display: flex; align-items: center; gap: 8px; }
.ro-head strong { font-size: 17px; font-weight: 600; }
.ro-head small { font-size: 13px; color: var(--muted); }
.ro-head .state { margin-inline-start: auto; }
.ro-day.ro-today { border-color: var(--accent); }
.ro-slot { display: flex; align-items: center; gap: 12px; }
.ro-slot .avatar { flex-shrink: 0; width: 40px; height: 40px; font-size: 16px; }
.ro-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ro-who strong { font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-who small { font-size: 13px; color: var(--muted); }
.ro-who strong small { font-weight: 400; }
.ro-slot > b { font-size: 15px; font-weight: 600; white-space: nowrap; }
.ro-slot form { display: flex; }
.ro-add form { display: flex; flex-direction: column; gap: 14px; }
.ro-add .btn { height: 48px; font-size: 14px; }
.ro-times { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); }
.ro-times .times input { flex: 1 1 0; min-width: 0; width: 100%; }
.ro-total { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; }
.ro-total strong { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-total u { height: 8px; border-radius: 999px; background: var(--field); text-decoration: none; overflow: hidden; display: block; }
.ro-total i { display: block; height: 100%; border-radius: 999px; background: var(--navy); }
.ro-total b { font-weight: 600; white-space: nowrap; }
.ro-my .ro-slot { padding: 12px 0; border-top: 1px solid var(--line); }
.ro-my .sec + .ro-slot { border-top: 0; padding-top: 0; }
.ro-my .ro-slot.ro-today > b { color: var(--accent); }
@media (min-width: 960px) {
    .ro-week { max-width: 420px; }
    .ro-copy .btn, .ro-none .btn { width: auto; padding: 0 24px; }
    .ro { align-items: start; }
    .ro > .ro-day { grid-column: span 4; }
    .ro > .ro-totals { grid-column: span 12; }
    .ro-totals .ro-total { max-width: 620px; }
}

/* ---- Kalender der Woche, Akte des Mitarbeiters, eigener Link (v134) ---- */
.ro-cal { padding-inline: 10px; }
.cal { display: grid; grid-template-columns: 46px repeat(7, minmax(0, 1fr)); gap: 4px 3px; align-items: center; }
.cal-h { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8.5px; line-height: 1.2; color: var(--muted); white-space: nowrap; }
.cal-h b { min-width: 24px; padding: 1px 0; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--navy); text-align: center; }
.cal-h.now b { background: var(--accent); color: #FFFFFF; }
.cal-n { font-size: 12px; font-weight: 600; color: var(--navy); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-c { height: 44px; padding: 0; border: 0; border-radius: 9px; font: inherit; font-size: 9.5px; font-weight: 600; line-height: 1.3; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cal-c i { display: none; font-style: normal; }
.cal-c.e { background: var(--field); color: #B9C0CF; font-size: 15px; font-weight: 400; }
.cal-c.e:active { background: var(--line); }
/* Sechs ruhige Farben, eine pro Mitarbeiter (wiederholen sich ab dem siebten). */
.cal-c.c0 { background: #0E1B33; } .cal-c.c1 { background: #E8562A; } .cal-c.c2 { background: #2E7D5B; }
.cal-c.c3 { background: #5B4B8A; } .cal-c.c4 { background: #B07A1E; } .cal-c.c5 { background: #2F6E8E; }
.cal-c.ab { cursor: default; font-size: 9px; background: repeating-linear-gradient(135deg, #F3F4F8 0 6px, #E8EAF1 6px 12px); color: var(--muted); }
.cal-c.ab.sick { color: var(--err); }
.state.ab { flex-shrink: 0; }
.state.ab.sick { background: var(--err-bg); color: var(--err); }
.cal-box form[hidden] { display: none; }
.cal-box form + form { padding-top: 0; }
.cal-box .btn.ghost { height: 48px; font-size: 14px; }
.sf { margin-top: 6px; }
.sf-form { display: flex; flex-direction: column; gap: 14px; }
.sf .ro-slot { padding: 10px 0; border-top: 1px solid var(--line); }
.sf .sec + .ro-slot { border-top: 0; padding-top: 0; }
.sf .btn { height: 48px; font-size: 14px; }
/* Datumsfeld im Aussehen der anderen Felder (bisher gab es keines). */
input[type=date] { width: 100%; height: 48px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--navy); border: 1px solid transparent; border-radius: 14px; background: var(--field); font-variant-numeric: tabular-nums; }
.sf .times input[type=date] { height: 44px; padding: 0 8px; font-size: 14px; border-radius: 12px; }
.sl-wa { background: #1F8F4E; box-shadow: none; text-decoration: none; }
.me { padding: 18px 20px 0; margin-top: -14px; background: #FFFFFF; border-radius: 18px 18px 0 0; display: flex; flex-direction: column; gap: 16px; }
.me-hi { display: flex; flex-direction: column; }
.me-hi small { font-size: 13px; color: var(--muted); }
.me-hi strong { font-size: 26px; font-weight: 600; }
@media (min-width: 960px) {
    .ro > .ro-cal { grid-column: span 12; padding-inline: 24px; }
    .cal { grid-template-columns: 120px repeat(7, minmax(0, 1fr)); gap: 8px; }
    .cal-h { font-size: 13px; gap: 4px; }
    .cal-h b { font-size: 17px; min-width: 34px; padding: 2px 0; }
    .cal-n { font-size: 15px; }
    .cal-c { height: 48px; flex-direction: row; gap: 5px; font-size: 13px; border-radius: 12px; }
    .cal-c i { display: inline; }
    .cal-c.ab { font-size: 13px; }
    .cal-box { margin: auto; border-radius: 24px; }
    /* v214: Spalten statt Zeilen. Jede Spalte füllt sich von oben nach unten, die Kästen schließen ohne Loch an
       (vorher stand unter einem kurzen Kasten ein Loch so hoch wie der längste Kasten der Zeile). */
    .grid.sf { display: block; column-count: 3; column-gap: 18px; }
    .sf > .blk { display: block; width: 100%; break-inside: avoid; margin: 0 0 18px; }
}

/* ---- Eigene Aufgaben des Geschäfts (v135) ---- */
.person strong small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.role-list { display: flex; flex-wrap: wrap; gap: 8px; }
.role-list form { display: flex; flex-direction: row; align-items: center; gap: 6px; height: 38px; padding-inline: 14px 6px; border-radius: 999px; background: var(--field); font-size: 14px; font-weight: 500; }
.role-list button { width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: #FFFFFF; color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.role-list button:hover, .role-list button:active { background: var(--err-bg); color: var(--err); }

/* ---- دخلت / خرجت والسوايع (v136) ---- */
.ck { display: flex; flex-direction: row; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: #FFFFFF; border: 1px solid var(--line); }
.ck > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ck strong { font-size: 18px; font-weight: 600; }
.ck small { font-size: 13px; color: var(--muted); }
.ck .btn { width: auto; height: 56px; padding: 0 30px; font-size: 17px; background: var(--ok); box-shadow: none; }
.ck.in { border-color: var(--ok); }
.ck.in strong { color: var(--ok); }
.ck.in .btn { background: var(--navy); }
.me-hi .state { align-self: flex-start; margin-top: 6px; }
.ts-big { display: flex; flex-direction: column; }
.ts-big b { font-size: 44px; font-weight: 600; line-height: 1.1; }
.ts-big span { font-size: 14px; color: var(--muted); }
.ts-row summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ts-row summary::-webkit-details-marker { display: none; }
.ts-row summary .avatar { flex-shrink: 0; width: 40px; height: 40px; font-size: 16px; }
.ts-row summary > b { font-size: 18px; font-weight: 600; white-space: nowrap; }
.ts-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ts-list { display: flex; flex-direction: column; margin-top: 14px; }
.ts-entry { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.ts-entry > b { font-size: 14px; font-weight: 600; white-space: nowrap; }
.ts-entry.lost > b { color: var(--err); }
.ts-entry form { display: flex; }
.ts-list .mn-add { width: 100%; margin-top: 8px; background: none; font-family: inherit; cursor: pointer; }
@media (min-width: 960px) {
    .ts { align-items: start; }
    .ts > .ts-sum { grid-column: span 12; }
    /* v199: ein Mitarbeiter pro Zeile über die ganze Breite (wie die Liste im UMEX-Programm). In zwei Spalten riss ein
       aufgeklappter Kasten ein Loch in die andere Spalte (Spakpo: Fragezeichen im leeren Platz neben Hassan). */
    .ts > .ts-row { grid-column: 1 / -1; }
}

/* ---- الخلصة (v137) ---- */
.ts-bigs { display: flex; flex-wrap: wrap; gap: 14px 32px; }
.ts-big.pay b { color: var(--accent); }
.ts-big b small { font-size: 18px; font-weight: 500; }
.ts-nums { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; }
.ts-nums b { font-size: 18px; font-weight: 600; white-space: nowrap; }
.ts-nums em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.ts-pay { margin: 0 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--field); color: var(--muted); }
.ts-pay a { color: var(--accent); font-weight: 500; text-decoration: none; margin-inline-start: 6px; }

/* v138: die ganze Zeile des Mitarbeiters führt in seine Akte; Erklärung unter einem Recht. */
a.person { color: inherit; text-decoration: none; }
a.person:hover strong, a.person:active strong { color: var(--accent); }
.ask strong small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }

/* v140: Gruppe im Menü (الخدامة), klappt auf. */
.menu summary { display: flex; align-items: center; gap: 14px; min-height: 52px; font-size: 15px; color: var(--navy); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary > svg { flex-shrink: 0; color: var(--muted); }
.menu summary span { flex-grow: 1; }
.menu summary .chev { display: flex; color: var(--muted); transform: rotate(90deg); transition: transform 0.15s; }
.menu details[open] summary .chev { transform: rotate(-90deg); }
.menu details[open] summary { font-weight: 600; }
.menu details[open] summary > svg { color: var(--accent); }
.menu a + details, .menu details + a { border-top: 1px solid #EEF1F6; }
.menu .sub { margin-inline-start: 10px; padding-inline-start: 14px; border-inline-start: 1px solid var(--line); }
.menu .sub a { min-height: 42px; padding: 0 12px; border-radius: 10px; font-size: 14px; color: var(--muted); }
.menu .sub a + a { border-top: 0; }
.menu .sub a[aria-current="page"] { background: #FDEDE8; color: var(--accent); font-weight: 600; }
.menu details[open] { padding-bottom: 8px; }
@media (min-width: 960px) {
    .side .menu summary { min-height: 44px; padding: 0 10px; border-radius: 12px; font-size: 14px; gap: 12px; }
    .side .menu summary:hover { background: var(--field); }
    .side .menu a + details, .side .menu details + a { border-top: 0; }
    .side .menu .sub { margin-inline-start: 20px; }
    .side .menu .sub a { min-height: 38px; padding: 0 12px; border-radius: 10px; }
    .side .menu .sub a[aria-current="page"] { background: #FDEDE8; }
    .side .menu details[open] { padding-bottom: 4px; }
}

/* v141: der Weg zurück ist auf jeder Unterseite ein Knopf mit Pfeil, über dem Titel (vorher nur ein oranges Wort darunter). */
.page-head:has(.back) { display: flex; flex-direction: column; align-items: flex-start; }
.page-head:has(.back) p { order: -1; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.page-head .back { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; color: var(--navy); font-size: 14px; }
.page-head .back::before { content: ''; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-inline-start: 2px solid var(--accent); transform: rotate(-45deg); }
[dir="rtl"] .page-head .back::before { transform: rotate(45deg); }
.page-head .back:hover, .page-head .back:active { background: var(--field); }

/* v142: برنامج الخدمة in drei Ansichten: اليوم، السيمانة، الشهر. */
.ro-views { justify-content: center; }
.ro-views a { flex: 1; max-width: 130px; justify-content: center; height: 40px; font-size: 14px; }
.ro-week strong .num { text-align: center; }
.ro-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ro-row:first-child { border-top: 0; padding-top: 0; }
.ro-row .avatar { width: 38px; height: 38px; font-size: 15px; flex-shrink: 0; }
.ro-row.off .avatar { background: var(--field); color: var(--muted); }
.ro-row strong { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ro-row strong small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.ro-row.off strong { color: var(--muted); }
.ro-time { flex-shrink: 0; height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--navy); color: #FFFFFF; font: inherit; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ro-time.e { background: var(--field); color: var(--muted); font-weight: 500; }
.ro-time:active { opacity: 0.85; }
.ro-day > p, .ro-month > p { margin-top: 12px; }
.avatar.c0, .ro-time.c0, .mo i.c0, .mo-key i.c0 { background: #0E1B33; } .avatar.c1, .ro-time.c1, .mo i.c1, .mo-key i.c1 { background: #E8562A; } .avatar.c2, .ro-time.c2, .mo i.c2, .mo-key i.c2 { background: #2E7D5B; }
.avatar.c3, .ro-time.c3, .mo i.c3, .mo-key i.c3 { background: #5B4B8A; } .avatar.c4, .ro-time.c4, .mo i.c4, .mo-key i.c4 { background: #B07A1E; } .avatar.c5, .ro-time.c5, .mo i.c5, .mo-key i.c5 { background: #2F6E8E; }
.mo { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 3px; }
.mo-h { font-size: 8.5px; line-height: 1.2; color: var(--muted); text-align: center; white-space: nowrap; padding-bottom: 4px; }
.mo-d { height: 52px; border-radius: 10px; background: var(--field); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-decoration: none; color: var(--navy); }
.mo-d b { font-size: 14px; font-weight: 600; line-height: 1; }
.mo-d.out { background: none; }
.mo-d.out b, .mo-d.far b { color: #B9C0CF; font-weight: 400; }
.mo-d.now { box-shadow: inset 0 0 0 2px var(--accent); }
.mo-d.now b { color: var(--accent); }
a.mo-d:active { background: var(--line); }
.mo-dots { display: flex; align-items: center; gap: 2px; height: 7px; }
.mo-dots i, .mo-key i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mo-dots em { font-style: normal; font-size: 9px; font-weight: 600; color: var(--muted); }
.mo-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; font-size: 13px; }
.mo-key span { display: inline-flex; align-items: center; gap: 6px; }
.mo-key i { width: 9px; height: 9px; }
@media (min-width: 960px) {
    .ro-views { justify-content: flex-start; margin-inline: 0; padding-inline: 0; }
    .ro-row { padding: 12px 0; }
    .ro > .ro-day, .ro > .ro-month { grid-column: span 12; }
    .ro-day .ro-row { max-width: 620px; }
    .ro-month .mo { max-width: 760px; }
    .mo { gap: 8px; }
    .mo-h { font-size: 13px; }
    .mo-d { height: 76px; border-radius: 14px; gap: 8px; }
    .mo-d b { font-size: 17px; }
    .mo-dots { height: 10px; gap: 4px; }
    .mo-dots i { width: 10px; height: 10px; }
    .mo-dots em { font-size: 12px; }
}

/* v144: geteilter Dienst (zwei Teile am selben Tag). */
.cal-c .two { display: block; font-size: 9px; letter-spacing: -0.3px; white-space: nowrap; }
.ro-second { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0; }
.ro-second strong { font-size: 14px; font-weight: 500; }
.parts { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ro-time.two { height: 52px; font-size: 13px; }
@media (min-width: 960px) {
    .cal-c .two { font-size: 12px; letter-spacing: 0; }
    .cal-c:has(.two) { flex-direction: column; gap: 0; }
}
@media (min-width: 960px) { .cal-c { direction: ltr; } }

/* v145/v146: السوايع: Vorschuss, Rest, "bezahlt", Verspätung. */
.ts-big.rest b { color: var(--navy); }
.ts-paid { display: flex; flex-direction: column; margin: 6px 0 10px; padding: 4px 12px 12px; border: 1px solid var(--line); border-radius: 14px; }
.ts-given, .ts-rest { display: flex; flex-direction: row; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; border-bottom: 1px solid var(--line); }
.ts-given span, .ts-rest span { flex: 1; color: var(--muted); }
.ts-given span small { margin-inline-start: 4px; }
/* v193: das Datum einer Zahlung gut lesbar (Spakpo suchte es). */
.ts-given:not(.done) span small { font-size: 13px; font-weight: 500; color: var(--navy); }
.ts-given b { font-weight: 500; white-space: nowrap; }
.ts-rest { border-bottom: 0; }
.ts-rest span { color: var(--navy); font-weight: 600; }
.ts-rest b { font-size: 17px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.ts-rest.zero b { color: #2E7D5B; }
.ts-pay-btns { display: flex; gap: 8px; margin-top: 6px; }
.ts-pay-btns > *, .ts-pay-btns form .btn { flex: 1; }
.ts-pay-btns form { display: flex; }
.ts-pay-btns .btn { height: 46px; font-size: 14px; gap: 6px; }
.ts-entry .late { font-style: normal; font-weight: 600; color: var(--err); margin-inline-start: 6px; white-space: nowrap; }

/* v146: Werkzeuge der Woche und Druck des Kalenders. */
.ro-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.ro-tools form { display: flex; flex: 1 1 150px; }
.ro-tools .btn { flex: 1 1 150px; height: 46px; font-size: 14px; gap: 6px; }
.ro-print-title { display: none; }
.ts-exp { padding-block: 6px; }
@media print {
    .ro-views, .ro-week, .ro-tools, .ro-cal > p, .ro-totals, .note { display: none !important; }
    .ro-print-title { display: block; margin: 0 0 6mm; font-size: 16pt; font-weight: 600; color: #0E1B33; }
    .ro .blk { border: 0 !important; padding: 0 !important; box-shadow: none !important; }
    .cal { grid-template-columns: 34mm repeat(7, minmax(0, 1fr)); gap: 2mm; }
    .cal-h { font-size: 10pt; } .cal-h b { font-size: 13pt; }
    .cal-n { font-size: 12pt; }
    .cal-c { height: 14mm; font-size: 10pt; border-radius: 3mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .cal-c.e { color: transparent; border: 0.3mm solid #D9DEE8; background: none; }
    .cal-c .two { font-size: 9pt; }
    @page { size: A4 landscape; margin: 12mm; }
}

/* v147: Bitten um Urlaub beim Händler. */
.lv { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.sec + .lv { border-top: 0; }
.lv .ro-who { flex: 1; min-width: 0; }
.lv form { display: flex; flex-shrink: 0; }
.lv .btn { width: auto; height: 40px; padding: 0 14px; font-size: 13px; }
.staff-leave > p { margin-top: 8px; }

/* v148: die Woche per WhatsApp. */
.wa-in { display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.wa-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--navy); }
.wa-row .ro-who { flex: 1; min-width: 0; }
.wa-row .btn { width: auto; height: 40px; padding: 0 14px; font-size: 13px; gap: 6px; background: #1FA855; box-shadow: none; }
@media print { #wa-box { display: none !important; } }

/* v149: Schalter "دخلت nur am Geschäft" auf السوايع. */
.ts-near { padding-block: 8px; }
.ts-near .ask { padding-inline: 0; }
.ts-near .ask small a { color: var(--accent); font-weight: 500; text-decoration: none; }

/* v151: Karte für "دخلت". */
.ts-tap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.ts-tap a { color: var(--accent); font-weight: 500; text-decoration: none; }
.ck .btn:disabled { opacity: 0.45; box-shadow: none; cursor: default; }
/* v154: "تسجيل الدخول" ist länger als "دخلت": schmalerer Knopf, damit die Zeile daneben nicht umbricht. */
.ck .btn { padding: 0 16px; font-size: 15px; white-space: nowrap; flex-shrink: 0; }
.ck > div { min-width: 0; }
.ck small { white-space: nowrap; }

/* v156: untere Leiste der Seite der Mitarbeiter: drei Plätze, "امسح" groß in der Mitte. Bleibt auch am PC (dort gibt es für sie keine Seitenleiste). */
.tabbar.staff div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 960px) { .tabbar.staff { display: block; } }
@media print { .tabbar.staff { display: none !important; } }

/* v157: الإشعارات. Glocke im Kopf (Handy) und in der Seitenleiste (PC), Seite hinter der Glocke. */
.top .bell { position: relative; margin-inline-start: auto; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #FFFFFF; color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; }
.top .bell[aria-current="page"] { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }
.bell b, .side-bell b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #FFFFFF; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.top .bell b { position: absolute; top: -5px; inset-inline-end: -5px; box-shadow: 0 0 0 2px var(--bg); }
.side-bell { display: none; }
.nt-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.sec + .nt-row { border-top: 0; }
.nt-row .ask-ico { width: 40px; height: 40px; flex-shrink: 0; }
.nt-row .ro-who { flex: 1; min-width: 0; }
.nt-row .ro-who .state { margin-top: 4px; align-self: flex-start; }
.nt-row.new .ro-who strong::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-start: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.nt-row form { display: flex; flex-shrink: 0; }
.nt-row .btn { width: auto; height: 40px; padding: 0 14px; font-size: 13px; }
.nt-row .go { flex-shrink: 0; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.nt { margin-top: 4px; }
@media (min-width: 960px) {
    .top .bell { display: none; }
    .side-bell { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 8px; padding: 0 10px; border-radius: 12px; font-size: 14px; color: var(--navy); text-decoration: none; }
    .side-bell svg { color: var(--muted); flex-shrink: 0; }
    .side-bell span { flex: 1; }
    .side-bell:hover, .side-bell[aria-current="page"] { background: var(--field); }
    .side-bell[aria-current="page"] { font-weight: 600; }
    .side-bell[aria-current="page"] svg { color: var(--accent); }
}

.nt-row { flex-wrap: wrap; }
.nt-acts { display: flex; gap: 8px; flex-basis: 100%; padding-inline-start: 50px; }
.nt-acts form, .nt-acts > a { flex: 1; }
.nt-acts .btn { width: 100%; white-space: nowrap; padding-inline: 10px; }
@media (min-width: 960px) { .nt-acts { flex-basis: auto; padding-inline-start: 0; } .nt-acts form, .nt-acts > a { flex: 0 0 auto; } .nt-acts .btn { width: auto; } .nt-row { flex-wrap: nowrap; } .nt > .blk { grid-column: span 12; } }

/* v158: Push auf diesem Gerät an- und ausschalten. */
.push { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 20px; background: #FFFFFF; }
.push[hidden] { display: none; }
.push strong { font-size: 15px; font-weight: 500; }
.push strong small { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--muted); }
.push.on .ask-ico { background: #E4F4EC; color: #2E7D5B; }
.push .btn { width: auto; height: 40px; padding: 0 16px; font-size: 13px; }

/* v159: was vom Team kommt, steht unter einer eigenen Überschrift. */
.nt-team { display: flex; flex-direction: column; gap: 10px; }
.nt-team .sec .ys-logo { color: var(--accent); }

/* v162: einen Dienst weitergeben (mit Grund) und die Liste der Wechsel. */
.cal-box details.sw { margin: 0 20px 4px; }
.cal-box details.sw[hidden] { display: none; }
.cal-box details.sw form { padding: 12px 0 4px; }
.sw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.sw-tags button { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; font: inherit; font-size: 13px; color: var(--navy); cursor: pointer; }
.sw .pick label[hidden] { display: none; }
.sw-row { padding: 10px 0; border-top: 1px solid var(--line); }
.sec + .sw-row { border-top: 0; }
@media (min-width: 960px) { .ro > .ro-swaps { grid-column: span 12; } }
@media print { .ro-swaps { display: none !important; } }

/* v163: Gründe als Liste (wie im UMEX-Programm), Entfernen nur mit Grund. */
.sw .pick.why > div { display: grid; grid-template-columns: 1fr; gap: 6px; }
.sw .pick.why span { justify-content: flex-start; width: 100%; height: 42px; padding: 0 14px; border-radius: 12px; font-size: 14px; }
.cal-box details.sw.drop summary { color: var(--err); }
.cal-box details.sw.drop summary svg { color: var(--err); }
.cal-box details.sw + details.sw { margin-top: 8px; }
.cal-box details.sw:last-of-type { margin-bottom: 20px; }
.sw-note { height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; padding: 0 14px; font: inherit; font-size: 15px; color: var(--navy); }

/* v164: تقرير الشهر (Mitarbeiter des Monats, Ausfälle) und السجل. */
.rp-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.sec + .rp-row { border-top: 0; }
.rp-rank { width: 36px; height: 36px; border-radius: 50%; background: var(--field); color: var(--muted); font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rp-row.first .rp-rank { background: var(--accent); color: #FFFFFF; }
.rp-row .ro-who { flex: 1; min-width: 0; }
.rp-row > b { font-size: 20px; font-weight: 600; white-space: nowrap; }
.rp-row > b small { font-size: 12px; font-weight: 400; color: var(--muted); }
.rp-best > p, .rp-drops > p { margin-top: 10px; }
.rp-drop { border-top: 1px solid var(--line); }
.sec + .rp-drop { border-top: 0; }
.rp-drop summary { display: flex; align-items: center; gap: 10px; padding: 12px 0; cursor: pointer; list-style: none; }
.rp-drop summary::-webkit-details-marker { display: none; }
.rp-drop summary .ro-who { flex: 1; min-width: 0; }
.rp-drop summary b { font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--err); }
.rp-drop .sw-row { padding-inline-start: 14px; }
.rp-link { margin-top: 4px; height: 48px; font-size: 14px; gap: 8px; }
.lg-row { padding: 10px 0; border-top: 1px solid var(--line); }
.lg-row:first-child { border-top: 0; padding-top: 0; }
.lg-row strong { font-size: 14px; font-weight: 600; }
.lg-row strong span { font-weight: 400; }
.lg-row strong em { font-style: normal; font-weight: 600; color: var(--accent); }
@media (min-width: 960px) { .rp-link { width: auto; align-self: flex-start; padding: 0 24px; } .lg > .blk { grid-column: span 12; max-width: 760px; } }

/* v165: Krankheit pro Mitarbeiter im Bericht. */
.rp-sick .rp-row > b.bad { color: var(--err); }
.rp-sick > p { margin-top: 10px; }
.rp-row .ro-who strong .state { margin-inline-start: 6px; vertical-align: middle; }

/* v166: خدام الشهر vergeben (Prämie, Notiz, ganze Rangliste). */
.aw-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.aw-won { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: #E4F4EC; }
.aw-won .ro-who { flex: 1; min-width: 0; }
.aw-won > b { font-size: 22px; font-weight: 600; white-space: nowrap; color: #2E7D5B; }
.aw-won > b small { font-size: 12px; font-weight: 400; }
.aw-back { height: 40px; width: auto; padding: 0 16px; font-size: 13px; margin: 8px 0 4px; }
.rp-row .aw-give { width: auto; height: 38px; padding: 0 14px; font-size: 13px; flex-shrink: 0; box-shadow: none; }
.rp-row:not(.first) .aw-give { background: #FFFFFF; color: var(--navy); border: 1px solid var(--line); }
.rp-row .ro-who small { display: block; }
.rp-row .ro-who strong .state { font-weight: 400; }

/* v168: الهندام والنظافة. Fünf Sterne in einer eigenen Zeile unter dem Mitarbeiter (Rangliste "خدام الشهر"). */
.rp-best .rp-row { flex-wrap: wrap; }
.rp-stars { order: 9; flex: 0 0 100%; display: flex; flex-direction: row; align-items: center; margin: 0; justify-content: space-between; gap: 8px; }
.rp-stars-t { font-size: 13px; color: var(--muted); white-space: nowrap; }
.rp-stars-b { display: flex; gap: 2px; }
.rp-stars-b i { width: 28px; height: 36px; display: flex; align-items: center; justify-content: center; }
.rp-stars-b button { width: 32px; height: 36px; padding: 0; border: 0; background: none; color: var(--line); display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; }
.rp-stars-b svg { stroke: #C9CFDA; }
.rp-stars-b .on svg { fill: var(--accent); stroke: var(--accent); }
@media (min-width: 960px) { .rp-stars { justify-content: flex-start; gap: 4px 16px; flex-wrap: wrap; } }
@media (min-width: 1200px) { .rp-stars { padding-inline-start: 48px; } }
/* v172: feste Breite für Punkte und Sterne-Punkte, damit die Zeile beim Tippen auf einen Stern nicht umbricht (der Kasten wuchs und schrumpfte). */
.rp-best .rp-row > b[data-points] { min-width: 3ch; text-align: center; font-variant-numeric: tabular-nums; }
.rp-best [data-look] { display: inline-block; min-width: 2ch; font-variant-numeric: tabular-nums; }
/* v178: schmale, blasse Rollbalken (Spakpo: „رقق هادا“, Vorlage UMEX-Programm). Der Balken des Menüs erscheint nur, wenn die Maus darauf ist. */
html { scrollbar-width: thin; scrollbar-color: #C9CFDA transparent; }
@media (min-width: 960px) { .side { scrollbar-width: thin; scrollbar-color: transparent transparent; } .side:hover { scrollbar-color: #C9CFDA transparent; } }

/* v180: alles, was man anklicken kann, antwortet auf die Maus (Spakpo, Vorlage stempiq): helle Knöpfe bekommen einen
   Hauch Orange und einen orangen Rand, dunkle einen Ring, Textlinks eine Linie, die sich von vorn aufzieht. Nur für
   Geräte mit Maus; am Handy bleibt der Druck (:active). Nichts davon ändert eine Größe. */
.btn, .chips a, .tags button, .bg-tile, .pickfile, .stepper button, .mn-btn, .rw-more summary, .side-scan, .use, .pick label > span, .tiles label, .swatches label, .page-head .back, .side .menu a, .side .menu summary, .side-bell, .rp-stars-b button svg {
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, outline-color 0.16s ease, fill 0.16s ease, stroke 0.16s ease;
}
.btn, .stepper button.plus, .side-scan { outline: 2px solid transparent; outline-offset: 2px; }
.btn:focus-visible, .stepper button.plus:focus-visible, .side-scan:focus-visible { outline-color: var(--accent); }
main :is(p, small, li) a:not([class]) { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) no-repeat, linear-gradient(rgba(14, 27, 51, 0.28), rgba(14, 27, 51, 0.28)) no-repeat; background-size: 0 1.5px, 100% 1px; background-position: 0 100%, 0 100%; padding-bottom: 1px; transition: background-size 0.24s ease, color 0.16s ease; }
[dir=rtl] main :is(p, small, li) a:not([class]) { background-position: 100% 100%, 100% 100%; }
@media (hover: hover) {
    .btn:not(.ghost):not(:disabled):hover, .stepper button.plus:hover, .side-scan:hover { outline-color: rgba(232, 86, 42, 0.55); }
    .btn.ghost:hover, .chips a:not([aria-current]):hover, .tags button:hover, .bg-tile:not(.on):hover, .pickfile:hover, .stepper button:not(.plus):hover, .rw-more summary:hover, .use:hover {
        background-color: #FDF1EC; border-color: var(--accent);
    }
    .mn-btn:not(.del):not(.off):hover { background-color: #FDE9E2; color: var(--accent); }
    .rp-stars-b button:hover svg { stroke: var(--accent); }
    main :is(p, small, li) a:not([class]):hover { background-size: 100% 1.5px, 100% 1px; color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) { main :is(p, small, li) a:not([class]) { transition: none; } }

/* v181: lebendige Schaubilder (Spakpo: „علاش هاد الجداول ماشي حية“). Beim Öffnen der Seite wachsen die Säulen, die
   Kreise der Wochentage gehen auf, die Kurve zeichnet sich; unter der Maus (am Handy: beim Tippen) zeigt jede Säule
   ihre Zahl. main.still = stilles Auffrischen (Startseite, jede Minute): dann bewegt sich nichts. */
@keyframes ys-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ys-open { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes ys-line { from { clip-path: inset(-10px 100% -10px 0); } to { clip-path: inset(-10px 0 -10px 0); } }
@keyframes ys-fade { from { opacity: 0; } to { opacity: 1; } }
.cols i { transform-origin: bottom; animation: ys-grow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.week i { animation: ys-open 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards; }
/* v183: die Kurve wird von links aufgedeckt (clip-path). Die erste Fassung mit stroke-dasharray ließ das Ende der Linie weg. */
.trend { animation: ys-line 0.9s ease-out backwards; }
.cols div:nth-child(2) i, .week div:nth-child(2) i { animation-delay: 18ms; }
.cols div:nth-child(3) i, .week div:nth-child(3) i { animation-delay: 36ms; }
.cols div:nth-child(4) i, .week div:nth-child(4) i { animation-delay: 54ms; }
.cols div:nth-child(5) i, .week div:nth-child(5) i { animation-delay: 72ms; }
.cols div:nth-child(6) i, .week div:nth-child(6) i { animation-delay: 90ms; }
.cols div:nth-child(7) i, .week div:nth-child(7) i { animation-delay: 108ms; }
.cols div:nth-child(8) i, .week div:nth-child(8) i { animation-delay: 126ms; }
.cols div:nth-child(9) i, .week div:nth-child(9) i { animation-delay: 144ms; }
.cols div:nth-child(10) i, .week div:nth-child(10) i { animation-delay: 162ms; }
.cols div:nth-child(11) i, .week div:nth-child(11) i { animation-delay: 180ms; }
.cols div:nth-child(12) i, .week div:nth-child(12) i { animation-delay: 198ms; }
.cols div:nth-child(13) i, .week div:nth-child(13) i { animation-delay: 216ms; }
.cols div:nth-child(14) i, .week div:nth-child(14) i { animation-delay: 234ms; }
.cols div:nth-child(15) i, .week div:nth-child(15) i { animation-delay: 252ms; }
.cols div:nth-child(16) i, .week div:nth-child(16) i { animation-delay: 270ms; }
.cols div:nth-child(17) i, .week div:nth-child(17) i { animation-delay: 288ms; }
.cols div:nth-child(18) i, .week div:nth-child(18) i { animation-delay: 306ms; }
.cols div:nth-child(19) i, .week div:nth-child(19) i { animation-delay: 324ms; }
.cols div:nth-child(20) i, .week div:nth-child(20) i { animation-delay: 342ms; }
.cols div:nth-child(21) i, .week div:nth-child(21) i { animation-delay: 360ms; }
.cols div:nth-child(22) i, .week div:nth-child(22) i { animation-delay: 378ms; }
.cols div:nth-child(23) i, .week div:nth-child(23) i { animation-delay: 396ms; }
.cols div:nth-child(24) i, .week div:nth-child(24) i { animation-delay: 414ms; }
.cols div:nth-child(25) i, .week div:nth-child(25) i { animation-delay: 432ms; }
.cols div:nth-child(26) i, .week div:nth-child(26) i { animation-delay: 450ms; }
.cols div:nth-child(27) i, .week div:nth-child(27) i { animation-delay: 468ms; }
.cols div:nth-child(28) i, .week div:nth-child(28) i { animation-delay: 486ms; }
.cols div:nth-child(29) i, .week div:nth-child(29) i { animation-delay: 504ms; }
.cols div:nth-child(30) i, .week div:nth-child(30) i { animation-delay: 522ms; }
.cols div:nth-child(31) i, .week div:nth-child(31) i { animation-delay: 540ms; }
main.still .cols i, main.still .week i, main.still .trend { animation: none; }
@media (prefers-reduced-motion: reduce) { .cols i, .week i, .trend { animation: none; } }
.trend-wrap { position: relative; }
.trend-hit { position: absolute; inset: 0; }
.trend-hit div { position: absolute; top: 0; bottom: 0; width: 7.7%; transform: translateX(-50%); }
.trend-hit div::before { content: ''; position: absolute; left: 50%; top: var(--y); width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px #FFFFFF; opacity: 0; transition: opacity 0.12s ease; }
[data-tip] { position: relative; }
[data-tip]::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px); padding: 4px 9px; border-radius: 8px; background: var(--navy); color: #FFFFFF; font-size: 11px; font-weight: 500; line-height: 1.3; white-space: nowrap; direction: ltr; opacity: 0; pointer-events: none; z-index: 4; transition: opacity 0.12s ease, transform 0.12s ease; }
.trend-hit div[data-tip]::after { bottom: auto; top: calc(var(--y) - 30px); }
[data-tip]:hover::after { opacity: 1; transform: translate(-50%, 0); }
.trend-hit div:hover::before { opacity: 1; }
.cols div[data-tip]:hover i, .week div[data-tip]:hover i:not(.none) { background: var(--accent); }
.cols i, .week i { transition: background-color 0.12s ease; }
/* v182: das erste und letzte Feld der Kurve ragten über den Kasten hinaus (am Handy 12 px): halbe Breite, Punkt am Rand. */
.trend-hit div:first-child { transform: none; width: 3.85%; }
.trend-hit div:last-child { transform: translateX(-100%); width: 3.85%; }
.trend-hit div:first-child::before { left: 0; }
.trend-hit div:last-child::before { left: 100%; }
.trend-hit div:first-child[data-tip]::after { left: 0; transform: translate(0, 4px); }
.trend-hit div:first-child[data-tip]:hover::after { transform: translate(0, 0); }
.trend-hit div:last-child[data-tip]::after { left: auto; right: 0; transform: translate(0, 4px); }
.trend-hit div:last-child[data-tip]:hover::after { transform: translate(0, 0); }
/* v184: Marke unter der Maus auch auf الإحصائيات (30 Tage, neue Kunden, Wochentag × Uhrzeit). Am Rand richtet sich
   die Marke nach innen aus, damit sie nicht aus dem Kasten ragt. */
.heat i[data-tip] { transition: box-shadow 0.12s ease; }
.heat i[data-tip]::after { font-style: normal; }
.heat i[data-tip]:hover { box-shadow: 0 0 0 2px var(--accent); }
.cols.d30 div:nth-child(-n+4)[data-tip]::after, .heat i:nth-child(-n+2)[data-tip]::after { left: 0; transform: translate(0, 4px); }
.cols.d30 div:nth-child(-n+4)[data-tip]:hover::after, .heat i:nth-child(-n+2)[data-tip]:hover::after { transform: translate(0, 0); }
.cols.d30 div:nth-last-child(-n+4)[data-tip]::after, .heat i:nth-last-child(-n+2)[data-tip]::after { left: auto; right: 0; transform: translate(0, 4px); }
.cols.d30 div:nth-last-child(-n+4)[data-tip]:hover::after, .heat i:nth-last-child(-n+2)[data-tip]:hover::after { transform: translate(0, 0); }

/* v183: die Kästen heben sich unter der Maus leicht an (Spakpos Idee). Nur am PC mit Maus. Die Bewegung ändert keine
   Größe (transform); ::before hält den Kasten unter der Maus, wenn sie an seinem unteren Rand steht (sonst zittert er). */
@media (hover: hover) and (min-width: 960px) {
    .blk, .grid.boxed > .blk, .opt, .kpis, .rows, .msgs, .ck { position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
    .blk:hover, .grid.boxed > .blk:hover, .opt:hover, .kpis:hover, .rows:hover, .msgs:hover, .ck:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -20px rgba(14, 27, 51, 0.35); border-color: #D5DBE6; }
    .blk:hover::before, .opt:hover::before, .kpis:hover::before, .rows:hover::before, .msgs:hover::before, .ck:hover::before { content: ''; position: absolute; inset: 0 0 -5px 0; z-index: -1; }
    /* Ein Kasten in einem Kasten hebt sich nicht noch einmal. */
    .blk .blk:hover, .blk .opt:hover, .opt .opt:hover, .blk .rows:hover, .blk .kpis:hover { transform: none; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { .blk, .opt, .kpis, .rows, .msgs, .ck { transition: none; } }

/* v187: "أكد الحضور" im Konto des Mitarbeiters: was wartet (mit Knopf), die letzte Bestätigung, das Konto mit Vorzeichen. */
.ts-close { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ts-close > span { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.ts-close > span strong { font-weight: 600; color: #B4530A; }
.ts-close > span small { color: var(--muted); }
.ts-close .btn { flex: none; width: auto; height: 42px; padding: 0 16px; font-size: 14px; }
.ts-given.done b { color: #2E7D5B; }
.ts-given span.two { display: flex; flex-direction: column; line-height: 1.35; padding: 6px 0; }
.ts-given span.two small { margin: 0; }
/* v191: "رجع التأكيد" als eigene Zeile mit Wort unter der letzten Bestätigung. */
.ts-given.done { flex-wrap: wrap; row-gap: 0; }
.ts-undo { flex: 0 0 100%; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; font: inherit; font-size: 13px; font-weight: 500; color: var(--navy); cursor: pointer; transition: background-color 0.16s ease, border-color 0.16s ease; }
@media (hover: hover) { .ts-undo:hover { background: #FDF1EC; border-color: var(--accent); } }
.ts-rest.minus b { color: #C4372B; }
.ts-over { margin: 0 0 4px; }
.ts-ok { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; color: #2E7D5B; }

/* v194: برنامج الخدمة am PC. (1) Die Zeit in der Zelle war abgeschnitten ("9:00 – 17:0"): in einer Zeile passt sie erst
   ab 1440 px; darunter steht sie wie am Handy in zwei Zeilen. (2) Der Knopf "نفس السيمانة اللي فاتت" stand in einem
   150 px hohen Kasten: sein Formular ist jetzt nur noch die Hülle des Knopfs, alle drei Knöpfe sind gleich hoch. */
.ro-tools form { flex-direction: row; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.ro-tools form .btn, .ro-tools > .btn { flex: 1 1 auto; width: auto; height: 46px; padding: 0 16px; }
.ro-tools > .btn { flex: 1 1 150px; }
@media (min-width: 960px) {
    .cal-c { flex-direction: column; gap: 0; line-height: 1.25; }
    .cal-c i { display: none; }
}
@media (min-width: 1440px) {
    .cal-c { flex-direction: row; gap: 5px; }
    .cal-c i { display: inline; }
}

/* v195: Zeilen aus anderen Monaten im Konto des Mitarbeiters. */
.ts-given.carry span { color: var(--muted); }
.ts-given.carry b { color: #2E7D5B; }
.ts-given.carry b.minus { color: #C4372B; }
.ts-else { border-bottom: 1px solid var(--line); }
.ts-else > summary { list-style: none; display: flex; align-items: center; min-height: 40px; font-size: 13px; font-weight: 500; color: var(--accent); cursor: pointer; }
.ts-else > summary::-webkit-details-marker { display: none; }
.ts-else > summary::after { content: '▾'; margin-inline-start: 6px; font-size: 11px; }
.ts-else[open] > summary::after { content: '▴'; }

/* v196: "قلب على خدام" über den Listen. Ausgefilterte Elemente verschwinden, auch wenn ihre Klasse sonst `display` setzt. */
[data-who][hidden] { display: none !important; }
.who-find { margin: 0 0 12px; }
.who-wrap { margin: 0 0 4px; }
.who-wrap .who-find { max-width: 360px; }
/* In einem Raster (am PC 12 Spalten) über die ganze Breite, sonst war das Feld 64 px schmal. */
.grid > .who-wrap { grid-column: 1 / -1; }
.who-none { margin: 0 0 12px; }
.staff-list .who-find { margin-top: 4px; }

/* v197: "الأجور": Zeitraum von–bis nebeneinander; Verweis von "الحضور" auf "الأجور". */
.wg-range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.wg-range .field { margin: 0; }
@media (min-width: 960px) { .wg-range { max-width: 560px; } }
.ts-to-wages { display: block; padding: 10px 0 2px; color: var(--accent); font-weight: 500; text-decoration: none; }

/* v201: Lohn eines Tages auf "الحضور" (Chip mit Stift) und Tage "مبرمج وما جاش". */
.ts-day-pay { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); cursor: pointer; white-space: nowrap; }
.ts-day-pay s { font-size: 11px; font-weight: 400; color: var(--muted); }
.ts-day-pay.changed { border-color: var(--accent); background: #FDF1EC; }
.ts-day-pay.minus:not(.changed) { font-weight: 500; color: var(--muted); }
.ts-day-pay:disabled { cursor: default; border-color: transparent; background: none; }
@media (hover: hover) { .ts-day-pay:not(:disabled):hover { border-color: var(--accent); } }
.ts-entry.missed { opacity: 0.85; }
.ts-entry b.lost { color: var(--err); }

/* v202: Foto des Mitarbeiters statt Buchstabe, und der Kasten "التصويرة" in der Akte. */
img.avatar.face { object-fit: cover; background: var(--field); }
.avatar.big { width: 96px; height: 96px; font-size: 36px; }
.sf-photo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sf-photo form { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }
.sf-photo-pick { cursor: pointer; width: auto; height: 44px; padding: 0 16px; gap: 6px; }
.sf-head h1 { display: flex; align-items: center; gap: 12px; }
.sf-head h1 .avatar { width: 44px; height: 44px; font-size: 18px; }

/* v203: "الملاحظات" in der Akte, Verweis im Monatsbericht, und das Blatt zum Unterschreiben (A4). */
.sn-row .state { flex: none; }
.sn-row .ro-who strong { white-space: normal; overflow: visible; text-overflow: clip; }
.sn-tools .btn { white-space: nowrap; padding: 0 10px; font-size: 14px; gap: 6px; }
@media (min-width: 960px) { .sn-tools { max-width: 560px; } }
.rp-notes { display: flex; width: fit-content; margin-top: 4px; white-space: nowrap; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; }
.sn-sheet { background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 18px; margin-top: 14px; }
.sn-sheet header { display: flex; flex-direction: column; gap: 4px; border-bottom: 2px solid var(--navy); padding-bottom: 12px; }
.sn-sheet header strong { font-size: 14px; color: var(--muted); }
.sn-sheet h2 { margin: 0; font-size: 22px; }
.sn-sheet header p { margin: 0; font-size: 14px; }
.sn-sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sn-sheet th, .sn-sheet td { border: 1px solid #C9CEDA; padding: 8px 10px; text-align: start; vertical-align: top; }
.sn-sheet th { background: var(--field); font-weight: 600; }
.sn-sheet td:first-child, .sn-sheet th:first-child { width: 36px; text-align: center; }
.sn-read { margin: 0; font-size: 14px; font-weight: 500; }
.sn-signs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sn-signs div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.sn-signs i { display: block; height: 56px; border-bottom: 1px solid var(--navy); }
.sn-empty { margin: 0; color: var(--muted); }
/* v204: Zeichenfelder für die Unterschrift mit dem Finger; das Bild auf dem unterschriebenen Blatt. */
.sn-pad-box { margin-top: 14px; }
.sn-pad-box form { display: flex; flex-direction: column; gap: 12px; }
.sn-pads { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 960px) { .sn-pads { grid-template-columns: 1fr 1fr; } }
.sn-pad { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sn-pad-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; font-weight: 500; }
.sn-pad .sn-clear { width: auto; height: 34px; padding: 0 12px; font-size: 13px; }
.sn-pad canvas { display: block; width: 100%; height: 160px; background: var(--field); border: 1px dashed #C9CEDA; border-radius: 14px; touch-action: none; }
.sn-ink { display: block; width: 100%; height: 120px; object-fit: contain; border-bottom: 1px solid var(--navy); }
.sn-stamp { margin: 0; font-size: 12px; color: var(--muted); }
.sn-done { display: flex; text-decoration: none; color: inherit; }
/* v205: العقوبات in der Akte und das Blatt "قرار تأديبي". */
.sc-row { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.sc-row .state { flex: none; }
.sc-row .ro-who { display: flex; flex-direction: column; }
.sc-levels, .sc-because { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sc-levels legend, .sc-because legend { padding: 0; margin-bottom: 6px; }
.sc-level, .sc-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; cursor: pointer; }
.sc-level input, .sc-check input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.sc-level span, .sc-check span { min-width: 0; overflow-wrap: anywhere; }
.sc-level .state { margin-inline-start: 6px; font-size: 11px; }
.sn-sheet .sc-table th { width: 36%; text-align: start; }
.sc-top { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #FDECEA; color: var(--err); font-size: 14px; font-weight: 500; }
.sc-remove { margin-top: 12px; }
.sc-next-note { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); }
/* Tage der Aussetzung nur bei Stufe 3 (توبيخ ثاني ولا توقيف). */
.sf-form .sc-stop { display: none; }
.sf-form:has(input[name=level][value="3"]:checked) .sc-stop { display: flex; }
.sc-remove .btn { width: 100%; }
.rp-sc { display: block; margin-top: 2px; font-size: 12px; color: var(--err); }
/* v206: مسطرة الاستماع – Schritte, Fristen, Formulare. */
.hr-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.hr-step { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: none; min-width: 0; }
.hr-step b { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--field); font-size: 12px; }
.hr-step span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-step.done b { background: #E6F4EA; color: #1E7B3A; }
.hr-step.on { border-color: var(--navy); color: var(--navy); }
.hr-step.on b { background: var(--navy); color: #FFFFFF; }
.hr-due { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: #FFF4E5; color: #8A5300; font-size: 14px; font-weight: 500; }
.hr-due.bad { background: #FDECEA; color: var(--err); }
.hr-form { margin-bottom: 14px; }
.hr-form textarea { width: 100%; min-height: 96px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--field); font: inherit; font-size: 15px; color: var(--navy); resize: vertical; }
.sc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-two .field { min-width: 0; }
.hr-said { white-space: pre-line; }
.hr-refused { color: var(--err); }
.sn-sheet .btn { width: auto; align-self: flex-start; }
#hr-decide .hr-if-3, #hr-decide .hr-if-dismiss { display: none; }
#hr-decide:has(input[name=decision][value=level3]:checked) .hr-if-3 { display: flex; }
#hr-decide:has(input[name=decision][value=dismiss]:checked) .hr-if-dismiss { display: flex; flex-direction: column; gap: 10px; }
/* v207: häufige Fehler als Knöpfe unter dem Feld der Bemerkung. */
.nt-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.nt-quick button { min-height: 36px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF; color: var(--navy); font: inherit; font-size: 13px; text-align: start; cursor: pointer; max-width: 100%; }
/* v208: Brieftext auf den Blättern. */
.lt-body { display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.9; }
.lt-body p { margin: 0; }
/* v209: Kriterien der Sterne. */
.cr-row { display: flex; align-items: center; gap: 10px; }
.cr-row .ro-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* v215: تقرير الشهر am PC in zwei Spalten wie die Akte: "عامل الشهر" ist lang, daneben stehen die kurzen Kästen
   untereinander, ohne gestreckten leeren Kasten. Konto: Kästen nur so hoch wie ihr Inhalt. */
@media (min-width: 960px) {
    .grid.rp { display: block; column-count: 2; column-gap: 18px; }
    .grid.rp > .blk { display: block; width: 100%; break-inside: avoid; margin: 0 0 18px; }
    .grid.acct { align-items: start; }
}
/* v213: يا سعدي Team – Kasten in der Akte, Begrüßung beim Öffnen. */
#team { display: flex; flex-direction: column; gap: 10px; }
#team .team-pin { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#team .team-pin .ro-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
#team .team-pin .btn { width: auto; height: 40px; padding: 0 14px; font-size: 13px; }
.team-hello { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.team-note { display: flex; align-items: center; gap: 6px; margin: 0; }
/* v217: العطل والمرض. */
.abs-select { width: 100%; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236B7386' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1.500l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 16px center; }
html[dir=ltr] .abs-select { background-position: right 16px center; }
.abs-req { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.sec + .abs-req { border-top: 0; }
.abs-req .ro-who { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; }
.abs-req > form .btn, .abs-no > summary { width: auto; height: 40px; padding: 0 16px; font-size: 13px; }
.abs-no { flex: 0 0 auto; }
.abs-no > summary { list-style: none; display: inline-flex; align-items: center; cursor: pointer; }
.abs-no > summary::-webkit-details-marker { display: none; }
.abs-no[open] { flex-basis: 100%; }
.abs-no[open] > summary { display: none; }
.abs-row { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.abs-all .who-wrap + .abs-row, .abs-all .sec + .abs-row { border-top: 0; }
.abs-row .ro-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.abs-row .state { flex: none; }
.abs-row.past { opacity: .6; }
.abs-pointer { display: flex; align-items: center; gap: 8px; text-decoration: none; }
@media (min-width: 960px) {
    .grid.abs { display: block; column-count: 2; column-gap: 18px; }
    .grid.abs > .blk { display: block; width: 100%; break-inside: avoid; margin: 0 0 18px; }
}
/* v218: كالندري الفريق. Farben wie die Marken der Seite: عطلة grün, مرض rot-orange, Bitte gestrichelt. */
.tcal { margin-bottom: 18px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
@media (min-width: 960px) { .tcal { padding: 22px; } }
.tcal-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.tcal-head .chips { margin: 0; padding: 0; }
.tcal-nav { display: flex; align-items: center; gap: 10px; }
.tcal-nav strong { font-size: 14px; }
.tcal-wrap { overflow-x: auto; scrollbar-width: thin; }
.tcal-grid { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 12px; table-layout: fixed; }
.tcal-grid th { font-weight: 500; color: var(--muted); text-align: center; padding: 2px 0; }
.tcal-grid thead th span { display: block; font-size: 11px; }
.tcal-grid thead th b { font-size: 13px; color: var(--navy); }
.tcal-grid thead th.k-today b { color: var(--accent); }
.tcal-grid thead th:first-child, .tcal-grid th[scope=row] { width: 104px; }
.tcal-grid th[scope=row] { text-align: start; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: sticky; inset-inline-start: 0; background: #FFFFFF; z-index: 1; }
.tcal-grid td { height: 30px; border-radius: 6px; background: var(--field); text-align: center; overflow: hidden; white-space: nowrap; font-size: 11px; }
.tcal-grid td.k-today { box-shadow: inset 0 0 0 1px #C9CEDA; }
.tcal-grid td.k-leave, .dot.k-leave { background: #E1F5EE; color: #085041; }
.tcal-grid td.k-sick, .dot.k-sick { background: #FDECE4; color: #8A3B12; }
.tcal-grid td.k-comp, .dot.k-comp { background: #E6F1FB; color: #0C447C; }
.tcal-grid td.k-training, .dot.k-training { background: #EEEDFE; color: #3C3489; }
.tcal-grid td.k-other, .dot.k-other { background: #E3E5EC; color: #444441; }
.tcal-grid td.k-family, .dot.k-family { background: #FBEAF3; color: #7A1E4F; }
.abs-doc { display: none; flex-direction: column; gap: 6px; }
.sf-form:has(input[name=kind][value=sick]:checked) .abs-doc { display: flex; }
.abs-pick { display: flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 6px; padding: 0 14px; border: 1px dashed #C9CEDA; border-radius: 14px; background: var(--field); font-size: 14px; color: var(--navy); cursor: pointer; }
.abs-pick span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abs-pick:hover { border-color: var(--accent); }
.abs-row { flex-wrap: wrap; }
.abs-docs { order: 5; flex-basis: 100%; display: flex; align-items: center; gap: 6px; }
.abs-docs a.state { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.abs-up { display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border: 1px dashed var(--line); border-radius: 999px; background: none; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.abs-up:hover { border-color: var(--accent); color: var(--navy); }
.tcal-grid td.k-ask, .dot.k-ask { background: transparent; box-shadow: inset 0 0 0 1px #1D9E75; border: 0; color: #0F6E56; }
.tcal-grid tfoot td { background: none; height: 22px; color: var(--muted); }
.tcal-grid tfoot td.many { color: var(--err); font-weight: 600; }
.tcal-grid.month { min-width: 660px; border-spacing: 2px; }
.tcal-grid.month td { height: 24px; }
@media (max-width: 599px) { .tcal-grid thead th:first-child, .tcal-grid th[scope=row] { width: 68px; } .tcal-grid:not(.month) td span { display: none; } .tcal-grid.month thead th:first-child, .tcal-grid.month th[scope=row] { width: 68px; } }
.tcal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; }
.tcal-legend .dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -2px; margin-inline-end: 4px; }
.abs-ctx { flex-basis: 100%; display: flex; flex-direction: column; gap: 2px; }
.abs-ctx .warn { color: #8A5300; }
.abs-ctx .ok { color: #1E7B3A; }
@media print {
    .hr-steps, .sn-noprint, .side, .tabbar, header.top { display: none !important; }
    body { background: #FFFFFF !important; }
    main { max-width: none !important; padding: 0 !important; }
    .sn-sheet { border: 0; border-radius: 0; padding: 0; margin: 0; }
    @page { size: A4; margin: 16mm; }
}

/* v220: Bild im eigenen Fenster (Bescheinigung). */
.pop-box { border: 0; padding: 16px; width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 32px); border-radius: 24px; background: #FFFFFF; color: var(--navy); box-shadow: 0 24px 60px rgba(14, 27, 51, 0.28); margin: auto; }
.pop-box[open] { display: flex; flex-direction: column; gap: 12px; animation: ask-in 0.18s ease; }
.pop-box::backdrop { background: rgba(14, 27, 51, 0.55); }
.pop-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pop-head strong { font-size: 15px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pop-img { flex: 1 1 auto; min-height: 160px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: var(--field); overflow: auto; }
.pop-img img { display: block; max-width: 100%; max-height: calc(100dvh - 190px); border-radius: 12px; }
.pop-img.wait img { opacity: 0; }
.pop-img.wait::before { content: ''; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #D5DBE6; border-top-color: var(--accent); animation: pop-spin 0.8s linear infinite; position: absolute; }
.pop-box .btn { height: 48px; flex-shrink: 0; }
.pop-fail { padding: 16px; text-align: center; }
/* v243: eigene Fehlerseiten (resources/views/errors) */
.err-page { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 48px 8px 24px; }
.err-page .err-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--field); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.err-page h1 { font-size: 22px; font-weight: 600; }
.err-page p { max-width: 360px; }
.err-page .btn { max-width: 320px; }
@keyframes pop-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pop-box[open], .pop-img.wait::before { animation: none; } }

/* v221: رصيد العطلة in der Akte. */
.lv-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.lv-nums > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--field); min-width: 0; }
.lv-nums > div.lv-main { grid-column: 1 / -1; background: #E1F5EE; }
.lv-nums b { font-size: 20px; font-weight: 600; color: var(--navy); }
.lv-nums .lv-main b { font-size: 34px; color: #085041; }
.lv-nums span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.lv-hint { margin: 0; color: #8A5300; }

/* v222: Grenze der Abwesenheiten unter dem Kalender. */
.tcal-lim { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--navy); }
.tcal-lim select { height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); font: inherit; color: var(--navy); }
.tcal-lim .muted { flex-basis: 100%; }

/* v223: سجل العطل (Art. 246). */
.tcal-reg { margin-top: 10px; width: fit-content; text-decoration: none; }
.rg-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rg-tools .btn { width: auto; padding: 0 18px; }
.rg-wrap { overflow-x: auto; }
.rg-sheet table { min-width: 640px; }
.rg-sheet td small { color: var(--muted); font-size: 12px; }
.rg-p { white-space: nowrap; }
@media print { .rg-sheet table { min-width: 0; font-size: 11px; } .rg-wrap { overflow: visible; } @page { size: A4 landscape; margin: 12mm; } }
.rg-tools span.mn-btn { visibility: hidden; }

/* v224: Arbeiter über den Urlaub informieren. */
.abs-docs .state .ico, .abs-docs .state svg { margin-inline-end: 3px; }
.abs-up.done { border-style: solid; border-color: #1D9E75; color: #085041; }
.abs-late { color: #8A5300; font-size: 12px; }

/* v226: Feiertage im Kalender und in der Liste. */
.tcal-grid thead th.k-hd b { color: #993C1D; }
.tcal-grid td.k-hd:not([class*="k-leave"]):not([class*="k-sick"]):not(.k-comp):not(.k-training):not(.k-other):not(.k-family) { background: repeating-linear-gradient(135deg, #FAECE7 0 6px, #FFFFFF 6px 12px); }
.hd-row .state { flex: none; }

/* v227: Schalter +100 % am Feiertag, Marke in الحضور. */
.hd-bonus { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); gap: 6px; }
.hd-bonus-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hd-bonus-row > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; color: var(--navy); }
.hd-bonus-row small { font-size: 12px; color: var(--muted); }
.hd-bonus .switch { flex: none; }
.hd-mark { font-style: normal; color: #993C1D; }

/* v228: einen Tag allein bestätigen. */
.ts-day-ok { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 10px; border: 1px solid #9FE1CB; border-radius: 999px; background: #E1F5EE; font: inherit; font-size: 13px; color: #085041; cursor: pointer; }
@media (hover: hover) { .ts-day-ok:hover { border-color: #1D9E75; } }
@media (max-width: 599px) {
    .ts-entry { flex-wrap: wrap; row-gap: 8px; }
    .ts-entry > .ro-who { flex: 1 1 100%; }
    .ts-entry > .ts-day-pay { margin-inline-start: auto; }
}

/* v229: Bemerkung zur Änderung des Tageslohns. */
.ts-note { display: block; font-style: normal; color: var(--navy); }
.ts-note::before { content: '✎ '; color: var(--muted); }

/* v232: وصل الخلاص in الأجور */
.rc-link { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap; }
.rc-link.signed { color: #2E7D5B; border-color: #CDE7DA; background: #F1FAF5; }
.rc-link .rc-t { font-style: normal; }
@media (max-width: 599px) { .rc-link { padding: 0 9px; } .rc-link .rc-t { display: none; } }

/* v234: bezahlte Abwesenheitstage in تأكيد الحضور */
.ts-close .pa-line { display: block; }

/* v236: تقرير الشهر */
.rp-cost .ts-bigs { margin-bottom: 4px; }
.aw-early { color: #9A6A00; margin: 4px 0 0; }
@media print {
    .rp-noprint, .aw-give, .aw-form, .aw-back, .aw-early, .rp-link, .who-wrap { display: none !important; }
    .rp .blk { box-shadow: none !important; }
    .rp-row, .rp-drop { break-inside: avoid; }
    .rp-print-title { display: block !important; margin: 0 0 5mm; font-size: 16pt; font-weight: 600; color: #0E1B33; }
    .rp-stars button { pointer-events: none; }
}

/* v237: السجل – Filter */
.lg-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; margin-bottom: 14px; }
.lg-filter .lg-export { grid-column: 1 / -1; }
.lg-more { margin-top: 12px; width: 100%; }
@media (min-width: 960px) { .lg-filter { grid-template-columns: 1fr 1fr auto; } .lg-filter .lg-export { grid-column: auto; } }
.acc-name-h { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }

/* v239: Akte und Arbeiterseite */
.sf-sum { margin-bottom: 16px; }
.sf-sum .sm-sc { color: #B5442E; }
.off-open { color: #9A6A00; margin: 4px 0 8px; }
.fx-form { margin: 6px 0 14px; }
.fx-acts { margin-top: 6px; }

/* v242: Schalter der Meldungen je Art (Glocke, Handy). */
.np-row { display: grid; grid-template-columns: 1fr 56px 56px; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.np-row > :not(:first-child) { justify-self: center; }
.np-head { border-top: 0; padding-bottom: 2px; }
.np-head small { color: var(--muted); font-size: 12px; text-align: center; }
.np-none { color: var(--muted); }
