*{
  margin:0;
  padding:0;
  box-sizing: border-box;
}


.main-row{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f1f1f1;
  width: 50%;
}

.icon-event-color{
  color: #F7B32B;
}

.sidebar-bg-color{
  background-color: #ebebde;
}

.nav-bg-color{
  background-color: #ff4d06;
}
.custom-header{
  background-color: #6c94d4 !important;
  color: #ebebde !important;
}

.pagination-item{
  background-color: #6c94d4 !important;
  color: #f1f1f1 !important;
   color: black;  
}

.pagination-item:hover{
 background-color: #000 !important;
 color: white;
}

.pagination-item.active {
 background-color: #000 !important;
 border-color: #000 !important;
 color: white !important;
}
/* .table-border{
  border-radius: 16px;
  overflow: hidden;
  border-collapse:separate;
  border-spacing: 0;
}
.table-border td, .table-border th{
  border: 1px solid black;
  overflow: inherit;
  border-collapse:separate;
  border-spacing: 0;
} */

#sidebar {
  min-height: 93.9vh;
  transition: all 0.3s;
}

.sidebar-hidden {
  margin-left: -100%;
}

@media (max-width: 767.98px) {
  #sidebar {
      position: fixed;
      z-index: 1000;
      width: 80%;
      max-width: 250px;
  }
}

.nav-link {
  color: #333;
  transition: all 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background-color: #9da19c;
  text-decoration: none;
  color: #ebebde !important;
  border-radius: 6px;
}

.offcanvas-width{
  width: 60% !important;
}

/* ____________________ */

.stats-card {
  border: none;
  border-radius: 15px;
  transition: all 0.3s ease;
  overflow: inherit;
}

/* .stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, .1);
}

.card-hover-primary:hover {
  background: linear-gradient(45deg, #dc3545, #842029);
}

.card-hover-success:hover {
  background: linear-gradient(45deg, #1cc88a, #169a6b);
}

.card-hover-warning:hover {
  background: linear-gradient(45deg, #f6c23e, #dda20a);
}

.stats-card:hover .text-primary,
.stats-card:hover .text-success,
.stats-card:hover .text-info,
.stats-card:hover .text-warning,
.stats-card:hover .text-muted,
.stats-card:hover .text-danger,
.stats-card:hover .card-title {
  color: white !important;
}


.stats-card:hover .icon-circle {
background: rgba(255, 255, 255, .2);
} */

.stat-value {
font-size: 1.8rem;
font-weight: 700;
margin: 10px 0;
}


.stat-change {
display: flex;
align-items: center;
gap: 5px;
font-size: 0.9rem;
}

.icon-circle {
height: 60px;
width: 60px;
border-radius: 100%;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.8rem;
background: rgba(0, 0, 0, .05);
transition: all 0.3s ease;
}

.trend-icon {
font-size: 0.8rem;
}

table.rounded-corners {
/* Change these properties */
--border: 1px solid black;
border-radius: 10px;

/* Don't change these properties */
border-spacing: 0;
border-collapse: separate;
border: var(--border);
overflow: hidden;
}

/* Apply a border to the right of all but the last column */
table.rounded-corners th:not(:last-child),
table.rounded-corners td:not(:last-child) {
border-right: var(--border);
}

/* Apply a border to the bottom of all but the last row */
table.rounded-corners>thead>tr:not(:last-child)>th,
table.rounded-corners>thead>tr:not(:last-child)>td,
table.rounded-corners>tbody>tr:not(:last-child)>th,
table.rounded-corners>tbody>tr:not(:last-child)>td,
table.rounded-corners>tfoot>tr:not(:last-child)>th,
table.rounded-corners>tfoot>tr:not(:last-child)>td,
table.rounded-corners>tr:not(:last-child)>td,
table.rounded-corners>tr:not(:last-child)>th,
table.rounded-corners>thead:not(:last-child),
table.rounded-corners>tbody:not(:last-child),
table.rounded-corners>tfoot:not(:last-child) {
border-bottom: var(--border);
}


/** ______EVENT KARTY_________ */


.pricing-card {
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #7b7878;
}

