@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

html {
    font-size: 16px;
    height: 100%;
}

input:focus,
textarea:focus {
    outline: none;
}

:root { 
    --mainColor: rgb(1, 151, 246);
    --darkColor: rgb(6, 93, 152);
    --extraDarkColor: rgb(10, 34, 57);

    --lightColor: rgb(194, 231, 255);
    --extraLightColor: rgb(230, 245, 255);
    
    --extraLightGrayColor: #f8fafc;  /* panel backgrounds */
    --lightGrayColor:     #f1f5f9;  /* zebra rows, soft fills */
    --grayColor:          #e2e8f0;  /* borders, dividers */
    --darkGrayColor:      #cbd5e1;  /* subtle outlines */
    --extraDarkGrayColor: #64748b;  /* secondary text */
    

    --redColor: rgb(239, 35, 60);
    --altRedColor: rgb(220, 30, 55);
    --lightRedColor: rgb(255, 199, 206);
    --darkRedColor: rgb(190, 35, 60);
    --extraLightRedColor: rgb(255, 224, 229);

    --extraLightAmber: #fff8e1;;   /* soft warm yellow (sunlight on white) */
 --lightAmber: #fff6db;   /* soft warm yellow (sunlight on white) */
--amber: #c47a00;       /* clean golden amber (not brown) */

    --extraLargeFont: 1.75rem;
    --largeFont: 1.25rem;
    --mediumFont: 1.1rem;
    --normalFont: 1rem;
    --smallFont: 0.8rem;
}

* {
    font-family: Nunito Sans;
    font-size: var(--normalFont);
}


body {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    /* background-color: var(--darkColor); */
}

.content-holder {
    padding: 30px;
    flex: 1;
    /* margin-top: 20px; */
    margin-left: 90px;
    overflow-x: auto;
}

tr, td, th{
    border: none;
    border-collapse: collapse;
    text-align: center;
}

table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    width: 100%;
    max-width: 99%;
}

/* Round the 4 outer corners of the table */
table tr:first-child th:first-child { border-top-left-radius: 8px; }
table tr:first-child th:last-child  { border-top-right-radius: 8px; }
table tr:last-child td:first-child  { border-bottom-left-radius: 8px; }
table tr:last-child td:last-child   { border-bottom-right-radius: 8px; }

th {
    background-color: var(--mainColor);
    font-size: var(--mediumFont);
    color: white;
}

.comments {
    width: 300px;
}

th, td{
    min-width: 120px;
    height: 30px;
}

tr {
    font-size: var(--normalFont);
    border: none;
}

td, th {
    font-size: var(--normalFont);
    border-left: 0.1px solid var(--grayColor);
    border-right: 0.1px solid var(--grayColor);
    border-top: none;
    border-bottom: none;
}


/* Only rows that can expand */
tr[data-has-expand="1"] td:first-child {
    position: relative;
    /* padding-left: 20px; */
}

/* Arrow */
tr[data-has-expand="1"] td:first-child::after {
    content: '▸';
    position: absolute;
    left: 15px;                 /* tight to left edge */
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75em;
    color: #888;
    transition: transform 0.2s ease, color 0.2s ease;
    pointer-events: none;
}

tr[data-has-expand="1"]:hover td:first-child::after {
    color: var(--mainColor);
}

/* Expanded state */
tr[data-has-expand="1"].row-open td:first-child::after {
    transform: translateY(-50%) rotate(90deg);
    color: #333;
}


td:first-child,
th:first-child {
    border-left: none;
}

td:last-child,
th:last-child {
    border-right: none;
}


.weekDay {
    background-color: var(--lightGrayColor);
    color: var(--extraDarkGrayColor);
}

.leaveDay-Row {
    background-color:var(--extraLightAmber);
    color: var(--amber);
}

/* Zebra striping – mobile & desktop unified */
tr:not(.isLate):not(.today):not(.leaveDay-Row):not(.weekDay):nth-child(even) {
  background-color: #f8fafc;   /* very light slate */
}

