@font-face {
    font-family: "Kanit-Regular";
    src: url("../font/Kanit-Regular.eot") format("embedded-opentype"),
        url("../font/Kanit-Regular.woff") format("woff"),
        url("../font/Kanit-Regular.ttf") format("truetype"),
        url("../font/Kanit-Regular.svg") format("svg");
    font-weight: normal;
    font-style: normal;
}

:root {
    /*--- Color ---*/
    --theme: #ff983d;
    --theme-light: #f2d9c2;
    --theme-dark: #cc6911;
    --secondary: #f2f0e4;
    --secondary-light: #fbf6f3;
    --red: #e1372d;
    --red-pastel: #e56e5e;
    --red-pastel-dark: #b65346;
    --red-light: #fdd9d6;
    --green: #4aa76f;
    --green-light: #e2fae6;
    --td-border: #d4d0ce;
    --white: #ffffff;
    --font-color: #363636;
    --font-gray: #878787;
    --font-nonselect: #bbbbbb;
    --font-yellow: #ffd23d;
    --font-orange: #ffaf38;
    --insert-botton: #feca7a;
    --insert-botton-dark: #dda148;
    --bg-table: #fff5e6;
    --border-table: #e2d0cc;
    --bg-th-color: #ffcd84;
    --bg-role-color: #ffecd8;
    --txt-lemon: #bed65c;
    --txt-blue: #857ccc;
    --txt-mint: #5db996;

    /* linear-gradient */
    --btn-theme: linear-gradient(45deg, var(--theme) 0%, #faba89 100%);
    /* logs */
    --logs-blue: #437dd4;
    --logs-blue-light: #c7ebff;
    --logs-purple: #7e1e91;
    --logs-purple-light: #e8c7ff;
    --logs-green: #0e8912;
    --logs-green-light: #b7ffb7;
    --logs-red: #aa2f2d;
    --logs-red-light: #ffcdc6;

    /*--- Font Size ---*/
    --font-xsmall: 12px;
    --font-small: 14px;
    --font-p: 16px;
    --font-h5: 20px;
    --font-h4: 18px;
    --font-h3: 20px;
    --font-h2: 22px;
    --font-h1: 30px;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: "Kanit-Regular", sans-serif !important;
    font-size: var(--font-p);
    color: var(--font-color);
    padding-top: 125px;
    padding-bottom: 45px;
    margin-bottom: 0px;
    background: linear-gradient(
        165deg,
        rgb(239 236 234 / 70%) 63%,
        rgb(236 230 225 / 80%) 64%
    );

    background-size: 100%;
    background-position: top;
    position: relative;
    height: auto;
    min-height: 99vh;
    overflow-x: hidden;
    letter-spacing: 0.02rem;
}
body:before,
body:after {
    content: "";
    position: absolute;
    display: inline;
    z-index: 0;
    border-radius: 100%;
    filter: blur(100px);
}

h1 {
    font-size: var(--font-h1);
}
h2 {
    font-size: var(--font-h2);
}
h3 {
    font-size: var(--font-h3);
}
h4 {
    font-size: var(--font-h4);
}
h5 {
    font-size: var(--font-h5);
}

p,
label,
a,
button,
.btn {
    font-size: var(--font-p);
}

.small {
    font-size: var(--font-small);
}

h1,
h2,
h3,
h4,
h5,
p,
label {
    margin-bottom: 5px;
}
h1,
h2,
h3,
h4 {
    font-weight: bold;
}
h5 {
    font-weight: normal;
    /* color: var(--theme); */
}
hr {
    color: var(--font-gray);
}
a {
    color: var(--theme);
    text-decoration: none;
    transition: all ease 0.3s;
    cursor: pointer;
}
a:hover {
    color: var(--theme-dark);
}

.txt-success {
    color: var(--green);
}
.txt-failed {
    color: var(--red);
}
.txt-yellow {
    color: var(--font-orange);
}
.txt-gray {
    color: var(--font-gray);
}
.txt-nonselect {
    color: var(--font-nonselect);
}
.txt-white {
    color: var(--white);
}
.txt-working {
    color: var(--txt-lemon);
}
.txt-total {
    color: var(--txt-blue);
}
.txt-legal {
    color: var(--txt-mint);
}

img.logo {
    height: 42px;
    z-index: 1;
    position: relative;
}
.img-icon {
    height: 24px;
    margin: -3px 5px 0px;
}
.img-alert {
    height: 80px;
    margin-bottom: 20px;
}

.ul-nonestyle {
    list-style: none;
    margin: 0px;
    padding: 0px;
}
.container-fluid {
    padding: 0px 40px;
}
/*  homepage  */
.title-home {
    display: flex;
    justify-content: center;
    padding: 20px 0px 35px 0px;
    text-align: center;
}
.home-value {
    justify-content: center;
}
.value-theme-box {
    background: var(--btn-theme);
}
.value-theme-box,
.value-box {
    margin-bottom: 15px;
    padding: 40px;
    border-radius: 10px;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px,
        rgba(17, 17, 26, 0.05) 0px 8px 32px;
}
.update-box {
    display: flex;
    align-items: center;
    padding: 30px 40px;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px,
        rgba(17, 17, 26, 0.05) 0px 8px 32px;
    border-radius: 10px;
    margin-top: 30px;
    margin-bottom: 70px;
    gap: 10px;
    justify-content: space-between;
}
.time-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.time-select {
    width: 100px;
    margin-bottom: 0px !important;
}
.clock_icon {
    margin-right: 10px;
}
/* user homepage */
.home-btn {
    height: 180px;
    padding: 20px;
    display: flex;
    gap: 20px;
    border-radius: 10px;
    box-shadow: rgba(17, 17, 26, 0.05) 0px 4px 16px,
        rgba(17, 17, 26, 0.05) 0px 8px 32px;
    border: 1px solid #f0f0f0;
    border-left: 5px solid var(--theme);
    transition: 0.3s;
}
.home-btn:hover {
    scale: 1.02;
    box-shadow: rgba(71, 71, 71, 0.4) 0px 30px 90px;
}
.home-link {
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.home-link a h3 {
    color: var(--font-color);
}
.home-pic {
    height: 97px;
    width: 97px;
}
/* api key */
.toggle-password {
    float: right;
    cursor: pointer;
    margin-right: 15px;
    margin-top: -54px;
}
.api-ctn {
    padding: 0px 100px;
}
.api-card {
    border-radius: 10px;
}
.endpoint-txt {
    padding: 20px 30px;
    background-color: var(--green-light);
    margin-top: 10px;
}
.api-key-txt {
    padding: 40px 30px;
    background-color: #eff6ff;
    color: var(--logs-blue);
    border-radius: 10px;
    border: 1px solid var(--logs-blue);
    margin-bottom: 30px;
}
/*----- button-----*/
.btn {
    min-width: 120px;
    border-radius: 14px;
    transition: all ease 0.3s;
    margin: 0px 3px 0px 0px;
    padding: 10px;
    /* font-weight: bold; */
}
.btn-fade {
    color: var(--theme);
    border-bottom: 4px solid var(--theme);
    /* background-color: var(--secondary-light); */
    border-radius: 10px 10px 0px 0px;
    min-width: 120px;
    transition: all ease 0.3s;
    margin: 0px 3px 0px 0px;
    padding: 10px 0px;
}
.txt-nonselect {
    padding: 10px 0px;
    border-radius: 10px 10px 0px 0px;
}
.btn-fade:hover,
.txt-nonselect:hover {
    background-color: var(--secondary-light);
    color: var(--theme);
}
.btn-insert {
    border: none;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all ease 0.3s;
    margin-bottom: 18px;
    background-color: var(--insert-botton);
}
.btn-delete {
    border: none;
    border-radius: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all ease 0.3s;
    margin-bottom: 18px;
    background-color: var(--red-pastel);
    font-size: var(--font-p);
    color: var(--white);
}
.btn-insert:hover {
    background-color: var(--insert-botton-dark);
}
.btn-delete:hover {
    background-color: var(--red-pastel-dark);
}
.btn-intable {
    background: var(--white);
    border: 1px solid var(--theme);
    color: var(--theme);
    padding: 5px;
}

.btn-theme {
    background: var(--btn-theme);
    color: var(--white);
}
.btn-white {
    background: var(--white);
    border: 1px solid var(--theme);
    color: var(--theme);
}
.btn-theme:hover {
    background: var(--theme-dark);
    color: var(--white);
}

.btn-intable:hover,
.btn-border:hover,
.btn-white:hover {
    background: var(--theme-light);
    color: var(--theme);
}

.btn-icon {
    padding: 5px 6px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-icon img {
    width: 20px;
}
.btn-text {
    color: var(--font-color);
}
.btn-text:hover {
    color: var(--theme);
}
.btn-text .img-icon {
    transition: all ease 0.3s;
    filter: brightness(0) invert(0);
}

.btn-text:hover .img-icon {
    filter: brightness(1) invert(0);
}

/*----- nav topbar-----*/
#topbar {
    background: var(--white);
    background: linear-gradient(90deg, var(--white) 90%, var(--secondary) 100%);
    position: relative;
}
#topbar:after {
    content: "";
    position: absolute;
    right: 0px;
    top: 0px;
    height: 100%;
    width: 320px;
    z-index: 0;
    transform: skewX(340deg);
}
#topbar .menu-right li {
    display: inline-block;
    z-index: 1;
}
#topbar .menu-right li span {
    padding: 5px 10px;
    margin-right: 10px;
    max-width: 122px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    font-size: var(--font-small);
}
#topbar .menu-right li .btn-text {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
#topbar .menu-right li .btn-text > img {
    margin-top: 0px;
}
#topbar .menu-right li .btn-text:after {
    content: "";
    position: absolute;
    left: 0px;
    top: 4px;
    width: 2px;
    height: 80%;
    background: var(--td-border);
}

