/* panel-modern.css — elegancki panel RCP */

:root {
    --rcp-navy: #1a2b5f;
    --rcp-navy-deep: #0f1d42;
    --rcp-blue: #2f4db8;
    --rcp-blue-soft: #4a67d4;
    --rcp-slate: #5a678f;
    --rcp-text: #1e293b;
    --rcp-muted: #64748b;
    --rcp-surface: rgba(255, 255, 255, 0.78);
    --rcp-surface-soft: rgba(248, 250, 255, 0.65);
    --rcp-glass-border: rgba(255, 255, 255, 0.42);
    --rcp-border: rgba(255, 255, 255, 0.28);
    --rcp-shadow: 0 18px 48px rgba(15, 29, 66, 0.14);
    --rcp-shadow-sm: 0 8px 24px rgba(15, 29, 66, 0.08);
    --rcp-radius-xl: 28px;
    --rcp-radius: 18px;
    --rcp-radius-sm: 12px;
    --rcp-success: #0d9488;
    --rcp-warning: #d97706;
    --rcp-danger: #dc2626;
    --rcp-font: 'Plus Jakarta Sans', 'Manrope', 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

.rcp-body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--rcp-font);
    font-size: 15px;
    color: var(--rcp-text);
    background: transparent;
    padding: max(env(safe-area-inset-top, 12px), 12px) 14px max(env(safe-area-inset-bottom, 12px), 12px);
}

/* Pasek emulacji jest fixed, więc treść musi zejść o jego wysokość —
   razem z bezpiecznym obszarem, o który pasek urósł na iPhonie. */
.rcp-body--impersonating { padding-top: calc(56px + env(safe-area-inset-top, 0px)); }

.rcp-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(
            180deg,
            rgba(15, 29, 66, 0.58) 0%,
            rgba(15, 29, 66, 0.42) 45%,
            rgba(15, 29, 66, 0.18) 78%,
            rgba(15, 29, 66, 0.06) 100%
        ),
        url('../background.png') center / cover no-repeat;
}

.rcp-app {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 28px;
}

/* ── Header ── */
.rcp-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 18px;
    border-radius: var(--rcp-radius-xl);
    background: linear-gradient(135deg, var(--rcp-navy-deep) 0%, var(--rcp-navy) 48%, var(--rcp-blue) 100%);
    color: #fff;
    box-shadow: var(--rcp-shadow);
}

.rcp-avatar {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--rcp-navy);
    background: #fff;
    flex-shrink: 0;
    position: relative;
}

.rcp-avatar__dot {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--rcp-navy);
    background: var(--rcp-muted);
    transition: background 0.25s, box-shadow 0.25s;
}

.rcp-avatar__dot[data-state="active"] {
    background: var(--rcp-success);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.25);
}

.rcp-avatar__dot[data-state="break"] {
    background: var(--rcp-warning);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.25);
}

.rcp-header__eyebrow {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
}

.rcp-header__name {
    margin: 0 0 8px;
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.rcp-role {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

/* ── Cards ── */
.rcp-card {
    background: var(--rcp-surface);
    border: 1px solid var(--rcp-glass-border);
    border-radius: var(--rcp-radius);
    padding: 16px 18px;
    box-shadow: var(--rcp-shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.rcp-card__title {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rcp-slate);
}

.rcp-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rcp-status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
}

.rcp-status-indicator.active { background: var(--rcp-success); }
.rcp-status-indicator.break { background: var(--rcp-warning); }

.rcp-status-value {
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--rcp-text);
}

.rcp-status-value.active { color: var(--rcp-success); }
.rcp-status-value.inactive { color: var(--rcp-muted); font-weight: 700; }

.rcp-work-details {
    display: none;
    margin-top: 14px;
    padding: 14px;
    border-radius: var(--rcp-radius-sm);
    background: var(--rcp-surface-soft);
    border: 1px solid var(--rcp-border);
    font-size: 14px;
    line-height: 1.6;
    color: var(--rcp-slate);
}

.rcp-work-details.show { display: block; }

/* ── Hub: okrąg 8h + nadgodziny ── */
.rcp-hub {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 20px 18px 18px;
}

.rcp-hub__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid var(--rcp-glass-border);
    color: var(--rcp-slate);
}

.rcp-hub__badge.is-active {
    background: rgba(236, 253, 245, 0.75);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.35);
}

