@font-face {
    font-family: 'Promp-Regular';
    src: url('/asset/font/Promp-Regular/Prompt-Regular.eot') format('embedded-opentype'), url('/asset/font/Promp-Regular/Prompt-Regular.woff') format('woff'), url('/asset/font/Promp-Regular/Prompt-Regular.ttf') format('truetype'), url('/asset/font/Promp-Regular/Prompt-Regular.svg') format('svg');
    font-weight: normal;
    font-style: normal;
}

:root {
    /*--- text color ---*/
    --white: #ffffff;
    --black: #383737;
    --black: #2D3748;
    --white: #ffffff;

    --primary-500: #004E99;
    --primary-400: #C0D6E9;
    --primary-300: #EAF0FC;
    --primary-200: #F7F7FF;
    --primary-100: #F9FBFF;
    --dark-primary-300: #e5e5f2;
    --dark-primary-400: #9a9abc;
    --danger-500: #D64F4F;
    --danger-400: #FDEAEA;
    --success-500: #568C19;
    --success-400: #DEFFD3;
    --warn-500: #D0AB15;
    --warn-400: #FDFDEA;
    --gray-500: #595D5F;

    /*--- radious Number ---*/
    --radius-4: 4px;
    --radius-8: 8px;
    --radius-16: 16px;
    --radius-24: 24px;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Promp-Regular', sans-serif !important;
    padding-bottom: 0px;
    margin-bottom: 0px;
    position: relative;
    font-size: 18px;
    overflow-x: hidden;
    color: var(--black);
}

body.page-theme {
    position: relative;
    width: 100%;
    /* overflow: auto; */
    justify-content: center;
    min-height: calc(100vh - 2rem);
}

body.page-theme:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: url(/asset/image/bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 10%;
}

body.page-theme.login {
    position: relative;
    width: 100%;
    /* overflow: auto; */
    justify-content: center;
    min-height: calc(100vh - 2rem);
}

body.page-theme.login:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: url(/asset/image/Login-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 10%;
}

.body-content {
    /* overflow-y: auto; */
    min-height: 100vh;
    padding: 3rem;
    position: relative;
}

.body-content.side {
    margin-left: 17.5rem;
    flex: 1;
    transition: margin-left 0.3s ease;
}

.body-content.fullpage {
    margin-top: 70px;
}

.body-content.login {
    min-height: 100vh;
    padding: 3rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background-color: var(--white);
    padding: 24px 32px;
    border-radius: 24px;
    width: 100%;
    max-width: 550px;
    margin-right: auto;
    margin-left: auto;
}

.main {
    position: relative;
    z-index: 2;
}

.container-fluid {
    background-color: var(--white);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 2rem;
}

hr {
    border-top: var(--primary-400) solid;
}

img,
svg {
    vertical-align: sub;
}

ol,
ul {
    padding-left: 0.5rem;
}

a,
a:hover {
    text-decoration: none;
    transition: all ease .3s;
    color: inherit;
}

.text-middle {
    display: flex;
    align-items: center;
}

.text-blue {
    color: var(--primary-500);
}

.btn-edit {
    background: #e0b92c;
}

.btn-delete {
    background: #d62a1f;
}

.btn-icon {
    padding: 0.3em 0.4em 0.1em;
    font-size: 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: .2s ease;
    opacity: 1;
}

.black {
    color: var(--black);
}

.white {
    color: var(--white);
}

.font-xs {
    font-size: 14px;
}

.summary-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 16px;
}

.inform-group {
    display: flex;
    justify-content: space-between;
}

/*--------------------------------------- 
   sidebar
---------------------------------------*/
#sidebar.close~.body-content {
    margin-left: 5rem;
}

#sidebar {
    box-sizing: border-box;
    height: 100vh;
    width: 278px;
    background-color: var(--primary-200);
    padding: 48px 8px 32px 8px;
    border-right: 1px solid var(--primary-200);
    position: fixed;
    top: 0;
    left: 0;
    transition: 300ms ease-in-out;
    overflow: hidden;
    text-wrap: nowrap;
    flex: 0 0 278px;
}

.sidebar-wrapper {
    position: relative;
}

.logo {
    margin-bottom: 1.5rem;
    align-items: center;
    text-align: center;
    display: flex;
    gap: 0.8em;
}