/*----- Chart -----*/
.frame-chart {
    margin-top: 20px;
    padding: 0px 10px 20px;
    box-shadow: 0px 0px 10px rgb(0 0 0 / 8%);
    width: 100%;
    height: 400px;
    border-radius: 6px;
}
.frame-chart-text {
    padding: 8px 5px;
    border-bottom: 1px solid var(--td-border);
}
.frame-chart-text span {
    font-size: var(--font-small);
    color: var(--font-gray);
}

/*----- Form -----*/
.card-tile-background {
    min-height: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 0px 5px rgb(0 0 0 / 1%);
    background-color: var(--white);
}
.card-ctn {
    padding: 20px 200px 20px 200px;
}
.card {
    min-height: 700px;
    padding: 20px 30px 30px;
    border: none;
    border-radius: 10px;
    box-shadow: 0px 0px 5px rgb(0 0 0 / 1%);
    z-index: 1;
}
.card .card-inner {
    box-shadow: 0px 0px 5px rgb(0 0 0 / 10%);
    padding: 20px 30px;
    margin: 12px 0px 15px;
}
.register-page .card {
    padding: 3% 10%;
}
.num-of-page {
    display: flex;
    justify-content: flex-end;
    color: var(--td-border);
}

.title-background {
    background-color: var(--theme);
    padding: 20px 30px;
    color: var(--white);
    border-radius: 10px 10px 0 0;
}
.head-title h2,
.head-title h1 {
    padding-bottom: 8px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    border-bottom: 4px solid var(--theme-light);
}
.card .head-title h2,
.card .head-title h1 {
    margin-bottom: 10px;
}
.head-title h2::before,
.head-title h1::before {
    content: "";
    position: absolute;
    width: 50%;
    height: 4px;
    background: var(--theme);
    left: 0;
    bottom: -4px;
    z-index: 1;
}
.title h4 {
    display: inline-block;
    border-bottom: 4px solid var(--theme-light);
    padding-bottom: 8px;
    margin: 35px 0px 20px;
}
.page-title {
    margin-bottom: 50px;
}
.activity-date {
    margin-bottom: 30px;
}
.search-box {
    display: flex;
    align-items: center;
}
.search-box .btn {
    display: inline-block;
    margin-top: -18px;
}
.search-box .search-bar {
    width: 100%;
    width: calc(100% - 120px);
    border: 1px solid var(--theme);
    border-radius: 10px;
    padding: 10px;
    transition: all ease 0.3s;
    font-size: var(--font-p);
    margin-right: 10px;
}

