/* ——— Page layout ——— */
.pk-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.pk-page-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.pk-page-head .pk-page-title {
    margin-bottom: 4px;
}

.pk-page-head .pk-page-lead {
    margin-bottom: 0;
}

.pk-topbar__user {
    font-size: 0.8125rem;
    opacity: 0.85;
    margin-right: 8px;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-section {
    margin-bottom: 32px;
}

.pk-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pk-section__title {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
}

.pk-link {
    color: var(--pk-link);
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
}

.pk-link:hover {
    text-decoration: underline;
}

.pk-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--pk-link);
    cursor: pointer;
}

.pk-link-btn--muted {
    color: var(--pk-text-muted);
    margin-left: 12px;
}

.pk-hint {
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
    margin-top: 12px;
}

.pk-grid--4 {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Stats */
.pk-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.pk-stat {
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    padding: 20px;
    box-shadow: var(--pk-shadow);
}

.pk-stat__label {
    display: block;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
    margin-bottom: 6px;
}

.pk-stat__value {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.pk-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--pk-accent) 8%, var(--pk-surface)), var(--pk-surface));
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    box-shadow: var(--pk-shadow);
}

.pk-highlight__car {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.pk-highlight__meta {
    font-size: 0.875rem;
    color: var(--pk-text-muted);
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pk-highlight__dates {
    font-size: 0.9375rem;
}

.pk-highlight__due {
    margin: 0 0 12px;
    font-size: 0.875rem;
}

/* Dashboard — ostatnie elementy */
.pk-recent__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.pk-recent__col {
    min-width: 0;
}

.pk-recent__col .pk-section__title {
    margin-bottom: 0;
}

.pk-recent__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pk-recent__item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pk-recent__item:hover {
    border-color: color-mix(in srgb, var(--pk-accent) 35%, var(--pk-border));
    box-shadow: var(--pk-shadow);
}

.pk-recent__item-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pk-recent__item-title {
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-recent__item-meta {
    font-size: 0.75rem;
    color: var(--pk-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-recent__item-side {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.pk-recent__amount {
    font-weight: 700;
    font-size: 0.875rem;
    white-space: nowrap;
}

.pk-recent__empty {
    margin: 0;
    padding: 16px 14px;
    font-size: 0.875rem;
    color: var(--pk-text-muted);
    background: var(--pk-surface);
    border: 1px dashed var(--pk-border);
    border-radius: var(--pk-radius);
    text-align: center;
}

/* Status */
.pk-status {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    white-space: nowrap;
}

.pk-status--success {
    background: #dcfce7;
    color: #166534;
}

.pk-status--info {
    background: #dbeafe;
    color: #1e40af;
}

.pk-status--warning {
    background: #fef3c7;
    color: #92400e;
}

.pk-status--neutral {
    background: #f1f5f9;
    color: #475569;
}

.pk-status--danger {
    background: #fee2e2;
    color: #991b1b;
}

.pk-pay-amount--in {
    color: #166534;
}

.pk-pay-amount--out {
    color: #991b1b;
}

/* Segmented tabs */
.pk-seg {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    margin-bottom: 20px;
}

.pk-seg--sm {
    margin-top: 8px;
}

.pk-seg__btn {
    border: none;
    background: transparent;
    padding: 10px 16px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pk-text-muted);
    border-radius: 8px;
    cursor: pointer;
}

.pk-seg__btn.is-active {
    background: var(--pk-accent);
    color: #fff;
}

.pk-tab-panel {
    display: none;
}

.pk-tab-panel.is-active {
    display: block;
}

/* Form grid */
.pk-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 20px;
}

.pk-form-grid--1 {
    grid-template-columns: 1fr;
    max-width: 420px;
}

.pk-form-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: none;
}

.pk-form-grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.pk-form-grid .pk-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pk-text-muted);
}

.pk-phone {
    display: grid;
    grid-template-columns: minmax(168px, 42%) 1fr;
    gap: 8px;
    align-items: start;
}

.pk-phone__prefix,
.pk-phone__number {
    min-width: 0;
}

.pk-phone .pk-combobox--phone {
    width: 100%;
}

.pk-phone .pk-combobox__list {
    min-width: 100%;
    width: max(100%, 280px);
    max-height: 280px;
}

.pk-combobox--phone .pk-combobox__input {
    width: 100%;
    padding: 11px 36px 11px 14px !important;
    font-family: inherit;
    font-size: 0.9375rem;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    background: var(--pk-bg);
    color: var(--pk-text);
    box-sizing: border-box;
}

.pk-combobox--phone .pk-combobox__input:focus {
    outline: none;
    border-color: var(--pk-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pk-accent) 22%, transparent);
}

