html,
body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 0;
    padding: 0 10px;
}

.header,
.content,
.footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
/* Header */


/* Header navigation list */
.nav ul {
  display: none;
  list-style: none;
  padding: 0;
  width: 100%;
  margin: 0;
  /* margin-top: 2px; */
}

.nav-link,
a.mobile_menu {
  display: block;
  text-align: center;
  border-bottom: 1px solid rgb(241, 241, 250);
  background-color: rgba(133, 190, 247, 0.842);
  padding: 17px 17px;
  text-decoration: none;
  color: rgb(0, 5, 10);
  text-transform: uppercase;

}
a.mobile_menu {
  height: 20px;
}
/* Footer */
.footer {
  background-color: cornflowerblue;
}
/* -------- fORM ---------- */
.freeze-form,
.direction-form,
.level-form {
  margin-top: 10px;
}
.level-form {
  margin-bottom: 10px;
}
.rapper-input,
.lath-input {
  margin-bottom: 10px;
}
.level-form input {
  width: 80px;
  height: 30px;
  font-size: 1.5em;
}
.level-form button {
  padding: 10px;
}
.add-form {
    max-width:300px;
    margin: 0 auto;
  }

  .form-head {
    text-align: center;
  }

  .form-box {
    display:flex;
    flex-direction:column;
    border: none;
  }

  /* .form-label {

  } */

  .form-input {
    box-sizing: border-box;
    width: 100%;
    padding:10px;
    margin:5px 0 10px;
  }

  .form-radio {
    margin-left:20px;
  }

  .radio-container {
    margin:20px 0;
  }

  .radio-box {
    margin:10px 0;
    display: flex;
    align-items: flex-start;
  }

  .form-textarea {
    margin-top:10px;
    width: 100%;
    box-sizing: border-box;
  }

  .submit-button {
    width: 100%;
    padding:10px;
    margin-top:20px;
  }

  .errors-list ul  {
    list-style: none;
    text-align: center;
    color: red;
    outline: 1px solid red;
    padding: 10px;
  }
  .messages-list ul {
    list-style: none;
    text-align: center;
    color: green;
    outline: 1px solid green;
    padding: 10px;
  }
  .info-box {
    max-width: 300px;
    margin: 0 auto;
  }
  #user {
    margin: 10px 0;
   }

   .link {
       display: block;
       margin-bottom: 20px;
   }
.stage-table{
  border-collapse: collapse;
  text-align: center;
}
.stage-table th,
.stage-table td {
  width: 70px;
  border: 1px solid gray;
}


.level-form {
    margin: 20px 0;
}
.level-input {
	display: flex;
    justify-content: space-between;
    width: 75%;
    margin: 10px 0;
}
.level-input label {
	padding-top: 8px;
}
.completed-meter {
	font-weight: bold;
}

.hidden {
	display: none !important;
}
.completed-form {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.completed-form input {
  height: 30px;
}
.button {
  width: 30%;
  height: 40px;
  margin: 30px 0;
}
.completed-form input {
	width: 50%;
}
label[for="from"] {
  text-align: left;
}
label[for="to"] {
  text-align: left;
  margin: 10px 0 0;
}
.completed-background {
  background-color: rgb(250, 244, 191);
}
.pipe-meter-color {
  color: rgb(24, 154, 111);
}
.edit-button {
  padding: 10px 30px;
  margin-top: 20px;
}
.rapper-select {
  margin-top: 0;
  margin-bottom: 10px;
  padding: 5px;
  color: black;
  font-size: 1.1em;
  background-color: yellow;
  width: 80%;
}
input[type="number"] {
  width: 80px;
  text-align: center;
}
.rapper-desc {
  color: red;
}
.direction-change-link {
  display: inline-block;
  text-decoration: none;
  padding: 0 10px;
  color: red;
}
.info-container {
  margin: 20px 0;
	display: flex;
	justify-content: space-between;
}
.info-container p {
  margin: 0;
}
.info-container a {
  padding-right: 30px;
  color: red;
}
.edit-form {
	display: flex;
	flex-direction: column;
}
.edit-form input {
	margin: 10px 0;
	height: 20px;
}



.header,
.content,
.footer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}

.nav ul {
  display: none;
  list-style: none;
  padding: 0;
  width: 100%;
  margin: 0;
}

