/* Bootswatch Sandstone 5.3.8 — nadpisania specyficzne dla projektu (opcjonalne). */

/* Globalnie +1 px względem domyślnych 16 px (106.25% × 16 = 17 px).
   Skaluje typografię Bootstrapa (rem), bez dotykania motywu Sandstone.
   Alternatywy: 103.125% (16.5 px), 112.5% (18 px). */
html {
    font-size: 106.25%;
}

.system-event-log-filters .filter-chip-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.system-event-log-filters .filter-chip-label {
    display: inline-block;
    margin: 0;
    padding: 0.2rem 0.65rem;
    font-size: 0.8125rem;
    line-height: 1.4;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius-pill);
    background-color: var(--bs-body-bg);
    color: var(--bs-secondary-color);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.system-event-log-filters .filter-chip-input:checked + .filter-chip-label {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    font-weight: 500;
}

.system-event-log-filters .filter-chip-input:focus-visible + .filter-chip-label {
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

.system-event-log-table > :not(caption) > * > * {
    padding: 0.65rem 0.85rem;
}

.system-event-log-table thead th {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--bs-secondary-color);
}

.system-event-log-col-toggle {
    width: 3rem;
}

.system-event-log-toggle {
    line-height: 1;
    text-decoration: none;
    min-width: 2rem;
    min-height: 2rem;
}

.system-event-log-toggle-icon {
    display: inline-block;
    font-size: 1.125rem;
    transition: transform 0.15s ease;
}

.system-event-log-toggle[aria-expanded='true'] .system-event-log-toggle-icon {
    transform: rotate(90deg);
}

.system-event-log-details-row > td {
    padding-top: 0;
    background-color: var(--bs-tertiary-bg);
    border-top: 0;
}

.system-event-log-details {
    padding: 0.35rem 0 0.85rem;
    font-size: 0.8125rem;
}

.system-event-log-details-item {
    display: grid;
    grid-template-columns: minmax(7rem, auto) 1fr;
    gap: 0.15rem 1rem;
    margin-bottom: 0.35rem;
}

.system-event-log-details-item:last-child {
    margin-bottom: 0;
}

.system-event-log-details-item dt {
    margin: 0;
    font-weight: 600;
    color: var(--bs-secondary-color);
}

.system-event-log-details-item dd {
    margin: 0;
    word-break: break-word;
}

.directory-upload-dropzone {
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.directory-upload-dropzone:hover,
.directory-upload-dropzone:focus-visible {
    border-color: var(--bs-primary) !important;
    outline: none;
}

.directory-upload-dropzone--active {
    border-color: var(--bs-primary) !important;
    background-color: rgba(var(--bs-primary-rgb), 0.08) !important;
}

.directory-upload-dropzone--disabled {
    pointer-events: none;
    opacity: 0.65;
}

.empty-state-panel {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    box-shadow: var(--bs-box-shadow-sm);
}

.empty-state {
    margin: 0;
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--bs-secondary-color);
}

.directory-files-table > :not(caption) > * > * {
    vertical-align: middle;
}

.directory-files-col-thumb {
    width: 7rem;
}

.directory-files-col-status {
    min-width: 10rem;
}

.directory-files-col-dates {
    min-width: 11rem;
}

.directory-files-col-process {
    min-width: 14rem;
}

.directory-files-col-actions {
    width: 7rem;
}

.process-card-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background-color: var(--bs-secondary-bg);
}

.process-card-thumb-img {
    max-width: 100%;
    max-height: min(100%, 11rem);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: var(--bs-border-radius-sm);
    border: 1px solid var(--bs-border-color);
}

.directory-files-thumb {
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-secondary-bg);
    border: 1px solid var(--bs-border-color);
}

.directory-files-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.directory-files-step {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--bs-border-radius-sm);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: default;
}

.directory-files-step.text-dark {
    color: var(--bs-dark);
}

.directory-files-step.bg-primary {
    animation: directory-files-step-processing-pulse 1.6s ease-in-out infinite;
}

@keyframes directory-files-step-processing-pulse {
    0%,
    100% {
        background-color: var(--bs-primary);
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.45);
    }

    50% {
        background-color: color-mix(in srgb, var(--bs-primary) 38%, white);
        box-shadow: 0 0 0 5px rgba(var(--bs-primary-rgb), 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .directory-files-step.bg-primary {
        animation: none;
    }
}

.popover.directory-files-step-popover {
    --bs-popover-max-width: 22rem;
    --bs-popover-header-bg: var(--bs-light);
    --bs-popover-header-color: var(--bs-emphasis-color);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: 0.85rem;
}

.popover.directory-files-step-popover .popover-header {
    font-weight: 600;
    font-size: 0.9375rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}

.directory-files-step-popover-body dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--bs-secondary-color);
    margin-bottom: 0.15rem;
}

.directory-files-step-popover-body dd {
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
}

.directory-files-step-popover-body dd:last-child {
    margin-bottom: 0;
}

.directory-files-step-popover-actions {
    margin-top: 0.15rem;
}

.directory-files-step-play-btn {
    font-size: 0.65rem;
    line-height: 1;
}

.directory-files-step-resume-form {
    display: inline-flex;
    margin: 0;
    padding: 0;
}

.directory-files-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
}

.file-preview-frame {
    width: 100%;
    height: calc(100vh - 4rem);
    border: 0;
    background: #fff;
}

.file-preview-image {
    max-height: calc(100vh - 4rem);
    max-width: 100%;
}

.account-variable-table > :not(caption) > * > * {
    vertical-align: middle;
}

.account-variable-table .account-variable-col-value {
    width: 18rem;
    min-width: 18rem;
    max-width: 18rem;
}

.account-variable-editable--enabled {
    cursor: pointer;
}

.account-variable-editable--enabled:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.06);
}

.account-variable-editable--masked [data-account-variable-target="display"] {
    font-family: var(--bs-font-monospace);
    letter-spacing: 0.08em;
}

.account-variable-col-value .account-variable-inline-input {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    resize: vertical;
}

.account-variable-col-value [data-account-variable-target="inlineActions"] {
    flex-wrap: wrap;
}

.processing-files-status-badge {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    min-width: 0.75rem;
    min-height: 0.75rem;
    padding: 0;
    border-radius: 0.125rem;
    flex-shrink: 0;
    vertical-align: middle;
}

.processing-files-status-badge--refreshing.text-bg-success {
    animation: processing-files-status-badge-refresh-pulse 1.6s ease-in-out infinite;
}

@keyframes processing-files-status-badge-refresh-pulse {
    0%,
    100% {
        background-color: var(--bs-success);
        box-shadow: 0 0 0 0 rgba(var(--bs-success-rgb), 0.45);
    }

    50% {
        background-color: color-mix(in srgb, var(--bs-success) 38%, white);
        box-shadow: 0 0 0 5px rgba(var(--bs-success-rgb), 0.28);
    }
}

@media (prefers-reduced-motion: reduce) {
    .processing-files-status-badge--refreshing.text-bg-success {
        animation: none;
    }
}