.pk-combobox--phone .pk-combobox__chevron {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 10px;
    height: 10px;
    transform: translateY(-60%) rotate(45deg);
    border-right: 2px solid var(--pk-text-muted);
    border-bottom: 2px solid var(--pk-text-muted);
    pointer-events: none;
}

.pk-combobox--phone .pk-combobox__option[aria-selected='true'] {
    background: color-mix(in srgb, var(--pk-accent) 16%, var(--pk-surface));
    font-weight: 600;
}

.pk-combobox--disabled {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 520px) {
    .pk-phone {
        grid-template-columns: 1fr;
    }

    .pk-phone .pk-combobox__list {
        width: 100%;
    }
}

.pk-form-grid .pk-field input,
.pk-select--block {
    width: 100%;
    padding: 11px 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    background: var(--pk-bg);
}

.pk-select {
    padding: 10px 14px;
    font-family: inherit;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    background: var(--pk-surface);
}

/* Toolbar */
.pk-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.pk-toolbar__info {
    font-size: 0.875rem;
    color: var(--pk-text-muted);
}

.pk-search__input {
    min-width: 240px;
    padding: 10px 14px;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    font-family: inherit;
}

.pk-search--grow {
    flex: 1 1 220px;
    min-width: 0;
}

.pk-search--grow .pk-search__input {
    width: 100%;
    min-width: 0;
}

.pk-toolbar--rentals {
    margin-bottom: 12px;
}

@media (min-width: 721px) {
    .pk-doc-sort-select {
        display: none;
    }
}

/* Tables */
.pk-table-wrap {
    overflow-x: auto;
    margin: 0 -4px;
}

.pk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.pk-table th,
.pk-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--pk-border);
}

.pk-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pk-text-muted);
    font-weight: 600;
    vertical-align: bottom;
}

.pk-table-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    color: inherit;
    cursor: pointer;
    border-radius: 6px;
    line-height: 1.3;
    text-align: left;
}

.pk-table-sort:hover {
    color: var(--pk-text);
}

.pk-table-sort.is-active {
    color: var(--pk-accent);
}

.pk-table-sort__indicator {
    font-size: 0.625rem;
    opacity: 0.65;
    line-height: 1;
}

.pk-table-sort.is-active .pk-table-sort__indicator {
    opacity: 1;
}

.pk-table__actions {
    text-align: right;
    white-space: nowrap;
}

.pk-select--sm {
    font-size: 0.8125rem;
    padding: 6px 10px;
    min-height: 36px;
}

/* Pagination */
.pk-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 14px 16px;
    border-top: 1px solid var(--pk-border);
    background: var(--pk-surface);
}

.pk-pagination__info {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
}

.pk-pagination__info strong {
    color: var(--pk-text);
    font-weight: 600;
}

.pk-pagination__cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    margin-left: auto;
}

.pk-pagination__size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
}

.pk-pagination__size-label {
    white-space: nowrap;
}

.pk-pagination__controls {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.pk-pagination__controls[hidden] {
    display: none;
}

.pk-pagination__status {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pk-text);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .pk-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .pk-pagination__cluster {
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .pk-pagination__controls {
        justify-content: space-between;
    }
}

/* List cards */
.pk-list-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pk-list-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
}

.pk-list-card__title {
    margin: 0 0 4px;
    font-size: 1rem;
}

.pk-list-card__meta {
    margin: 0;
    font-size: 0.875rem;
    color: var(--pk-text-muted);
}

.pk-list-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pk-badge--soft {
    font-weight: 600;
    background: color-mix(in srgb, var(--pk-accent) 12%, var(--pk-surface));
    color: var(--pk-accent);
}

.pk-dane-list__empty {
    margin: 0 0 12px;
    padding: 20px 16px;
    text-align: center;
    color: var(--pk-text-muted);
    background: var(--pk-surface);
    border: 1px dashed var(--pk-border);
    border-radius: var(--pk-radius);
}