.nav-link,
a.mobile_menu {
  display: block;
  text-align: center;
  border-bottom: 1px solid rgb(241, 241, 250);
  background-color: rgba(133, 190, 247, 0.842);
  padding: 17px 17px;
  text-decoration: none;
  color: rgb(0, 5, 10);
  text-transform: uppercase;

}

a.mobile_menu {
  height: 20px;
}


.footer {
  background-color: cornflowerblue;
}

body {
  font-family: Arial, sans-serif;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

form {
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

select,
input[type="date"],
textarea,
button {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

button:hover {
  background-color: #0056b3;
}

fieldset {
  margin-top: 20px;
  border: 1px solid #ccc;
  padding: 15px;
  border-radius: 5px;
  background-color: #fff;
}
fieldset div {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: baseline;
}
fieldset input{
  margin: 10px;
}
input[type="date"] {
  margin-left: 0;
  margin-right: 0;
}
button[type="submit"] {
  margin-top: 15px;
}
h2 {
  text-align: center;
}
/* Period filter */
.period-filter {
    margin: 15px 0;
}
.period-buttons {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}
.period-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
}
.period-btn:hover {
    background-color: #e9ecef;
}
.period-btn.active {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}
.custom-period {
    margin-top: 10px;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.custom-period label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}
.custom-period input[type="date"] {
    padding: 6px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: auto;
    margin: 0;
}
.custom-period button {
    padding: 6px 16px;
    width: auto;
    margin: 0;
}

.day-report-table {
  border-collapse: collapse;
  margin-top: 1rem;
  margin-bottom: 1rem;
  font-size: smaller;
  text-align: center;
  width: 100%;
}
.day-report-table caption {
    text-align: left;
    font-weight: bold;
    padding: 8px 0;
    color: #495057;
}
.darbs-cell {
  text-align: left;
}
.day-report-table th,
.day-report-table td {
  border: 1px solid #cecece;
  padding: 5px;
}
.day-report-table .no-data {
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}
.td-nowrap {
    white-space: nowrap;
}

/* Flash messages */
.flash {
    padding: 15px;
    margin: 10px 0;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}
.flash ul {
    margin: 0;
    padding-left: 20px;
}
.flash-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.flash-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.flash-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

/* Input validation errors */
.input-error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}
.input-error:focus {
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.5) !important;
    outline: none;
}

/* Success actions after form submit */
.success-actions {
    margin: 15px 0;
    padding: 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    text-align: center;
}
.success-actions .btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
}
.success-actions .btn-primary {
    background-color: #28a745;
    color: white;
}
.success-actions .btn-primary:hover {
    background-color: #218838;
}

/* Page navigation link */
.page-nav {
    margin: 10px 0;
}
.page-nav a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}
.page-nav a:hover {
    text-decoration: underline;
}

/* Date expand link */
.date-expand {
    margin: 10px 0;
    font-size: 14px;
}
.date-expand a {
    color: #6c757d;
    text-decoration: none;
}
.date-expand a:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Form hint for multi-select */
.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

/* Multi-select styling */
select[multiple] {
    min-height: 150px;
    padding: 5px;
}

/* Work day select option styling */
#day-select {
    font-weight: 500;
}
#day-select.option-warning {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}
#day-select.option-success {
    background-color: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}
#day-select option.option-warning {
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
}
#day-select option.option-success {
    background-color: #d4edda;
    color: #155724;
}

/* Day select wrapper and tooltip */
.day-select-wrapper {
    position: relative;
}
.workers-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    padding: 8px 12px;
    background-color: #333;
    color: #fff;
    font-size: 13px;
    border-radius: 4px;
    max-width: 350px;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.workers-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-bottom-color: #333;
}

/* Auth forms */
.auth-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.auth-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}
.auth-form .form-group {
    margin-bottom: 20px;
}
.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}
.auth-form input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52,152,219,0.3);
}
.auth-form .form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #888;
}
.auth-form .btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
.auth-form .btn-primary {
    background-color: #3498db;
    color: white;
}
.auth-form .btn-primary:hover {
    background-color: #2980b9;
}
.auth-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}
.auth-link a {
    color: #3498db;
    text-decoration: none;
}
.auth-link a:hover {
    text-decoration: underline;
}

