html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ===== Customer detail redesign — design tokens ===== */
:root {
    --ink-muted: #6b7280;
    --line: #e5e7eb;
    --chip-bg: #f1f3f5;
}

/* ===== Card / form overrides (soft look) ===== */
.cust-detail-scope .card { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.cust-detail-scope .card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; }
.cust-detail-scope .form-label { font-size: 0.8125rem; color: #4b5563; margin-bottom: .25rem; font-weight: 500; }
.cust-detail-scope .form-control,
.cust-detail-scope .form-select { font-size: 0.9375rem; border-radius: 8px; border-color: #d1d5db; }
.cust-detail-scope .form-control:focus,
.cust-detail-scope .form-select:focus { box-shadow: 0 0 0 3px rgba(13,110,253,.15); border-color: #0d6efd; }
.cust-detail-scope .btn { border-radius: 8px; font-weight: 500; }
.cust-detail-scope .btn-sm { font-size: .8125rem; }

/* ===== Font ===== */
.cust-detail-scope { font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.9375rem; color: #1f2937; }

/* ===== Nav tabs ===== */
.cust-detail-scope .nav-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
.cust-detail-scope .nav-tabs .nav-link {
    border: 0; color: var(--ink-muted); font-weight: 500; padding: .75rem 1rem;
    border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
    background: transparent;
}
.cust-detail-scope .nav-tabs .nav-link:hover { color: #111827; border-bottom-color: #d1d5db; background: transparent; }
.cust-detail-scope .nav-tabs .nav-link.active { color: #0d6efd; border-bottom-color: #0d6efd; background: transparent; }
.cust-detail-scope .nav-tabs .nav-link .badge {
    background: var(--chip-bg); color: #4b5563; font-weight: 600; margin-left: .35rem;
    padding: .2rem .45rem; border-radius: 999px; font-size: .7rem;
}
.cust-detail-scope .nav-tabs .nav-link.active .badge { background: #e7f1ff; color: #0d6efd; }

/* ===== Segmented control ===== */
.seg {
    display: inline-flex; gap: 2px; padding: 3px; background: #eef0f2;
    border-radius: 10px; border: 1px solid #e5e7eb;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
    font-size: .8125rem; padding: .4rem .85rem; border-radius: 7px; cursor: pointer;
    color: #4b5563; font-weight: 500; display: inline-flex; align-items: center; gap: .4rem;
    transition: background .12s, color .12s, box-shadow .12s;
    line-height: 1.1; margin: 0;
}
.seg label:hover { color: #111827; }
.seg input:checked + label {
    background: #fff; color: #0d6efd;
    box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 0 0 1px #dbe4ef;
}
.seg-lg label { padding: .5rem 1rem; font-size: .875rem; }
.seg .flag { width: 18px; height: 13px; border-radius: 2px; display: inline-block; background: #ccc; overflow: hidden; border: 1px solid rgba(0,0,0,.1); }

/* ===== Flags (CSS-only) ===== */
.flag-cz { background: linear-gradient(to bottom, #fff 50%, #d7141a 50%); position: relative; }
.flag-cz::before { content: ""; position: absolute; left: 0; top: 0; width: 0; height: 0; border-top: 6.5px solid transparent; border-bottom: 6.5px solid transparent; border-left: 8px solid #11457e; }
.flag-de { background: linear-gradient(to bottom, #000 33%, #dd0000 33%, #dd0000 66%, #ffce00 66%); }
.flag-en { background: #012169; }

/* ===== Customer header ===== */
.cust-header {
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.cust-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #e7f1ff, #cfe2ff);
    color: #0d6efd; font-weight: 600; font-size: 1.25rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; border: 1px solid #cfe2ff;
}

/* ===== RO fields ===== */
.ro-row { padding: .45rem 0; border-bottom: 1px dashed #eef1f4; }
.ro-row:last-child { border-bottom: 0; }
.ro-label { font-size: .75rem; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.ro-value { font-size: .9375rem; color: #111827; font-weight: 500; }
.ro-empty { color: #9ca3af; font-weight: 400; font-style: italic; }

/* ===== Badges ===== */
.badge-soft { background: #eef2ff; color: #4338ca; font-weight: 500; padding: .3em .55em; border-radius: 6px; font-size: .75rem; }
.badge-soft-green { background: #ecfdf5; color: #047857; font-weight: 500; padding: .3em .55em; border-radius: 6px; font-size: .75rem; }
.badge-soft-amber { background: #fffbeb; color: #b45309; font-weight: 500; padding: .3em .55em; border-radius: 6px; font-size: .75rem; }
.badge-soft-gray { background: #f1f3f5; color: #4b5563; font-weight: 500; padding: .3em .55em; border-radius: 6px; font-size: .75rem; }

/* ===== Chip (Aktivní) ===== */
.cust-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 500;
    background: #f1f3f5; color: #374151;
}
.cust-chip .dot { width: 6px; height: 6px; border-radius: 50%; background: #10b981; }

/* ===== Section titles in edit form ===== */
.section-title {
    font-size: .75rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--ink-muted); font-weight: 600; margin: 1rem 0 .5rem;
}

/* ===== Soft table ===== */
.table-soft { font-size: .875rem; }
.table-soft thead th {
    font-size: .72rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--ink-muted); font-weight: 600; border-bottom: 1px solid var(--line);
    background: #fafbfc;
}
.table-soft tbody td { border-color: #f1f3f5; vertical-align: middle; }
.table-soft tbody tr:hover { background: #fafbfc; }

/* ===== Icon button ===== */
.icon-btn {
    width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line);
    background: #fff; color: #4b5563; display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: #f1f5ff; color: #0d6efd; border-color: #9cc1ff; }

/* ===== Reservation detail redesign — design tokens ===== */
.res-detail-scope {
    --chip-draft-bg: #f3f4f6;       --chip-draft-dot: #6b7280;
    --chip-open-bg: #eff6ff;        --chip-open-dot: #3b82f6;
    --chip-confirmed-bg: #dcfce7;   --chip-confirmed-dot: #16a34a;
    --chip-paid-bg: #d1fae5;        --chip-paid-dot: #059669;
    --chip-cancelled-bg: #fee2e2;   --chip-cancelled-dot: #dc2626;
    --chip-completed-bg: #e0e7ff;   --chip-completed-dot: #4f46e5;

    --svc-boat-bg: #fff7db;         --svc-boat-fg: #b88700;
    --svc-transport-bg: #e0f2fe;    --svc-transport-fg: #0369a1;
    --svc-baggage-bg: #fef3c7;      --svc-baggage-fg: #92400e;
    --svc-accommodation-bg: #ede9fe;--svc-accommodation-fg: #6d28d9;

    --cust-client-bg: #eef2ff;      --cust-client-fg: #4338ca;  --cust-client-border: #c7d2fe;
    --cust-company-bg: #ede9fe;     --cust-company-fg: #6d28d9; --cust-company-border: #c4b5fd;
    --cust-school-bg: #ecfdf5;      --cust-school-fg: #065f46;  --cust-school-border: #6ee7b7;
    --cust-partner-bg: #fef3c7;     --cust-partner-fg: #92400e; --cust-partner-border: #fcd34d;

    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.9375rem;
    color: #1f2937;
}

.res-detail-scope .card { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.res-detail-scope .card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; }

/* Hlavička rezervace */
.res-header { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); padding: 1.25rem; }

/* KPI karta */
.res-detail-scope .kpi { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .875rem; min-height: 100%; }
.res-detail-scope .kpi .label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); font-weight: 600; }
.res-detail-scope .kpi .value { font-size: 1.125rem; font-weight: 600; color: #111827; }
.res-detail-scope .kpi .sub { font-size: .72rem; color: var(--ink-muted); }
.res-detail-scope .progress-thin { height: 6px; background: #f1f3f5; border-radius: 999px; margin-top: .35rem; overflow: hidden; }
.res-detail-scope .progress-thin .bar { height: 100%; background: #10b981; border-radius: 999px; }

/* Customer type badge */
.customer-type-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; border: 1px solid transparent; }
.customer-type-client   { background: var(--cust-client-bg);   color: var(--cust-client-fg);   border-color: var(--cust-client-border); }
.customer-type-company  { background: var(--cust-company-bg);  color: var(--cust-company-fg);  border-color: var(--cust-company-border); }
.customer-type-school   { background: var(--cust-school-bg);   color: var(--cust-school-fg);   border-color: var(--cust-school-border); }
.customer-type-partner  { background: var(--cust-partner-bg);  color: var(--cust-partner-fg);  border-color: var(--cust-partner-border); }
.customer-type-neutral  { background: #f3f4f6;                 color: var(--ink-muted);        border-color: var(--line); }

/* Customer mini avatar (inside KPI) */
.cust-mini-avatar { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex-shrink: 0; }
.cust-mini-avatar.cust-avatar-client   { background: var(--cust-client-bg);   color: var(--cust-client-fg); }
.cust-mini-avatar.cust-avatar-company  { background: var(--cust-company-bg);  color: var(--cust-company-fg); }
.cust-mini-avatar.cust-avatar-school   { background: var(--cust-school-bg);   color: var(--cust-school-fg); }
.cust-mini-avatar.cust-avatar-partner  { background: var(--cust-partner-bg);  color: var(--cust-partner-fg); }
.cust-mini-avatar.cust-avatar-neutral  { background: #f3f4f6;                 color: var(--ink-muted); }

/* Status chip (reservation + subreservation) */
.res-detail-scope .chip { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.res-detail-scope .chip .dot { width: 6px; height: 6px; border-radius: 50%; }
.res-detail-scope .chip-draft     { background: var(--chip-draft-bg); color: #374151; }
.res-detail-scope .chip-draft .dot { background: var(--chip-draft-dot); }
.res-detail-scope .chip-open      { background: var(--chip-open-bg); color: #1e40af; }
.res-detail-scope .chip-open .dot { background: var(--chip-open-dot); }
.res-detail-scope .chip-confirmed { background: var(--chip-confirmed-bg); color: #166534; }
.res-detail-scope .chip-confirmed .dot { background: var(--chip-confirmed-dot); }
.res-detail-scope .chip-paid      { background: var(--chip-paid-bg); color: #065f46; }
.res-detail-scope .chip-paid .dot { background: var(--chip-paid-dot); }
.res-detail-scope .chip-cancelled { background: var(--chip-cancelled-bg); color: #991b1b; }
.res-detail-scope .chip-cancelled .dot { background: var(--chip-cancelled-dot); }
.res-detail-scope .chip-completed { background: var(--chip-completed-bg); color: #3730a3; }
.res-detail-scope .chip-completed .dot { background: var(--chip-completed-dot); }


/* Service icon tile (colored square + bi icon) */
.svc-icon-tile { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.svc-tile-boat          { background: var(--svc-boat-bg);          color: var(--svc-boat-fg); }
.svc-tile-transport     { background: var(--svc-transport-bg);     color: var(--svc-transport-fg); }
.svc-tile-baggage       { background: var(--svc-baggage-bg);       color: var(--svc-baggage-fg); }
.svc-tile-accommodation { background: var(--svc-accommodation-bg); color: var(--svc-accommodation-fg); }

/* Service line header (inside subreservation card) */
.res-detail-scope .sub-header { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: #fafbfc; border-bottom: 1px solid var(--line); }

/* KV label (inside info blocks) */
.res-detail-scope .kv-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); font-weight: 600; }

/* Section head (in accommodation tabulky) */
.res-detail-scope .section-head { padding: .5rem 1rem; background: #fafbfc; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-muted); font-weight: 600; }

/* Soft table (reuse from CustomerDetail, shares .table-soft class) */
.res-detail-scope .table-soft tbody tr.sub-row td { padding-left: 2rem; color: var(--ink-muted); font-size: .8rem; }

/* Nav tabs styling + count badges (matches CustomerDetail look) */
.res-detail-scope .nav-tabs { border-bottom: 1px solid var(--line); gap: .25rem; }
.res-detail-scope .nav-tabs .nav-link {
    border: 0; color: var(--ink-muted); font-weight: 500; padding: .75rem 1rem;
    border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
    background: transparent;
}
.res-detail-scope .nav-tabs .nav-link:hover { color: #111827; border-bottom-color: #d1d5db; background: transparent; }
.res-detail-scope .nav-tabs .nav-link.active { color: #0d6efd; border-bottom-color: #0d6efd; background: transparent; }
.res-detail-scope .nav-tabs .nav-link .badge {
    background: #f1f3f5; color: #4b5563; font-weight: 600; margin-left: .35rem;
    padding: .2rem .45rem; border-radius: 999px; font-size: .7rem;
}
.res-detail-scope .nav-tabs .nav-link.active .badge { background: #e7f1ff; color: #0d6efd; }

/* Badge-soft variants already exist from CustomerDetail (.badge-soft, -green, -amber, -gray). Add -blue and -free: */
.badge-soft-blue { background: #eff6ff; color: #1d4ed8; font-weight: 500; padding: .3em .55em; border-radius: 6px; font-size: .75rem; }
.badge-soft-free { background: #dcfce7; color: #166534; font-weight: 600; padding: .15em .5em; border-radius: 999px; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
