/* Kontener tabeli/listy */
.pricing-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.20);
    margin-bottom: 5rem;
}
#pricing-list {
    max-height: 550px;
    overflow-y: auto;
}
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 996;
    background-color: #f8f9fa;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}
.sticky-header.is-pinned {
    border-radius: 0;
}
/* Wiersz usługi */
.service-row {
    transition: all 0.3s ease;
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    position: relative;
}
.service-row:last-child {
    border-bottom: none;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
}
.service-row.selected {
    background-color: rgba(13, 110, 253, 0.05);
    border-left: 4px solid #0d6efd;
}
/* Animacja rozwijania opisu */
.service-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.service-row:hover {
    background-color: #f8f9fa;
}
.service-row:hover .service-title {
    color: #0d6efd;
}
.service-row.active {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    z-index: 10;
    position: relative;
    background-color: rgba(229, 239, 254, 0.5);
}
.service-row.active .service-description {
    max-height: 500px;
    opacity: 1;
    margin-top: 0.75rem;
}
.service-row.active .service-title {
    color: #0d6efd;
}

/* Zjednoczony pasek filtrów */
.filter-bar-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.floating-input-wrapper {
    position: relative;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    padding: 0 14px;
    height: 48px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    width: 100%;
}
.floating-input-wrapper:hover {
    border-color: #94a3b8;
}
.floating-input-wrapper:focus-within {
    border-color: #0d6efd;
}
.floating-label-custom {
    font-size: 0.75rem;
    color: #475569;
    font-weight: 600;
    background: #ffffff;
    padding: 4px 6px;
    position: absolute;
    top: -10px;
    left: 8px;
    border-radius: 4px;
    z-index: 2;
    line-height: 1;
    white-space: nowrap;
}
.custom-floating-input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: 0.95rem;
    color: #0f172a;
    font-weight: 500;
}
.custom-floating-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
.btn-clear-search {
    border: none;
    background: transparent;
    color: #94a3b8;
    padding: 4px 6px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}
.btn-clear-search:hover {
    color: #0f172a;
    background-color: #f1f5f9;
}

/* Wygląd tabulatorów z podświetleniem liczby wybranych */
.dept-tabs-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dept-tab-btn {
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    color: #334155;
    padding: 8px 16px;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    position: relative;
}
.dept-tab-btn:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}
.dept-tab-btn.active {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.25);
}

/* Czerwony badge z informacją o liczbie wybranych modułów */
.dept-selected-badge {
    position: absolute;
    right: 0px;
    top: -14px;
    background-color: #c21d2d;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50rem;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
    animation: fadeInBadge 0.25s ease-in-out;
}


@keyframes fadeInBadge {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.btn-reset-filters {
    height: 48px;
    padding: 0 20px;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.btn-reset-filters:hover {
    background-color: #e2e8f0;
    color: #0f172a;
    border-color: #94a3b8;
}

.pricing-footer-sticky {
    position: relative;
    background-color: #f8f9fa;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
    border-top: 1px solid #dee2e6;
}
/* .licensing-toggle-btn {
    position: absolute;
    right: 1.5rem;
    top: -32px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-bottom: none;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    color: #0d6efd;
    cursor: pointer;
    z-index: 996;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.02);
    transition: background-color 0.2s;
}
.licensing-toggle-btn:hover {
    background-color: #e9ecef;
    color: #0b5ed7;
} */
.collapsible-content p {
    font-size: 0.8rem;
    margin-bottom: 0;
}
/* .collapsible-content p {
    margin-bottom: 0.25rem;
    display: none;
}
.collapsible-content p:first-child {
    display: block;
    white-space: nowrap;
    font-size: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}
.pricing-footer-sticky.expanded .collapsible-content p {
    display: block;
    white-space: normal;
    font-size: 0.8rem;
    overflow: visible;
    text-overflow: clip;
    margin-bottom: 0.25rem;
}
.pricing-footer-sticky.expanded .collapsible-content p:last-child {
    margin-bottom: 0;
}*/

/* Checkbox Styling */
.custom-checkbox-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.custom-checkbox-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #0d6efd;
}

/* Fixed Bottom Summary Bar */
.bottom-summary-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid #0d6efd;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
    z-index: 1040;
    padding: 12px 24px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.bottom-summary-bar.has-selections {
    transform: translateY(0);
}

/* Interaktywny Badge Wybranych Modułów */
.summary-badge-clickable {
    background-color: #e7f1ff;
    color: #0d6efd;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50rem;
    font-size: 0.9rem;
    cursor: pointer;
    border: 1px solid #b6d4fe;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    user-select: none;
}
.summary-badge-clickable:hover {
    background-color: #0d6efd;
    color: #ffffff;
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}
.summary-badge-clickable:hover i {
    color: #ffffff !important;
}
/* Styl listy w modalu wybranych modułów */
.selected-module-item {
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 16px;
    transition: background-color 0.2s ease;
}
.selected-module-item:last-child {
    border-bottom: none;
}
.selected-module-item:hover {
    background-color: #f8fafc;
}
/* Style dla kolumny LP */
.lp-col {
    font-weight: 700;
    color: #475569;
    font-size: 0.9rem;
}

.cennik-dodatkowy-mb {
    margin-bottom: -3.5rem;
}
.cennik-dodatkowy-me {
    margin-right: -7rem;
}
@media (max-width: 1399px) {
    .cennik-dodatkowy-me {
        margin-right: -12rem;
    }
}
@media (max-width: 1199px) {
    .cennik-dodatkowy-me {
        margin-right: -14rem;
    }
}
@media (max-width: 767px) {
    .cennik-dodatkowy-me {
        margin-right: -10rem;
    }
    .cennik-dodatkowy-mb {
        margin-bottom: -5.5rem;
    }
}