/* ----------------------- TOASTY ----------------------- */

.toast {
    position: fixed;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    min-width: 280px;
    max-width: 600px;
    background: #333;
    color: #fff;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 22px;
    text-align: center;
    z-index: 99999;
    opacity: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.75s ease;
    pointer-events: auto;
    cursor: pointer;
}

.toast.show {
    top: 30px;
    opacity: 1;
}

.toast.hide {
    top: -50px;
    opacity: 1;
}

/* ----------------------- KOLORY WG TYPU ----------------------- */

.flash-success {
    background: #28a745;
}

.flash-error {
    background: #dc3545;
}

.flash-warning {
    background: #ffc107;
    color: #000;
}

.flash-info {
    background: #17a2b8;
}

.disabled a,
a.disabled {
    pointer-events: none;
}

a:hover {
    color: #15848F;
}

a {
    color: #1798A5;
}

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

body {
    font-family: "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    color: #1a1a1a;
    line-height: 1.6;
    background: #f5f7f8;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-size: 15px;
    font-weight: 400;
}

header {
    background: none;
    color: #ffffff;
    font-size: 30px;
    height: auto;
    line-height: 1.4;
    padding: 0;
    flex-shrink: 0;
}

header .header-title {
    padding-left: 20px;
    margin: 0;
    display: flex;
    align-items: center;
}

header .header-title h1 {
    margin: 0;
    font-size: 24px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    flex: 1;
}

.content {
    padding: 20px;
    width: 100%;
}

.side-nav li a:not(.button) {
    color: #15848F;
}

.side-nav li a:not(.button):hover {
    color: #0f5c67;
    background-color: rgba(23, 152, 165, 0.1);
}

legend {
    color: #15848F;
}

.row {
    max-width: 80rem;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}

.actions.columns {
    margin-top: 1rem;
    border-left: 5px solid #15848F;
    padding: 32px 20px;
    background: #fafafa;
    border-radius: 6px;
}

.actions.columns h3 {
    color: #15848F;
    margin-top: 0;
}

.related table {
    border: 0;
    width: 100%;
    table-layout: fixed;
}

.index table thead {
    height: auto;
}

.header-help {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    font-size: 16px;
}

.header-help span {
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    line-height: 1;
    white-space: nowrap;
    display: inline-block;
    padding: 4px 8px 6px;
    font-size: 12px;
    background-color: #0097a7;
    color: #FFF;
    border-radius: 1000px;
}

.header-help a {
    color: #fff;
    text-decoration: none;
}

ul.pagination li a {
    color: #1a1a1a;
    padding: 6px 12px;
    display: inline-block;
    border-radius: 4px;
    transition: all 150ms ease-out;
    font-weight: 500;
}

ul.pagination li a:hover {
    background-color: #f0f0f0;
}

ul.pagination li.active a {
    background-color: #DCE47E;
    color: #333;
    font-weight: bold;
    cursor: default;
}

ul.pagination .disabled:hover a {
    background: none;
}

.header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.header-actions li {
    display: inline-block;
    margin: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.form-group input,
.form-group textarea,
.form-group select,
.form input,
.form textarea,
.form select {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d7d7d7;
    border-radius: 4px;
    background: #fff;
    transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: #1798A5;
    box-shadow: 0 0 0 3px rgba(23, 152, 165, 0.12);
    outline: none;
}

.paginator {
    text-align: center;
    margin-top: 2rem;
}

.paginator ul.pagination li {
    display: inline-block;
    margin: 0 4px;
}

.paginator p {
    text-align: center;
    color: #1a1a1a;
    margin-top: 1rem;
    font-weight: 500;
}

.asc:after {
    content: " ↓";
}

.desc:after {
    content: " ↑";
}

.form .error-message {
    display: block;
    padding: 0.375rem 0.5625rem 0.5625rem;
    margin-top: -1px;
    margin-bottom: 1rem;
    font-size: 0.75rem;
    font-weight: normal;
    font-style: italic;
    color: #dc3545;
}

.required > label {
    font-weight: bold;
}

.required > label:after {
    content: ' *';
    color: #C3232D;
}

select[multiple] {
    min-height: 150px;
    background: #fff;
}

input[type=checkbox],
input[type=radio] {
    margin-right: 0.5em;
    cursor: pointer;
}

.date select,
.time select,
.datetime select {
    text-align: left;
    width: auto;
    margin-right: 5px;
}

.input select, .input #zmiana {
    width: 100%;
    max-width: 400px;
}