#sidebar a.user {
    background-color: var(--primary-500);
    padding: 5px !important;
    border-radius: var(--radius-16);
    align-items: center;
    width: 100%;
}

#sidebar a.user:hover {
    background-color: var(--primary-500);
    box-shadow: 0 0 0 0.25rem #e0cec7;

}

.user-avatar {
    padding: 8px 10px;
    /* width: 2.8rem;
    height: 2.8rem; */
    margin-right: 8px;
    border-radius: var(--radius-16);
    text-align: center;
    align-content: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.user-avatar img {
    vertical-align: middle;
}

.user-avatar.sidemenu {
    background: var(--white);
    color: var(--primary-500);
}

.user-avatar.navmenu {
    background: var(--primary-300);
    color: var(--black);
}

.user-name {
    font-size: 16px;
    font-weight: 600;
}

#sidebar.close {
    width: 5rem;
    flex: 0 0 3.75rem;
}

#toggle-btn {
    /* position: fixed;
    top: 1rem;
    left: 278px; */
    /* เริ่มต้นอยู่ข้าง sidebar */
    display: flex;
    align-items: center;
    justify-content: center;
    /* ปรับความนิ่งของการหมุน */
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* ป้องกันการสั่นสะเทือนของ Pixel (ช่วยให้ดู Smooth) */
    backface-visibility: hidden;
    -webkit-font-smoothing: subpixel-antialiased;
    cursor: pointer;
    border: none;
    background: transparent;
}

#toggle-btn.rotate {
    transform: rotate(180deg);
}

#toggle-btn svg {
    display: block;
}

#toggle-btn:hover {
    color: var(--primary-500);
    background-color: var(--primary-200);
    border-color: var(--primary-500);
}


#sidebar ul {
    list-style: none;
}

#sidebar.close .user-name,
#sidebar.close .user-role,
#sidebar.close a span,
#sidebar.close .dropdown-btn span {
    opacity: 0;
    pointer-events: none;
    width: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, width 0.3s ease;
}

#sidebar svg,
#sidebar.close a img,
#sidebar.close .dropdown-btn img,
#sidebar.close .user-avatar {
    margin-right: 0;
    flex-shrink: 0;
    fill: var(--black);
}

#sidebar.close .user-avatar {
    margin-right: 0;
}

#sidebar a.active {
    background-color: var(--primary-300);
}

#sidebar a,
#sidebar .dropdown-btn {
    border-radius: var(--radius-16);
    padding: 0.5em 0.5em 0.5em 0.8em;
    text-decoration: none;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 1em;
    font-weight: 600;
}

.dropdown-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;
}

#sidebar a span,
#sidebar .dropdown-btn span {
    flex-grow: 1;
}

#sidebar a:hover,
#sidebar .dropdown-btn:hover {
    background-color: var(--primary-300);
}

