	html, body {
	  height: 100%;
	  margin: 0;
	  padding: 0;
	}

	body {
	  font-family: sans-serif;
	  display: flex;
	  flex-direction: column;
	  height: 100vh;
	}

    header {
      height: 50px;
      background-color: #df0000;
      color: white;
      display: flex;
      align-items: center;
      padding-left: 20px;
      font-size: 20px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    footer {
      height: 40px;
      background-color: #eee;
      text-align: center;
      font-size: 14px;
      line-height: 40px;
      border-top: 1px solid #ccc;
    }

    .main {
      flex: 1;
      display: flex;
      overflow: hidden;
    }

    .sidebar {
      width: 200px;
      background-color: #f4f4f4;
      padding: 10px;
      border-right: 1px solid #ccc;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .menu-top {
      display: flex;
      flex-direction: column;
    }

    .menu-bottom {
      border-top: 1px solid #ccc;
      padding-top: 10px;
      margin-top: 10px;
      display: flex;
      flex-direction: column;
    }

    .sidebar a {
      display: block;
      margin: 6px 0;
      text-decoration: none;
      color: #333;
    }

    .sidebar a:hover {
      color: #0074D9;
    }

    .sidebar a.active-link {
      font-weight: bold;
      color: #df0000;
    }

    .sidebar details {
      margin-top: 10px;
    }

    .sidebar summary {
      cursor: pointer;
      font-weight: normal;
      margin: 6px 0;
      padding: 4px;
      background-color: transparent;
      border-radius: 3px;
    }

    .sidebar details[open] summary {
      background-color: #d0d0d0;
    }

    .sidebar details a {
      margin: 4px 0 4px 24px;
      font-size: 1em;
      display: block;
      color: #444;
    }

    .sidebar details a:hover {
      color: #0074D9;
      text-decoration: underline;
    }

    .content {
      flex-grow: 1;
      padding: 20px;
      overflow-y: auto;
    }
    
    .sticky-header {
		position: sticky;
		top: 0;
		background-color: white;
		z-index: 100;
		/* padding: 10px 0; */
		/* border-bottom: 2px solid #ccc; */
    }
    
    
    .table-container {
		max-height: 1000px;
		overflow-y: auto;
	}
	

    table {
        width: 100%;
        border-collapse: collapse;
        margin-top: 2px;
    }

    th, td {
        border: 1px solid #ccc;
        padding: 8px 12px;
        text-align: left;
    }

    th {
        background-color: #f5f5f5;
    }

    tr:nth-child(even) {
        background-color: #fafafa;
    }
    
    thead th {
		position: sticky;
		top: 0;
		background-color: #f2f2f2;
		z-index: 50;
    }
    
    /* Obsługa dodatkowych elementów w nagłówkach raportów */
    
    .header-bar {
	  display: flex;
	  justify-content: space-between;
	  align-items: center;
	  flex-wrap: wrap;
	  gap: 10px;
	  padding: 8px 10px;
	  background-color: white;
	  z-index: 100;
	  border-bottom: 1px solid #ccc;
	}

	.header-bar h2 {
	  margin: 0;
	}

	.date-filter-form {
	  display: flex;
	  align-items: center;
	  gap: 0.5rem;
	  flex-wrap: wrap;
	}

	.date-filter-form input[type="date"] {
	  padding: 4px;
	  font-size: 0.9rem;
	}

	.date-filter-form button {
	  padding: 6px 12px;
	  font-size: 0.9rem;
	  background-color: #df0000;
	  color: white;
	  border: none;
	  border-radius: 4px;
	  cursor: pointer;
	}

	.date-filter-form button:hover {
	  background-color: #b90000;
	}
	
	th a {
    color: black;
    text-decoration: none;
	}

	th a.active-sort {
		color: #df0000;
		font-weight: bold;
	}