.search-form {
    justify-content: end;
}
.ctn-btn {
    display: flex;
    justify-content: end;
    gap: 10px;
}
.row-filter {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
}
.row-select {
    border-color: var(--theme) !important;
    color: var(--theme);
    width: fit-content;
    padding: 5px 30px 5px 10px !important;
    margin-bottom: 0 !important;
    margin: 0px 10px;
    background-image: url("/image/icon/down-icon.png");
}

.form-select.select-filter {
    border-color: var(--theme);
    color: var(--theme);
    background-image: url("/image/icon/down-icon.png");
}
.form-control,
.form-select {
    border-color: var(--td-border);
    border-radius: 10px;
    margin-bottom: 18px;
    padding-block: 10px;
    transition: all ease 0.3s;
    font-size: var(--font-p);
}
.form-control:hover,
.search-bar:hover,
.form-select:hover {
    box-shadow: 0px 0px 3px 1px var(--theme);
    border-color: var(--theme-light);
}

textarea {
    min-height: 110px !important;
}
.btn-width {
    width: fit-content;
    padding: 10px;
    height: fit-content;
    margin-left: 5px;
}
.btn-form {
    display: flex;
    justify-content: center;
    gap: 10px;
}
.topicform {
    display: flex;
    margin: 20px 0px 25px 0px;
    font-weight: bold;
}
.form_icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