/*--------------------------------------- 
    Navbar
---------------------------------------*/
.navbar {
    backdrop-filter: blur(11px) saturate(200%);
    -webkit-backdrop-filter: blur(11px) saturate(200%);
    background-color: rgba(255, 255, 255, 0.66);
    padding: 8px 24px;
    margin: 0 0px;
    border-radius: var(--radius-16);
    z-index: 101;
    position: fixed;
    width: auto;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: rgb(222 225 244 / 32%) 0px 2px 11px;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.d-show-lg {
    display: inline-block;
}

.navbar-toggler {
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 .25rem rgb(245 237 224);
}

.navbar-expand-lg .navbar-nav {
    margin: 0 8px;
}

.nav-user {
    padding: 8px 24px 8px 8px;
    position: relative;
    border-left: 1.8px solid var(--Neutral-light);
}

.menu-username {
    display: flex;
}

.nav-user.dropdown .dropdown-item {
    font-weight: 500;
    font-size: 16px;
}

.dropdown-toggle::after {
    border: none;
    content: url("data:image/svg+xml,%20%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232B4D8E%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-chevron-down%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    position: absolute;
    top: 20px;
    right: -2px;
}

/* .nav-link:focus, .nav-link:hover {
    color: var(--primary-400);
} */

.navbar-nav .nav-item.active .nav-link {
    color: var(--primary);
    font-weight: bold;
}

.menu-user .nav-user .dropdown-menu[data-bs-popper] {
    right: 0;
    left: unset;
}

.menu-user .nav-user .dropdown-menu {
    border-radius: var(--radius-8);
}

/*--------------------------------------- 
    Form
---------------------------------------*/
.form-group {
    padding: 4px 8px;
    margin-bottom: 4px;
    position: relative;
    align-content: center;
}

.form-control {
    font-size: 18px;
    background-color: var(--white);
    width: 100%;
    max-width: 100%;
    padding: 8px 8px;
    height: 48px;
    border-radius: 16px;
    border: 1.5px solid var(--primary-300);
    position: relative;
}

.required .form-select {
    position: relative;
}

.required .form-select::before {
    content: '*';
    color: var(--danger-500);
    position: absolute;
    right: 0;
    top: -8px;
}

.form-group label {
    font-weight: 500;
    /*    margin-right: 8px;*/
    display: inline-block;
    margin-bottom: 0;
    padding: 0px 0px 5px;
    font-size: 18px;
    color: var(--gray-500);
}

label.required::after {
    content: "* ";
    color: #b04141;
}

.form-select {
    font-size: 18px;
    color: var(--black);
    background-color: var(--white);
    width: 100%;
    padding: 8px 8px;
    height: 48px;
    border-radius: var(--radius-16);
    border: 1.5px solid var(--primary-300);
}

.form-control:focus,
.btn-outline-secondary:not(:disabled):not(.disabled):active:focus {
    color: var(--black);
    background-color: var(--white);
    border-color: var(--Neutral);
    outline: 0;
    box-shadow: 0 0 0 0.1rem #f1d7da;
}

.form-select:focus {
    border-color: var(--Neutral);
    box-shadow: 0 0 0 0.1rem #f1d7da;
}

.form-control[readonly] {
    background-color: var(--bg-02);
    border: 1px solid var(--Neutral);
    box-shadow: none;
    color: var(--lightgray);
    font-size: var(--font-small);
}

.form-control:disabled {
    background-color: transparent;
    border: none;
    color: var(--black);
    box-shadow: none;
    height: auto;
    padding: 0;
}

/*--------------------------------------------------------
  bootstrap-select
----------------------------------------------------------*/
.bootstrap-select>.dropdown-toggle.bs-placeholder,
.bootstrap-select>.dropdown-toggle.bs-placeholder:hover,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,
.bootstrap-select>.dropdown-toggle.bs-placeholder:active {
    outline: 0 !important;
    color: var(--black) !important;
}

.bootstrap-select>.dropdown-toggle.bs-placeholder,
.bootstrap-select>.dropdown-toggle.bs-placeholder:active,
.bootstrap-select>.dropdown-toggle.bs-placeholder:focus,
.bootstrap-select>.dropdown-toggle.bs-placeholder:hover {
font-size: 18px;
    color: var(--black);
       background-color: var(--white);
    padding: 8px 8px;
    height: 48px;
    border-radius: var(--radius-16);
    border: 1.5px solid var(--primary-300);
}

.bootstrap-select > .dropdown-toggle {
    background-image: url("data:image/svg+xml,%20%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%232B4D8E%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-chevron-down%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
        border-top: unset;
        border-right: unset;
        border-bottom: unset;
        border-left: unset;
        position: absolute;
        background-repeat: no-repeat;
        background-position: 98%;
        height: 48px;
        margin: 0;
}

.bootstrap-select>.dropdown-toggle.disabled {
    background-image: none;
}
.bootstrap-select>.dropdown-toggle {
    border: 1.5px solid var(--primary-300);
        border-radius: var(--radius-16);
        font-weight: normal;
        background-color: var(--white);
}

.bootstrap-select .dropdown-menu li a {
margin: 4px;
}
.bootstrap-select .dropdown-menu li a::before {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2300000040%22%20stroke-width%3D%221%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-square%22%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%2218%22%20height%3D%2218%22%20rx%3D%222%22%20ry%3D%222%22%3E%3C%2Frect%3E%3C%2Fsvg%3E");
    width: 5.5%;
    height: 70%;
    width: 22px;
    height: 22px;
    position: absolute;
    left: 1.85%;
}

.bootstrap-select.none .dropdown-menu li a::before {
    display: none !important;
}

.bootstrap-select > .dropdown-toggle:after {
      display: none !important;
  
}

.bootstrap-select .dropdown-menu li a span.text {
    margin: 4px;
}

.dropdown-toggle::after {
    border: none;
}

.dropup .dropdown-toggle::after {
    border-top: unset;
    border-right: unset;
    border-bottom: unset;
    border-left: unset;
}

.bootstrap-select .dropdown-menu {
    /* width: 8rem; */
    overflow-y: scroll !important;
    max-height: 24rem !important;
}

.bootstrap-select .dropdown-toggle .filter-option {
    align-content: center;
}
.bootstrap-select .bs-ok-default:after {
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23004E99%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-check%22%3E%3Cpolyline%20points%3D%2220%206%209%2017%204%2012%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    width: 22px !important;
    height: 22px !important;
    border-style: unset !important;
    border-width: unset !important;
    -webkit-transform-style: unset;
    transform: unset !important;
    transform-style: unset;
    -webkit-transform: unset;
    -ms-transform: unset;
    -o-transform: unset;
    transform: unset;
    border-radius: 4px;
    background-repeat: no-repeat;
}
.dropdown-item.active,
.dropdown-item:active {
    background-color: #EEE8E8;
    color: var(--text-001);
}

.bootstrap-select.show-tick .dropdown-menu li a span.text {
    margin-left: 32px;
    margin: 0 0 0 1.5rem;
}

.bootstrap-select.show-tick .dropdown-menu .selected span.check-mark {
    left: 2.15%;
}

.dropdown-menu.show .inner {
    overflow-y: unset !important;
}

/*--------------------------------------- 
    Button
---------------------------------------*/
svg:hover path {
    fill: var(--primary-400);
}

.btn {
    align-items: center;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    margin-right: 16px;
    height: 46px;
}

.btn-primary {
    background-color: var(--primary-500);
    color: var(--white);
}

.btn-outline {
    background-color: var(--primary-300);
    border: 1.5px solid var(--primary-500);
    color: var(--primary-500);
}

.btn-line {
    color: var(--primary-500);
    border-bottom: 1.5px solid var(--primary-500);
    border-radius: 0;
}

.btn-line:hover {
    border-bottom: 1.5px solid var(--primary-400);
}

.btn-danger {
    background-color: var(--danger-500);
    color: var(--white);
}

.btn-checkbox {
    border: 1.5px solid var(--primary-300);
    background-color: var(--white);
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
    background: #D9E4F0;
}

.btn-md {
    padding: 10px 24px;
    font-size: 16px;
    min-width: 200px;
    /* ทำให้ปุ่มดูมีขนาดคงที่ตาม Mockup */
}

.btn-sm {
    padding: 6px 12px;
    font-size: 16px;
    min-width: 80px;
}

.btn-icon {
height: fit-content;
}
.w-full {
    width: 100%;
    padding: 10px 24px;
}

.btn-close {
    width: 0.2em;
    height: 0.2em;
    background: url("data:image/svg+xml,%20%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2016%2016%27%20fill%3D%27%23fff%27%3E%3Cpath%20d%3D%27M.293.293a1%201%200%200%201%201.414%200L8%206.586%2014.293.293a1%201%200%201%201%201.414%201.414L9.414%208l6.293%206.293a1%201%200%200%201-1.414%201.414L8%209.414l-6.293%206.293a1%201%200%200%201-1.414-1.414L6.586%208%20.293%201.707a1%201%200%200%201%200-1.414z%27%2F%3E%3C%2Fsvg%3E") !important;
}

.btn-circle {
    min-width: 32px;
    padding: 4px;
    width: 56px;
    height: 56px;
    margin: 0 0.25rem;
    background: linear-gradient(rgba(238, 239, 254, 1) 0%, rgb(255 255 255 / 76%) 70%);
    align-items: center;
    align-content: center;
    display: flex;
    justify-content: center;
    border-radius: var(--radius-24);
}

.btn-circle:hover {
    box-shadow: 0 0 0 0.25rem #e0cec7;
    border-color: #ECDBE4 !important;
}

.button-container {
    background-color: var(--white);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 2rem;
    text-align: center;
    position: sticky;
    bottom: 24px;
    margin: 0 auto;
    box-shadow: rgb(222 225 244 / 32%) 0px 2px 11px;

}

.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    align-content: center;
}

.btn-outline-secondary {
    background: var(--primary-300) !important;
    border-radius: 0 16px 16px 0px !important;
    border: 1px solid var(--primary-500)!important;
    color: var(--primary-500);
}

.btn-outline-secondary:hover {
    color: var(--dark-primary-400);
}

/*--------------------------------------- 
   Surface
---------------------------------------*/
.status {
    font-size: 14px;
    padding: 2px 4px 2px 16px;
    text-align: center;
    max-width: 180px;
    display: inline;
    border-radius: var(--radius-8);
    position: relative;
}

.status::before {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: var(--radius-24);
    top: 50%;
    left: 8px;
    transform: translate(-50%, -50%);
}

.status.green {
    background: var(--success-400);
    color: var(--success-500);
}

.status.green::before {
    background: var(--success-500);
}

.status.yellow {
    background: var(--warn-400);
    color: var(--warn-500);
}

.status.yellow::before {
    background: var(--warn-500);
}

.status.red {
    background: var(--danger-400);
    color: var(--danger-500);
}

.status.red::before {
    background: var(--danger-500);
}

.type-group {
    font-size: 20px;
    padding: 32px;
    border-radius: var(--radius-16);
    align-content: center;
    background-image: url(/asset/image/bg-item.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 10%;
    height: 300px;
    color: var(--white);
    margin-bottom: 24px;
}

.type-group .title {
    font-weight: 800;
    margin: 8px;
}

.type-group:hover {
    box-shadow: rgb(242 239 239) -1px 1px 24px;
}

.item {
    background: var(--primary-100);
    border-radius: var(--radius-16);
    padding: 16px;
}

.overflow-text {
    height: auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 11rem;
    width: 100%;
}

.header-detail {
    margin: 20px 0;
    display: flex;
    gap: 8px
}

.container-detail {
    background-color: #f7f7ff94;
    border-radius: 16px;
    padding: 16px;
}

.card-admin {
    background-color: var(--primary-200);
    border: 1px solid var(--primary-300);
    padding: 16px;
    border-radius: 16px;
}
.fa-minus-square::before {
    color: var(--primary-500);
}
.fa-plus-square::before {
        color: var(--primary-500);
}
/*--------------------------------------- 
   Checkbox
---------------------------------------*/
.form-switch .form-check-input {
    width: 4em;
    height: 2em;
}

.form-switch .form-check-input {
    background-color: var(--primary-400);
}

.custom-switch .form-check-input {
    position: relative;
}

.custom-switch .form-check-input::before {
    content: "ENG";
    position: absolute;
    left: 28px;
    font-size: 12px;
    color: var(--primary-500);
    transform: translate(50%, 50%);
}

.custom-switch .form-check-input:checked::before {
    content: "TH";
    left: 6px;
    color: var(--white);
    transform: translate(50%, 50%);
}

label.form-check-label {
    color: var(--black);
}

.form-check .form-check-input {
    float: none;
}

.form-check-input:checked {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
}

.btn-check:checked+.btn,
.btn.active,
.btn.show,
.btn:first-child:active,
:not(.btn-check)+.btn:active {
    color: var(--primary-500);
    background-color: var(--primary-200);
    border-color: var(--primary-400);
}

.tracking-item {
    background-color: var(--primary-100);
    padding: 16px;
    border-radius: var(--radius-16);
    box-shadow: #c4c1cf2e 0px 2px 7px;
    align-content: center;
    border: 1px solid #F1F5FF;
    margin-bottom: 16px;
    position: relative;
}

.inside-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-absolute {
    text-align: end;
}

.tracking-detail {
    display: flex;
    gap: .5rem !important;
    margin-bottom: 4px;
}

/* .tracking-btn-group{
display: grid;
} */

/*--------------------------------------- 
   table
---------------------------------------*/
table {
    border-collapse: separate;
    border-spacing: 0 8px;
    border-radius: var(--radius-16);
}

.table> :not(:last-child)> :last-child>* {
    border-bottom-color: transparent;

}
.table-wrapper {
width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table.overflow-table{
    width: 100%;
    min-width: 1400px;
}
.table {
    color: var(--black);
}

.table.responsive-table.admin> :not(caption)>*>* {
        align-content: center !important;
        padding: 0.5rem .8rem !important;
}

.table.responsive-table tbody tr.sub td {
/* color: #7289a0; */
color: var(--dark-primary-400);
}
.table> :not(caption)>*>* {
    padding: 1rem .8rem;
    background-color: transparent;
}

.table.responsive-table thead th , .table.overflow-table thead th{ 
    font-size: 16px;
    border: none;
    font-weight: bold;
    color: var(--primary-500);
}

.table.responsive-table tbody tr  , .table.overflow-table tbody tr{
    background: #FCFCFF;
    position: relative;
}

.table.responsive-table tbody tr td {
    position: relative;
    z-index: 2;
    color: var(--black);
}

.table.responsive-table tbody tr::after , .table.overflow-table tbody tr:after  {
    content: '';
    position: absolute;
    z-index: 1;
    left: 0px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--primary-300);
    border-radius: var(--radius-16);
}

.responsive-table tr td.card-header {
    border-bottom: transparent;
}

/* required css to make the rows rounded */
th:first-child,
td:first-child {
    border-top-left-radius: var(--radius-16);
    border-bottom-left-radius: var(--radius-16);
}

th:last-child,
td:last-child {
    border-top-right-radius: var(--radius-16);
    border-bottom-right-radius: var(--radius-16);
    align-content: center;
}

tr:first-child th:first-child {
    border-top-left-radius: var(--radius-16);
}

tr:first-child th:last-child {
    border-top-right-radius: var(--radius-16);
}

tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-16);
}

tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-16);
}