.calendar .input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.calendar .input select {
    width: auto;
    min-width: 160px;
    max-width: 260px;
    flex: 1 1 180px;
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    line-height: 1.4;
    border: 1px solid #c7cbd1;
    border-radius: 6px;
    background: #ffffff;
    color: #333;
    margin: 0;
}

.calendar fieldset {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

/* Nawigacja miesiąca (zamiast selectów roku/miesiąca) */
.month-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: var(--color-bg-lighter);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.25rem;
    margin-bottom: var(--space-sm);
}

.month-nav-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    color: var(--color-secondary);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.month-nav-arrow:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.month-nav-label {
    flex: 1;
    text-align: center;
    font-weight: 700;
    color: var(--color-text);
    font-size: 1.05rem;
    text-transform: capitalize;
}

.input #group-id,
.input #gender {
    width: 100%;
    float: none;
    padding: 5px;
    margin: 1% 0;
}

.error label,
.error label.error {
    color: #C3232D;
}

.view h2 {
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.view .columns.strings {
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
    margin-right: 0.7rem;
    margin-bottom: 1rem;
}

.view .numbers {
    background-color: #B7E3EC;
    color: #FFF;
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
    margin-right: 0.7rem;
    margin-bottom: 1rem;
}

.view .columns.dates {
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
    margin-right: 0.7rem;
    margin-bottom: 1rem;
    background-color: #DCE47E;
    color: #fff;
}

.view .columns.booleans {
    border-radius: 3px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.24);
    margin-right: 0.7rem;
    margin-bottom: 1rem;
    background-color: #8D6E65;
    color: #fff;
}

.view .strings p {
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
}

.view .numbers .subheader, .view .dates .subheader {
    color: #1a1a1a;
    font-weight: 600;
}

.view .booleans .subheader {
    color: #E9E9E9;
}

.view .texts .columns {
    margin-top: 1.2rem;
    border-bottom: 1px solid #eee;
}