/* Admin panel */
.admin-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
}
.admin-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.stat-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    min-width: 120px;
}
.stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #3498db;
}
.stat-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}
.admin-menu ul {
    list-style: none;
    padding: 0;
}
.admin-menu li {
    margin: 10px 0;
}
.admin-menu a {
    color: #3498db;
    text-decoration: none;
}
.admin-menu a:hover {
    text-decoration: underline;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
.admin-table th,
.admin-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}
.admin-table th {
    background: #f8f9fa;
}
.admin-table tr:hover {
    background: #f8f9fa;
}
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}
.badge-admin {
    background: #e74c3c;
    color: white;
}
.badge-user {
    background: #3498db;
    color: white;
}
.badge-active {
    background: #27ae60;
    color: white;
}
.badge-pending {
    background: #f39c12;
    color: white;
}
.badge-blocked {
    background: #95a5a6;
    color: white;
}
.btn-secondary {
    background-color: #95a5a6;
    color: white;
}
.btn-secondary:hover {
    background-color: #7f8c8d;
}
.btn-danger {
    background-color: #e74c3c;
    color: white;
}
.btn-danger:hover {
    background-color: #c0392b;
}
.user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}
.user-info p {
    margin: 5px 0;
}

/* Hours page */
.hours-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 20px;
}
.hours-header {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}
.hours-subheader {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #34495e;
}
.filter-form {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
.filter-form label {
    font-weight: bold;
    color: #2c3e50;
}
.filter-form select {
    padding: 8px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}
.filter-form select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}
.filter-form button {
    padding: 10px 20px;
    font-size: 1em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.filter-form button[type="submit"]:not([name="reset"]) {
    background-color: #3498db;
    color: white;
}
.filter-form button[type="submit"]:not([name="reset"]):hover {
    background-color: #2980b9;
}
.filter-form button[name="reset"] {
    background-color: #2ecc71;
    color: white;
}
.filter-form button[name="reset"]:hover {
    background-color: #27ae60;
}
.hours-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.hours-table th, .hours-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.hours-table th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}
.hours-table tr:hover {
    background-color: #f9f9f9;
}
.hours-table td {
    color: #333;
}
.hours-table .no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
}
.detail-link {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}
.detail-link:hover {
    text-decoration: underline;
    color: #2980b9;
}

/* Report hours page */
.report-container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}
.report-header {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #2c3e50;
}
.report-subheader {
    font-size: 1.2em;
    margin-bottom: 20px;
    color: #34495e;
}
.report-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.report-table th, .report-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}
.report-table th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}
.report-table tr:hover {
    background-color: #f9f9f9;
}
.report-table td {
    color: #333;
}
.report-table .total-row {
    background-color: #ecf0f1;
    font-weight: bold;
}
.report-table .total-row:hover {
    background-color: #ecf0f1;
}
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #3498db;
    text-decoration: none;
}
.back-link:hover {
    text-decoration: underline;
}
.pusdiena-ja {
    color: #27ae60;
}
.pusdiena-ne {
    color: #95a5a6;
}