.magic-table td::before {
    font-weight: bold;
}

.page-item:first-child .page-link,
.page-item:last-child .page-link {
    border: none;
    background: transparent;
}

.page-item {
    margin: 0 4px;
}

.page-link {
    border-radius: 8px;
    background-color: var(--primary-300);
    color: var(--primary-500);
}

.active>.page-link,
.page-link.active {
    background: var(--primary-500);
    border: transparent;
    font-weight: 600;
}

.nav-pills {
    background: #F7F7FF;
    padding: 8px;
    border-radius: 16px;
    width: fit-content;
}

.nav-pills .nav-link {
    color: var(--dark-primary-400);
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: var(--primary-500);
    background-color: var(--dark-primary-300);
    border: 1px solid var(--primary-400);
    border-radius: var(--radius-16);
}

.modal-content {
    border-radius: 24px;
}

.modal-header {
    background-color: var(--primary-500);
    color: var(--white);
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.modal-footer {
    border-top: transparent;
    justify-content: center;
    display: block;
}

.map {
    height: 500px;
}

.card-body.bg {
    background-color: var(--primary-200);
    border-radius: 16px;
}

/*--------------------------------------- 
   Portal
---------------------------------------*/
.main-page-wrapper {
    min-height: 100vh;
    background-color: #f0f7ff;
    display: flex;
    flex-direction: column;
}

.container-fluid.header-portal {
    background-color: transparent;
    position: relative;
    padding: 3rem 2.5rem 2.5rem 2.5rem;
}

.content-body.container-fluid {
    border-radius: 0 16px 0 0;
    flex-grow: 1;
    /* ยืดพื้นที่ให้เต็มหน้าจอที่เหลือ */
    background: linear-gradient(180deg, #ffffff 0%, #d8eaff 100%);
    margin-bottom: 0;
    padding: 40px;
}

.blue-header {
    height: 280px;
    width: 100%;
    position: relative;
}

.blue-header:before {
    content: '';
    position: absolute;
    height: 100%;
    width: 100%;
    background-image: url(/asset/image/Login-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 30% 45%;
}

.content-body {
    margin-top: -4rem;
    position: relative;
    z-index: 5;
}

/* ตกแต่งการ์ดให้เหมือนในรูป */
.menu-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    min-height: 100px;
    border: none;
    margin-bottom: 15px;
    /* เว้นระยะระหว่างการ์ด */
    position: relative;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.menu-card:hover {
    box-shadow: 0 .5rem 1rem rgba(152, 177, 190, 0.15) !important;
    transition: ease-in 0.3s;
}

.card-label {
    color: var(--primary-500);
    font-size: 18px;
    font-weight: 500;
}

.card-icon-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    margin-left: 4px;
    z-index: 1;
}

.card-icon-circle::after {
    content: '';
    position: absolute;
    right: 0;
    background: linear-gradient(135deg, #ffffff 0%, #D5E9FF 100%);
    width: 140px;
    height: 148px;
    border-radius: 50% 16px 16px 50%;
    top: 0;
    bottom: 0;
    z-index: -1;
}

/*--------------------------------------------------------
   Select2
----------------------------------------------------------*/
.select2-container {
    width: 100% !important;
}
.select2-results__option[aria-selected] {
    font-size: 18px;
}
.select2-container--default .select2-selection--single {
   font-size: 18px;
    color: var(--black);
    background-color: var(--white);
    width: 100%;
        height: 48px !important;
    padding: 8px 8px;
    border-radius: 16px !important;
    border: 1.5px solid var(--primary-300) !important;
        min-width: 150px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    background-image: url(data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2220%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23d63384%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20class%3D%22feather%20feather-chevron-down%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E) !important;
        border-top: unset !important;
        border-right: unset !important;
        border-bottom: unset !important;
        border-left: unset !important;
        position: absolute !important;
        top: 50% !important;
        left: -8px !important;
        background-repeat: no-repeat !important;
        background-position: 98% !important;
        height: 24px !important;
        width: 24px !important;
        margin: 0;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
        font-size: 18px;
    color: var(--black);
    background-color: var(--white);
    width: 100%;
    max-width: 100%;
    padding: 8px 8px;
    height: 48px !important;
    border-radius: 16px !important;
    border: 1.5px solid var(--primary-300) !important;
}

/*--------------------------------------------------------
    Start: Responsive View Google Chrome
----------------------------------------------------------*/
/* Nest Hub*/
@media (max-width: 1199px) {
    .body-content.side {
        margin-left: 5.5rem;
    }

    #sidebar:not(.close) {
        width: 278px;
    }

    .responsive-table thead {
        display: none;
    }

    td.md-d-none {
        display: none !important;
    }

    .table.responsive-table tbody tr::after {
        display: none;
    }

    .responsive-table,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--primary-400);
        border-radius: 0.75rem;
        padding: 0.5rem;
        background-color: var(--white);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }

    .responsive-table td {
        border: none;
        padding: 0.16rem 0;
        position: relative;
    }

    .responsive-table td[data-label]::before {
        content: attr(data-label);
        display: inline-block;
        margin-right: 8px;
        color: var(--primary-500);
    }

    .responsive-table tr td.card-header {
        border-bottom: 1.5px solid var(--primary-300);
        border-radius: 0;
        border-radius: 0;
        margin-bottom: 8px;
        padding-bottom: 8px;
        font-weight: 600;
    }

    .responsive-table tr {
        display: flex;
        flex-direction: column;
    }

    .responsive-table td {
        display: block;
        order: 1;
    }

    .table.responsive-table tbody tr td {
        z-index: 1;
    }

    /* ดัน Status ไปไว้ล่างสุด */
    .responsive-table td.order-mobile-last {
        order: 99;
    }

    .text-blue-mb {
        color: var(--primary-500);
    }

    .w-sm-100 {
        width: 100%;
    }
}