.pk-dane-form {
    padding: 20px 22px;
}

.pk-dane-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--pk-border);
}

.pk-field--sensitive .pk-sensitive-input:not(.is-revealed) {
    cursor: pointer;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.pk-sensitive-hint {
    margin: 6px 0 0;
    font-size: 0.75rem;
    color: var(--pk-text-muted);
    line-height: 1.35;
}

.pk-field--checkbox {
    display: flex;
    align-items: flex-end;
}

.pk-checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9375rem;
    min-height: 42px;
}

.pk-checkbox-row input {
    width: 18px;
    height: 18px;
    accent-color: var(--pk-accent);
}

.pk-subkonta-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: flex-end;
}

.pk-sub-password-meta {
    max-width: 520px;
    margin-bottom: 8px;
}

.pk-sub-password-hint {
    margin: 4px 0 0;
}

.pk-btn--sm {
    padding: 8px 14px;
    font-size: 0.8125rem;
}

/* Chips filter */
.pk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.pk-chip {
    border: 1px solid var(--pk-border);
    background: var(--pk-surface);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--pk-text-muted);
}

.pk-chip.is-active {
    border-color: var(--pk-accent);
    background: color-mix(in srgb, var(--pk-accent) 12%, transparent);
    color: var(--pk-accent);
}

/* Rental list */
.pk-rental-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 0;
}

.pk-rental-list__empty {
    margin: 0;
    padding: 32px 20px;
    text-align: center;
    color: var(--pk-text-muted);
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
}

.pk-rental-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px 24px;
    padding: 20px 22px;
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.pk-rental-row:hover {
    border-color: color-mix(in srgb, var(--pk-accent) 35%, var(--pk-border));
    box-shadow: var(--pk-shadow);
}

.pk-rental-row__main {
    flex: 1 1 280px;
    min-width: 0;
}

.pk-rental-row__vehicle {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.pk-rental-row__car {
    margin: 0;
    font-weight: 700;
    font-size: 1.0625rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.pk-rental-row__reg-badge {
    display: inline-block;
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 8px;
    background: var(--pk-btn-default-bg);
    color: var(--pk-text);
    border: 1px solid var(--pk-border);
}

html[data-pk-theme='dark'] .pk-rental-row__reg-badge {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

.pk-rental-row__refs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--pk-border);
}

.pk-rental-row__res {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--pk-accent);
    font-variant-numeric: tabular-nums;
}

.pk-rental-row__case {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pk-text-muted);
}

.pk-rental-row__facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pk-rental-row__fact {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--pk-text);
}

.pk-rental-row__fact-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--pk-accent);
}

.pk-icon--rental-fact {
    width: 18px;
    height: 18px;
}

.pk-rental-row__fact-text {
    min-width: 0;
}

.pk-rental-row__fact-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pk-text-muted);
    margin-bottom: 2px;
}

.pk-rental-row__route {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
}

.pk-rental-row__route-part {
    min-width: 0;
}

.pk-rental-row__route-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pk-text-muted);
    margin-right: 4px;
}

.pk-rental-row__route-arrow {
    color: var(--pk-text-muted);
    font-weight: 600;
    flex-shrink: 0;
}

@media (max-width: 520px) {
    .pk-rental-row__route {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .pk-rental-row__route-arrow {
        display: none;
    }
}

.pk-rental-row__side {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    flex-shrink: 0;
}

.pk-rental-row__amount {
    font-weight: 700;
    font-size: 1.0625rem;
}

.pk-rental-row__due {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #b45309;
}

[data-pk-rental-root] .pk-pagination,
[data-pk-dane-drivers-list] .pk-pagination,
[data-pk-dane-reps-list] .pk-pagination {
    margin-top: 16px;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
}

.pk-plain-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--pk-text);
}

.pk-item-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pk-item-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    margin: 0;
    padding: 7px 12px 7px 9px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--pk-accent) 18%, var(--pk-border));
    background: color-mix(in srgb, var(--pk-accent) 8%, var(--pk-surface));
    color: var(--pk-text);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
}

.pk-item-tag__icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pk-accent) 16%, transparent);
    color: var(--pk-accent);
}

