@font-face {
    font-family: 'Manrope';
    src: url('../lib/fonts/Manrope/Manrope-ExtraLight.ttf') format('truetype');
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

/* Manrope Light - 300 */
@font-face {
    font-family: 'Manrope';
    src: url('../lib/fonts/Manrope/Manrope-Light.ttf') format('truetype');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

/* Manrope Regular - 400 */
@font-face {
    font-family: 'Manrope';
    src: url('../lib/fonts/Manrope/Manrope-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Manrope Medium - 500 */
@font-face {
    font-family: 'Manrope';
    src: url('../lib/fonts/Manrope/Manrope-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

/* Manrope SemiBold - 600 */
@font-face {
    font-family: 'Manrope';
    src: url('../lib/fonts/Manrope/Manrope-SemiBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

/* Manrope Bold - 700 */
@font-face {
    font-family: 'Manrope';
    src: url('../lib/fonts/Manrope/Manrope-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* Manrope ExtraBold - 800 */
@font-face {
    font-family: 'Manrope';
    src: url('../lib/fonts/Manrope/Manrope-ExtraBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

/* Anuphan Thin - 100 */
@font-face {
    font-family: 'Anuphan';
    src: url('../lib/fonts/Anuphan/Anuphan-Thin.ttf') format('truetype');
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}

/* Anuphan ExtraLight - 200 */
@font-face {
    font-family: 'Anuphan';
    src: url('../lib/fonts/Anuphan/Anuphan-ExtraLight.ttf') format('truetype');
    font-style: normal;
    font-weight: 200;
    font-display: swap;
}

/* Anuphan Light - 300 */
@font-face {
    font-family: 'Anuphan';
    src: url('../lib/fonts/Anuphan/Anuphan-Light.ttf') format('truetype');
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

/* Anuphan Regular - 400 */
@font-face {
    font-family: 'Anuphan';
    src: url('../lib/fonts/Anuphan/Anuphan-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* Anuphan Medium - 500 */
@font-face {
    font-family: 'Anuphan';
    src: url('../lib/fonts/Anuphan/Anuphan-Medium.ttf') format('truetype');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

/* Anuphan SemiBold - 600 */
@font-face {
    font-family: 'Anuphan';
    src: url('../lib/fonts/Anuphan/Anuphan-SemiBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

/* Anuphan Bold - 700 */
@font-face {
    font-family: 'Anuphan';
    src: url('../lib/fonts/Anuphan/Anuphan-Bold.ttf') format('truetype');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

html {
    font-size: 14px;
    touch-action: manipulation;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope','Anuphan', Arial, sans-serif;
    color: #145B2F;
}

p, span, label, a, tr, td {
    font-family: 'Manrope','Anuphan', Arial, sans-serif;
    /*color: #145B2F;*/
}

div {
    font-family: 'Manrope','Anuphan', Arial, sans-serif;
}

.dataTables_info {
    font-family: 'Manrope','Anuphan', Arial, sans-serif;
}

/*Layout*/
/* ===========================
   Golf One rms Navbar
=========================== */

.rms-navbar {
    width: 100%;
    background: #ffffff;
    height: 76px;
    border-bottom: 1px solid #e8ece9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1000;
}

.rms-navbar-inner {
    width: 100%;
    height: 100%;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Left Section */

.rms-navbar-left {
    display: flex;
    align-items: center;
    gap: 22px;
}

.rms-logo {
    display: flex;
    align-items: center;
}

    .rms-logo img {
        width: 130px;
        height: auto;
        object-fit: contain;
    }

.rms-divider {
    width: 1px;
    height: 32px;
    background: #dfe5e0;
}

.rms-system-name {
    font-size: 20px;
    font-weight: 700;
    color: #145B2F;
    white-space: nowrap;
}

/* Right Section */

.rms-navbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.rms-user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.rms-user-name {
    font-size: 16px;
    font-weight: 700;
    color: #4D4D4D;
}

.rms-user-role {
    font-size: 12px;
    font-weight: 400;
    color: #4D4D4D;
}

.rms-profile-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #7b8580;
}

.rms-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5eee8;
}

/* Dropdown */

.rms-user-dropdown {
    position: absolute;
    top: calc(100% + 18px);
    right: 0;
    width: 220px;
    padding: 8px;
    background: #ffffff;
    border: 1px solid #e7ece8;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 1100;
}

    .rms-user-dropdown.show {
        display: block;
    }

.rms-dropdown-header {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .rms-dropdown-header strong {
        font-size: 13px;
        color: #254a35;
    }

    .rms-dropdown-header span {
        font-size: 11px;
        color: #8a938d;
    }

.rms-dropdown-divider {
    height: 1px;
    background: #edf0ee;
    margin: 5px 0;
}

.rms-user-dropdown a {
    display: block;
    padding: 11px 12px;
    font-size: 13px;
    color: #424c45;
    text-decoration: none;
    border-radius: 7px;
}

    .rms-user-dropdown a:hover {
        background: #f0f6f1;
        color: #155c36;
    }

    .rms-user-dropdown a.logout {
        color: #d94a45;
    }

        .rms-user-dropdown a.logout:hover {
            background: #fff0ef;
        }

/* ===========================
   Tablet Responsive
=========================== */

@media (max-width: 1024px) {

    .rms-navbar {
        height: 70px;
    }

    .rms-navbar-inner {
        padding: 0 20px;
    }

    .rms-navbar-left {
        gap: 16px;
    }

    .rms-logo img {
        width: 110px;
    }

    .rms-system-name {
        font-size: 17px;
    }
}

/* ===========================
   Mobile Responsive
=========================== */

@media (max-width: 600px) {

    .rms-navbar {
        height: 64px;
    }

    .rms-navbar-inner {
        padding: 0 14px;
    }

    .rms-navbar-left {
        gap: 10px;
    }

    .rms-logo img {
        width: 90px;
    }

    .rms-divider {
        height: 25px;
    }

    .rms-system-name {
        font-size: 14px;
    }

    .rms-user-info {
        display: none;
    }

    .rms-user-avatar {
        width: 36px;
        height: 36px;
    }
}

.rms-language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
}

.rms-lang-btn {
    border: none;
    background: transparent;
    padding: 4px;
    color: #9aa7a0;
    font-family: 'Manrope', 'Anuphan', Arial, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

    .rms-lang-btn.active {
        color: #126139;
        font-weight: 800;
    }

.rms-lang-divider {
    color: #c5d3c9;
}

.rms-nav-switch {
    display: flex;
    align-items: center;
    margin: 0 20px;
}

.rms-nav-switch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 145px;
    height: 56px;
    padding: 0 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 91, 47, 0.74) 16.94%, rgba(0, 34, 13, 0.74) 83.06%);
    color: #FFFFFF !important;
    text-decoration: none;
    font-family: 'Manrope', 'Anuphan', Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 3px 9px rgba(25, 72, 43, 0.15);
    transition: all 0.2s ease;
    touch-action: manipulation;
}

    .rms-nav-switch-btn:hover {
        background: linear-gradient(135deg, #47795c, #30513f);
        color: #ffffff;
        text-decoration: none;
    }

    .rms-nav-switch-btn img {
        width: 23px;
        height: 23px;
        object-fit: contain;
    }

/* สำหรับ Tablet */
@media (max-width: 768px) {
    .rms-nav-switch {
        margin: 0 10px;
    }

    .rms-nav-switch-btn {
        min-width: 110px;
        height: 46px;
        padding: 0 14px;
        font-size: 15px;
        border-radius: 12px;
    }

        .rms-nav-switch-btn img {
            width: 19px;
            height: 19px;
        }
}