/* Surface Pro 7*/
@media (max-width: 991px) {
    .mb-2-sm {
margin-bottom: 8px;
    }
    .inside-item {
        display: inline-block;
        width: 100%;
    }

    .btn-absolute {
        position: absolute;
        top: 8px;
        right: 8px;
    }

    .tracking-btn-group {
        text-align: end;
    }

    .summary-group {
        display: inline-block;
    }

    .d-none-sm {
        display: none;
    }

    .inform-group {
        display: inline-block;
    }

    .content-body.container-fluid {
        padding: 24px;
    }

    .container-fluid.header-portal {
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }
}

/* iPad Mini*/
@media (max-width: 769px) {
    .body-content.side {
        margin-left: 5.5rem;
    }

    #sidebar {
        box-shadow: #c4c1cf57 0px 2px 7px;
    }
}


/* Surface Duo*/
@media (max-width: 569px) {
    .body-content {
        padding: 4rem 0.5rem 0.5rem 0.5rem;
    }

    .container-fluid {
        padding: 16px;
    }

    .btn-md {
        min-width: 130px;
        width: 100%;
    }

    .inline-item {
        display: inline;
    }

    .button-container {
        padding: 16px;
    }

}



/*iPhone 14 Pro Max*/
@media (max-width: 481px) {}



/*iPhone SE*/
@media (max-width: 376px) {}


/* Galaxy Fold 5*/
@media (max-width: 345px) {}

/*--------------------------------------------------------
    End: Responsive
----------------------------------------------------------*/