tr:not(.isLate):not(.today):not(.leaveDay-Row):not(.weekDay):nth-child(odd) {
  background-color: #ffffff;  /* keep pure white */
}

/* Hover LAST */
tr:not(.isLate):not(.today):not(.leaveDay-Row):not(.weekDay):hover {
    background-color: var(--lightColor);
    box-shadow: inset 4px 0 0 var(--mainColor);
}

tr[data-has-expand="1"] td {
    cursor: pointer;
    /* transition: background-color 0.15s ease; */
}

/* tr[data-has-expand="1"]:hover td {
    background-color: var(--lightGrayColor);
} */

.publicHoliday-td {

    cursor: help;
    position: relative;
}

.publicHoliday-td:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    
    background-color: var(--extraDarkColor);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    
    font-size: 0.75em;
    font-weight: normal;
    
    opacity: 1;
    pointer-events: none;
    z-index: 1000;
}

.publicHoliday-td:hover::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    
    border-width: 6px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}



.today {
    background-color: var(--lightColor);
    box-shadow: inset 4px 0 0 var(--mainColor);
}

/* Base late cell */
tr td.isLate {
  background-color: var(--redColor);
  color: white;
}

/* Alternate every second ROW */
tr:nth-child(even) td.isLate {
  background-color: var(--altRedColor);
}

.date-holder {
    margin-bottom: 10px;
}

.optionBox {
    text-align: center;
    width: 150px;
    height: 30px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.optionBox-person {
    margin-bottom: 10px;
    text-align: left;
    height: 30px;
    box-sizing: border-box;
    font-size: var(--largeFont);
    color: var(--mainColor);
    font-weight: bold;
    border-style: none;

}

.yearInput {
    height: 30px;
    text-align: center;
    width: 70px;
    box-sizing: border-box;
}

.commentField {
  width: 98.5%;
  height: 2em;
  border: none;
}

.comment-button {
    font-size: 13px;
    border-style: none;
    background-color:rgba(0, 0, 0, 0);
}

.comment-button:hover {
    color: var(--mainColor);
    /* font-weight: bold; */
    cursor: pointer;
}

.delete-button {
    border-style: none;
    min-width: 100px;
    padding-top: 8px;
    padding-bottom: 8px;
    
    border-radius: 2px;
    background-color: white;
    color: var(--redColor);
    border-style: solid;
    border-width: 1px;
    border-color: var(--redColor);
}

.delete-button:hover {
    cursor: pointer;
    background-color: var(--redColor);
    color: white;
    border-style: solid;
    border-width: 1px;
    border-color: var(--redColor);
    
}

.commentText {
    display: inline;
    padding: 0;
    margin: 0;
    text-align: center;
}

.commentTextArea:focus {
    border-color: var(--mainColor);
}

.commentLabel {
    position: relative;
    font-size: var(--smallFont);
}

.commentLabel:hover {
    color: var(--mainColor);
    cursor: pointer;
}

.commentLabel:hover::after {
    opacity: 1;
    transition: opacity 0.2s ease-in;
}

.commentLabel::after {
    content: attr(data-tip);
    position: absolute;

    left: calc(100% + 5px);
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--extraDarkColor);
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: var(--smallFont);
    text-align: left;
    min-width: 80px; 
    /* max-width: 350px;
    white-space: normal;
    word-break: normal; 
    overflow-wrap: break-word; */

    box-shadow: rgba(0,0,0,0.2) 0px 4px 10px;

    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.1s linear;
}

.popUpForm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(14, 20, 40, 0.4);
    z-index: 1000;
}

.popUpForm-Comment-div {
    background-color: white;

    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 20px 20px 10px;

    border: 2px solid var(--mainColor);
    border-radius: 5px;

    width: min(520px, 90vw);
    box-sizing: border-box;

    height: auto;    
    max-height: 90vh;
}


.managementCommentHeading {
    font-size: var(--largeFont);
    color: var(--mainColor);
    font-weight: bold;
    /* margin-left: 20px; */
}

.commentTextArea {
    box-sizing: border-box;
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 20px;
    min-width: 0; 
    min-height: 200px;
    resize: none;
    margin-bottom: 5px;
    border-radius: 3px;
}