.pricing-card .card-header {
  background-color: #F7B32B;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

.card-header-alert{
  background-color: #dc3545;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
}

.pricing-card .card-body {
  padding: 10px;

}

.pricing-card .pricing {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
}

.pricing-card .features {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
}

.pricing-card .features li {
  margin-bottom: 15px;
  font-size: 15px;
}

.pricing-card .features li i {
  color: #007bff;
  margin-right: 10px;
}

/**_________raport_karta__________ */

.profile-card {
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #f8f9fa;
  color: #6c757d;
  text-decoration: none;
  margin: 0 5px;
  transition: all 0.3s ease;
}

/** _______________Machine_Report____________ */

.step-item {
  padding: 10px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.step-icon span {
  width: 70px;
  height: 70px;
  display: flex;
  margin: 0 auto;
}


/** __________lista__________ */

.list-style .list-style-five ul li {
  font-size: 16px;
  line-height: 24px;
  margin-top: 13px;
  list-style-type: none;
}
.list-style .list-style-five ul li i {
  font-size: 16px;
  font-weight: 600;
  text-align: left;
}

/** _________________LOGIN PAGE__________________ */



.custom-body {
  background: url("/images/login-bg.jpg");
  background-size: cover;
  background-position: center;
  height: 80vh;
  width: 100%;
  display: flex;
}

.transparent-login-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  animation: fadeInUp 0.8s ease-out;
  margin-bottom: 200px;
}
        
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.glass-input {
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: white !important;
  border-radius: 12px !important;
  padding: 12px 15px !important;
  transition: all 0.3s ease;
}

.glass-input:focus {
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.1) !important;
  color: white !important;
}

.glass-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.custom-btn-login {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  border: none;
  border-radius: 12px;
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(238, 90, 36, 0.3);
  color: white;
  width: 100%;
}

.custom-btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(238, 90, 36, 0.4);
  background: linear-gradient(45deg, #ee5a24, #ff6b6b);
  color: white;
}

.custom-login-title {
  color: white;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 300;
  font-size: 2rem;
}

.glass-label {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
}

.custom-check-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.glass-checkbox:checked {
  background-color: #ff6b6b !important;
  border-color: #ff6b6b !important;
}

.custom-forgot-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.custom-forgot-link:hover {
  color: white;
}

.glass-input-group-text {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
  border-radius: 12px 0 0 12px;
}

.glass-input-group .glass-input {
  border-radius: 0 12px 12px 0 !important;
}

.glow-effect {
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3) !important;
}

