/* ========================================
   CRM System - Unified CSS Stylesheet
   Version: 2.0
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #fd7e14;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --border-color: #dee2e6;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    --box-shadow-lg: 0 4px 12px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* ========================================
   Base Styles
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    background-color: var(--light-color);
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--dark-color);
}

.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}


/* ========================================
   Navigation Styles
   ======================================== */

.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: var(--box-shadow);
    border-bottom: 3px solid rgba(255,255,255,0.1);
    padding: 12px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: white !important;
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: rgba(255,255,255,0.9) !important;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: var(--border-radius);
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255,255,255,0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
}

.dropdown-item {
    padding: 10px 16px;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--light-color);
}

/* ========================================
   Login Page Styles
   ======================================== */

.login-body {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: 2rem 1.5rem;
}

.login-logo {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.login-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.login-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.login-form {
    padding: 2rem 1.5rem 1.5rem;
}

/* ========================================
   Form Styles
   ======================================== */

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.form-icon {
    font-size: 1rem;
    opacity: 0.7;
}

.form-control, .form-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: white;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    outline: none;
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    opacity: 0.6;
    transition: var(--transition);
}

.password-toggle:hover {
    opacity: 1;
}

.form-check {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-check-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    cursor: pointer;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
}

/* Required field styles */
.form-control.required-empty, .form-select.required-empty {
    background-color: rgba(255, 192, 203, 0.1);
    border-color: rgba(255, 20, 147, 0.3);
}

.form-control.required-filled, .form-select.required-filled {
    background-color: rgba(25, 135, 84, 0.05);
    border-color: rgba(25, 135, 84, 0.3);
}

.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
    font-weight: bold;
}

/* ========================================
   Button Styles
   ======================================== */

.btn {
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-transform: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background: var(--success-color);
    color: white;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.3);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
    box-shadow: 0 2px 4px rgba(253, 126, 20, 0.3);
}