.rcp-hub__badge.is-break {
    background: rgba(255, 247, 237, 0.8);
    color: #c2410c;
    border-color: rgba(234, 88, 12, 0.35);
}

.rcp-hub__ring-wrap {
    position: relative;
    width: 168px;
    height: 168px;
}

.rcp-hub__ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.rcp-hub__ring-track,
.rcp-hub__ring-norm,
.rcp-hub__ring-overtime {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.rcp-hub__ring-track {
    stroke: rgba(148, 163, 184, 0.28);
}

.rcp-hub__ring-norm {
    stroke: #10b981;
    stroke-dasharray: 0 364.425;
    transition: stroke-dasharray 0.35s linear, stroke-dashoffset 0.35s linear;
}

.rcp-hub__ring-overtime {
    stroke: #f59e0b;
    stroke-dasharray: 0 364.425;
    opacity: 0;
    transition: stroke-dasharray 0.35s linear, stroke-dashoffset 0.35s linear, opacity 0.3s ease;
}

.rcp-hub__ring-overtime.is-visible {
    opacity: 1;
}

.rcp-hub__ring-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 18px;
}

.rcp-hub__ring-time {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rcp-text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.rcp-hub__ring-ot-text {
    font-size: 11px;
    font-weight: 800;
    color: #d97706;
}

.rcp-hub__hint {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--rcp-slate);
    line-height: 1.45;
    max-width: 320px;
}

.rcp-hub__hint.is-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.rcp-hub__hint-row {
    display: block;
}

.rcp-hub__hint-row strong {
    font-weight: 800;
    color: var(--rcp-text);
}

.rcp-hub__hint-row--comment {
    margin-top: 4px;
    font-size: 13px;
    color: var(--rcp-muted);
}

.rcp-hub__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