.pk-item-tag__label {
    min-width: 0;
    overflow-wrap: anywhere;
}

.pk-icon--tag {
    width: 0.875rem;
    height: 0.875rem;
}

.pk-item-tag--extra {
    border-color: color-mix(in srgb, var(--pk-accent) 22%, var(--pk-border));
}

.pk-item-tag--acc {
    border-color: color-mix(in srgb, #0f766e 22%, var(--pk-border));
    background: color-mix(in srgb, #0f766e 8%, var(--pk-surface));
}

.pk-item-tag--acc .pk-item-tag__icon {
    background: color-mix(in srgb, #0f766e 16%, transparent);
    color: #0f766e;
}

.pk-item-tag--person {
    border-color: color-mix(in srgb, #1d4ed8 20%, var(--pk-border));
    background: color-mix(in srgb, #1d4ed8 7%, var(--pk-surface));
}

.pk-item-tag--person .pk-item-tag__icon {
    background: color-mix(in srgb, #1d4ed8 14%, transparent);
    color: #1d4ed8;
}

/* Przypisanie kierowców / reprezentantów */
.pk-people-grid {
    margin-top: 16px;
}

.pk-people-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.pk-people-card__title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pk-people-card__title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: color-mix(in srgb, var(--pk-accent) 12%, var(--pk-surface));
    color: var(--pk-accent);
}

.pk-icon--people-title {
    width: 1.05rem;
    height: 1.05rem;
}

.pk-people-card__title {
    margin: 0;
}

.pk-people-empty {
    margin: 0;
    padding: 14px 12px;
    border-radius: var(--pk-radius);
    border: 1px dashed var(--pk-border);
    background: color-mix(in srgb, var(--pk-border) 18%, var(--pk-surface));
    color: var(--pk-text-muted);
    font-size: 0.875rem;
    line-height: 1.45;
}

.pk-people-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pk-people-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--pk-border);
    background: var(--pk-surface);
}

.pk-people-chip__avatar,
.pk-people-option__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--pk-accent) 12%, transparent);
    color: var(--pk-accent);
}

.pk-icon--people {
    width: 0.95rem;
    height: 0.95rem;
}

.pk-people-chip__name,
.pk-people-option__name {
    min-width: 0;
    font-size: 0.9375rem;
    font-weight: 550;
    color: var(--pk-text);
    overflow-wrap: anywhere;
}

.pk-people-edit__hint {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
    line-height: 1.4;
}

.pk-people-picker {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 280px;
    overflow: auto;
}

.pk-people-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--pk-border);
    background: var(--pk-surface);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.pk-people-option:hover {
    border-color: color-mix(in srgb, var(--pk-accent) 35%, var(--pk-border));
}

.pk-people-option.is-selected {
    border-color: color-mix(in srgb, var(--pk-accent) 45%, var(--pk-border));
    background: color-mix(in srgb, var(--pk-accent) 9%, var(--pk-surface));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--pk-accent) 18%, transparent);
}

.pk-people-option__input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.pk-people-option__tick {
    margin-left: auto;
    display: inline-flex;
    opacity: 0;
    color: var(--pk-accent);
    transform: scale(0.85);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.pk-people-option.is-selected .pk-people-option__tick {
    opacity: 1;
    transform: scale(1);
}

.pk-icon--tick {
    width: 1.1rem;
    height: 1.1rem;
}

.pk-people-edit__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--pk-border);
}

.pk-people-edit__msg {
    margin: 10px 0 0;
    font-size: 0.875rem;
    color: #b91c1c;
}

.pk-text-muted {
    color: var(--pk-text-muted);
}

.pk-breadcrumb {
    font-size: 0.875rem;
    color: var(--pk-text-muted);
    margin-bottom: 12px;
}

.pk-breadcrumb a {
    color: var(--pk-link);
    text-decoration: none;
}

.pk-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.pk-dl {
    margin: 0;
}

.pk-dl > div {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--pk-border);
}

.pk-dl > div:last-child {
    border-bottom: 0;
}

.pk-dl dt {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
}

.pk-dl dd {
    margin: 0;
    font-weight: 500;
}

.pk-dl small {
    font-weight: 400;
    color: var(--pk-text-muted);
}