/* EDLUS navigation */
.edlus-nav {
    max-width: 600px;
    margin: 30px auto;
    padding: 0 20px;
}
.edlus-nav h2 {
    text-align: center;
    margin-bottom: 25px;
}
.edlus-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.edlus-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.edlus-nav-link:hover {
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.edlus-nav-link .nav-icon {
    font-size: 28px;
}
.edlus-nav-link .nav-text {
    font-size: 18px;
    font-weight: 500;
}

/* ============================================
   RESPONSIVE / MOBILE STYLES
   ============================================ */

/* Base touch-friendly sizes */
@media (max-width: 768px) {
    body {
        padding: 0 5px;
        font-size: 16px;
    }

    /* Larger touch targets for mobile */
    button,
    .btn,
    .period-btn,
    select,
    input[type="date"],
    input[type="number"],
    input[type="text"],
    input[type="email"],
    input[type="password"] {
        min-height: 44px;
        font-size: 16px !important;
    }

    /* Navigation */
    .page-nav {
        margin: 15px 0;
    }
    .page-nav a {
        display: inline-block;
        padding: 14px 20px;
        min-height: 44px;
        box-sizing: border-box;
        background-color: #007bff;
        color: white;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 500;
    }
    .page-nav a:hover {
        text-decoration: none;
        background-color: #0056b3;
    }

    /* Period filter - stack vertically on mobile */
    .period-filter {
        margin: 10px 0;
    }
    .period-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }
    .period-btn {
        flex: 1 1 auto;
        min-width: 80px;
        padding: 12px 16px;
        text-align: center;
        font-size: 14px;
    }
    .custom-period {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    .custom-period label {
        display: flex;
        flex-direction: column;
        gap: 5px;
        font-weight: normal;
    }
    .custom-period input[type="date"] {
        width: 100%;
        padding: 12px;
        font-size: 16px;
    }
    .custom-period button {
        width: 100%;
        padding: 12px;
        margin-top: 5px;
    }

    /* Tables - horizontal scroll on mobile */
    .day-report-table,
    .hours-table,
    .report-table,
    .admin-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .day-report-table th,
    .day-report-table td,
    .hours-table th,
    .hours-table td,
    .report-table th,
    .report-table td {
        padding: 10px 8px;
        white-space: nowrap;
    }
    .darbs-cell {
        white-space: normal;
        min-width: 150px;
    }

    /* Forms */
    form {
        padding: 15px;
        margin-top: 15px;
    }
    fieldset {
        padding: 10px;
        margin-top: 15px;
    }
    fieldset div {
        flex-direction: column;
        align-items: stretch;
    }
    fieldset input,
    fieldset select {
        margin: 8px 0;
        width: 100%;
    }
    fieldset input[type="radio"],
    fieldset input[type="checkbox"] {
        width: auto;
        margin-right: 10px;
    }
    fieldset div:has(input[type="radio"]),
    fieldset div:has(input[type="checkbox"]) {
        flex-direction: row;
        align-items: center;
    }

    /* Filter form */
    .filter-form {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 15px;
    }
    .filter-form label {
        margin-bottom: -8px;
    }
    .filter-form select {
        width: 100%;
    }
    .filter-form button {
        width: 100%;
        padding: 12px;
    }

    /* Multi-select workers */
    select[multiple] {
        min-height: 200px;
    }
    .form-hint {
        font-size: 13px;
        padding: 8px 0;
    }

    /* Day select */
    .day-select-wrapper {
        margin-bottom: 10px;
    }
    #day-select {
        width: 100%;
        padding: 12px;
    }
    .workers-tooltip {
        max-width: 90vw;
        left: 0;
        right: 0;
        margin: 5px auto;
    }

    /* Date expand link */
    .date-expand {
        margin: 15px 0;
    }
    .date-expand a {
        display: inline-block;
        padding: 8px 12px;
        background-color: #f8f9fa;
        border-radius: 4px;
        font-size: 14px;
    }

    /* Hours/Report containers */
    .hours-container,
    .report-container {
        padding: 0 10px;
        margin: 15px auto;
    }
    .hours-header,
    .report-header {
        font-size: 1.3em;
    }
    .hours-subheader,
    .report-subheader {
        font-size: 1.1em;
    }

    /* Auth forms */
    .auth-container {
        margin: 20px 10px;
        padding: 20px;
    }

    /* Admin */
    .admin-container {
        padding: 10px;
    }
    .admin-stats {
        justify-content: center;
    }
    .stat-box {
        flex: 1 1 calc(50% - 10px);
        min-width: 100px;
    }

    /* Flash messages */
    .flash {
        padding: 12px;
        font-size: 14px;
    }

    /* H2 headings */
    h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    /* EDLUS navigation */
    .edlus-nav {
        margin: 20px auto;
        padding: 0 10px;
    }
    .edlus-nav h2 {
        margin-bottom: 20px;
    }
    .edlus-nav-links {
        gap: 10px;
    }
    .edlus-nav-link {
        padding: 15px;
        gap: 12px;
    }
    .edlus-nav-link .nav-icon {
        font-size: 24px;
    }
    .edlus-nav-link .nav-text {
        font-size: 16px;
    }

    /* Back link */
    .back-link {
        display: inline-block;
        padding: 14px 20px;
        min-height: 44px;
        box-sizing: border-box;
        background-color: #007bff;
        color: white;
        border-radius: 6px;
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 15px;
    }
    .back-link:hover {
        background-color: #0056b3;
        text-decoration: none;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .period-btn {
        flex: 1 1 100%;
    }

    .stat-box {
        flex: 1 1 100%;
    }

    .day-report-table caption {
        font-size: 14px;
    }

    /* Stack labels and inputs */
    .filter-form {
        gap: 8px;
    }
}