.rcp-hub__stat {
    padding: 10px 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid var(--rcp-glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.rcp-hub__stat strong {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--rcp-text);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.rcp-hub__stat span {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rcp-muted);
}

.rcp-hub__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.rcp-hub__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.rcp-hub__btn:active { transform: scale(0.985); }

.rcp-hub__btn--work {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
}

.rcp-hub__btn--work.is-stop {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 10px 24px rgba(220, 38, 38, 0.24);
}

.rcp-hub__btn--break {
    background: rgba(255, 255, 255, 0.55);
    color: #c2410c;
    border: 1px solid rgba(234, 88, 12, 0.28);
}

.rcp-hub__btn-icon {
    font-size: 16px;
    line-height: 1;
}

.rcp-hub .rcp-approval {
    width: 100%;
    text-align: left;
}

.rcp-approval {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: var(--rcp-radius-sm);
    font-size: 13px;
    line-height: 1.5;
    font-weight: 600;
}

.rcp-approval.pending { background: #fff8e6; color: #92400e; border-left: 3px solid #f59e0b; }
.rcp-approval.approved { background: #ecfdf5; color: #065f46; border-left: 3px solid #10b981; }
.rcp-approval.rejected { background: #fef2f2; color: #991b1b; border-left: 3px solid #ef4444; }

.rcp-comment {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 13px;
    color: #92400e;
}

/* ── Alerts ── */
.rcp-alerts { display: flex; flex-direction: column; gap: 8px; }

.rcp-alert {
    padding: 12px 14px;
    border-radius: var(--rcp-radius-sm);
    font-size: 13px;
    line-height: 1.5;
    background: var(--rcp-surface);
    border: 1px solid var(--rcp-glass-border);
    box-shadow: var(--rcp-shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rcp-alert a { color: var(--rcp-blue); font-weight: 700; }

.rcp-alert--info { border-left: 3px solid var(--rcp-blue-soft); }
.rcp-alert--warn { border-left: 3px solid var(--rcp-warning); background: #fffbeb; }
.rcp-alert--danger { border-left: 3px solid var(--rcp-danger); background: #fef2f2; }

.rcp-btn {
    display: inline-flex;
    margin-top: 10px;
    padding: 9px 14px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--rcp-blue), var(--rcp-navy));
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

/* ── Module tiles (pełna szerokość, jak akcja pracy) ── */
.rcp-modules {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rcp-tile {
    --tile-accent: var(--rcp-blue);
    --tile-tint: rgba(255, 255, 255, 0.45);
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 88px;
    padding: 16px 14px 16px 18px;
    border-radius: 16px;
    border: 1px solid var(--rcp-glass-border);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: var(--rcp-text);
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(15, 29, 66, 0.12);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
    animation: rcp-in 0.35s ease both;
    text-align: left;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

.rcp-tile__accent {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--tile-accent);
    border-radius: 16px 0 0 16px;
}

.rcp-tile:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 32px rgba(15, 29, 66, 0.16);
    border-color: rgba(255, 255, 255, 0.55);
}

.rcp-tile:active { transform: scale(0.985); }
.rcp-tile.disabled { opacity: 0.5; pointer-events: none; filter: grayscale(0.3); }

.rcp-tile--danger {
    --tile-accent: var(--rcp-danger);
    --tile-tint: rgba(254, 242, 242, 0.72);
    border-color: rgba(254, 202, 202, 0.55);
    background: rgba(255, 250, 250, 0.72);
}

.rcp-tile__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    color: var(--tile-accent);
    background: var(--tile-tint);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.rcp-tile__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rcp-tile__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.rcp-tile__title {
    display: block;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--rcp-text);
}

.rcp-tile__sub {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--rcp-muted);
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcp-tile__chev {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--rcp-muted);
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.rcp-tile__chev svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rcp-tile:hover .rcp-tile__chev {
    transform: translateX(2px);
    color: var(--tile-accent);
    background: var(--tile-tint);
}

.rcp-tile__badge {
    display: inline-block;
    align-self: flex-start;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rcp-tile--work   { --tile-accent: #2563eb; --tile-tint: rgba(239, 246, 255, 0.72); }
.rcp-tile--break  { --tile-accent: #ea580c; --tile-tint: rgba(255, 247, 237, 0.72); }
.rcp-tile--absence { --tile-accent: #7c3aed; --tile-tint: rgba(245, 243, 255, 0.72); }
.rcp-tile--report { --tile-accent: #4f46e5; --tile-tint: rgba(238, 242, 255, 0.72); }
.rcp-tile--fuel   { --tile-accent: #db2777; --tile-tint: rgba(253, 242, 248, 0.72); }
.rcp-tile--equipment { --tile-accent: #6366f1; --tile-tint: rgba(238, 242, 255, 0.72); }
.rcp-tile--wz     { --tile-accent: #475569; --tile-tint: rgba(241, 245, 249, 0.72); }
.rcp-tile--manager { --tile-accent: #2f4db8; --tile-tint: rgba(238, 242, 255, 0.72); }

.rcp-modules .rcp-tile:nth-child(1) { animation-delay: 0.02s; }
.rcp-modules .rcp-tile:nth-child(2) { animation-delay: 0.06s; }
.rcp-modules .rcp-tile:nth-child(3) { animation-delay: 0.10s; }
.rcp-modules .rcp-tile:nth-child(4) { animation-delay: 0.14s; }
.rcp-modules .rcp-tile:nth-child(5) { animation-delay: 0.18s; }
.rcp-modules .rcp-tile:nth-child(6) { animation-delay: 0.22s; }
.rcp-modules .rcp-tile:nth-child(n+7) { animation-delay: 0.26s; }

/* ── Bottom nav (jak rcp-header, w flow pod modułami) ── */
.rcp-bottom-nav {
    position: relative;
    width: 100%;
    margin-top: 18px !important;
    margin-bottom: 0 !important;
    padding: 10px 12px !important;
    border-radius: var(--rcp-radius-xl) !important;
    border: none !important;
    background: linear-gradient(135deg, var(--rcp-navy-deep) 0%, var(--rcp-navy) 48%, var(--rcp-blue) 100%) !important;
    box-shadow: var(--rcp-shadow) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    gap: 8px !important;
    overflow: visible;
}

.rcp-bottom-nav::before {
    display: none;
}

.rcp-bottom-nav .app-nav-btn {
    min-height: 54px;
    border-radius: 16px;
    font-family: var(--rcp-font);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    gap: 5px;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.rcp-bottom-nav .app-nav-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.85;
    opacity: 0.9;
}

.rcp-bottom-nav .app-nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: none;
}

.rcp-bottom-nav .app-nav-btn.active {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: none;
    transform: none;
}

.rcp-bottom-nav .app-nav-btn.active::before {
    display: none;
}

.rcp-bottom-nav .app-nav-btn.active svg {
    opacity: 1;
    stroke: #fff;
}

.rcp-bottom-nav .app-nav-btn.active span {
    font-weight: 800;
    color: #fff;
}

/* ── Impersonation ── */
.rcp-impersonation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    /* Strona ma viewport-fit=cover, więc pasek przyklejony do top:0 wchodzi na
       iPhonie pod pasek stanu / notch. Górny padding powiększamy o bezpieczny
       obszar, boczne o wcięcia w poziomie (landscape). */
    padding: calc(10px + env(safe-area-inset-top, 0px))
             max(16px, env(safe-area-inset-right, 0px))
             10px
             max(16px, env(safe-area-inset-left, 0px));
    background: linear-gradient(135deg, #b45309, #d97706);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}

.rcp-impersonation button {
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

/* ── Popup & modal ── */
.rcp-popup {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    max-width: 340px;
    width: calc(100vw - 40px);
    background: #ffffff;
    border-radius: var(--rcp-radius);
    border: 1px solid var(--rcp-border);
    box-shadow: var(--rcp-shadow);
    padding: 16px 18px;
}

.rcp-popup__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.rcp-popup__title { font-weight: 800; font-size: 15px; flex: 1; }

.rcp-popup__close {
    background: none;
    border: none;
    color: var(--rcp-muted);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.rcp-popup__body { font-size: 14px; line-height: 1.55; color: var(--rcp-slate); }

.rcp-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(15, 29, 66, 0.72);
}

.rcp-modal {
    width: min(92vw, 400px);
    background: #ffffff;
    border-radius: var(--rcp-radius);
    padding: 22px 20px;
    box-shadow: var(--rcp-shadow);
    border: 1px solid var(--rcp-border);
}

.rcp-modal h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
    color: var(--rcp-text);
}

.rcp-modal p {
    margin: 0 0 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--rcp-muted);
}

.rcp-modal--confirm {
    text-align: center;
    animation: rcp-in 0.22s ease-out;
}

.rcp-modal__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid rgba(217, 119, 6, 0.25);
    font-size: 28px;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(180, 83, 9, 0.18);
}

.rcp-modal--confirm h2 {
    margin-bottom: 10px;
}

.rcp-modal--confirm p {
    margin-bottom: 12px;
    color: var(--rcp-slate);
}

.rcp-modal--confirm p strong {
    color: var(--rcp-text);
    font-weight: 800;
}

.rcp-modal__note {
    margin-bottom: 18px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--rcp-border);
    font-size: 12px;
    line-height: 1.45;
    color: var(--rcp-muted);
    text-align: left;
}

.rcp-modal__actions {
    display: flex;
    gap: 10px;
}

.rcp-modal__actions .rcp-btn {
    flex: 1;
    margin-top: 0;
    justify-content: center;
}

.rcp-btn--ghost {
    background: #fff;
    color: var(--rcp-slate);
    border: 1px solid var(--rcp-border);
    box-shadow: none;
}

.rcp-btn--ghost:hover {
    background: #f8fafc;
}

.rcp-btn--compact {
    width: auto;
}

.rcp-overlay--impersonation {
    z-index: 12050;
}

.rcp-btn--danger {
    width: 100%;
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

@keyframes rcp-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .rcp-tile { animation: none; }
}

/* ── Pola daty i miesiąca (iOS) ──────────────────────────────────────────────
   Safari na iPhonie renderuje input[type=date|month|time|...] jako natywną
   kontrolkę (-webkit-appearance: menulist-button), która sama ustala swoją
   szerokość na podstawie sformatowanej daty i ignoruje nasze width:100%.
   Efekt: białe pole wyjeżdżało poza kartę (np. "27 lip 2026" w Centrum
   raportów). Wyłączamy natywny wygląd i zerujemy szerokości/marginesy
   wewnętrznych elementów shadow DOM, żeby pole trzymało się ramki rodzica.

   Reguły celują w selektor atrybutowy (0,1,1), więc wygrywają ze zwykłym
   `input, select, button { width: 100% }` z arkuszy poszczególnych stron
   niezależnie od kolejności ładowania. Poza Safari nic się nie zmienia. */
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime-local"] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="month"]::-webkit-date-and-time-value,
input[type="week"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value {
    width: 100%;
    min-width: 0;
    margin: 0;
    /* Wyrównanie takie samo jak w sąsiadujących <select> na tych samych kartach. */
    text-align: left;
}

input[type="date"]::-webkit-datetime-edit,
input[type="month"]::-webkit-datetime-edit,
input[type="week"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit {
    padding: 0;
}