/* Payments banner */
.pk-pay-banners {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.pk-pay-banner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-radius: var(--pk-radius-lg);
    color: #f8fafc;
}

.pk-pay-banner--overdue {
    background: linear-gradient(135deg, #991b1b 0%, #dc2626 55%, #b91c1c 100%);
    border: 1px solid #7f1d1d;
}

.pk-pay-banner--upcoming {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #1d4ed8 100%);
    border: 1px solid #1e40af;
}

.pk-pay-banner--ok {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    border: 1px solid #0f766e;
    color: #ecfdf5;
}

.pk-pay-banner__label {
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.9;
    color: inherit;
}

.pk-pay-banner__amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 4px;
}

.pk-pay-banner__amount {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.pk-pay-banner__amount--text {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: 0;
}

.pk-pay-banner__hint {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    opacity: 0.9;
    color: inherit;
    max-width: 36rem;
}

.pk-pay-banner__gateways {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pk-btn--on-dark {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #ffffff;
}

.pk-btn--on-dark:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.pk-btn--on-dark-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.pk-btn--on-dark-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.pk-toolbar--payments {
    margin-bottom: 20px;
}

.pk-pay-tabs__seg {
    margin-bottom: 16px;
}

.pk-pay-tab__count {
    display: inline-block;
    min-width: 1.25rem;
    margin-left: 6px;
    padding: 2px 7px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
}

.pk-seg__btn:not(.is-active) .pk-pay-tab__count {
    background: var(--pk-btn-default-bg);
    color: var(--pk-text-muted);
}

.pk-pay-tab-panels .pk-tab-panel {
    display: none;
}

.pk-pay-tab-panels .pk-tab-panel.is-active {
    display: block;
}

.pk-pay-panel__summary {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pk-text-muted);
}

.pk-pay-sections {
    display: block;
}

.pk-pay-table__empty {
    text-align: center;
    color: var(--pk-text-muted);
    padding: 24px 16px !important;
}

.pk-pay-row--deposit td:first-child {
    box-shadow: inset 3px 0 0 #3b82f6;
}

.pk-pay-row--fee td:first-child {
    box-shadow: inset 3px 0 0 #94a3b8;
}

.pk-pay-row--out td:first-child {
    box-shadow: inset 3px 0 0 #ef4444;
}

.pk-pay-row--in.pk-pay-row--deposit td:first-child {
    box-shadow: inset 3px 0 0 #3b82f6;
}

.pk-pay-row--in.pk-pay-row--fee td:first-child {
    box-shadow: inset 3px 0 0 #22c55e;
}

@media (max-width: 720px) {
    .pk-pay-table thead {
        display: none;
    }

    .pk-pay-table tbody tr {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--pk-border);
    }

    .pk-pay-table tbody tr:last-child {
        border-bottom: 0;
    }

    .pk-pay-table td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border-bottom: none;
        text-align: right;
    }

    .pk-pay-table td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--pk-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        text-align: left;
        flex-shrink: 0;
    }
}

/* Komunikacja */
.pk-toolbar--msg {
    margin-bottom: 12px;
}

.pk-chips--msg {
    margin-bottom: 16px;
}

.pk-msg-compose {
    margin-bottom: 20px;
}

.pk-msg-compose__title {
    margin: 0 0 6px;
    font-size: 1.125rem;
    font-weight: 700;
}

.pk-msg-compose__hint {
    margin: 0 0 16px;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
    line-height: 1.45;
}

.pk-msg-compose__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pk-msg-compose__form .pk-field__input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    font-family: inherit;
    font-size: 0.9375rem;
    background: var(--pk-surface);
    color: var(--pk-text);
}

.pk-msg-compose__form .pk-field__input:focus {
    outline: 2px solid color-mix(in srgb, var(--pk-accent) 45%, transparent);
    border-color: var(--pk-accent);
}

.pk-msg-compose__form .pk-field__input[readonly],
.pk-msg-compose__form .pk-msg-compose__to {
    background: color-mix(in srgb, var(--pk-text) 9%, var(--pk-bg));
    color: var(--pk-text-muted);
    cursor: default;
}

.pk-msg-compose__form .pk-msg-compose__to:focus {
    outline: none;
    border-color: var(--pk-border);
}

.pk-msg-compose__body {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.pk-msg-compose__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 4px;
}

