/* =========================================
   Attendance Checklist Form Styling ([take_attendance])
   ========================================= */
.mat-attendance-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 20px 0;
    background: #ffffff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    color: #1d2327;
}


.mat-form-group-top {
    margin-top: 0;
}

.mat-date-input {
    margin-top: 5px;
    width: 100%;
    padding: 6px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    box-sizing: border-box;
}

.mat-member-list {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #cccccc;
    padding: 12px;
    margin-bottom: 20px;
    background: #fafafa;
}

.mat-member-item {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.mat-member-checkbox {
    margin-right: 8px;
}

.mat-member-role {
    color: #50575e;
    font-size: 0.9em;
}

.mat-form-group-bottom {
    margin-bottom: 0;
    text-align: center !important;
}

.mat-submit-btn {
    padding: 8px 24px;
    cursor: pointer;
    display: inline-block !important;
    margin: 0 auto !important;
    float: none !important;
}

.mat-attendance-status {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}


.mat-submit-btn {
    padding: 6px 16px;
    cursor: pointer;
}

.mat-attendance-status {
    margin-left: 15px;
    font-weight: bold;
}

.mat-error-msg {
    color: #d63638;
    font-weight: bold;
}

/* =========================================
   Excel-Style Spreadsheet Output Styling ([view_attendance])
   ========================================= */
.mat-excel-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid #8c8c8c;
    box-sizing: border-box;
    font-family: Calibri, Arial, sans-serif;
    font-size: 14px;
}

.mat-excel-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    color: #000000;
    margin: 0;
}

.mat-excel-table th,
.mat-excel-table td {
    border: 1px solid #bfbfbf;
    padding: 6px 10px;
    white-space: nowrap;
}

.mat-excel-table th:last-child,
.mat-excel-table td:last-child {
    border-right: 1px solid #8c8c8c;
}

.mat-excel-table thead th {
    background-color: #217346;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    border-color: #185c37;
    vertical-align: bottom;
}

.mat-excel-table thead th.mat-name-col {
    text-align: center !important;
    vertical-align: middle !important;
    position: sticky;
    left: 0;
    z-index: 2;
    background-color: #185c37;
    border-right: 1px solid #bfbfbf !important;
}



.mat-excel-table thead th.mat-date-col {
    padding: 10px 6px;
}

.mat-date-vertical {
    writing-mode: sideways-lr;
    writing-mode: vertical-lr;
    transform: rotate(180deg) !important;
    -webkit-transform: rotate(180deg) !important;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.2;
}

.mat-excel-table tbody td.mat-name-cell {
    font-weight: 600;
    background-color: #f2f2f2;
    text-align: left;
    position: sticky;
    left: 0;
    z-index: 1;
    border-right: 2px solid #8c8c8c;
}

.mat-excel-table tbody tr:hover td {
    background-color: #e8f4ed;
}

.mat-excel-table tbody td.mat-score-cell {
    text-align: center;
    font-weight: bold;
}

/* Total Hours Column */
.mat-excel-table thead th.mat-total-col {
    background-color: #185c37;
    text-align: center;
    padding: 10px 6px;
    border-right: 2px solid #8c8c8c;
}


.mat-excel-table tbody td.mat-total-cell {
    text-align: center;
    font-weight: bold;
    background-color: #f9f9f9;
    border-right: 2px solid #8c8c8c;
}

/* Previous Hours Admin Inputs */
.mat-previous-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #eeeeee;
}

.mat-previous-input {
    width: 90px;
    padding: 4px 8px;
    text-align: right;
}

/* Far-Right Previous Column in [view_attendance] */
.mat-excel-table thead th.mat-previous-col {
    background-color: #185c37;
    text-align: center;
    padding: 10px 6px;
    border-left: 2px solid #8c8c8c;
}

.mat-excel-table tbody td.mat-previous-cell {
    text-align: center;
    font-weight: bold;
    background-color: #f9f9f9;
    border-left: 2px solid #8c8c8c;
}

/* Export to CSV Button */
.mat-export-bar {
    margin: 15px 0 10px 0;
    text-align: right;
}

.mat-export-btn {
    display: inline-block;
    background-color: #217346;
    color: #ffffff !important;
    padding: 8px 16px;
    text-decoration: none !important;
    font-family: Calibri, Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    border: 1px solid #185c37;
}

.mat-export-btn:hover {
    background-color: #185c37;
}