.success-state {
  background: linear-gradient(45deg, #10ac84, #00d2d3) !important;
}

/* Accordion_style */

:root {
  --primary-color: #ff4d06;
  --navbar-color: #ebebde;
  --bg-color: #ffffff;
  --text-dark: #2c2c2c;
  --text-muted: #6c757d;
  --border-color: #dee2e6;
}

 .accordion-button {
  background-color: var(--primary-color);
  color: white;
  border: 1px solid var(--primary-color);
  font-weight: 500;
  padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(255, 77, 6, 0.25);
}

.accordion-button::after {
  filter: invert(1);
}

/* Zagnieżdżony accordion - Sektory */
.nested-accordion .accordion-button {
  background-color: var(--navbar-color);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  padding: 0.85rem 1.25rem;
}

.nested-accordion .accordion-button:not(.collapsed) {
  background-color: #d8d8ca;
  color: var(--text-dark);
  border-color: var(--border-color);
}

.nested-accordion .accordion-button::after {
  filter: none;
}

/* Sub-zagnieżdżony accordion - Maszyny */
.sub-nested-accordion .accordion-button {
  background-color: #f8f9fa;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
}

.sub-nested-accordion .accordion-button:not(.collapsed) {
  background-color: #e9ecef;
  color: var(--text-dark);
  border-color: var(--border-color);
}

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

.accordion-body {
  background-color: var(--bg-color);
  padding: 1.25rem;
}

.nested-accordion .accordion-body {
  background-color: #fafafa;
  padding: 1rem;
}

.sub-nested-accordion .accordion-body {
  background-color: var(--bg-color);
  padding: 1rem;
}

.machine-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.machine-status {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-active { background-color: #d4edda; color: #155724; }
.status-maintenance { background-color: #fff3cd; color: #856404; }
.status-offline { background-color: #f8d7da; color: #721c24; }

.machine-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.production-stats {
  font-size: 0.875rem;
  color: var(--text-muted);
}



.scrollable-features {
  max-height: 180px; /* Maksymalna wysokość przed scrollowaniem */
  overflow-y: auto;
  padding-right: 10px; /* Odstęp dla scrollbara */
}

/* Stylowanie scrollbara */
.scrollable-features::-webkit-scrollbar {
  width: 6px;
}

.scrollable-features::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.scrollable-features::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.scrollable-features::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Dla Firefox */
.scrollable-features {
  scrollbar-width: thin;
  scrollbar-color: #c1c1c1 #f1f1f1;
}

.summary-list {
  max-height: none; /* Domyślnie bez ograniczenia wysokości */
  overflow-y: visible; /* Domyślnie bez scrollowania */
  padding-right: 5px;
}

/* Scrollowanie dla zdarzeń (6+ elementów) */
.summary-list.events-scrollable {
  min-height: 310px; /* Minimalna wysokość dla około 5-6 elementów */
  max-height: 310px; /* Wysokość dla około 5-6 elementów */
  overflow-y: auto;
  padding-right: 10px; /* Dodatkowe miejsce na scrollbar */
}

/* Scrollowanie dla alarmów (6+ elementów) */
.summary-list.alerts-scrollable {
  min-height: 310px; /* Minimalna wysokość dla około 5-6 elementów */
  max-height: 310px; /* Wysokość dla około 5-6 elementów */
  overflow-y: auto;
  padding-right: 10px; /* Dodatkowe miejsce na scrollbar */
}

/* Stylowanie scrollbara dla zdarzeń */
.summary-list.events-scrollable::-webkit-scrollbar {
  width: 5px;
}

.summary-list.events-scrollable::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.summary-list.events-scrollable::-webkit-scrollbar-thumb {
  background: #a8a8a8; /* Żółty scrollbar dla zdarzeń */
  border-radius: 3px;
}

.summary-list.events-scrollable::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Stylowanie scrollbara dla alarmów */
.summary-list.alerts-scrollable::-webkit-scrollbar {
  width: 5px;
}

.summary-list.alerts-scrollable::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.summary-list.alerts-scrollable::-webkit-scrollbar-thumb {
  background:  #a8a8a8; /* Czerwony scrollbar dla alarmów */
  border-radius: 3px;
}

.summary-list.alerts-scrollable::-webkit-scrollbar-thumb:hover {
  background:  #a8a8a8;
}


/* ________________________ */

:root {
  --primary-orange: #ff4d06;
  --primary-dark: #cc3e05;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-light: #b2bec3;
  --bg-white: #ffffff;
  --bg-light: #f8f9fa;
  --bg-hover: #fff5f2;
  --border-color: #e9ecef;
  --shadow-sm: rgba(255, 77, 6, 0.08);
  --success: #00b894;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f5f6fa;
}

.sidebar {
  min-height: 100vh;
  background: var(--bg-white);
  border-right: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  overflow-y: auto;
  max-height: 100vh;
}

/* Scrollbar styling */
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Logo section */
.sidebar-logo {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-dark) 100%);
  color: white;
}

.sidebar-logo i {
  font-size: 1.5rem;
}

.sidebar-logo-text {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

/* Main navigation links */
.sidebar-link {
  color: var(--text-primary);
  transition: all 0.2s ease;
  font-weight: 500;
  font-size: 0.9rem;
  border-left: 3px solid transparent;
  position: relative;
}

.sidebar-link:hover {
  background-color: var(--bg-hover);
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
  text-decoration: none;
}

.sidebar-link.active {
  background-color: var(--primary-orange);
  color: var(--bg-white) !important;
  border-left-color: var(--primary-dark);
  box-shadow: 0 2px 8px var(--shadow-sm);
}

.sidebar-link.active i {
  color: var(--bg-white) !important;
}

.sidebar-link i {
  font-size: 1rem;
  width: 20px;
  text-align: center;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.sidebar-link:hover i {
  color: var(--primary-orange);
}

/* Badge for notifications */
.nav-badge {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  background: var(--primary-orange);
  color: white;
  border-radius: 10px;
  font-weight: 600;
}

.nav-item {
  margin-bottom: 2px;
}

hr {
  border-color: var(--border-color);
  opacity: 1;
  margin: 1rem 0;
}

/* Section headers */
.section-header {
  color: var(--text-light);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  font-weight: 600;
  padding: 0.5rem 1rem;
  margin-bottom: 0.5rem;
}

/* Main department (Działy) */
.main-department {
  margin-bottom: 0;
}

.main-summary {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0.25rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  list-style: none;
  user-select: none;
}

.main-summary::-webkit-details-marker {
  display: none;
}

.main-summary::before {
  content: '›';
  font-size: 1.2rem;
  font-weight: bold;
  margin-right: 0.5rem;
  color: var(--text-secondary);
  transition: transform 0.2s ease;
  display: inline-block;
}

details[open] > .main-summary::before {
  transform: rotate(90deg);
  color: var(--primary-orange);
}

.main-summary:hover {
  background-color: var(--bg-hover);
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
}

details[open] > .main-summary {
  background-color: var(--bg-hover);
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
}

.main-summary i {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.main-summary:hover i,
details[open] > .main-summary i {
  color: var(--primary-orange);
}

/* Department content wrapper */
.department-content {
  padding-left: 0.5rem;
  background: var(--bg-light);
  margin-top: 2px;
}

/* Sub-departments */
.sub-department {
  margin-bottom: 2px;
}

.sub-summary {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: none;
  border-left: 3px solid transparent;
  border-radius: 0.25rem;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
  list-style: none;
  user-select: none;
}

.sub-summary::-webkit-details-marker {
  display: none;
}

.sub-summary::before {
  content: '›';
  font-size: 1rem;
  font-weight: bold;
  margin-right: 0.4rem;
  color: var(--text-light);
  transition: transform 0.2s ease;
  display: inline-block;
}

.sub-department[open] > .sub-summary::before {
  transform: rotate(90deg);
  color: var(--primary-orange);
}

.sub-summary:hover {
  background-color: white;
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
}

.sub-department[open] > .sub-summary {
  background-color: white;
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
}

.sub-summary i {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.sub-summary:hover i,
.sub-department[open] > .sub-summary i {
  color: var(--primary-orange);
}

/* Sectors list */
.department-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: white;
}

.department-list li {
  margin: 0;
}

.department-link {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.75rem 0.4rem 2.2rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.department-link:hover {
  background-color: var(--bg-hover);
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
  text-decoration: none;
}

.department-link.active {
  background-color: var(--bg-hover);
  color: var(--primary-orange);
  border-left-color: var(--primary-orange);
  font-weight: 600;
}

.department-link i {
  font-size: 0.35rem;
  color: var(--text-light);
  transition: color 0.2s ease;
}

.department-link:hover i,
.department-link.active i {
  color: var(--primary-orange);
}

/* Status indicator for departments */
.status-indicator {
  margin-left: auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.status-indicator.warning {
  background: #f39c12;
}

.status-indicator.danger {
  background: #d63031;
}

/* Footer section */
.sidebar-footer {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
  transition: background 0.2s ease;
}

.user-info:hover {
  background: white;
  cursor: pointer;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-orange), var(--primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 0.85rem;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Responsywność */
@media (max-width: 768px) {
  .sidebar {
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    max-height: none;
  }
  
  .sidebar-logo-text {
    display: none;
  }
}

/* Demo content styling */
.demo-content {
  padding: 2rem;
}

/** ________________________________ */

details > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
details > summary::-webkit-details-marker {
  display: none;
}
details[open] > summary .bi-chevron-down {
  transform: rotate(180deg);
}
.bi-chevron-down {
  transition: transform 0.3s ease;
}
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
}


/*! ++++++++++++++++++++++++++++ */

.enhanced-report-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  overflow: hidden;
}

.enhanced-report-card .card-body {
  padding: 1.5rem;
}

/* Sekcje raportów */
.report-section {
  background: #ffffff;
  border-radius: 8px;
  padding: 1rem;
  height: 100%;
  min-height: 373px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.report-section:hover {
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
}

/* Ikony sekcji */
.section-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.section-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto;
}

.bg-gradient-primary {
  background-color: #0d6efd;
}

.bg-gradient-warning {
  background-color: #ffc107;
}

.bg-gradient-danger {
  background-color: #dc3545;
}

/* Tytuły sekcji */
.section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  margin-bottom: 1rem;
  text-align: center;
}

/* Siatka statystyk */
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.stat-item:hover {
  background: #e9ecef;
}

.stat-item.stat-success .stat-icon { color: #198754; }
.stat-item.stat-danger .stat-icon { color: #dc3545; }
.stat-item.stat-warning .stat-icon { color: #ffc107; }
.stat-item.stat-info .stat-icon { color: #0dcaf0; }
.stat-item.stat-primary .stat-icon { color: #0d6efd; }

.stat-icon {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: #6c757d;
  font-weight: 400;
  line-height: 1.2;
}

.stat-value {
  font-size: 1.125rem;
  font-weight: 600;
  color: #212529;
  line-height: 1.2;
}

/* Kontenery zdarzeń i alarmów */
.events-container,
.alerts-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.events-list,
.alerts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  max-height: none;
  min-height: 500px;
}

.events-list.events-scrollable,
.alerts-list.alerts-scrollable {
  max-height: 240px;
  padding-right: 0.5rem;
}

/* Stylowanie scrollbara */
.events-list::-webkit-scrollbar,
.alerts-list::-webkit-scrollbar {
  width: 5px;
}

.events-list::-webkit-scrollbar-track,
.alerts-list::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 3px;
}

.events-list::-webkit-scrollbar-thumb {
  background: #a8a8a8;
  border-radius: 3px;
}

.alerts-list::-webkit-scrollbar-thumb {
  background: #a8a8a8;
  border-radius: 3px;
}

.events-list::-webkit-scrollbar-thumb:hover,
.alerts-list::-webkit-scrollbar-thumb:hover {
  background: #888;
}

/* Elementy zdarzeń i alarmów */
.event-item,
.alert-item {
  background: #ffffff;
  border-radius: 6px;
  padding: 0.75rem;
  transition: all 0.2s ease;
  border: 1px solid #dee2e6;
}

.event-item:hover,
.alert-item:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.event-header,
.alert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.event-badge,
.alert-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  color: #212529;
}

.event-badge i {
  color: #ffc107;
  font-size: 1rem;
}

.alert-badge i {
  color: #dc3545;
  font-size: 1rem;
}

.event-count,
.alert-count {
  background: #e9ecef;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #495057;
}

.btn-details {
  width: 100%;
  background: #0d6efd;
  color: white;
  border: 1px solid #0d6efd;
  border-radius: 4px;
  padding: 0.375rem 0.5rem;
  font-weight: 400;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.btn-details:hover {
  background: #0b5ed7;
  border-color: #0a58ca;
  color: white;
}

.btn-details i {
  font-size: 0.875rem;
}

/* Pusty stan */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: #6c757d;
}

.empty-state i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.empty-state p {
  margin: 0;
  font-size: 0.875rem;
}

/* Responsywność */
@media (max-width: 991.98px) {
  .report-section {
    min-height: 373px;
  }
  
  .enhanced-report-card .card-body {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .section-icon {
    width: 60px;
    height: 60px;
  }
  
  .section-icon i {
    font-size: 1.5rem !important;
  }
  
  .stat-value {
    font-size: 1rem;
  }
  
  .report-section {
    min-height: 350px;
  }
  
  .enhanced-report-card .card-body {
    padding: 1rem;
  }
}

/*?______________________________________ */
.matrix-container {
  padding: 10px;
}

.matrix-header {
  font-size: 24px;
  font-weight: 200;
  margin-bottom: 10px;

}

.matrix-form-row {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.matrix-label {
  color: #333;
  font-weight: 500;
  margin: 0;
}

.matrix-date-input {
  border: 1px solid black;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.matrix-date-input:focus {
  outline: none;
  border-color: #d35a0f;
  box-shadow: 0 0 0 3px rgba(235, 107, 20, 0.1);
}

.matrix-svg-container {
  background: #ffffff;
  padding: 5px;
}

.matrix-online-block {
  transition: opacity 0.2s ease;
}

.matrix-online-block:hover {
  opacity: 0.85;
  filter: brightness(1.1);
}

.matrix-auto-block {
  transition: opacity 0.2s ease;
}

.matrix-auto-block:hover {
  opacity: 0.85;
  filter: brightness(1.1);
}

.matrix-alert-icon {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.matrix-alert-icon:hover {
  /* transform: scale(1.4); */
  filter: drop-shadow(0 0 4px rgba(220, 38, 38, 0.8));
}

.matrix-event-icon {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.matrix-event-icon:hover {
  /* transform: scale(1.4); */
  filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.8));
}

.matrix-product-good {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.matrix-product-good:hover {
  /* transform: scale(1.3); */
  filter: drop-shadow(0 0 3px rgba(34, 197, 94, 0.8));
}

.matrix-product-bad {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.matrix-product-bad:hover {
  /* transform: scale(1.3); */
  filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.8));
}

.matrix-product-cancelled {
  transition: transform 0.2s ease, filter 0.2s ease;
}

.matrix-product-cancelled:hover {
  /* transform: scale(1.3); */
  filter: drop-shadow(0 0 3px rgba(148, 163, 184, 0.8));
}

.matrix-time-label {
  fill: #666;
  font-size: 11px;
  font-weight: 500;
}

.matrix-no-data {
  fill: #999;
  font-size: 18px;
  font-weight: 500;
}