*,
body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: Inter, sans-serif;
}

#facetime-main {
    width: 100%;
    min-height: 100vh;
    background-image: url("./background.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

#facetime-form {
    width: 760px;
    border-radius: 59px;
    border: 2px solid #4db9c5;
    background: radial-gradient(151.92% 127.02% at 15.32% 21.04%, rgba(77, 185, 197, 0.2) 0, rgba(56, 101, 172, 0.04) 77.08%, rgba(56, 101, 172, 0) 100%);
    backdrop-filter: blur(40px);
    padding: 40px;
}

#facetime-form .form-header {
    text-align: center;
    padding-bottom: 40px;
}

#facetime-form .form-header img {
    width: 205px;
    padding-bottom: 20px;
}

#facetime-form .form-header h1 {
    color: #fff;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
}

body.facetime-user-page .form-header {
    padding-bottom: 10px !important;
}

#facetime-form ul.tabs-nav {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f542;
    width: max-content;
    margin: 0 auto;
    border-radius: 50px;
    margin-bottom: 20px;
    padding: 5px;
}

#facetime-form ul.tabs-nav li {
    padding: 10px 25px;
    border-radius: 50px;
}

#facetime-form ul.tabs-nav li.tab-active {
    background: #fff;
}

#facetime-form ul.tabs-nav li a {
    text-decoration: none;
    color: #fff;
}

#facetime-form .tabs-stage>div {
    display: none;
}

#facetime-form .tabs-stage>div:first-child {
    display: block;
}

#facetime-form .tabs-nav li.tab-active a {
    pointer-events: none;
    color: #000;
}

.inline-actions button.edit-btn,
.inline-actions button.save-target-btn,
.inline-actions button{
    background: transparent !important;
    padding-left: 0px;
    padding-right: 0px;
}

/*.inline-actions button{*/
/*    padding-left: 0px !important;*/
/*}*/

.inline-actions button.delete-btn,
.inline-actions button.cancel-target-btn{
    background: transparent !important;
}

#facetime-form .tabs-stage h2 {
    color: #fff;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

#facetime-form .row-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    margin-bottom: 30px;
}

#facetime-form .row-group.target-row-group {
    grid-template-columns: repeat(4, 1fr);
    margin-top: 30px;
    gap: 30px;
}

#facetime-form .time-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

#facetime-form .row-input label {
    color: #fff;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
}

#facetime-form .row-input input,
#facetime-form .row-input select,
td input[type="text"],
td input[type="number"],
td input[type="date"] {
    margin-top: 10px;
    border-width: 0 0 1px;
    display: inline-flex;
    height: 50px;
    padding: 10px 0;
    align-items: center;
    width: 100%;
    background: 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    border-color: #4db9c5;
    position: relative;
    padding-left: 10px;
}

#facetime-form .row-input input:active,
#facetime-form .row-input input:focus,
#facetime-form .row-input select:active,
#facetime-form .row-input select:focus,
td input[type="text"]:focus,
td input[type="number"]:focus,
td input[type="date"]:focus,
td input[type="text"]:active,
td input[type="number"]:active,
td input[type="date"]:active {
    border-width: 0 0 1px;
    border-color: #4deeea;
    outline: 0;
    box-shadow: none;
}

#facetime-form .row-input input::-webkit-outer-spin-button,
#facetime-form .row-input input::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

#facetime-form .row-input input[type="number"],
input[type="number"] {
    -moz-appearance: textfield;
}

#facetime-form .row-input option {
    background-color: #fff;
    color: #000;
}

#facetime-form .row-input option:hover {
    background-color: #e0e0e0;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
}

datalist {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* You can style the options partially in Chrome (not in all browsers) */
option {
    padding: 8px;
    font-size: 15px;
}

#facetime-form .row-controls>span {
    width: 30px;
    height: 30px;
    background-color: #cdcdcd;
    font-size: 29px;
    border: none;
    border-radius: 50px;
    text-align: center;
    line-height: 27px;
    cursor: pointer;
}

#facetime-form .add-row {
    background-color: #eaaf0f !important;
    color: #fff;
}

#facetime-form input[type="submit"],
.facetime-table button {
    display: inline-flex;
    padding: 12px 30px 11px;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    background: #eaaf0f;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    position: absolute;
    right: 0.5rem;
    opacity: 1;
}

