h2{
    text-align: left;
    font-size: 16px;
    color: #333;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
 }

h1{
    text-align: center;
    font-size: 20px;
    color: #333;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
 }
.bottomspace{
   width: 100%;
   height: 10px;
   margin: 10px;

}
a.leave-link {
  text-decoration: none;    /* Removes underline */
  text-transform: uppercase; /* Makes all caps */
  color: inherit;           /* Keeps normal text color */
  cursor: pointer;
}

a.leave-link:hover {
  color: #007bff;           /* Optional: hover effect */
    font-weight: bold;
}

.spacer{
   width: 100%;
   height: 3px;
   margin: 10px;

}

.linespace{
    width: 100%;
    height: 10px;
}

body.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f4f4;
    margin: 0;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    margin-top: 0px;
    margin-left: 10px;
    margin-left: 10px;

}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    border-color: #F6A200;
    text-align: center;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border: 3px solid #F6A200;
    display: flex;
    flex-direction: column; /* Stack vertically */
    align-items: center;     /* Center horizontally (optional) */
    gap: 1rem;               /* Optional spacing between sections */
}



.logo img {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.error {
    color: red;
    background: #ffecec;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid red;
    border-radius: 5px;
}
.input-group {
    text-align: left;
    margin-bottom: 15px;

    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.input-group label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}
.inputTime input{
    width: 93%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.inputTime {
    text-align: left;
    margin-bottom: 15px;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.inputTime label {
    display: block;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}
.date{
    width:100px;
    height: 5px;
    background-color : #f2f2f2;
    padding: 10px;
    border: 1px solid black;
    border-radius: 5px;
    font-size: 10px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color :#413cd3;
}
.input-group input{
    width: 95%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 12px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.drpSelector {
    all: unset;
    color: black;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    text-align: center;
    appearance: none;
    background: #f8d7da;
    border: none;
    border-bottom: 0px;
    display: block;
}

.logoschool {
    display: block;
    margin: 0 auto;
}

.frmButton{
    width: 100px;
    padding: 5px;
    background-color: #413cd3;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 10px;
    cursor: pointer;
}
.frmButton:Hover{
    background-color :#F6A200
}
.login-button {
    width: 100%;
    padding: 10px;
    background-color: #292768;
    color: white;
   
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;

    border: 2px solid #2d2463;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;


}
.login-button:hover {
    background-color: #F6A200;
}
.button-container {
  display: flex;
  justify-content: center;
  align-items: center;

}


.time-button {
    
    padding: 10px;
    background-color: #292768;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #2d2463;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}
.time-button:hover {
    background-color: #F6A200;
}

.footer {
    margin-top: 10px;
    font-size: 12px;
    color: #777;
}
.signature-section {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.signature {
    text-align: center;
    width: 45%;
}
.signature-line {
    margin-top: 50px;
    border-top: 1px solid black;
    width: 100%;
}
.signature-label {
    margin-top: 5px;
}
.print-btn {
    margin-top: 20px;
    display: block;
    text-align: center;
    border-radius: 5px;
}
.print-btn button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #F6A200;
    color: white;
    border: none;
    cursor: pointer;
}
.print-btn button:hover {
    background-color: #292768;
}
.table-container{
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-x: auto;
    margin-top: 20px;
    border: 2px solid black; /* Solid black outer border */
   

}
.error, .success {
            margin-bottom: 15px;
            padding: 10px;
            border-radius: 4px;
            text-align: center;
}
.error {
            background-color: #f8d7da;
            color: #721c24;
            text-align: center;
}
.success {
            background-color: #d4edda;
            color: #155724;
            text-align: center;
}



table {
    width: 100%;
    border-spacing: 0;
    border-collapse: separate; /* IMPORTANT for sticky headers to work */
    border-radius: 16px;
    
}


th, td {
    border: 1px solid #ccc; /* Soft inner gridlines */
    padding: 10px 8px;
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 10px;
    
}

/* Make table headers sticky row-by-row */
thead tr:nth-child(1) th {
    position: sticky;
    top: 0;
    background-color: #2d2463;
    color: #fff;
    z-index: 3;
}

thead tr:nth-child(2) th {
    position: sticky;
    top: 32px; /* adjust to match height of first row */
    background-color: #2d2463;
    color: #fff;
    z-index: 2;
}


td {
    background-color: #fff;
}

tr:nth-child(even) td {
    background-color: #f9f9f9;
}

tr:hover td {
    background-color: hsla(60, 77%, 85%, 0.991);
}


.month-btn {
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    border: 1px solid #2d2463;
    background-color: #f0f0f0;
    color: #2d2463;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}
.month-btn.selected {
    background-color: #F6A200 !important;
    color: white !important;
    font-weight: bold !important;
}
.month-btn:hover {
    background-color: orange !important;
}

tr:nth-child(even) {
    background-color: #f2f2f2;
}
tr:nth-child(odd) {
    background-color: white;
}
.approval-sections {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}
.clear-btn {
    margin-top: 10px;
}

.user-table {
    width: 80%;
    margin: auto;
    border-collapse: collapse;
}
.user-table th, .user-table td {
    position: sticky;
    top: 0;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

.user-table th {
    position: sticky;
    top: 0;
    background-color: #2d2463;
    color: #F6A200;
}

/* Style the last column */
.user-table th:last-child,
.user-table td:last-child {
    width: 80px; /* Adjust as needed */
    text-align: center;
}

.delete-btn {
    color: red;
    cursor: pointer;
}

.add-user-button {
    background-color: #2d2463;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 16px;
    cursor: pointer;
    border: 2px solid #2d2463;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}
.add-user-button:hover {
    background-color: #F6A200;
}


.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    text-align: center;
}
.modal-buttons {
    margin-top: 15px;
}
.modal-buttons button {
    margin: 0 10px;
}

body {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        background: #f9fafb;
        margin: 20px;
        color: #333;
    }
.holiday-cell {
    background-color: #cfcfcf !important;
    color: #cfcfcf;
    text-align: center;
    vertical-align: middle;
    padding: 5px;
    font-style: italic;
    user-select: none;
}
.report-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px; /* optional spacing */
    
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.report-logo {
    margin-bottom: 10px; /* spacing between logo and title */
}

.report-logo img {
    height: 70px;
    border-radius: 10px;
    object-fit: contain;
}

.report-title {
    font-weight: 700;
    font-size: 28px;
    color: #2d2463;
    user-select: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .report-title {
        font-size: 24px;
    }
}

.legend-container {
    display: flex;
    flex-wrap: wrap; /* allows wrapping if screen is narrow */
    gap: 12px; /* spacing between legend items */
    margin-top: 10px; /* optional */
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #444;
    font-weight: 600;
    user-select: none;
}
.legend-color {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}
.legend-AL { background-color: #dcd3c4; }
.legend-H  { background-color: #e0d6eb; }
.legend-S  { background-color: #e8e4cf; }
.legend-F  { background-color: #d5e1df; }
.legend-C  { background-color: #d1dff6; }
.legend-U  { background-color: #e7d9d5; }
.legend-M  { background-color: #F2FFB2; }
.legend-P  { background-color: #d0f0c0; }
.legend-A  { background-color: #f8d7da; }
.legend-PH {background-color: #cfcfcf;}
.legend-ST {background-color: #FFE1FA;}



.month-selector {
    margin-bottom: 15px;
    text-align: center;
}
.month-btn {
    background: transparent;
    border: 2px solid #2d2463;
    color: #2d2463;
    padding: 8px 18px;
    margin: 0 6px 10px 6px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    text-decoration: none;
    display: inline-block;
}
.month-btn:hover {
    background-color: #2d2463;
    color: white;
}
.month-btn.selected,
.month-btn:focus {
    background-color: #2d2463;
    color: white;
    outline: none;
    box-shadow: 0 0 8px #2d2463aa;
}

.week-selection-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.week-label {
    font-weight: 700;
    color: #2e2672;
    font-size: 16px;
    white-space: nowrap;
}

.week-date-input {
    padding: 8px 12px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #aaa;
    min-width: 95px;
    height: 15px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #2e2672;
    color: white;
    padding: 10px 18px;
    border-radius: 50px;
    border: none;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 2px 3px 8px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    font-size: 14px;
    height: 42px;
}

.action-btn:hover {
    background-color: #1e1a5e;
}

.action-btn i {
    font-size: 16px;
}
#actionButtons button {
    width: auto;
    min-width: 140px;
}

.top-download-buttons {
    padding: 10px;
    margin: 5px;
    cursor: pointer;
    border: 1px solid #2d2463;
    background-color: #f0f0f0;
    color: #2d2463;
    border-radius: 5px;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.top-download-buttons button {
    background-color: #2d2463;
    color: white;
    border: 2px solid #2d2463;
    border-radius: 50px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease;
}

.top-download-buttons button:hover {
    background-color: #F6A200;
}
.custom-select {
  min-width: 300px;
  position: relative;
  text-align: left;
  margin-bottom: 15px;

  display: flex;
  flex-direction: column;
}

.custom-select label {
  display: block;
  font-size: 14px; /* matches .input-group label */
  color: #555;
  margin-bottom: 5px;
}

.custom-select select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  width: 88%;
  font-size: 14px; /* match input font size */
  padding: 10px 2.5em 10px 1em; /* top/bottom padding = 10px to match input height */
  background-color: #fff;
  border: 1px solid #caced1;
  border-radius: 4px; /* soft rounding, like modern inputs */
  color: #000;
  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%207%205-7H0z%22%20fill%3D%22%23666%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 0.65em auto;
}

.custom-selectT {
  min-width: 300px;
  position: relative;
  text-align: left;
  margin-bottom: 15px;

  display: flex;
  flex-direction: column;
}

.custom-selectT label {
  display: block;
  font-size: 14px; /* matches .input-group label */
  color: #555;
  margin-bottom: 5px;
}

.custom-selectT select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  
  width: 98%;
  font-size: 14px; /* match input font size */
  padding: 10px 2.5em 10px 1em; /* top/bottom padding = 10px to match input height */
  background-color: #fff;
  border: 1px solid #caced1;
  border-radius: 4px; /* soft rounding, like modern inputs */
  color: #000;
  cursor: pointer;

  background-image: url("data:image/svg+xml,%3Csvg%20width%3D%2210%22%20height%3D%227%22%20viewBox%3D%220%200%2010%207%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%207%205-7H0z%22%20fill%3D%22%23666%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  background-size: 0.65em auto;
}
.checkbox-group {
    display: flex;
    justify-content: center;  /* Center the checkboxes horizontally */
    gap: 20px;                 /* Space between the two */
    grid-column: span 3;      /* Ensure it spans full width in the 3-column grid */
    margin: 1rem 0;           /* Spacing above and below */
}

.custom-checkbox {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-family: sans-serif;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #999;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
}

/* Optional tick mark style */
.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 6px;
    height: 12px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.staff-list {
    flex: 0 0 25%;
    background: #f9f9f9; /* keep your greyish background */
    border: 2px solid #f0c000;
    border-radius: 12px; /* slightly more rounded corners */
    padding: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); /* subtle elevation */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 400px;
    border: 2px solid gold;
    padding: 10px;
    height :fit-content;
}

.staff-list h2 {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 1rem;
    font-weight: 600;
}

.staff-list select {
    width: 100%;
    height: 113.4vh;
    font-size: 16px;
    padding: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.staff-list select:focus {
    border-color: #f0c000;
    box-shadow: 0 0 0 2px rgba(240, 192, 0, 0.2);
}


.staff-list select:focus {
    border-color: #f0c000;
    box-shadow: 0 0 0 2px rgba(240, 229, 184, 0.2);
}

.form-container.container { display: flex; max-width: 96%; margin: 0 auto; padding: 1rem; gap: 3px; align-items: center;}
.form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.form-grid .input-group input, .form-grid .input-group select { width: 80%; padding: 0.5rem; }
.form-grid .input-group.full-width { grid-column: span 2; }
.nav-buttons { display: flex; justify-content: space-between; margin-bottom: 1rem; }
.nav-buttons button, .mode-buttons button { padding: 0.5rem 1rem; font-size: 1rem; cursor: pointer; }
.mode-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 1rem; }
.disabled input, .disabled select { background: #eee; pointer-events: none; }

#main-box {
    display: flex;
    width: 100%;
   
}

.layout {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: flex-start;
}


.right-panel {
  display: flex;
  flex-direction: column;
  width: 71%;
  
}
.form-box,
.form-bottombox {

  border: 2px solid gold;
  padding: 10px;
  width: 100%;
  border-radius: 12px; /* slightly more rounded corners */
  align-items: right;
  justify-content: right;
}
.info-block {
  margin: 1rem auto;
}

.info-block h2 {
  color: #b8860b;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.info-row label {
  flex: 1;
  font-weight: 600;
  color: #5a4600;
}

.info-row input[type="text"] {
  flex: 0 0 150px;
  padding: 6px 8px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  font-weight: bold;
  color: #333;
  border-radius: 4px;
  text-align: right;
}

.value {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  border-radius: 4px;
  width: auto;
  box-sizing: border-box;
  font-family: inherit;
}




/* Hide buttons when printing */
@media print {
    .top-download-buttons {
        display: none;
    }
}