input.form-control::placeholder,
input.btn::placeholder,
textarea.form-control::placeholder {
    color: rgb(190, 190, 190);
}
.btn_upload {
    border: solid var(--theme) 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 160px;
    border-radius: 10px;
    background-color: transparent;
}
.btn_upload:hover {
    background-color: var(--theme-light);
}
.exam_upload:hover {
    border: solid var(--font-gray) 1px;
}
.btn_upload p {
    margin: 0;
    color: var(--theme);
}
.exam_upload {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10px;
    width: 260px;
    border-radius: 10px;
    background-color: transparent;
    margin-bottom: 10px;
    transition: all ease 0.3s;
    border: solid var(--white) 1px;
}
.exam-docs {
    width: 35px;
    margin-right: 15px;
}
.filename {
    display: flex;
    align-items: center;
}
.croptext {
    max-width: 10em;
    height: 45px; /* ความสูงบรรทัดข้อความที่แสดง */
    line-height: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /*จำนวนบรรทัดข้อความ */
}
.info-box {
    margin-bottom: 20px;
}
/* ************************* */
.dropdown-ctn {
    display: flex;
    justify-content: end;
}

/*------ Checkbox ------*/
.form-check {
    padding-left: 34px;
}

.form-check .form-check-input {
    margin-left: -32px;
}
.form-check-input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    cursor: pointer;
}
.form-check-input:checked {
    background-color: var(--theme);
    border-color: var(--theme);
}

/*------ Switch ------*/
.form-switch .form-check-input {
    width: 40px;
    height: 20px;
}
.form-switch .form-check-input {
    border-color: var(--theme);
    position: relative;
}
.form-switch .form-check-input:focus {
    border-color: var(--theme);
    outline: 0;
    box-shadow: none;
}
.form-switch .form-check-input:checked {
    border-color: var(--theme);
    background-color: var(--theme);
}
.form-switch .form-check-input:before {
    content: "";
    background-color: var(--theme);
    height: 15px;
    width: 15px;
    border-radius: 50px;
    display: inline-block;
    position: absolute;
    top: 2px;
    left: 2px;
}
.form-switch .form-check-input:checked:before {
    background-color: var(--white);
    left: auto;
    right: 2px;
}
.header-ctn {
    display: flex;
    justify-content: end;
}
.page-number {
    display: flex;
    justify-content: end;
    padding: 10px 10px;
}
.pagination {
    display: flex;
    justify-content: end;
}
a.page-link {
    border-radius: 5px;
    border: none;
    color: var(--font-color);
}
a.page-link:hover {
    color: var(--theme);
}
a.page-link:focus {
    color: var(--theme);
    box-shadow: none;
    background-color: var(--bs-tertiary-bg);
}

/*------ Action Button ------*/
.action-button {
    text-align: right;
    margin: 30px 0px 20px;
}

/*----- Modal ------*/
.modal-content-form {
    padding: 30px;
}
.modal-content {
    border-radius: 10px;
}
.modal-header,
.modal-footer {
    border: none;
    width: 100%;
}
.modal-footer {
    padding-block: 5px 25px;
}
.modal-header {
    padding: 20px;
}
.modal-txt {
    font-weight: normal;
    margin-bottom: 20px;
    font-size: var(--font-h3);
}
.send-back {
    color: var(--font-yellow);
}
.refuse {
    color: var(--red);
}
.approval {
    color: var(--green);
}
.delete {
    color: var(--red);
}
/* modal table */
.check-box-table {
    display: flex;
    gap: 10px;
}
.step-select {
    border: 1px solid var(--font-gray);
    color: var(--font-color);
    border-radius: 20px;
    margin-bottom: 0;
}
.thead-width {
    width: 25%;
}
.activity-info {
    padding: 20px 10px 20px 10px;
}
.activity-topic {
    padding-left: 90px;
}
.background-table {
    background-color: var(--bg-table);
}
.header-line {
    background-color: var(--theme);
    border-bottom: 1px solid var(--td-border);
}
/* ----------table -----------*/