.edit-date-input input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    position: absolute;
    right: 0px;
    opacity: 1;
}

#facetime-form .time-row .row-input {
    width: 100%;
}

#facetime-form .row-input-notes {
    margin-bottom: 30px;
}

#facetime-form .row-search {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 50%;
    margin: 0 auto;
}

#facetime-form .row-search .row-input {
    flex: 1;
}

.facetime-table #facetime-form {
    width: 1024px;
    display: grid;
}

#facetime-form .facetime-table {
    margin-top: 30px;
}

.facetime-table {
    width: 100%;
    overflow-x: auto;
}

.facetime-table table {
    width: 100%;
    border-collapse: collapse;
}

.facetime-table th,
.facetime-table td {
    border-bottom: 1px solid #4db9c5;
    padding: 10px;
    text-align: left;
    color: rgb(255 255 255 / 80%);
}

.edit-all-users-depertment td {
    border-bottom: 0px;
}

.edit-all-users-depertment tr {
    border-bottom: 1px solid #4db9c5;
}

.edit-all-users-depertment th:nth-child(1),
.edit-all-users-depertment td:nth-child(1) {
    text-align: left;
    width: 25%;
}

.facetime-table.facetime-user-table th:nth-child(2), .facetime-table.facetime-user-table td:nth-child(2), .facetime-table.facetime-user-table th:nth-child(3), .facetime-table.facetime-user-table td:nth-child(3){
    width: 20%;
}

.facetime-table.facetime-user-table th:nth-child(4), .facetime-table.facetime-user-table td:nth-child(4) {
    width: 40%;
}

button#edit-users {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.facetime-table tbody td {
    font-size: 14px;
    padding: 10px 20px;
    text-align: center;
}

.facetime-table tbody tr:hover {
    background: #f5f5f542;
    cursor: pointer;
}

.facetime-table th {
    background: #f5f5f542;
    font-weight: 500;
    padding: 15px 20px;
    text-align: center;
    color: rgb(255 255 255 / 100%);
}

.facetime-table th:nth-child(1),
.facetime-table td:nth-child(1) {
    text-align: left;
}

.edit-all-users-depertment th:nth-child(2),
.edit-all-users-depertment td:nth-child(2),
.edit-all-users-depertment th:nth-child(3),
.edit-all-users-depertment td:nth-child(3),
.edit-all-users-depertment th:nth-child(4),
.edit-all-users-depertment td:nth-child(4) {
    width: 15%;
}

.edit-all-users-depertment td:nth-child(5) {
    text-align: right;
    padding-right: 10px;
}

.facetime-table th:nth-child(4),
.facetime-table td:nth-child(4) {
    width: 20%;
    white-space: normal;
    text-align: center;
}

.facetime-table th:nth-child(5),
.facetime-table td:nth-child(5) {
    text-align: center;
    width: 100%;
}

#facetime-form .checkbox-inputs {
    display: flex;
    align-items: center;
    /* justify-content: space-between; */
    margin-top: 20px;
    gap: 50px;
}

#facetime-form .checkbox-inputs label .edit-all-users-depertment label.user-checkbox {
    color: rgb(255 255 255);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0px;
    padding: 0px 0px 0px 25px;
}

#facetime-form .checkbox-area,
.edit-all-users-depertment label.user-checkbox {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.edit-all-users-depertment label.user-checkbox {
    padding-left: 0;
    margin-bottom: 0;
}

#facetime-form .checkbox-area input[type="checkbox"],
.edit-all-users-depertment label.user-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#facetime-form .checkbox-area .checkmark,
.edit-all-users-depertment label.user-checkbox .checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 15px;
    width: 15px;
    background-color: #eee;
    border-radius: 3px;
}