/* -------- Notices and Errors -------- */
.cake-error,
.cake-debug,
.notice,
p.error,
p.notice {
    display: block;
    clear: both;
    background-repeat: repeat-x;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.cake-debug,
.notice,
p.notice {
    color: #000000;
    background: #ffcc00;
}

.cake-error,
p.error {
    color: #fff;
    background: #C3232D;
}

pre {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    margin: 15px 0;
    color: #333;
    padding: 12px;
    border-radius: 4px;
    overflow-x: auto;
}

.cake-error .cake-stack-trace {
    margin-top: 10px;
}

.cake-stack-trace code {
    background: inherit;
    border: 0;
}

.cake-code-dump .code-highlight {
    display: block;
    background-color: #FFC600;
}

.cake-error a,
.cake-error a:hover {
    color: #fff;
    text-decoration: underline;
}

.checks {
    padding: 30px;
    color: #1a1a1a;
    background-color: #B7E3EC;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    margin-bottom: 2em;
    font-weight: 500;
}

.checks h4 {
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.checks hr {
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.checks .success,
.checks .problem {
    margin-left: 10px;
}

.checks .success:before,
.checks .problem:before {
    line-height: 0px;
    font-size: 28px;
    height: 12px;
    width: 12px;
    border-radius: 15px;
    text-align: center;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    left: -11px;
}

.checks .success:before {
    content: "✓";
    color: green;
    margin-right: 9px;
}

.checks .problem:before {
    content: "✘";
    color: red;
    margin-right: 9px;
}

.top-bar.expanded .title-area {
    background: transparent;
}

.top-bar.expanded, .top-bar, .top-bar-section ul li, .top-bar-section li:not(.has-form) a:not(.button) {
    background: #116d76;
}

.top-bar-section li:not(.has-form) a:not(.button):hover {
    background-color: #308e97;
    margin-right: 0;
}

nav.top-bar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    filter: invert(1) brightness(2);
}

.side-nav li.heading {
    color: #1798A5;
    font-size: 0.875rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.4375rem 0.875rem;
}

#actions-sidebar {
    background: #fafafa;
}

.index table {
    margin-top: 0;
    border: 0;
    table-layout: fixed;
    width: 100%;
}

table {
    background: #fff;
    margin-bottom: 1.25rem;
    border: none;
    table-layout: fixed;
    width: 100%;
}

table thead {
    background: #f7f9f9;
}

table tr {
    border-bottom: 1px solid #ebebec;
}

table thead tr {
    border-bottom: 2px solid #1798A5;
}

table tr th {
    padding: 12px;
    font-size: 0.875rem;
    color: #0f4555;
    text-align: left;
    border-bottom: 2px solid #1798A5;
    font-weight: 700;
}

table tr td {
    padding: 10px 12px;
    color: #1a1a1a;
    font-weight: 500;
}

table tr:nth-of-type(even) {
    background: #fafafa;
}

table tbody tr:hover {
    background: #f0f7f8;
}

fieldset {
    border: 1px solid #ddd;
    padding: 1.25rem;
    margin: 1.125rem 0;
    border-radius: 4px;
    background: #fafafa;
}

fieldset legend {
    border-bottom: 2px solid #1798A5;
    width: 100%;
    line-height: 2rem;
    margin-bottom: 1rem;
    color: #1798A5;
    font-weight: 600;
}

.form button[type="submit"] {
    float: right;
    text-transform: uppercase;
    box-shadow: none;
    background: #116d76;
    color: #ffffff;
    padding: 12px 24px;
}

.form button:hover, .form button:focus {
    background: #0f5c67;
    box-shadow: none;
}

button,
.button {
    background: #116d76;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 150ms ease-out;
    font-weight: 500;
}

button:hover,
.button:hover,
button:focus,
.button:focus {
    background: #0f5c67;
}

div.message {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    cursor: pointer;
    font-weight: 500;
    padding: 0.85rem 1.25rem;
    background-color: #a0d3e8;
    color: #1a1a1a;
    z-index: 999;
    line-height: 1.4;
    border-radius: 6px;
    max-width: 1200px;
    margin: 1rem auto 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    word-break: break-word;
    overflow-wrap: anywhere;
}

div.message:before {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    height: 24px;
    width: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
    display: inline-block;
    background-color: #FFF;
    content: "i";
    color: #a0d3e8;
}

div.message.error {
    background-color: #C3232D;
    color: #FFF;
}

div.message.error:before {
    color: #C3232D;
    content: "\00d7";
    font-size: 18px;
}

div.message.hidden {
    display: none;
}

#plan {
    background: var(--color-bg-lighter);
    font-size: large;
    color: #000000;
    text-align: center;
}

#plan-user {
    background: rgba(23, 152, 165, 0.18);
    font-size: medium;
    color: #1a1a1a;
    text-align: center;
    padding: 4px;
}

#plan-kierownik {
    background: rgba(211, 60, 68, 0.16);
    font-size: medium;
    color: #1a1a1a;
    text-align: center;
    padding: 4px;
}

.vertical-table th {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    color: #175f6e;
    border-bottom: 1px solid #e9eef0;
    text-align: left;
    background: #f8fbfc;
}

.vertical-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: #fff;
    border: 1px solid #dde4e8;
    border-radius: 4px;
    overflow: hidden;
}

.vertical-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #eef2f4;
    color: #1a1a1a;
    font-weight: 500;
}

.vertical-table tr:last-child td {
    border-bottom: none;
}

.content {
    padding: 20px;
}

.change-pass, .content {
    padding: 20px;
}

.change-pass hr {
    margin: 0;
}

.change-pass fieldset {
    border: 1px solid #ddd;
    padding: 1.25rem;
    margin: 1.125rem 0;
    border-radius: 4px;
}

.container {
    min-height: 92%;
    visibility: visible;
    opacity: 1;
    transition: opacity 2s linear;
}

.calendar {
    table-layout: auto;
    padding: 0;
    margin: 0 0 1rem 0;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.calendar td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    text-align: left;
    border: 1px solid #dcdfe2;
}

.calendar tr {
    display: table-row;
}

.calendar tr:first-child td {
    background: #ddd;
    border: none;
}

.calendar tr:nth-child(2) td {
    background: #ddd;
    color: #c00;
    border: none;
    font-weight: 700;
}