.btn-info {
    background: var(--info-color);
    color: white;
    box-shadow: 0 2px 4px rgba(13, 202, 240, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-outline-danger {
    color: var(--danger-color);
    border: 2px solid var(--danger-color);
    background: transparent;
}

.btn-outline-danger:hover {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn-login {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.btn-icon {
    font-size: 1.1rem;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ========================================
   Alert Styles
   ======================================== */

.alert {
    padding: 12px 16px;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert-success {
    background-color: rgba(25, 135, 84, 0.1);
    color: #0f5132;
    border-left: 4px solid var(--success-color);
}

.alert-danger {
    color: #ffffff;
    background-color: rgba(201, 38, 52, 0.9) !important; 
    border-color: #d12435;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alert-warning {
    background-color: rgba(253, 126, 20, 0.1);
    color: #664d03;
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.1);
    color: #055160;
    border-left: 4px solid var(--info-color);
}

.alert-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.6;
}

.alert-close:hover {
    opacity: 1;
}

/* ========================================
   Card Styles
   ======================================== */

.card {
    background: white;
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background: var(--light-color);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Stats Cards */
.stats-card {
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
    transition: var(--transition);
    border: none;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    pointer-events: none;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.stats-card.primary { 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.stats-card.success { 
    background: linear-gradient(135deg, var(--success-color), #146c43);
}

.stats-card.warning { 
    background: linear-gradient(135deg, var(--warning-color), #e85d04);
}

.stats-card.info { 
    background: linear-gradient(135deg, var(--info-color), #0aa2c0);
}

.stats-card.secondary { 
    background: linear-gradient(135deg, var(--secondary-color), #5a6268);
}

.stats-card h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.stats-card p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-weight: 500;
}

/* ========================================
   Table Styles
   ======================================== */

.table-responsive {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.table {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    position: relative;
    padding: 12px 16px;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.table thead th:hover {
    background-color: var(--primary-dark);
}

.table thead th.sortable::after {
    content: '⇅';
    position: absolute;
    right: 8px;
    opacity: 0.6;
    font-size: 0.8rem;
}

.table thead th.sort-asc::after {
    content: '↑';
    opacity: 1;
}

.table thead th.sort-desc::after {
    content: '↓';
    opacity: 1;
}

.table tbody tr {
    transition: var(--transition);
}

.table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

.table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

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

/* Company name as clickable link */
.company-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
}

.company-link:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/* Customer details row */
.customer-details {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
}

.customer-details td {
    padding: 0.5rem !important; 
}

.customer-details .p-3 {
    padding: 0.75rem !important; 
}

.customer-details .form-control,
.customer-details .form-select {
    padding: 4px 8px !important; /* Bardzo małe wewnętrzne odstępy */
    font-size: 0.8rem !important; /* Mniejsza czcionka */
    height: auto !important;
    margin-bottom: 0.25rem !important; /* Małe odstępy między polami */
}

.customer-details .form-label {
    margin-bottom: 0.1rem !important; /* Minimalne odstępy dla etykiet */
    font-size: 0.75rem !important; /* Mniejsza czcionka etykiet */
    font-weight: 600;
}
.customer-details .row.g-3 {
    --bs-gutter-y: 0.25rem !important; /* Małe odstępy między wierszami */
    margin-bottom: 0.25rem !important;
}

.customer-details .row.g-3 > * {
    padding-top: 0.125rem !important;
    padding-bottom: 0.125rem !important;
}


/* ========================================
   MAŁE PRZYCISKI PO PRAWEJ STRONIE
   ======================================== */

/* Zmniejszona szerokość sekcji przycisków */
.customer-details .col-md-4 {
    flex: 0 0 auto;
}

.customer-details .col-md-8 {
    flex: 0 0 auto;
    width: 85% !important; /* Więcej miejsca dla formularza */
}

/* Małe przyciski akcji */
.customer-details .btn {
    line-height: 1.2 !important;
    margin-bottom: 0.25rem !important;
    height: auto !important;
    width: 150px;
}

/* Kompaktowy nagłówek sekcji akcji */
.customer-details h6 {
    font-size: 0.75rem !important;
    margin-bottom: 0.5rem !important;
    font-weight: 600;
}

/* Zmniejszone odstępy w d-grid */
.customer-details .d-grid {
    gap: 0.25rem !important; /* Małe odstępy między przyciskami */
}

/* Kompaktowa sekcja przycisków formularza */
.customer-details .mt-3 {
    margin-top: 0.5rem !important; /* Mniejszy odstęp górny */
}

.customer-details .pt-3 {
    padding-top: 0.5rem !important; /* Mniejszy padding górny */
}

/* Przyciski Aktualizuj/Anuluj */
.customer-details .btn.w-100 {
    padding: 4px 8px !important; /* Małe przyciski */
    font-size: 0.7rem !important;
    margin-bottom: 0.4rem !important; /* Mały odstęp między przyciskami */
    width: 150px;
}



.customer-events {
    max-height: 400px;
    overflow-y: auto;
}

.event-item {
    padding: 8px 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid var(--info-color);
    font-size: 0.875rem;
}

/* Badges */
.badge {
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge.bg-secondary {
    background-color: var(--secondary-color) !important;
    color: white;
}

.event-count {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    vertical-align: middle;
    margin-right: 2px;
}

.event-count:hover {
    transform: scale(1.05);
}

/* ========================================
   Table Actions - FIXED ALIGNMENT
   ======================================== */

.table-actions {
    display: flex;
    gap: 4px;
    align-items: center;
    min-height: 30px; /* Stała wysokość dla wyrównania */
}

.add-event-btn {
    background: var(--success-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Nie zmienia rozmiaru */
}

.add-event-btn:hover {
    background: #146c43;
    transform: scale(1.1);
}

.add-event-btn i {
    font-size: 0.75rem;
}

/* ========================================
   Modal Styles
   ======================================== */

.modal-content {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    border-bottom: none;
    padding: 1.25rem;
}

.modal-title {
    font-weight: 600;
    font-size: 1.125rem;
    margin: 0;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
    margin: 0;
}

.btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--light-color);
}

/* ========================================
   Pagination Styles
   ======================================== */

.pagination {
    margin: 0;
    gap: 0.25rem;
}

.page-item {
    margin: 0;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 8px 12px;
    transition: var(--transition);
    text-decoration: none;
}

.page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-item.disabled .page-link {
    color: var(--secondary-color);
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   Badge Styles
   ======================================== */

.badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    color: white;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.badge-primary { background-color: var(--primary-color); }
.badge-secondary { background-color: var(--secondary-color); }
.badge-success { background-color: var(--success-color); }
.badge-danger { background-color: var(--danger-color); }
.badge-warning { background-color: var(--warning-color); }
.badge-info { background-color: var(--info-color); }

.event-type-badge {
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    color: white;
    display: inline-block;
}

/* ========================================
   Loading & Animation Styles
   ======================================== */

.loading {
    display: none;
}

.loading.show {
    display: inline-block;
}

.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ========================================
   Tooltip Styles - FIXED POSITIONING
   ======================================== */

.tooltip-events {
    position: fixed; /* Fixed zamiast absolute */
    background: rgba(0,0,0,0.95);
    color: white;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    z-index: 9999; /* Wyższy z-index */
    max-width: 500px; /* Zwiększone z 350px do 500px */
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none; /* Nie blokuje innych eventów */
}

.tooltip-events table {
    color: white;
    font-size: 0.75rem;
    margin: 0;
    width: 100%;
    table-layout: fixed; /* Stałe szerokości kolumn */
}

.tooltip-events th,
.tooltip-events td {
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tooltip-events th {
    font-weight: 600;
}

/* Szerokości kolumn w tooltip */
.tooltip-events th:nth-child(1),
.tooltip-events td:nth-child(1) {
    width: 80px; /* Data */
}

.tooltip-events th:nth-child(2),
.tooltip-events td:nth-child(2) {
    width: 100px; /* Typ */
}

.tooltip-events th:nth-child(3),
.tooltip-events td:nth-child(3) {
    width: 240px; /* Notatka - 2x szersza (było 120px) */
    white-space: normal; /* Pozwala na zawijanie tekstu */
    word-wrap: break-word;
    max-height: 60px;
    overflow: hidden;
}

/* ========================================
   Filter & Search Styles
   ======================================== */

.filter-controls {
    background: white;
    border-radius: var(--border-radius-lg);
    padding: .5rem;
    margin-bottom: .5rem;
    box-shadow: var(--box-shadow);
}

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.5rem;
}

.search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1rem;
}

/* ========================================
   Customer Info Panel
   ======================================== */

.customer-info {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.customer-info h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.customer-info p {
    margin: 0;
    opacity: 0.9;
}

/* ========================================
   Login Footer Styles
   ======================================== */

.login-footer {
    background-color: var(--light-color);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.login-version {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.login-features {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--secondary-color);
}

.feature-icon {
    font-size: 1rem;
}

/* ========================================
   Input Group Styles
   ======================================== */

.input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--secondary-color);
    text-align: center;
    white-space: nowrap;
    background-color: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

/* ========================================
   Toast Notification Styles
   ======================================== */

.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    color: var(--secondary-color);
    background-color: var(--light-color);
    background-clip: padding-box;
    border-bottom: 1px solid var(--border-color);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.toast-body {
    padding: 0.75rem;
    word-wrap: break-word;
}

/* ========================================
   Progress Bar Styles
   ======================================== */

.progress {
    display: flex;
    height: 1rem;
    overflow: hidden;
    font-size: 0.75rem;
    background-color: var(--light-color);
    border-radius: var(--border-radius);
}

.progress-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: white;
    text-align: center;
    white-space: nowrap;
    background-color: var(--primary-color);
    transition: width 0.6s ease;
}

/* ========================================
   Button Group Styles
   ======================================== */

.btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.btn-group > .btn {
    position: relative;
    flex: 1 1 auto;
    border-radius: 0;
    margin-right: -1px;
}

.btn-group > .btn:first-child {
    border-top-left-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
}

.btn-group > .btn:last-child {
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
    margin-right: 0;
}

.btn-group-sm .btn {
    padding: 4px 8px;
    font-size: 0.75rem;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .login-container {
        padding: 10px;
    }
    
    .login-card {
        margin: 0;
    }
    
    .login-logo {
        font-size: 1.5rem;
    }
    
    .login-form {
        padding: 1.5rem 1rem 1rem;
    }
    
    .card-body {
        padding: .5rem;
    }
    
    .stats-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .stats-card h3 {
        font-size: 2rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .filter-controls {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .login-header {
        padding: 1.5rem 1rem;
    }
    
    .login-logo {
        font-size: 1.3rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .login-icon {
        font-size: 1.5rem;
    }
    
    .form-control, .form-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .btn-login {
        padding: 12px;
        font-size: 0.95rem;
    }
    
    .stats-card h3 {
        font-size: 1.8rem;
    }
    
    .card-header {
        padding: 1rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .login-features {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ========================================
   Accessibility Improvements
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus indicators for keyboard navigation */
.btn:focus,
.form-control:focus,
.form-select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: #000000;
        --box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .card {
        border: 1px solid var(--border-color);
    }
}

/* Dark mode support (basic) */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1a1a1a;
        --dark-color: #ffffff;
        --border-color: #333333;
    }
    
    body {
        background-color: var(--light-color);
        color: var(--dark-color);
    }
    
    .card {
        background-color: #2a2a2a;
        color: var(--dark-color);
    }
    
    .form-control, .form-select {
        background-color: #2a2a2a;
        color: var(--dark-color);
        border-color: var(--border-color);
    }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .navbar,
    .btn,
    .filter-controls,
    .pagination {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .table {
        border-collapse: collapse;
    }
    
    .table th,
    .table td {
        border: 1px solid #000;
    }
}

/* ========================================
   Utility Classes
   ======================================== */

.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-danger { color: var(--danger-color) !important; }
.text-warning { color: var(--warning-color) !important; }
.text-info { color: var(--info-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-success { background-color: var(--success-color) !important; }
.bg-danger { background-color: var(--danger-color) !important; }
.bg-warning { background-color: var(--warning-color) !important; }
.bg-info { background-color: var(--info-color) !important; }
.bg-light { background-color: var(--light-color) !important; }
.bg-dark { background-color: var(--dark-color) !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }

.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.fw-bold { font-weight: 700 !important; }
.fw-normal { font-weight: 400 !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }

.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }

.shadow { box-shadow: var(--box-shadow) !important; }
.shadow-lg { box-shadow: var(--box-shadow-lg) !important; }




.customer-details .col-md-4 {
    flex: 0 0 auto;
    width: 25% !important; /* Mniejsza szerokość dla przycisków */
}

.customer-details .col-md-8 {
    flex: 0 0 auto;
    width: 75% !important; /* Więcej miejsca dla formularza */
}


/* Required field styles - RÓŻOWY/ZIELONY system */
.form-control.required-empty, .form-select.required-empty {
    background-color: rgba(255, 192, 203, 0.2) !important; /* Różowy */
    border-color: rgba(255, 20, 147, 0.3) !important;
}

.form-control.required-filled, .form-select.required-filled {
    background-color: rgba(25, 135, 84, 0.05) !important; /* Zielony */
    border-color: rgba(25, 135, 84, 0.3) !important;
}

/* Focused states */
.form-control.required-empty:focus, .form-select.required-empty:focus {
    background-color: rgba(255, 192, 203, 0.15) !important;
    border-color: rgba(255, 20, 147, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 20, 147, 0.1) !important;
}

.form-control.required-filled:focus, .form-select.required-filled:focus {
    background-color: rgba(25, 135, 84, 0.03) !important;
    border-color: rgba(25, 135, 84, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.1) !important;
}

/* Modal specific styles */
.modal .form-control.required-empty, .modal .form-select.required-empty {
    background-color: rgba(255, 192, 203, 0.2) !important;
    border-color: rgba(255, 20, 147, 0.3) !important;
}

.modal .form-control.required-filled, .modal .form-select.required-filled {
    background-color: rgba(25, 135, 84, 0.05) !important;
    border-color: rgba(25, 135, 84, 0.3) !important;
}

/* Required label indicator */
.form-label.required::after {
    content: ' *';
    color: var(--danger-color);
    font-weight: bold;
}

/* Invalid field styles */
.form-control.is-invalid, .form-select.is-invalid {
    border-color: var(--danger-color) !important;
    background-color: rgba(220, 53, 69, 0.05) !important;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}



.dropdown-item.active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.dropdown-item.active i {
    opacity: 1;
}
#outcome-stats-row .stats-card {
    transform: scale(0.7);
    transform-origin: center;
    margin: 0.5rem 0;
}
.outcome-stat-card {
    border-radius: var(--border-radius);
    padding: 0.75rem;
    margin-bottom: 0.4rem;
    color: white;
    transition: var(--transition);
    border: none;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    font-size: 0.85rem;
}

.outcome-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    pointer-events: none;
}

.outcome-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* KOLORY dla outcome-stat-card - SKOPIOWANE z stats-card */
.outcome-stat-card.primary { 
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.outcome-stat-card.success { 
    background: linear-gradient(135deg, var(--success-color), #146c43);
}

.outcome-stat-card.warning { 
    background: linear-gradient(135deg, var(--warning-color), #e85d04);
}

.outcome-stat-card.info { 
    background: linear-gradient(135deg, var(--info-color), #0aa2c0);
}

.outcome-stat-card.secondary { 
    background: linear-gradient(135deg, var(--secondary-color), #5a6268);
}

.outcome-stat-card.danger { 
    background: linear-gradient(135deg, var(--danger-color), #b02a37);
}

.outcome-stat-card.light { 
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--dark-color);
}

.outcome-stat-card.dark { 
    background: linear-gradient(135deg, #343a40, #212529);
}

.outcome-stat-card h6 {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.outcome-stat-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.outcome-stat-card i {
    font-size: 1.5rem !important;
    opacity: 0.9;
}


.vat-validation-badge {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    z-index: 5;
}

.vat-input-container {
    position: relative;
}

.vat-loading {
    animation: vatSpin 1s linear infinite;
}

@keyframes vatSpin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.auto-filled {
    background-color: rgba(25, 135, 84, 0.1) !important;
    border-color: rgba(25, 135, 84, 0.3) !important;
}

.vat-error {
    background-color: rgba(220, 53, 69, 0.1) !important;
    border-color: rgba(220, 53, 69, 0.3) !important;
}

.vies-info-panel {
    display: none;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #2196f3;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.vies-info-panel.show {
    display: block;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Quick Actions - Mobile Responsive
   ======================================== */

@media (max-width: 768px) {
    .btn-group {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.4rem;
        width: 100%;
    }
    
    .btn-group .btn {
        flex: 1;
        min-width: 0;
        font-size: 0.7rem !important;     
        padding: 0.4rem 0.5rem !important; 
        white-space: normal !important;   
        overflow: visible !important; 
        text-overflow: clip !important; 
        border-radius: 4px !important;
        line-height: 1.2;
        text-align: left !important; 
        height: auto !important; 
        min-height: 2.5rem !important; 
        display: flex !important;
    }
    
 
    .btn-group .btn i {
        display: none;
    }
    
    .btn-group .btn .d-none.d-sm-inline {
        display: none !important;
    }
    .dashboard .statistics-container {
        gap: 8px; /* Zmniejsz odstęp między statystykami */
    }
    .dashboard .stat-item {
        margin-bottom: 5px; /* Zmniejsz margines dolny */
        padding: 8px 12px; /* Zmniejsz padding */
    }
   
}



/* Mobile table scroll fix dla iPhone */
@media (max-width: 768px) {
    /* Kontener tabeli klientów - wymuś scroll poziomy */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling na iOS */
        scrollbar-width: thin; /* Firefox */
        scrollbar-color: #ccc #f1f1f1; /* Firefox */
    }
    
    /* Webkit scrollbar styling */
    .table-responsive::-webkit-scrollbar {
        height: 8px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #999;
    }
    
    /* Wymuś minimalną szerokość tabeli */
    .table-responsive table {
        min-width: 1000px !important; /* Minimalna szerokość tabeli */
        width: auto !important;
    }
    
    /* Ustaw stałą szerokość kolumn */
    .table-responsive table th,
    .table-responsive table td {
        white-space: nowrap !important; /* Zapobiega zawijaniu tekstu */
        min-width: 100px; /* Minimalna szerokość kolumn */
        padding: 8px 12px !important; /* Kompaktowe padding */
        font-size: 0.85rem !important; /* Mniejsza czcionka */
    }
    
    /* Konkretne szerokości dla głównych kolumn */
    .table-responsive table th:nth-child(1), /* Firma */
    .table-responsive table td:nth-child(1) {
        min-width: 150px !important;
    }
    
    .table-responsive table th:nth-child(2), /* Kraj */
    .table-responsive table td:nth-child(2) {
        min-width: 80px !important;
    }
    
    .table-responsive table th:nth-child(3), /* Kod */
    .table-responsive table td:nth-child(3) {
        min-width: 70px !important;
    }
    
    .table-responsive table th:nth-child(4), /* Osoba kontaktowa */
    .table-responsive table td:nth-child(4) {
        min-width: 120px !important;
    }
    
    .table-responsive table th:nth-child(5), /* Email */
    .table-responsive table td:nth-child(5) {
        min-width: 140px !important;
    }
    
    .table-responsive table th:nth-child(6), /* Telefon */
    .table-responsive table td:nth-child(6) {
        min-width: 100px !important;
    }
    
    .table-responsive table th:nth-child(7), /* Data */
    .table-responsive table td:nth-child(7) {
        min-width: 90px !important;
    }
    
    .table-responsive table th:nth-child(8), /* Nast. kontakt */
    .table-responsive table td:nth-child(8) {
        min-width: 100px !important;
    }
    
    .table-responsive table th:nth-child(9), /* Dodał */
    .table-responsive table td:nth-child(9) {
        min-width: 90px !important;
    }
    
    .table-responsive table th:nth-child(10), /* Zdarzenia */
    .table-responsive table td:nth-child(10) {
        min-width: 80px !important;
    }
    
    .table-responsive table th:nth-child(11), /* Akcje */
    .table-responsive table td:nth-child(11) {
        min-width: 120px !important;
    }
    
    /* Dodaj wskaźnik scroll dla użytkowników */
    .table-responsive::before {
        content: "← Przesuń, aby zobaczyć więcej →";
        display: block;
        text-align: center;
        font-size: 0.75rem;
        color: #666;
        padding: 4px;
        background: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
    }
    
    /* Ukryj wskaźnik po pierwszym scroll */
    .table-responsive.scrolled::before {
        display: none;
    }
}




@media (max-width: 768px) {
    
    /* UKRYJ STATYSTYKI W ALL_EVENTS */
    .stats-container,
    .statistics-container,
    .stats-card,
    .statistics-card,
    .stats-row {
        display: none !important;
    }
    .row:has(.stats-card) {
        display: none !important;
    }
    /* Events table responsive scroll fix */
    .table-responsive {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Zmniejsz odstępy w tabeli zdarzeń */
    .table-responsive table {
        min-width: 700px !important;
        font-size: 0.75rem !important;
    }
    
    .table-responsive table th,
    .table-responsive table td {
        padding: 4px 6px !important;
        white-space: nowrap !important;
        vertical-align: middle !important;
        line-height: 1.2 !important;
    }
    
    /* Nagłówki tabeli */
    .table thead th {
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        padding: 6px 6px !important;
    }
    
    /* Zmniejsz odstępy w komórkach */
    .table tbody td {
        font-size: 0.75rem !important;
        padding: 4px 6px !important;
    }
    
    /* Badges w tabeli */
    .table .badge {
        font-size: 0.6rem !important;
        padding: 2px 6px !important;
        margin: 0 !important;
    }
    
    /* Przyciski w tabeli */
    .table .btn {
        padding: 2px 6px !important;
        font-size: 0.65rem !important;
        margin: 0 2px !important;
    }
    
    .table .btn-group-sm > .btn {
        padding: 2px 4px !important;
        font-size: 0.65rem !important;
    }
    
    /* Ikony w przyciskach */
    .table .btn i {
        font-size: 0.7rem !important;
    }
    
    /* Kolumna DATA - bardzo wąska */
    .table th:nth-child(1), .table td:nth-child(1) {
        min-width: 50px !important;
        max-width: 50px !important;
        width: 50px !important;
        font-size: 0.65rem !important;
    }
    
    /* Kolumna GODZINA - wąska */
    .table th:nth-child(2), .table td:nth-child(2) {
        min-width: 45px !important;
        max-width: 45px !important;
        width: 45px !important;
        font-size: 0.65rem !important;
    }
    
    /* Kolumna KLIENT - średnia */
    .table th:nth-child(3), .table td:nth-child(3) {
        min-width: 100px !important;
        max-width: 120px !important;
        font-size: 0.7rem !important;
    }
    
    /* Kolumna TYP - średnia */
    .table th:nth-child(4), .table td:nth-child(4) {
        min-width: 70px !important;
        max-width: 80px !important;
        font-size: 0.65rem !important;
    }
    
    /* Kolumna OPIS - największa */
    .table th:nth-child(5), .table td:nth-child(5) {
        min-width: 200px !important;
        max-width: 300px !important;
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
    }
    
    /* Kolumna STATUS - średnia */
    .table th:nth-child(6), .table td:nth-child(6) {
        min-width: 70px !important;
        max-width: 80px !important;
        font-size: 0.65rem !important;
    }
    
    
    /* Kolumna UTWORZYŁ - średnia */
    .table th:nth-child(7), .table td:nth-child(7) {
        min-width: 60px !important;
        max-width: 70px !important;
        font-size: 0.65rem !important;
    }
    
    /* Kolumna DATA UTWORZENIA - średnia */
    .table th:nth-child(8), .table td:nth-child(8) {
        min-width: 60px !important;
        max-width: 70px !important;
        font-size: 0.65rem !important;
    }
    
    /* Kolumna AKCJE - zwykła bez sticky */
    .table th:nth-child(9), .table td:nth-child(9) {
        min-width: 70px !important;
        max-width: 80px !important;
        width: 70px !important;
        padding: 2px 4px !important;
        text-align: center !important;
    }
    
    /* Przyciski w kolumnie AKCJE */
    .table th:nth-child(9), .table td:nth-child(9) .btn {
        display: none !important;
    }
    

    /* Badges w tabeli - kompaktowe */
    .table .badge {
        font-size: 0.55rem !important;
        padding: 1px 4px !important;
        margin: 0 !important;
        border-radius: 3px !important;
        display: inline-block !important;
        min-width: auto !important;
    }
    

    
    /* Tooltip dla skróconych tekstów */
    .table td {
        position: relative;
    }
    
    .table td[title] {
        cursor: help;
    }
    
    /* Hover effect na wiersze */
    .table tbody tr:hover {
        background-color: rgba(13, 110, 253, 0.05) !important;
    }
    
    /* Dropdown w akcjach */
    .table-actions-dropdown {
        position: relative;
        display: inline-block;
    }
    
    .table-actions-dropdown .dropdown-toggle {
        background: var(--primary-color) !important;
        color: white !important;
        border: none !important;
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
        border-radius: 3px !important;
    }
    
    .table-actions-dropdown .dropdown-menu {
        min-width: 120px !important;
        font-size: 0.8rem !important;
    }
    
    .table-actions-dropdown .dropdown-item {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    
    /* Zmniejsz odstępy w card-body */
    .card-body {
        padding: 0 !important;
    }
    
    /* Zmniejsz odstępy w nagłówku karty */
    .card-header {
        padding: 8px 8px !important;
    }
    
    .card-header h5 {
        font-size: 0.9rem !important;
        margin-bottom: 0 !important;
    }
    
    .card-header .badge {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }
    
    /* Zmniejsz odstępy w paginacji */
    .pagination {
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
    
    .pagination .page-link {
        padding: 4px 8px !important;
        font-size: 0.75rem !important;
        margin: 0 1px !important;
    }
    
    /* Zmniejsz odstępy w filtrach */
    .filter-controls {
        padding: 8px !important;
    }
    
    .filter-controls .form-label {
        font-size: 0.7rem !important;
        margin-bottom: 2px !important;
    }
    
    .filter-controls .form-select,
    .filter-controls .form-control {
        font-size: 0.75rem !important;
        padding: 4px 6px !important;
        height: auto !important;
    }
    
    .filter-controls .btn {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
    }
    
    .filter-controls .row {
        margin-bottom: 6px !important;
    }
    
    /* Scrollbar styling dla lepszej widoczności */
    .table-responsive::-webkit-scrollbar {
        height: 6px;
    }
    
    .table-responsive::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 3px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 3px;
    }
    
    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #555;
    }
    
}