.edit-all-users-depertment label.user-checkbox .checkmark {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#facetime-form .checkbox-area:hover input[type="checkbox"]~.checkmark,
.edit-all-users-depertment label.user-checkbox:hover input[type="checkbox"]~.checkmark {
    background-color: #ccc;
}

#facetime-form .checkbox-area input[type="checkbox"]:checked~.checkmark,
.edit-all-users-depertment label.user-checkbox input[type="checkbox"]:checked~.checkmark {
    background-color: #eaaf0f;
}

#facetime-form .checkbox-area .checkmark:after,
.edit-all-users-depertment label.user-checkbox .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

#facetime-form .checkbox-area input:checked~.checkmark:after,
.edit-all-users-depertment label.user-checkbox input:checked~.checkmark:after {
    display: block;
}

#facetime-form .checkbox-area .checkmark:after,
.edit-all-users-depertment label.user-checkbox .checkmark:after {
    left: 5px;
    top: 1px;
    width: 3px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

#facetime-form .add-user {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}


div.edit-all-users-depertment.facetime-table {
    max-height: 370px;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #4db9c5 #00709e;
    padding-right: 5px;
}

div.edit-all-users-depertment.facetime-table thead {
    position: sticky;
    top: 0;
    z-index: 5;
    transition: background-color 0.3s ease, color 0.3s ease;
}

div.edit-all-users-depertment.facetime-table.scrolled thead {
    background: #fff;
}

div.edit-all-users-depertment.facetime-table.scrolled thead th,
div.edit-all-users-depertment.facetime-table.scrolled thead tr{
    color: #000;
}

div.edit-all-users-depertment.facetime-table::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

div.edit-all-users-depertment.facetime-table::-webkit-scrollbar-track {
    background: #00709e;
    border-radius: 50px;
}

div.edit-all-users-depertment.facetime-table::-webkit-scrollbar-thumb {
    background-color: #4db9c5;
    border-radius: 50px;
    border: 2px solid #00709e;
}

div.edit-all-users-depertment.facetime-table::-webkit-scrollbar-thumb:hover {
    background-color: #4db9c5;
}

div.edit-all-users-depertment.facetime-table::-webkit-scrollbar-corner {
    background: #00709e;
}

/* Log edit page css */
.facetime-log-edit {
    display: grid !important;
    border-radius: 59px;
    border: 2px solid #4db9c5;
    background: radial-gradient(151.92% 127.02% at 15.32% 21.04%, rgba(77, 185, 197, 0.2) 0, rgba(56, 101, 172, 0.04) 77.08%, rgba(56, 101, 172, 0) 100%);
    backdrop-filter: blur(40px);
    padding: 40px;
}

.form-header {
    text-align: center;
    padding-bottom: 40px;
}

.facetime-log-edit img {
    width: 205px;
    padding-bottom: 20px;
}

.form-header h1 {
    color: #fff;
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
}

.row-search-user-edit {
    display: flex;
    align-items: center;
    gap: 30px;
    width: 50%;
    margin: 0 auto;
    margin-bottom: 30px;
}

input.sok-user-input {
    display: inline-flex;
    padding: 12px 30px 11px;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    background: #eaaf0f;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
}

.sok-row-input {
    flex: 1;
}

.sok-user-name {
    margin-top: 10px;
    border-width: 0 0 1px;
    display: inline-flex;
    height: 50px;
    padding: 10px 0;
    align-items: center;
    width: 100%;
    background: 0 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    border-color: #4db9c5;
    position: relative;
    padding-left: 10px;
}

.sok-user-name option {
    background-color: #fff;
    color: #000;
}

tr.facetime-center td.search-init {
    text-align: center;
}



/* Mobile card style */
@media (max-width: 768px) {
    .facetime-table table {
        border: 0;
        min-width: unset;
    }

    .facetime-main-buttons {
        text-align: center;
    }

    .extra-btn {
        flex-wrap: wrap;
        gap: 10px;
    }

    tr.facetime-center {
        text-align: center;
    }

    tr.facetime-center td.search-init {
        display: inline-block;
    }

    .edit-all-users-depertment th:nth-child(1),
    .edit-all-users-depertment td:nth-child(1),
    .edit-all-users-depertment th:nth-child(2),
    .edit-all-users-depertment td:nth-child(2),
    .edit-all-users-depertment th:nth-child(3),
    .edit-all-users-depertment td:nth-child(3),
    .edit-all-users-depertment th:nth-child(4),
    .edit-all-users-depertment td:nth-child(4),
    .facetime-table.facetime-user-table th:nth-child(2), 
    .facetime-table.facetime-user-table td:nth-child(2), 
    .facetime-table.facetime-user-table th:nth-child(3), 
    .facetime-table.facetime-user-table td:nth-child(3), 
    .facetime-table.facetime-user-table th:nth-child(4), 
    .facetime-table.facetime-user-table td:nth-child(4)  {
        width: 100%;
    }

    #facetime-form .row-input input, #facetime-form .row-input select, td input[type="text"], td input[type="number"], td input[type="date"] {
        font-size: 12px;
    }

    div.edit-all-users-depertment.facetime-table {
        padding-right: 10px;
    }

    .edit-all-users-depertment label.user-checkbox {
        padding-left: 30px;
    }

    .facetime-table tbody td {
        padding: 10px 0px;
    }

    .inline-actions button {
        padding: 10px 25px;
        font-size: 12px;
    }

    .facetime-table th:nth-child(5),
    .facetime-table td:nth-child(5) {
        border: none;
        padding-bottom: 0px;
    }

    #facetime-form .row-group.target-row-group {
        grid-template-columns: repeat(2, 1fr);
    }

    .facetime-table thead {
        display: none;
        /* hide headers */
    }

    .facetime-table tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #4deeea;
        border-radius: 30px;
        padding: 10px;
    }

    .facetime-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: 0;
        border-bottom: 1px solid #4deeea;
        padding: 8px 5px;
    }

    .facetime-table td:last-child {
        border-bottom: 0;
    }

    .facetime-table td::before {
        content: attr(data-label);
        font-weight: bold;
        flex: 1;
        padding-right: 10px;
        color: #fff;
        text-align: left;
    }

    .facetime-table th:nth-child(4),
    .facetime-table td:nth-child(4) {
        width: 100%;
        text-align: right;
    }

    #facetime-form .checkbox-inputs {
        gap: 20px;
    }
}

