.error-message-row {   
    background-color: #ffe0e0; 
    color: #cc0000; 
    font-weight: bold;  
    border-bottom: 1px solid #ffaaaa;
}

.error-message-row td,
.error-message-row th {
    color: inherit;
    font-weight: inherit;
    border: 1px solid #ffaaaa; /* Match border from the row for consistent look */
    padding: 8px 12px;         /* Standard padding for cell content */
}

/* ################################################### */
.number-input {
    width: 50px;    
}

.btn-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    margin-right: 10px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5);
}

.btn-primary:active {
    background-color: #003e8a;
}

.btn-primary:disabled {
    background-color: #adb5bd;
    color: #ced4da;
    cursor: not-allowed;
}


/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 10px;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.day-header {
    padding: 15px 5px;
    text-align: center;
    font-weight: bold;
    color: #495057;
    border-right: 1px solid #dee2e6;
    font-size: 14px;
}

.day-header:last-child {
    border-right: none;
}

.calendar-body {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(120px, auto);
}

.calendar-day {
    border: 1px solid #dee2e6;
    border-top: none;
    border-left: none;
    padding: 10px;
    background: white;
    transition: all 0.2s ease;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.calendar-day:nth-child(7n+1) {
    border-left: 1px solid #dee2e6;
}

.calendar-day:hover {
    background-color: #f8f9fa;
    transform: scale(1.02);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.calendar-day.today {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

.calendar-day.empty {
    background-color: #f8f9fa;
    pointer-events: none;
}

.day-number {
    font-weight: bold;
    font-size: 14px;
    color: #495057;
    margin-bottom: 8px;
    text-align: center;
}

.today .day-number {
    color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    margin: 0 auto 8px;
}

.day-content {
    flex: 1;
    font-size: 12px;
    line-height: 1.4;
    color: #6c757d;
    outline: none;
    border: none;
    resize: none;
    background: transparent;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.day-content:focus {
    background-color: rgba(0, 123, 255, 0.1);
    color: #495057;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.day-content:empty:before {
    content: attr(placeholder);
    color: #adb5bd;
    font-style: italic;
}

/* Navigation */
.calendar-nav {
    padding: 0 20px;
    margin-bottom: 20px;
}

.calendar-title {
    color: #495057;
    font-weight: 300;
    text-align: center;
}

.nav-btn {
    min-width: 100px;
    white-space: nowrap;
}



.table-calendar {
  width: 100%;
  border-collapse: collapse;
}

.table-calendar th,
.table-calendar td {
  padding: 8px;
  text-align: left;
}

.table-calendar th {
  background-color: #f2f2f2;
}

.table-calendar tr.odd {
  background-color: #f9f9f9;
}

.table-calendar tr.even {
  background-color: #ffffff;
}


.table-calendar tr.holiday-odd {
  background-color: #a7d4bb;
}

.table-calendar tr.holiday-even {
  background-color: #9fc2ae;
}

.table-calendar tr.weekend-odd {
  background-color: #c3e8fd;
}

.table-calendar tr.weekend-even {
  background-color: #9fdcff;
}



.table-calendar tfoot {
  background-color: #f2f2f2;
  font-weight: bold;
}

/* Responsive .table-calendar */
@media (max-width: 600px) {
  .table-calendar {
    font-size: 14px;
  }

  .table-calendar th,
  .table-calendar td {
    padding: 6px;
  }

  .table-calendar th {
    font-size: 16px;
  }

  .table-calendar tr.odd,
  .table-calendar tr.even {
    background-color: transparent;
  }

  .table-calendar tr:nth-child(odd) td:nth-child(odd),
  .table-calendar tr:nth-child(even) td:nth-child(even) {
    background-color: #f9f9f9;
  }

  .table-calendar tr:nth-child(odd) td:nth-child(even),
  .table-calendar tr:nth-child(even) td:nth-child(odd) {
    background-color: #ffffff;
  }

  .table-calendar tr.holiday-odd,
  .table-calendar tr.holiday-even {
    background-color: transparent;
  }

  .table-calendar tr.holiday-odd:nth-child(odd) td.holiday-odd:nth-child(odd),
  .table-calendar tr.holiday-odd:nth-child(even) td.holiday-odd:nth-child(even) {
    background-color: #a7d4bb;
  }

  .table-calendar tr.holiday-odd:nth-child(odd) td.holiday-odd:nth-child(even),
  .table-calendar tr.holiday-odd:nth-child(even) td.holiday-odd:nth-child(odd) {
    background-color: #9fc2ae;
  }

}

@media (max-width: 400px) {
  .table-calendar {
    font-size: 12px;
  }

  .table-calendar th,
  .table-calendar td {
    padding: 4px;
  }

  .table-calendar th {
    font-size: 14px;
  }
}


/* Mobile-first responsive design */
@media (max-width: 1200px) {
    .calendar-container {
        margin: 0 5px;
    }
    
    .day-header {
        padding: 12px 3px;
        font-size: 13px;
    }
}

@media (max-width: 992px) {
    .calendar-body {
        grid-auto-rows: minmax(110px, auto);
    }
    
    .calendar-day {
        min-height: 110px;
        padding: 8px;
    }
    
    .day-content {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .calendar-container {
        margin: 0;
        border-radius: 5px;
    }
    
    .calendar-body {
        grid-auto-rows: minmax(100px, auto);
    }
    
    .calendar-day {
        min-height: 100px;
        padding: 6px;
    }
    
    .day-header {
        padding: 10px 2px;
        font-size: 12px;
    }
    
    .day-number {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .today .day-number {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 11px;
    }
    
    .day-content {
        font-size: 10px;
        padding: 3px;
        line-height: 1.3;
    }
    
    .calendar-nav {
        padding: 0 15px;
        margin-bottom: 15px;
    }
    
    .calendar-title {
        font-size: 1.5rem;
    }
    
    .nav-btn {
        min-width: 80px;
        font-size: 14px;
        padding: 8px 12px;
    }
    
    /* Stack navigation on very small screens */
    .calendar-nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .calendar-nav .d-flex {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .calendar-body {
        grid-auto-rows: minmax(75px, auto);
    }
    
    .calendar-day {
        min-height: 75px;
        padding: 3px;
    }
    
    .day-header {
        padding: 6px 1px;
        font-size: 10px;
    }
    
    .day-number {
        font-size: 11px;
        margin-bottom: 2px;
    }
    
    .day-content {
        font-size: 9px;
        padding: 1px;
    }
}

/* Print styles */
@media print {
    .calendar-nav {
        display: none;
    }
    
    .calendar-container {
        box-shadow: none;
        margin: 0;
    }
    
    .calendar-day {
        min-height: 100px;
        break-inside: avoid;
    }
    
    .day-content {
        color: #000 !important;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .calendar-day {
        border-width: 0.5px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .calendar-body {
        grid-auto-rows: minmax(60px, auto);
    }
    
    .calendar-day {
        min-height: 60px;
        padding: 3px;
    }
    
    .day-content {
        font-size: 10px;
    }
}


/* ############################ login */

.login-container-error {   
    color: #cc0000; 
    font-weight: bold;  

}


.login-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h2 {
    margin-top: 0;
    color: #333;
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-size: 16px;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0056b3;
}

.report-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-size: 16px;
    resize: horizontal;

}