.button-div-popup {
    margin-top: 1px;
    display: flex;
    text-align: center;
    justify-content: center;
}

.popUp-ButtonHolder {
    display: flex;
    justify-content: space-around;
    width: 215px;
}

.comment-block {
    text-align:justify;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 15px;
}

.reason-table-heading {
    color: var(--darkColor);
    font-size: small;
    font-weight: bold;
}

.reason-table-text {
    font-size: var(--smallFont);
    margin: 0px;
}

.comments-content {
    display: none;
    /* margin-top: 8px; */
}

.toggle-comments {
    margin-top: 5px;
    margin-bottom: 5px;
    background: none;
    border: none;
    color: var(--mainColor);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0;
}

.toggle-comments:hover {
    text-decoration: underline;
}


nav {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: white;
    height: 100vh;
    align-self: stretch;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 2px 12px;
    margin-right: 25px;
    position: fixed;
    z-index: 800;
}

.nav-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-icon-label {
    position: relative;
    align-items: center;
    display: flex;
    /* border-radius: 10px; */
    justify-content: center;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 20px;
    padding-right: 20px;

}

.nav-icon-label:hover {
    background-color: var(--lightGrayColor);
    cursor: pointer;
}

.nav-icon-svg {
    width: 40px;
}

/* Tool Tip */
.nav-icon-label:hover::after {
    opacity: 1;
    transition: opacity 0.2s ease-in;
}

.nav-icon-label::after {
    content: attr(data-tip);
    position: absolute;

    left: calc(100% + 5px);   /* 👉 move to the right of icon */
    top: 50%;
    transform: translateY(-50%);

    background-color: var(--extraDarkColor);
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: rgba(0,0,0,0.2) 0px 4px 10px;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.1s linear;
}

.form-text-input-email {
    box-sizing: border-box;
    height: 30px;
    width: 370px;
}

.form-text-input-name {
    box-sizing: border-box;
    height: 30px;
    width: 180px;
}

.input-section {
    margin-bottom: 0px;
}

.form-text-input-email, .form-text-input-name {
    padding-top: 15px;
    padding-bottom: 15px;
    padding-left: 8px;

    margin-bottom: 10px;
    /* border-color: var(--darkGrayColor); */
    border-style: solid;
    border-radius: 2px;
    border-width: 1px;
    
}

.form-text-input-name::placeholder, .form-text-input-email::placeholder {
    color: var(--grayColor);
}

.block-holder {
    margin-top: 20px;
    border: solid;
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    display: inline-flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    border-radius: 5px;
    border-color: var(--mainColor);
    min-height: fit-content;
    padding-bottom: 15px;
}

.block-holder-popup {
    display: flex;
    justify-self: center;
    border: solid;
    padding: 20px;
    display: block;
    border-radius: 5px;
    border-color: var(--mainColor);
    background-color: white;
    max-height: fit-content;             
    max-width: 340px;
    box-sizing: border-box;
}

.block-header {
    display: block;
    font-size: var(--largeFont);
    color: var(--mainColor);
    margin: 0px;
    margin-bottom: 10px;
}

.form-button {
    border-style: none;
    background-color: var(--mainColor);
    min-width: 100px;
    padding-top: 8px;
    padding-bottom: 8px;
    color: white;
    border-radius: 2px;
}

.stamp-button {
    border-style: none;
    background-color: var(--mainColor);
    padding-top: 4px;
    padding-bottom: 4px;
    color: white;
    border-radius: 2px;
}

.form-button:hover, .stamp-button:hover {
    background-color: var(--darkColor);
    cursor: pointer;
}

.form-error-message {
    display: block;
    color: var(--redColor);
    font-size: var(--smallFont);
}

  .error {
    display: block;
    color: var(--redColor);
    font-size: 0.9rem;
    margin-top: 6px;
    min-height: 1.2em;
  }

.staff-radio {
    display: none;
}

.staff-radio-block {
    display: block;
    margin-bottom: 5px;
    border-style: none;
    background-color: var(--lightGrayColor);
    width: 300px;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 12px;
    border-radius: 2px;
}