@media (max-width: 820px) {
    #facetime-form .checkbox-inputs {
        gap: 20px;
    }
}

input.edit-old-entry-btn {
    padding: 12px 30px;
    margin-left: 10px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    color: #fff;
    background: #3B8EB8;
}

input.edit-back-page-btn {
    padding: 12px 30px;
    margin-left: 10px;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
    background: #f5f5f542;
    /*max-width: 185px;*/
}

.extra-btn {
    display: flex;
    justify-content: center;
}

@media only screen and (max-width: 575.98px) {
    #facetime-form {
        width: 100%;
        padding: 20px;
    }

    #facetime-form .form-header {
        padding-bottom: 20px;
    }

    #facetime-form .row-group {
        grid-template-columns: repeat(1, 1fr);
        gap: 20px;
        margin-bottom: 20px;
    }

    #facetime-form .row-input-notes {
        margin-bottom: 20px;
    }

    #facetime-form .row-search {
        gap: 20px;
        width: 85%;
    }

    #facetime-form .facetime-table {
        margin-top: 20px;
    }

    #facetime-main {
        padding: 20px;
    }

    #facetime-form .form-header h1 {
        font-size: 20px;
    }

    #facetime-form .row-input label {
        font-size: 14px;
    }

    #facetime-form .time-row {
        flex-wrap: wrap;
    }

    #facetime-form .time-row .row-input {
        width: 46%;
    }

    .facetime-table th:nth-child(4),
    .facetime-table td:nth-child(4) {
        width: 100%;
        text-align: right;
    }

    .status.error,
    .status.ok {
        margin-top: 0px !important;
    }

    .facetime-table.facetime-user-table td:nth-child(4) {
        text-align: left;
    }

    .edit-old-entry-btn {
        margin-top: 15px;
        margin-left: 0px;
    }

    #facetime-form .row-group.target-row-group {
        grid-template-columns: repeat(1, 1fr);
    }

    input.edit-back-page-btn {
        margin: auto !important;
    }
}

div#row-limit-error {
    background: #ff0000b3;
    color: #fff;
    padding: 5px 10px;
    font-size: 12px;
    margin-bottom: 20px;
    width: max-content;
    border-radius: 50px;
}

button.alert-close {
    display: none;
}

input.edit-old-entry-btn {
    padding: 12px 30px;
    margin-left: 10px;
    border: none;
    border-radius: 25px;
    font-size: 15px;
    color: #fff;
    background: #3B8EB8;
}

.success {
    padding: 10px;
    margin-bottom: 20px;
    background: #d99f01;
    border-radius: 4px;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.search-init {
    text-align: center;
}

@media all and (max-width: 340px) and (min-width: 100px) {
    #facetime-form input[type="submit"] {
        padding: 12px 18px 15px;
        font-size: 11px;
    }

    input.edit-old-entry-btn {
        padding: 12px 20px;
        font-size: 11px;
        margin-left: 0;
    }
}