th,
td {
    text-align: left;
    border: none;
}

.table > :not(caption) > * > * {
    padding: 15px 10px;
    color: var(--font-color);
}
.table-border {
    border: 1px solid var(--border-table);
    border-radius: 10px 10px 0px 0px;
    padding: 0px;
}
.table {
    --bs-table-bg: none;
    color: var(--font-color);
    margin: 0px;
}
.table-section {
    margin-bottom: 30px;
}
.table tbody tr {
    background: var(--white);
}
.table tbody tr:nth-child(even) {
    background: var(--bg-table);
}

.table-theme th {
    background-color: var(--bg-th-color);
    color: var(--font-color);
}
.table-theme th:first-child {
    border-radius: 10px 0 0 0;
}
.table-theme th:last-child {
    border-radius: 0 10px 0 0;
}
.table_icon {
    width: 20px;
    margin-right: 20px;
    transition: 0.3;
}
.eye_icon {
    margin-left: 10px;
    transition: 0.3;
}
.table_icon:hover,
.eye_icon:hover {
    filter: brightness(80%);
}
.btn-step {
    border: 1px solid var(--font-nonselect);
    color: var(--font-color);
    padding: 8px 20px;
    border-radius: 25px;
    width: fit-content;
    background: var(--white);
}
.btn-role {
    border: 1px solid var(--theme-dark);
    color: var(--theme-dark);
    padding: 8px 20px;
    border-radius: 25px;
    width: fit-content;
    background: var(--bg-role-color);
}
.log-get,
.log-post,
.log-status-green,
.log-status-red {
    padding: 5px 20px;
    border-radius: 15px;
    width: fit-content;
}
.log-get {
    background-color: var(--logs-blue-light);
    color: var(--logs-blue);
}
.log-post {
    background-color: var(--logs-purple-light);
    color: var(--logs-purple);
}
.log-status-green {
    background-color: var(--logs-green-light);
    color: var(--logs-green);
}
.log-status-red {
    background-color: var(--logs-red-light);
    color: var(--logs-red);
}
.log-box {
    border: 1px solid var(--secondary-light);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
}
.log-info {
    display: flex;
    justify-content: space-between;
}
.log-volume p {
    font-size: var(--font-h3);
    margin-bottom: 0;
}
.log_icon {
    width: 25px;
    height: 25px;
}
/*----- Footer -----*/
footer {
    position: absolute;
    width: 100%;
    bottom: 0px;
    left: 0px;
}
.footer-bg {
    background-color: var(--theme);
    padding-top: 10px;
    padding-bottom: 10px;
    margin-top: 40px;
    margin-bottom: -10px;
}
.footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: var(--font-p);
    margin-bottom: 0px;
}
footer p {
    font-size: var(--font-xsmall);
    float: right;
}
/* *******steps ****** */
.stepper-wrapper {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}
.stepper-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;

    @media (max-width: 768px) {
        font-size: 12px;
    }
}
.stepper-item::before {
    position: absolute;
    content: "";
    border-bottom: 2px solid var(--td-border);
    width: 100%;
    top: 20px;
    left: -50%;
    z-index: 2;
}
.stepper-item::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid var(--td-border);
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 2;
}
.step-name p {
    text-align: center;
}
.stepper-item .step-counter {
    position: relative;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--td-border);
    margin-bottom: 6px;
}
.stepper-item.completed .step-counter {
    background-color: var(--theme);
    color: var(--white);
}
.stepper-item.completed .step-name {
    color: var(--theme);
}
.stepper-item.completed::after {
    position: absolute;
    content: "";
    border-bottom: 2px solid var(--theme);
    width: 100%;
    top: 20px;
    left: 50%;
    z-index: 3;
}
.stepper-item:first-child::before {
    content: none;
}
.stepper-item:last-child::after {
    content: none;
}
.list-group {
    padding-left: 20px;
    margin-bottom: 20px;
}
.page-number {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

/*--- Pagination ---*/
.pagination {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.page-link {
    border-radius: var(--radius-sm);
    border: 1px solid var(--light-border);
    color: var(--font-color);
    margin: 0 3px;
    padding: 8px 12px;
    transition: all var(--transition-base);
}

.page-link:hover {
    color: var(--theme);
    background-color: var(--theme-lighter);
    border-color: var(--theme-light);
    transform: translateY(-2px);
}

.page-link:focus {
    color: var(--theme);
    background-color: var(--theme-lighter);
    box-shadow: 0 0 0 3px rgba(255, 152, 61, 0.15);
    border-color: var(--theme-light);
}

.page-item.active .page-link {
    background-color: var(--theme);
    border-color: var(--theme);
    color: var(--white);
}

.pagination-info {
    color: var(--font-gray);
    font-size: var(--font-small);
}
/*--------------------------------------------------------
    Start: Responsive View Google Chrome
----------------------------------------------------------*/
/* Nest Hub*/
@media (max-width: 1199px) {
    .nav-item {
        margin-right: 0px;
    }
    .card-ctn {
        padding: 20px 50px 20px 50px;
    }
    .table_icon {
        margin-right: 10px;
    }
    .header-ctn {
        display: flex;
        justify-content: end;
        width: 100%;
        margin-top: 20px;
    }
    .search-box .search-bar {
        width: calc(100% - 120px);
    }
    .page-title {
        margin-bottom: 10px;
    }
    .value-theme-box,
    .value-box {
        margin-bottom: 15px;
        padding: 15px;
    }
    /* user home page */
    .api-ctn {
        padding: 0px 20px;
    }
}
/* Surface Pro 7*/
@media (max-width: 991px) {
    /*--- form ---*/
    .register-page .card {
        padding: 30px 5%;
    }
    .table-scroll {
        overflow: scroll;
        padding: 0px;
        /* height: 500px; custom size for hight table*/
    }
    .table-scroll .table {
        min-width: 1000px;
    }
    .home-btn {
        height: fit-content;
    }
    /* fixed head table */
    .table tbody tr td {
        background: var(--white);
    }
    .table tbody tr:nth-child(even) td {
        background: var(--bg-table);
    }
    .table-scroll th {
        position: sticky;
        top: 0;
        z-index: 2;
    }
    .table-scroll td.last-row,
    .table-scroll th.last-row {
        position: sticky;
        right: 0;
    }
    .card-ctn {
        padding: 20px 50px 20px 50px;
    }
    .thead-width {
        width: 15%;
    }
    .modal-content-form {
        padding-left: 0px;
        padding-right: 0px;
    }
    .activity-date {
        margin-bottom: 0px;
    }
    .activity-topic {
        padding-left: 20px;
    }
}
/* iPad Mini*/
@media (max-width: 769px) {
    /*--- form ---*/
    .card,
    .card .card-inner {
        padding: 20px 4% 30px;
    }
}
/* Surface Duo*/
@media (max-width: 569px) {
    body {
        padding-bottom: 60px;
    }
    .container-fluid {
        padding: 0px 15px;
    }
    .card-ctn {
        padding: 20px 20px 20px 20px;
    }
    .btn-form {
        flex-direction: column;
    }
    .ctn-btn {
        justify-content: center;
        gap: 10px;
        margin-top: 20px;
    }
    .header-ctn {
        flex-direction: column;
    }
    .btn-width {
        margin-left: 0px;
    }
    .update-box {
        padding-left: 10px;
        padding-right: 10px;
    }
    /* user home page */
    .api-ctn {
        padding: 0px 0px;
    }
    .api-key-txt {
        padding: 20px 10px;
    }
}
/*iPhone 14 Pro Max*/
@media (max-width: 481px) {
    body {
        padding-top: 110px;
    }
    img.logo {
        width: 120px;
        height: auto;
    }
    .update-box {
        flex-direction: column;
        align-items: flex-start;
    }
    /* home admin */
    .time-form {
        display: flex;
        width: 100%;
        justify-content: space-between;
        margin: 10px 0px 15px 0px;
    }
    .home-admin-btn {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    /* user api key */
    .api-ctn {
        padding-left: 5px;
        padding-right: 5px;
    }
    /*--- topbar ---*/
    #topbar:after {
        width: 210px;
    }
    #topbar .menu-right li,
    #topbar .menu-right li .btn-text {
        min-width: auto;
        font-size: var(--font-xsmall);
    }
    #topbar .menu-right li .btn-text > span {
        display: none;
    }
    /*--- form ---*/
    .card,
    .card .card-inner {
        padding: 18px 3%;
    }
}
/*iPhone SE*/
@media (max-width: 376px) {
}

/* Galaxy Fold 5*/
@media (max-width: 345px) {
    img.logo {
        width: 100px;
        height: auto;
    }
}
/*--------------------------------------------------------
    End: Responsive
----------------------------------------------------------*/