.pk-msg-table {
    table-layout: fixed;
    width: 100%;
}

.pk-msg-table th,
.pk-msg-table td {
    vertical-align: middle;
}

.pk-msg-table th:nth-child(1),
.pk-msg-table td:nth-child(1) {
    width: 8.75rem;
    white-space: nowrap;
}

.pk-msg-table th:nth-child(2),
.pk-msg-table td:nth-child(2) {
    width: 5.25rem;
}

.pk-msg-table th:nth-child(3),
.pk-msg-table td:nth-child(3) {
    width: 7rem;
}

.pk-msg-table th:nth-child(4),
.pk-msg-table td:nth-child(4) {
    width: auto;
}

.pk-msg-table th:nth-child(5),
.pk-msg-table td:nth-child(5) {
    width: 6.5rem;
}

.pk-msg-table th:nth-child(6),
.pk-msg-table td:nth-child(6) {
    width: 6.75rem;
}

.pk-msg-table--rental th:nth-child(1),
.pk-msg-table--rental td:nth-child(1) {
    width: 8.75rem;
    white-space: nowrap;
}

.pk-msg-table--rental th:nth-child(2),
.pk-msg-table--rental td:nth-child(2) {
    width: 5.25rem;
}

.pk-msg-table--rental th:nth-child(3),
.pk-msg-table--rental td:nth-child(3) {
    width: auto;
}

.pk-msg-table--rental th:nth-child(4),
.pk-msg-table--rental td:nth-child(4) {
    width: 6.5rem;
}

.pk-msg-table--rental th:nth-child(5),
.pk-msg-table--rental td:nth-child(5) {
    width: 6.75rem;
}

.pk-msg-table--rental th:nth-child(6),
.pk-msg-table--rental td:nth-child(6) {
    width: auto;
}

.pk-msg-table__channel {
    white-space: nowrap;
}

.pk-badge--channel {
    white-space: nowrap;
    display: inline-block;
    max-width: none;
    padding: 3px 8px;
    font-size: 0.6875rem;
    letter-spacing: 0.01em;
}

.pk-msg-table__topic {
    max-width: 0;
}

.pk-msg-table__subject {
    display: block;
    font-weight: 600;
    color: var(--pk-text);
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-msg-table__preview {
    display: block;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-msg-table__res {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pk-msg-table__dir {
    white-space: nowrap;
}

.pk-msg-table__actions .pk-btn,
.pk-msg-table td.pk-table__actions .pk-btn {
    white-space: nowrap;
}

.pk-msg-table__muted {
    color: var(--pk-text-muted);
}

.pk-msg-table__empty {
    text-align: center;
    color: var(--pk-text-muted);
    padding: 24px 16px !important;
}

@media (max-width: 720px) {
    .pk-msg-table {
        table-layout: auto;
    }

    .pk-msg-table thead {
        display: none;
    }

    .pk-msg-table tbody tr {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--pk-border);
    }

    .pk-msg-table tbody tr:last-child {
        border-bottom: 0;
    }

    .pk-msg-table td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border-bottom: none;
        text-align: right;
        width: auto !important;
        max-width: none;
        white-space: normal;
    }

    .pk-msg-table td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--pk-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        text-align: left;
        flex-shrink: 0;
    }

    .pk-msg-table__topic {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        max-width: none;
    }

    .pk-msg-table__topic::before {
        margin-bottom: 4px;
    }

    .pk-msg-table__subject,
    .pk-msg-table__preview {
        white-space: normal;
    }

    .pk-msg-table__preview {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}

/* Combobox rezerwacji (select2-like) */
.pk-combobox {
    position: relative;
}

.pk-combobox__control {
    position: relative;
    display: flex;
    align-items: stretch;
}

.pk-combobox__input {
    padding-right: 36px !important;
}

.pk-combobox__clear {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border: none;
    border-radius: var(--pk-radius);
    background: transparent;
    color: var(--pk-text-muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.pk-combobox__clear:hover {
    background: var(--pk-btn-default-bg);
    color: var(--pk-text);
}

.pk-combobox__list {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 6px 0;
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    box-shadow: var(--pk-shadow-md, 0 8px 24px rgba(0, 0, 0, 0.12));
}

.pk-combobox__option {
    padding: 8px 12px;
    font-size: 0.875rem;
    cursor: pointer;
    line-height: 1.35;
}

.pk-combobox__option:hover,
.pk-combobox__option:focus {
    background: color-mix(in srgb, var(--pk-accent) 12%, var(--pk-surface));
}

.pk-combobox__empty {
    padding: 10px 12px;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
}

/* Podgląd wiadomości */
.pk-msg-detail {
    padding: 18px 20px;
}

.pk-msg-detail .pk-dl--inline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pk-border);
}

.pk-msg-detail .pk-dl--inline > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    border-bottom: none;
    grid-template-columns: none;
}