.staff-radio-block:hover {
    background-color: var(--lightColor);
    box-shadow: inset 4px 0 0 var(--mainColor);
    cursor: pointer;
}

.staff-radio:checked + .staff-radio-block {
    background-color: var(--mainColor);
    box-shadow: inset 4px 0 0 var(--mainColor);
    color: white;
}

.button-icon {
    width: 15px;
    height: 15px;
}

.form-button-circle {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-style: none;
    background-color: var(--mainColor);
    padding: 8px;
    color: white;
    border-radius: 100%;
    z-index: 1;
}

.form-button-circle:hover, .staff-info-button:hover {
    background-color: var(--darkColor);
    cursor: pointer;
}

.block-header-staff {
    display: inline;
    font-size: var(--largeFont);
    color: var(--mainColor);
    margin: 0px;
    padding: 0px;
}

.staffblock-top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.staffblock-bottom {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}


.form-button-circle::after {
    content: attr(data-tip);
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--extraDarkColor);
    color: white;
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    box-shadow: rgba(0,0,0,0.2) 0px 4px 10px;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.1s linear;
}

.form-button-circle:hover::after {
    opacity: 1;
}

.small-gray-text {
    margin-top: 10px;
    color: var(--extraDarkGrayColor);
    font-size: var(--smallFont);
}