.content h2 {
    color: #be140b;
    padding: 0.5rem 0;
    margin: 1.5rem 0 1rem 0;
    font-size: 28px;
}

.content h3 {
    color: #be140b;
    padding: 0.5rem 0;
    margin: 1rem 0 0.75rem 0;
    font-size: 24px;
}

.content h4 {
    color: #be140b;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #be140b;
    font-size: 20px;
}

.content .related h4 {
    color: #4d8f97;
    padding-bottom: 0.5rem;
    margin-top: 20px;
    margin-bottom: 10px;
    border-bottom: 0px;
}

.propos .button {
    margin: 0.5rem auto;
    width: 100%;
}

.propos .button_out {
    margin: 0.5rem auto;
    width: 100%;
}

/* ===================== MODERN CARD LOOK (Strona główna / Rezerwacje) ===================== */

/* Sidebar as a clean card */
.sidebar-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
}

.sidebar-card .side-nav {
    list-style: none;
    margin: 0 0 var(--space-sm) 0;
    padding: 0;
}

.sidebar-card .side-nav li {
    margin-bottom: 2px;
}

.sidebar-card .side-nav li a:not(.button) {
    display: block;
    padding: 0.5rem 0.6rem;
    border-radius: var(--radius-md);
}

.sidebar-card .side-nav li a:not(.button):hover {
    background-color: rgba(23, 152, 165, 0.1);
}

.sidebar-card hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: var(--space-sm) 0;
}

/* Calendar widget — card, no grid lines */
.calendar-grid {
    border: none !important;
    border-spacing: 4px !important;
    background: transparent;
}

.calendar-grid td {
    border: none !important;
    background: transparent !important;
}

.calendar-grid tr:first-child td {
    background: transparent !important;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: var(--font-size-xs);
    text-transform: uppercase;
}

.calendar-grid td {
    text-align: center;
    border-radius: var(--radius-md);
    padding: 0.4rem !important;
}

.calendar-grid td a {
    display: block;
    border-radius: var(--radius-full);
    text-decoration: none;
}

.calendar-grid td a:hover {
    background: rgba(23, 152, 165, 0.15);
}

.calendar-grid td.calendar-today {
    background: var(--color-primary) !important;
    border-radius: var(--radius-full) !important;
}

/* Shift board — card grid instead of table grid */
.modern-board {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin-top: -5px; /* kompensuje górny odstęp z inline border-spacing:5px (odstępy między wierszami kart zostają nietknięte) */
}

.modern-board tr {
    background: transparent !important;
}

.modern-board > tbody > tr > td[colspan] {
    background: transparent !important;
    padding: 0 !important;
}

.modern-board > tbody > tr > td[colspan] h4,
.modern-board > tbody > tr > td[colspan] h2 {
    margin: 0 0 var(--space-xs) 0;
    padding: 0;
    color: var(--color-primary-dark);
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
}

.modern-board > tbody > tr > td[colspan] h4 u,
.modern-board > tbody > tr > td[colspan] h2 u,
.modern-board > tbody > tr > td[colspan] h4 b,
.modern-board > tbody > tr > td[colspan] h2 b {
    text-decoration: none;
    font-weight: 700;
}

.shift-card {
    background: var(--color-bg-white) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm);
    padding: 0 !important;
    overflow: hidden;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.shift-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.shift-card-head {
    width: 100%;
    background: var(--color-secondary) !important;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    border-spacing: 0 !important;
}

.shift-card-head td {
    border: none !important;
}

.shift-card p {
    margin: 2px 0 !important;
    padding: 0.35rem 0.6rem !important;
    font-size: var(--font-size-sm);
}

/* #plan admin list rows -> card-like rows */
#plan, #plan-user, #plan-kierownik {
    border-radius: var(--radius-md);
}

tr:has(> #plan-user), tr:has(> #plan-kierownik) {
    box-shadow: var(--shadow-sm);
}

/* ===================== KALENDARZ — usprawnienia (skróty, wskaźniki, belka, filtry, badge) ===================== */

/* Skróty "Dziś" / "Następny wolny termin" */
.calendar-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: var(--space-sm);
}