.pk-msg-detail .pk-dl--inline dt {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.pk-msg-detail .pk-dl--inline dd {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
}

.pk-msg-detail__body-title {
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pk-text-muted);
}

.pk-msg-detail__content {
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--pk-text);
    white-space: normal;
    word-break: break-word;
}

.pk-msg-detail__content p,
.pk-msg-detail__content div {
    margin: 0;
    padding: 0;
    line-height: 1.45;
}

.pk-msg-detail__content a {
    color: var(--pk-link);
}

.pk-msg-detail__content img {
    max-width: 100%;
    height: auto;
}

.pk-msg-detail__content table {
    border-collapse: collapse;
    max-width: 100%;
}

@media (max-width: 900px) {
    .pk-msg-detail .pk-dl--inline {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .pk-msg-detail .pk-dl--inline {
        grid-template-columns: 1fr;
    }
}

/* Documents */
.pk-card--flush {
    padding: 0;
    overflow: hidden;
}

.pk-card--flush .pk-table-wrap {
    margin: 0;
}

.pk-doc-table__doc-no {
    display: block;
    font-weight: 600;
    color: var(--pk-text);
}

.pk-doc-table__type {
    display: block;
    margin-top: 2px;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
}

.pk-doc-table__actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.pk-doc-table__empty {
    text-align: center;
    color: var(--pk-text-muted);
    padding: 28px 16px !important;
}

@media (max-width: 720px) {
    .pk-doc-table thead {
        display: none;
    }

    .pk-doc-table tbody tr {
        display: block;
        padding: 14px 16px;
        border-bottom: 1px solid var(--pk-border);
    }

    .pk-doc-table tbody tr:last-child {
        border-bottom: 0;
    }

    .pk-doc-table td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 12px;
        padding: 6px 0;
        border-bottom: none;
        text-align: right;
    }

    .pk-doc-table td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--pk-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        text-align: left;
        flex-shrink: 0;
    }

    .pk-doc-table td.pk-table__actions {
        flex-direction: column;
        align-items: stretch;
        padding-top: 10px;
    }

    .pk-doc-table td.pk-table__actions::before {
        margin-bottom: 4px;
    }

    .pk-doc-table__actions {
        width: 100%;
        justify-content: stretch;
    }

    .pk-doc-table__actions .pk-btn {
        flex: 1 1 auto;
    }
}

.pk-doc-table__muted {
    color: var(--pk-text-muted);
}

/* Podgląd dokumentu */
.pk-doc-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pk-doc-preview__meta {
    padding: 18px 20px;
}

.pk-doc-preview__dl {
    margin: 0;
    border-bottom: none;
    padding-bottom: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
}

.pk-doc-preview__dl > div {
    min-width: 0;
}

@media (max-width: 720px) {
    .pk-doc-preview__dl {
        grid-template-columns: 1fr;
    }
}

.pk-doc-preview__viewer {
    padding: 18px 20px 20px;
}

.pk-doc-preview__viewer-title {
    margin: 0 0 12px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--pk-text-muted);
}

.pk-doc-preview__frame-wrap {
    position: relative;
    width: 100%;
    min-height: min(72vh, 640px);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius);
    overflow: hidden;
    background: var(--pk-btn-default-bg);
}

.pk-doc-preview__frame {
    display: block;
    width: 100%;
    height: min(72vh, 640px);
    border: 0;
}

.pk-doc-preview__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: min(72vh, 640px);
    object-fit: contain;
    background: var(--pk-bg);
}

.pk-doc-preview__fallback {
    margin: 10px 0 0;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
}