.staffmanagment-holder {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.block-holder-staff {
    margin-top: 20px;
    margin-left: 25px;
    border: solid;
    padding-left: 20px;
    padding-top: 20px;
    padding-right: 10px;
    display: inline-flex;
    justify-content: flex-start;
    align-items: stretch;
    flex-direction: column;
    border-radius: 5px;
    border-color: var(--grayColor);
    height: fit-content;
    padding-bottom: 20px;
    max-width: 480px;
}

.staff-info-name-header {
    display: block;
    font-size: var(--largeFont);
    color: var(--mainColor);
    margin-top: 10px;
    margin-bottom: 0px;
}

.small-gray-role-text {
    color: var(--extraDarkGrayColor);
    font-size: var(--normalFont);
}

.staff-info-button-div {
    margin-top: 22px;
    margin-bottom: 24px;
}

.staff-info-button {
    border-style: none;
    background-color: var(--mainColor);
    min-width: 100px;
    padding: 6px 10px;
    color: white;
    border-radius: 2px;
    margin-right: 4px;
}

.staff-info-button-red {
    min-width: 100px;
    padding: 6px 10px;
    margin-right: 4px;

    border-radius: 2px;
    background-color: white;
    color: var(--redColor);
    border-style: solid;
    border-width: 1px;
    border-color: var(--redColor);
}

.staff-info-button-red:hover {
    background-color: var(--redColor);
    color: white;
    cursor: pointer;
}

.staff-info-contact-div {
    background-color: var(--extraLightGrayColor);
    padding: 10px 15px;
    border-radius: 3px;
    max-width: 400px;
    border: solid;
    border-width: 2px;
    border-right: none;
    border-top: none;
    border-bottom: none;
    border-color: var(--grayColor);
}



.highlight-span {
    color: var(--darkColor);
    font-weight: bold;
}

.contact-p {
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 0px;
}

.squares-holder {
    display: flex;
    flex-direction: row;
}

.square-block {
    width: 96px;
    aspect-ratio: 1/1;
    border-color: var(--mainColor);
    border-width: 1px;
    border-style: solid;
    border-radius: 8px;
    margin-right: 12.5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.small-text-square-block {
    color: var(--mainColor);
    font-weight: bolder;
    font-size: var(--smallFont);
    margin: 0px;
}

.large-text-square-block {
    color: var(--darkColor);
    font-size: var(--extraLargeFont);
    font-weight: bolder;
    margin: 0px;
}

.squares-header {
    display: block;
    font-size: var(--largeFont);
    color: var(--mainColor);
    margin-top: 0px;
    margin-bottom: 10px;
}

.staff-input {
    border-style: solid;
    border-radius: 5px;
    border-width: 1px;
    border-color: var(--mainColor);
    margin-bottom: 10px;
    padding: 5px;
    min-width: 250px;
}

.edit-staff-form {
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.dark-color {
    color: var(--darkColor);
}

.info-panel-heading {
    font-size: var(--largeFont);
    font-weight: bold;
    color: var(--mainColor);
}

/* Dashboard */
.entire-block-dashboard {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* was space-between */
}

.dashboard-holder {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 650px;
}

.in-out-person {
    display: block;
    margin-bottom: 5px;
    border-style: none;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 12px;
    border-radius: 2px;
}

.in-out-person.on-leave-colors {
    color: var(--amber);
    background-color: var(--lightAmber);
}

.in-out-person.on-leave-colors .timeout-dashboard {
    color: var(--amber);
}

.in-out-person.on-leave-colors:hover {
    box-shadow: inset 4px 0 0 var(--amber);
}

.in-out-person.in-person.clockedOut-colors {
    background: var(--lightGrayColor);
    /* color: var(--darkGrayColor); */
}

.in-out-person.in-person.clockedOut-colors:hover {
    box-shadow: inset 4px 0 0 var(--darkGrayColor);
}

.in-person {
    background-color: var(--lightColor);
    color: var(--darkColor);
}


.in-person:hover {
    box-shadow: inset 4px 0 0 var(--mainColor);
}

.out-person {
    background-color: var(--lightRedColor);
    color: var(--darkRedColor);
}

.out-person:hover {
    cursor: pointer;
    box-shadow: inset 4px 0 0 var(--redColor);

}

.timein-dashboard {
    font-size: var(--smallFont);
    color: var(--darkColor);
}


.timeout-dashboard {
    font-size: var(--smallFont);
    color: var(--darkRedColor);
}

.block-holder-dashboard {
    border: solid;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    border-color: var(--mainColor);
    width: 450px;
    margin-right: 20px;
}

.block-holder-today-overview {
    background-color: var(--extraLightGrayColor);
    padding: 20px 10px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    border: solid;
    border-radius: 5px;
    border-color: var(--grayColor);    border: solid;
    border-radius: 5px;
    border-color: var(--grayColor);
    width: 550px;
    height: 150px;
    /* margin-left: 20px; */
}

.late-pill {
    font-size: var(--smallFont);
    color: var(--redColor);
}

.clock-in-body {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
}

.clock-in-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.clock-in-radio-holder {
    display: flex;
    margin-top: 10px;
    margin-bottom: 20px;
    justify-content: space-between;
    width: 250px;

}

.clock-in-radio {
    background-color: var(--mainColor);
    color: white;
    width: 120px;
    padding-top: 15px;
    padding-bottom: 15px;

    text-align: center;
    font-size: var(--largeFont);
    font-weight: 700;
}
.pin-input {
    width: 55px;
    height: 50px;
    box-sizing: border-box;
    border-color: var(--mainColor);

    text-align: center;
    line-height: 50px;
    color: var(--darkColor);
    font-size: 28px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;

    padding: 0;
    margin-right: 8px;

    display: inline-block;
    vertical-align: middle;
}

.clock-in-radio:hover {
    background-color: var(--darkColor);
    color: white;
    cursor: pointer;
}

.clock-radio-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

.clock-in-radio:has(.clock-radio-input:checked) {
    background-color: var(--darkColor);
    color: white;
}

.pin-input {
    text-indent: 0;
}

.clock-in-tool, .clock-in-tool-pin {
    color: var(--mainColor);
}

.clock-in-tool-pin {
    margin-bottom: 10px;
}

.clock-in-button {
    margin-top: 20px;
    font-size: var(--largeFont);
}

.reasonPopup {
    width: 80vw;
}

.textReason {
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
    padding: 10px;
    resize: vertical;
}

.clock-in-late {
    color: var(--darkColor);
}

.success-block {
    position: fixed;
    z-index: 100;
    max-width: 250px;
    min-width: 280px;
    padding: 10px;
    margin-bottom: 15vh;
    background-color: var(--lightColor);
    border-style: solid;
    border-color: var(--mainColor);
    border-width: 2px;
    border-radius: 5px;
    color: var(--extraDarkColor);
    text-align: center;
}

.success-heading {
    margin: 0px;
    color: var(--mainColor);
}

.success-p {
    margin: 0px;
    
}

.success-bold-time {
    font-weight: bold;
    color: var(--mainColor);
}

.success-block {
    animation: fadeSlideOut 3.5s ease-in-out 5s forwards;
}

/* Admin Page */

body.admin-login-page {
    display: block;
}

.admin-login-in-body {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* horizontal */
    align-items: center;      /* vertical */
    min-height: 100vh;        /* full viewport height */
}

.admin-login-entire-form-holder {
    display: flex;
    justify-content: center;
    flex-direction: column;
    border: solid;
    border-color: var(--mainColor);
    border-radius: 4px;
    border-width: 1px;
    padding: 50px 25px;
    
}

.admin-login-form {
    display: flex;
    flex-direction: column;
    padding-left: 15px;
    padding-right: 15px;
}

.admin-login-input {
    font-size: var(--normalFont);
    border-color: var(--mainColor);
    border-style: solid;
    border-radius: 4px;
    border-width: 1px;
    padding: 5px;
    width: 250px;
    margin-bottom: 10px;
}

.admin-login-label {
    color: var(--mainColor);
}

.admin-login-header {
    font-size: var(--largeFont);
    color: var(--mainColor);
    margin: 0px;
    margin-bottom: 10px;
    text-align: center;
}

.admin-error {
    color: var(--redColor);
    font-size: var(--smallFont);
    text-align: center;
    margin-bottom: 10px;
}

.block-holder-wide {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 20px;
    border: 2px solid var(--mainColor);
    border-radius: 5px;
    background-color: white;

    max-width: 670px;
    width: 90%;
    box-sizing: border-box;
}

.popUp-logout {
    z-index: 999;
    min-height: 140px;
    width: 325px;
}

.popUp-logout h3 {
    text-align: center;
    font-size: var(--mediumFont);
    color: var(--mainColor);
}

.dashboard-popup {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: absolute;
    top: -10px;   
    left: 250px;
    background-color: white;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
    border: 1px solid var(--mainColor);
    border-radius: 5px;
    width: 220px;
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: var(--smallFont);
    z-index: 200; 
    display: block;        
}

.in-out-person.in-person:hover .dashboard-popup {
    opacity: 1;
}

.in-out-person.in-person {
    position: relative;
    cursor: pointer;
}

.dashboard-popup h4 {
    color: var(--mainColor);
    margin-top: 5px;
    margin-bottom: 5px;
    font-size: var(--smallFont);
}

.dashboard-popup p {
    margin: 0px;
    font-size: var(--smallFont);
}

.dashboard-popup div {
    margin-bottom: 20px;
}

.leaveTextArea {
    min-height: 80px;
    width: 100%;
    margin-bottom: 10px;
    margin-left: 0px;
}

.smallerheading {
    display: block;
    margin-top: 15px;
    margin-bottom: 0px;
    font-size: var(--normalFont);
}

.leave-radio-holder {
    padding: 0px;
    margin: 0px;
    margin-bottom: 15px;
}

.leave-popup-div {
    /* height: 340px; */
     width: min(450px, 80vw);
}

.doctor-radio-holder {
    margin-right: 10px;
    padding: 0;
    width: auto;
    border-radius: 3px;
    border: none;
    background: transparent;
}

/* hide radio */
.doctor-radio-holder input {
    display: none;
}

/* span is the button */
.doctor-radio-holder span {
    display: block;
    padding: 4px 0;
    min-width: 45px;
    text-align: center;
    border-radius: 3px;
    border-style: solid;
    border-width: 1px;
    border-color: var(--extraDarkGrayColor);
    background-color: white;
    color: var(--extraDarkGrayColor);
}

/* hover */
.doctor-radio-holder:hover span {
    background-color: var(--mainColor);
    border-color: var(--mainColor);
    color: white;
    cursor: pointer;
}

.doctor-radio-holder input[type="radio"]:checked + span {
    background-color: var(--mainColor);
    color: white;
    /* font-weight: bold; */
    border-color: var(--mainColor);
}

.doctorsNote-Holder {
    margin-top: 15px;
}
.doctorsNoteHeading {
    margin-top: 0px;
}

.return-link-anchor {
    color: var(--mainColor);
}

.dateHeadingPopUp {
    font-size: var(--smallFont);
    margin-top: 0px;
    font-weight: normal; 
    color: var(--extraDarkGrayColor);
}

.numberOfDaysLeaveInput {
    width: 45px;
}

.leave-date-start,
.leave-date-end {
    margin-top: 4px;
    line-height: 1.3;
}

.leave-radio-holder {
    display: flex;
    flex-direction: row;
    margin-bottom: 15px;
}

.day-type-toggle {
    display: inline-flex;
    border: 1px solid var(--extraDarkGrayColor);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.day-type-toggle label {
    cursor: pointer;
}

.day-type-toggle span {
    padding: 8px 14px;
    display: block;
    background: #f9fafb;
    color: #374151;
}

.day-type-toggle input {
    display: none;
}

.day-type-toggle input:checked + span {
    background: var(--lightColor);
    color: var(--mainColor);
    font-weight: 600;
}

.leave-error {
    color: var(--darkColor);
}

.leave-personheading {
    font-size: var(--mediumFont);
    color: var(--darkColor);
    margin-top: 0px;
    margin-bottom: 15px;
}

.popupDetails-subheading {
    color: var(--mainColor);
    font-weight: bold;
}

.popupDetails-p {
    margin: 0;
}

.leave-p-color {
    color: var(--mainColor);
    
}

.leave-dates {
    margin-top: 18px;
}

.leave-date-range {
    line-height: 1.4;
    font-size: var(--normalFont);
    font-weight: 600;
    color: var(--darkColor);
}

.leave-duration {
    font-size: 14px;
    color: var(--extraDarkGrayColor);
    margin-top: 8px;
}

.leave-comment-block {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.leave-comment-label {
    letter-spacing: 0.04em;
    
    font-size: var(--normalFont);
    color: var(--mainColor);
    font-weight: bold;
}

.leave-comment-text {
    line-height: 1.55;
    max-width: 520px;
    font-size: var(--normalFont);
    line-height: 1.4;
    white-space: pre-wrap; /* important for multi-line comments */
}

.leave-badges {
    margin-top: 14px;
    margin-bottom: 18px;
}

.punctuality-badges {
    margin-top: 10px;
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: var(--smallFont);
    border-radius: 20px;
    font-weight: 500;
}

.badge-family {
    background: var(--extraLightColor);
    color: var(--mainColor);
}

.badge-annual {
    background: #e6f4ea;   /* soft green tint */
    color: #1f7a3f;        /* muted green */
}

.badge-good {
    background: #e6f4ea;   /* soft green tint */
    color: #1f7a3f;        /* muted green */
}

.badge-bad {
    background: var(--extraLightRedColor);   /* light rose */
    color: var(--darkRedColor);        /* deep muted red */
}

.badge-sick {
    background: var(--extraLightRedColor);   /* light rose */
    color: var(--darkRedColor);        /* deep muted red */
}

.badge-unpaid {
    background: #f1f5f9;
    color: #475569;
}

.badge-halfday {
    background: #fff7ed;   /* soft amber */
    color: #9a3412;        /* warm brown */
}


.popUpForm-Comment-div, .block-holder-popup {
    animation: fadeInScale 0.15s ease-out;
}

.extraspaceforbuttons {
    margin-top: 15px;
    margin-bottom: 10px;
}

.download-timesheet-button {
    margin-bottom: 20px;
    border-style: solid;
    border-radius: 2px;
    border-color: var(--darkColor);
    border-width: 1px;
    color: var(--darkColor);
    background-color: white;
    transition: 0.15s;
}

.download-timesheet-button:hover {
    cursor: pointer;
    background-color: var(--darkColor);
    color: white;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}


@keyframes fadeSlideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
        visibility: hidden;
    }
}