.cal-shortcut-btn {
    flex: 1 1 auto;
    text-align: center;
    background: var(--color-bg-lighter);
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.45rem 0.7rem;
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    transition: background-color var(--transition-fast);
}

.cal-shortcut-btn:hover {
    background: rgba(23, 152, 165, 0.12);
}

.cal-shortcut-btn--accent {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.cal-shortcut-btn--accent:hover {
    background: var(--color-primary-dark);
}

/* Wskaźniki obłożenia dni */
.calendar-grid td {
    position: relative;
    /* stała rezerwacja miejsca na kropkę u dołu KAŻDEJ komórki, żeby numery dni
       były na równej wysokości niezależnie od tego, czy dzień ma wskaźnik */
    padding-bottom: 12px !important;
}

.day-dot {
    /* poza przepływem - nie przesuwa numeru dnia */
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    margin: 0;
}

.day-dot--open {
    background: var(--color-success);
}

.day-dot--full {
    background: var(--color-text-muted);
}

/* Nawigacja tygodniowa (widoczna głównie na mobile, patrz responsive.css) */
.calendar-week-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: var(--space-sm);
}

.week-nav-btn {
    font-size: var(--font-size-xs);
    color: var(--color-secondary);
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: var(--radius-sm);
}

.week-nav-btn:hover {
    background: rgba(23, 152, 165, 0.1);
}

/* Belka z podsumowaniem wybranego dnia — teraz część karty kalendarza w sidebarze */
.day-summary-bar {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: var(--color-bg-lighter);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.75rem;
    margin: var(--space-sm) 0;
}

.day-summary-date {
    color: var(--color-text);
    font-size: var(--font-size-sm);
}

.day-summary-free {
    font-size: var(--font-size-sm);
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-full);
}

.day-summary-free--open {
    background: rgba(40, 167, 69, 0.15);
    color: #1e7e34;
}

.day-summary-free--full {
    background: rgba(107, 114, 128, 0.15);
    color: var(--color-text-muted);
}

/* Filtry kart zmian (czysty CSS, bez JS) */
.shift-filter-bar {
    margin-bottom: var(--space-sm);
}

.shift-filter-radio {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.shift-filter-tabs {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.shift-filter-tabs label {
    cursor: pointer;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    background: var(--color-bg-lighter);
    border: 1px solid var(--color-border);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

#filter-all:checked ~ .shift-filter-tabs label[for="filter-all"],
#filter-mine:checked ~ .shift-filter-tabs label[for="filter-mine"],
#filter-free:checked ~ .shift-filter-tabs label[for="filter-free"] {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

/* Filtry leżą w sidebarze (nav), a karty zmian w .content - nie są bezpośrednimi
   rodzeństwem, więc zamiast kombinatora "~" używamy :has() na wspólnym rodzicu .container */
.container:has(#filter-mine:checked) .shift-card[data-mine="0"] {
    display: none;
}

.container:has(#filter-free:checked) .shift-card[data-status="full"] {
    display: none;
}

/* Status zmiany - badge */
.shift-status-badge {
    display: inline-block;
    margin: 6px auto 2px;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.shift-status-badge--complete {
    background: rgba(40, 167, 69, 0.15);
    color: #1e7e34;
}

.shift-status-badge--open {
    background: rgba(255, 193, 7, 0.2);
    color: #8a6500;
}

/* ===================== PANEL ADMINISTRACYJNY ===================== */

.admin-panel {
    width: 100%;
    flex: 1 1 100%;
    padding: var(--space-md) 0;
}

.admin-panel-title {
    color: var(--color-primary-dark);
    margin: 0 0 0.25rem 0;
}

.admin-panel-lead {
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg) 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-md);
}

.admin-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.admin-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.admin-card-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.admin-card-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.admin-card-title {
    margin: 0;
    color: var(--color-text);
    font-size: var(--font-size-lg);
    font-weight: 700;
}

.admin-card-desc {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin: 0 0 var(--space-md) 0;
    flex: 1;
}

.admin-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-card-btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-border);
    background: var(--color-bg-lighter);
    color: var(--color-secondary);
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.admin-card-btn:hover {
    background: rgba(23, 152, 165, 0.12);
}

.admin-card-btn--primary {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.admin-card-btn--primary:hover {
    background: var(--color-secondary-dark);
    color: #fff;
}