html,
body {
    font-family: "Sarabun", "Noto Sans Thai", sans-serif;
}

html {
    position: relative;
    min-height: 100%;
    font-size: 15px;
}

body {
    margin-bottom: 60px;
}

/* =========================================================
   GLOBAL FONT
   ========================================================= */

button,
input,
select,
textarea,
table,
.btn,
.form-control,
.form-select,
.form-check-input {
    font-family: "Sarabun", "Noto Sans Thai", sans-serif;
}


/* =========================================================
   GLOBAL BUTTON
   ปุ่มเล็ก มน ดูสะอาด
   ========================================================= */

.btn {
    border-radius: 9px;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    line-height: 1.4;
    transition: all .18s ease;
}

.btn-sm {
    border-radius: 8px;
    font-size: 13px;
    padding: 5px 10px;
}

.btn-lg {
    border-radius: 11px;
}


/* ปุ่มเขียว */

.btn-success {
    box-shadow: 0 2px 5px rgba(25, 135, 84, .12);
}

    .btn-success:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 9px rgba(25, 135, 84, .18);
    }


/* ปุ่ม Light */

.btn-light {
    border-radius: 9px;
}

    .btn-light:hover {
        transform: translateY(-1px);
    }


/* =========================================================
   BUTTON ICON
   ========================================================= */

.btn-icon {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}


/* ปุ่ม Action ในตาราง */

.owner-action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}


/* =========================================================
   FORM
   ========================================================= */

.form-control,
.form-select {
    border-radius: 9px;
    font-size: 14px;
}

    .form-control:focus,
    .form-select:focus {
        box-shadow: 0 0 0 .15rem rgba(25, 135, 84, .12);
        border-color: #198754;
    }


/* =========================================================
   CHECKBOX / SWITCH
   ========================================================= */

.form-check-input {
    border-radius: 8px;
}


    /* =========================================================
   FOCUS
   ========================================================= */

    .btn:focus,
    .btn:active:focus,
    .btn-link.nav-link:focus,
    .form-control:focus,
    .form-check-input:focus {
        box-shadow: 0 0 0 .15rem rgba(25, 135, 84, .15);
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 575.98px) {

    html {
        font-size: 14px;
    }

    .btn {
        font-size: 13px;
        padding: 6px 10px;
        border-radius: 8px;
    }

    .btn-sm {
        font-size: 12px;
        padding: 5px 9px;
    }

    .btn-icon,
    .owner-action-btn {
        width: 31px;
        height: 31px;
        border-radius: 8px;
        font-size: 13px;
    }

    .form-control,
    .form-select {
        font-size: 14px;
        border-radius: 8px;
    }
}


/* =========================================================
   DESKTOP
   ========================================================= */

@media (min-width: 768px) {

    html {
        font-size: 15px;
    }
}