.pk-doc-preview__photos {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pk-doc-photos {
    padding: 18px 20px 20px;
}

.pk-doc-photos__title {
    margin: 0 0 14px;
    font-size: 1rem;
    font-weight: 700;
}

.pk-doc-photos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pk-doc-photos__item figure {
    margin: 0;
}

.pk-doc-photos__thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    border-radius: var(--pk-radius);
}

.pk-doc-photos__thumb:focus-visible {
    outline: 2px solid var(--pk-accent);
    outline-offset: 2px;
}

.pk-doc-photos__item img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--pk-radius);
    border: 1px solid var(--pk-border);
    background: var(--pk-btn-default-bg);
}

.pk-doc-photos__item figcaption {
    margin-top: 6px;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--pk-text-muted);
}

.pk-doc-photos__empty {
    margin: 0;
    font-size: 0.875rem;
    color: var(--pk-text-muted);
}

/* Legacy doc cards (unused) */
.pk-doc-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pk-doc {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
}

.pk-doc__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    color: #b91c1c;
    font-size: 0.6875rem;
    font-weight: 800;
    border-radius: 10px;
}

.pk-doc__body {
    flex: 1;
    min-width: 180px;
}

.pk-doc__name {
    margin: 0 0 4px;
    font-size: 0.9375rem;
}

.pk-doc__meta {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
}

.pk-doc__actions {
    display: flex;
    gap: 8px;
}

/* Timeline */
.pk-timeline {
    position: relative;
    padding-left: 28px;
}

.pk-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--pk-border);
}

.pk-timeline__item {
    position: relative;
    margin-bottom: 20px;
}

.pk-timeline__dot {
    position: absolute;
    left: -28px;
    top: 18px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--pk-accent);
    border: 3px solid var(--pk-bg);
}

.pk-timeline__card {
    background: var(--pk-surface);
    border: 1px solid var(--pk-border);
    border-radius: var(--pk-radius-lg);
    padding: 18px 20px;
}

.pk-timeline__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.pk-timeline__time {
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
}

.pk-timeline__subject {
    margin: 0 0 6px;
    font-size: 1rem;
}

.pk-timeline__preview {
    margin: 0 0 10px;
    font-size: 0.875rem;
    color: var(--pk-text-muted);
}

/* Settings */
.pk-settings-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pk-toggle-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pk-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--pk-border);
    cursor: pointer;
}

.pk-toggle-row:last-child {
    border-bottom: 0;
}

.pk-settings-a11y {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--pk-border);
}

.pk-a11y-settings--page .pk-a11y-panel__title {
    font-size: 1rem;
    color: var(--pk-text);
}

.pk-a11y-settings--page .pk-a11y-panel__hint {
    font-size: 0.8125rem;
    color: var(--pk-text-muted);
    opacity: 1;
}

.pk-a11y-settings--page .pk-a11y-fieldset {
    border-color: var(--pk-border);
}

.pk-a11y-settings--page .pk-a11y-fieldset legend {
    color: var(--pk-text-muted);
}

.pk-a11y-settings--page .pk-a11y-field span,
.pk-a11y-settings--page .pk-a11y-check {
    color: var(--pk-text);
    font-size: 0.875rem;
}

.pk-a11y-settings--page .pk-a11y-select {
    border: 1px solid var(--pk-border);
    background: var(--pk-surface);
    color: var(--pk-text);
}

.pk-a11y-settings--page .pk-a11y-panel__actions {
    border-top-color: var(--pk-border);
}

.pk-a11y-settings--page .pk-a11y-reset {
    border-color: var(--pk-border);
    color: var(--pk-text);
    max-width: 280px;
}

.pk-a11y-settings--page .pk-a11y-reset:hover {
    background: var(--pk-btn-default-bg);
}

@media (max-width: 1100px) {
    .pk-recent__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pk-stat-grid {
        grid-template-columns: 1fr;
    }

    .pk-grid--4 {
        grid-template-columns: 1fr;
    }

    .pk-form-grid,
    .pk-detail-grid {
        grid-template-columns: 1fr;
    }

    .pk-rental-row__side {
        align-items: flex-start;
        text-align: left;
    }

    .pk-page-head__actions {
        width: 100%;
    }

    .pk-pay-banner__gateways {
        width: 100%;
    }

    .pk-pay-banner__gateways .pk-btn {
        flex: 1;
    }
}
