/* =========================================================
   BANBAB ATTENDANCE SYSTEM
   Theme : Orange / White / Black
   Font  : Prompt
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700;800&display=swap');


/* =========================================================
   ROOT
========================================================= */

:root {
    --orange: #f97316;
    --orange-dark: #ea580c;
    --orange-light: #fff7ed;
    --orange-soft: #fed7aa;

    --black: #111111;
    --black-soft: #1c1c1c;

    --white: #ffffff;

    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e5e5e5;
    --gray-400: #d4d4d4;
    --gray-500: #a3a3a3;
    --gray-600: #737373;
    --gray-700: #525252;
    --gray-800: #262626;

    --success-bg: #ecfdf5;
    --success-text: #047857;

    --danger-bg: #fff1f2;
    --danger-text: #be123c;

    --warning-bg: #fff7ed;
    --warning-text: #c2410c;

    --border-radius: 14px;
    --border-radius-lg: 20px;

    --shadow-sm:
        0 5px 18px rgba(0, 0, 0, 0.05);

    --shadow-md:
        0 12px 32px rgba(0, 0, 0, 0.09);

    --shadow-lg:
        0 20px 55px rgba(0, 0, 0, 0.13);
}


/* =========================================================
   RESET / GLOBAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    font-family:
        "Prompt",
        "Tahoma",
        "Arial",
        sans-serif;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.6;

    color: var(--black);
    background: var(--white);

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Prompt", sans-serif;
    line-height: 1.4;
}

button {
    font-family: "Prompt", sans-serif;
}


/* =========================================================
   PUBLIC HOME
========================================================= */

.public-home-body {
    min-height: 100vh;

    background: var(--white);
    color: var(--black);
}

.public-container {
    width: min(1180px, calc(100% - 40px));

    margin-left: auto;
    margin-right: auto;
}


/* =========================================================
   PUBLIC HEADER
========================================================= */

.public-header {
    position: relative;
    z-index: 50;

    background: var(--orange);

    border-bottom: none;

    box-shadow:
        0 5px 18px
        rgba(0, 0, 0, 0.10);
}

.public-navbar {
    min-height: 96px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 10px;
    padding-bottom: 10px;
}


/* =========================================================
   LOGO + SHOP NAME
========================================================= */

.public-brand {
    display: flex;
    align-items: center;

    gap: 13px;

    padding: 8px 18px 8px 10px;

    background: #ffffff;

    border-radius: 16px;

    color: var(--black);

    text-decoration: none;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.12);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.public-brand:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 22px
        rgba(0, 0, 0, 0.16);
}

.public-brand img {
    width: 66px;
    height: 66px;

    object-fit: contain;

    border-radius: 11px;

    background: #ffffff;
}

.public-brand div {
    display: flex;
    flex-direction: column;
}

.public-brand strong {
    color: var(--black);

    font-size: 17px;
    font-weight: 700;

    line-height: 1.4;
}

.public-brand span {
    margin-top: 2px;

    color: var(--gray-600);

    font-size: 11px;
    font-weight: 400;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.public-login-link {
    padding: 12px 22px;

    border: 2px solid rgba(255, 255, 255, 0.30);
    border-radius: 11px;

    background: var(--black);
    color: var(--white);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, 0.15);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.public-login-link:hover {
    background: #262626;

    transform: translateY(-2px);

    box-shadow:
        0 9px 22px
        rgba(0, 0, 0, 0.20);
}

/* =========================================================
   PUBLIC HERO
========================================================= */

.public-hero {
    position: relative;

    overflow: hidden;

    padding: 90px 0 105px;

    background:
        radial-gradient(
            circle at 90% 20%,
            rgba(249, 115, 22, 0.16),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #fffaf5 58%,
            #ffffff 100%
        );
}

.public-hero::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    left: -280px;
    bottom: -300px;

    border-radius: 50%;

    background: rgba(0, 0, 0, 0.035);
}

.hero-grid {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(380px, 0.9fr);

    align-items: center;

    gap: 75px;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-flex;

    padding: 8px 14px;

    margin-bottom: 22px;

    border: 1px solid var(--orange-soft);
    border-radius: 50px;

    background: var(--orange-light);

    color: var(--orange-dark);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1px;
}

.hero-content h1 {
    margin: 0;

    max-width: 720px;

    color: var(--black);

    font-size: clamp(42px, 5vw, 70px);
    font-weight: 700;

    line-height: 1.18;

    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--orange);
}

.hero-description {
    max-width: 670px;

    margin: 26px 0 0;

    color: var(--gray-700);

    font-size: 16px;
    font-weight: 400;

    line-height: 1.9;
}

.hero-actions {
    margin-top: 32px;
}

.btn-public-primary {
    min-width: 245px;

    padding: 14px 17px 14px 22px;

    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    border-radius: 13px;

    background: var(--orange);
    color: var(--white);

    text-decoration: none;

    box-shadow:
        0 10px 28px
        rgba(249, 115, 22, 0.25);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-public-primary:hover {
    background: var(--orange-dark);

    transform: translateY(-2px);

    box-shadow:
        0 15px 34px
        rgba(249, 115, 22, 0.34);
}

.btn-public-primary > span {
    font-size: 13px;
    font-weight: 400;
}

.btn-public-primary strong {
    padding: 8px 12px;

    border-radius: 8px;

    background: rgba(0, 0, 0, 0.17);

    font-size: 13px;
    font-weight: 600;
}

.hero-security {
    margin-top: 20px;

    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--gray-600);

    font-size: 12px;
}

.hero-security-icon {
    width: 22px;
    height: 22px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--black);
    color: var(--white);

    font-size: 10px;
}


/* =========================================================
   HERO VISUAL
========================================================= */

.hero-visual {
    position: relative;

    min-height: 445px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual::before {
    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    background: var(--orange);

    opacity: 0.09;
}

.hero-logo-card {
    position: relative;
    z-index: 2;

    width: 335px;

    padding: 22px;

    border: 1px solid var(--gray-200);
    border-radius: 28px;

    background: rgba(255, 255, 255, 0.97);

    box-shadow: var(--shadow-lg);
}

.hero-logo-inner {
    height: 250px;

    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: var(--white);
}

.hero-logo-inner img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.hero-logo-text {
    padding-top: 16px;

    text-align: center;

    display: flex;
    flex-direction: column;
}

.hero-logo-text strong {
    color: var(--black);

    font-size: 17px;
    font-weight: 600;
}

.hero-logo-text span {
    margin-top: 4px;

    color: var(--gray-500);

    font-size: 11px;
}

.floating-card {
    position: absolute;
    z-index: 5;

    min-width: 185px;

    padding: 13px 15px;

    display: flex;
    align-items: center;

    gap: 11px;

    border: 1px solid var(--gray-200);
    border-radius: 14px;

    background: var(--white);

    box-shadow: var(--shadow-md);
}

.floating-card-one {
    left: -15px;
    top: 65px;
}

.floating-card-two {
    right: -10px;
    bottom: 60px;
}

.floating-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--orange-light);
    color: var(--orange);

    font-size: 20px;
}

.floating-icon.dark {
    background: var(--black);
    color: var(--white);
}

.floating-card div {
    display: flex;
    flex-direction: column;
}

.floating-card small {
    color: var(--gray-500);

    font-size: 10px;
}

.floating-card strong {
    margin-top: 3px;

    color: var(--black);

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   PUBLIC FEATURES
========================================================= */

.public-features {
    padding: 90px 0;

    background: var(--black);
}

.public-section-title {
    max-width: 700px;

    margin-bottom: 42px;
}

.public-section-title > span {
    color: #fb923c;

    font-size: 12px;
    font-weight: 700;
}

.public-section-title h2 {
    margin: 10px 0;

    color: var(--white);

    font-size: 34px;
    font-weight: 600;

    line-height: 1.5;
}

.public-section-title p {
    margin: 0;

    color: var(--gray-500);

    font-size: 14px;

    line-height: 1.8;
}

.public-feature-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.public-feature-card {
    position: relative;

    min-height: 275px;

    padding: 28px;

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    border-radius: 20px;

    background: var(--black-soft);

    color: var(--white);

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.public-feature-card:hover {
    transform: translateY(-4px);

    border-color:
        rgba(249, 115, 22, 0.55);
}

.public-feature-card.featured {
    background: var(--orange);

    border-color: var(--orange);
}

.feature-number {
    position: absolute;

    right: 24px;
    top: 20px;

    color:
        rgba(255, 255, 255, 0.22);

    font-size: 36px;
    font-weight: 700;
}

.feature-icon {
    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.08);

    font-size: 23px;
}

.public-feature-card h3 {
    margin: 28px 0 10px;

    font-size: 20px;
    font-weight: 600;
}

.public-feature-card p {
    margin: 0;

    color: #bdbdbd;

    font-size: 14px;

    line-height: 1.9;
}

.public-feature-card.featured p {
    color:
        rgba(255, 255, 255, 0.88);
}


/* =========================================================
   PUBLIC OWNER SECTION
========================================================= */

.public-owner-section {
    padding: 80px 0;

    background: var(--white);
}

.owner-box {
    padding: 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    border: 1px solid var(--orange-soft);
    border-radius: 24px;

    background:
        linear-gradient(
            120deg,
            var(--orange-light),
            #ffffff
        );
}

.owner-label {
    color: var(--orange);

    font-size: 11px;
    font-weight: 700;
}

.owner-box h2 {
    margin: 8px 0;

    color: var(--black);

    font-size: 28px;
    font-weight: 600;
}

.owner-box p {
    max-width: 670px;

    margin: 0;

    color: var(--gray-600);

    font-size: 14px;

    line-height: 1.8;
}

.owner-login-button {
    flex: 0 0 auto;

    padding: 14px 20px;

    display: flex;
    align-items: center;

    gap: 22px;

    border-radius: 11px;

    background: var(--black);
    color: var(--white);

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.owner-login-button:hover {
    background: var(--orange);

    transform: translateY(-2px);
}

.owner-login-button span {
    color: #fb923c;

    font-size: 22px;
}

.owner-login-button:hover span {
    color: var(--white);
}


/* =========================================================
   PUBLIC FOOTER
========================================================= */

.public-footer {
    padding: 28px 0;

    background: #090909;

    color: var(--white);
}

.public-footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.public-footer-content > div {
    display: flex;
    flex-direction: column;
}

.public-footer-content strong {
    font-size: 14px;
    font-weight: 600;
}

.public-footer-content span {
    margin-top: 4px;

    color: var(--gray-600);

    font-size: 11px;
}

.public-footer p {
    margin: 0;

    color: var(--gray-600);

    font-size: 11px;
}












/* =========================================================
   LOGIN / OTP - AUTHENTICATION
========================================================= */

.auth-page {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 10% 10%,
            rgba(249, 115, 22, 0.11),
            transparent 28%
        ),
        radial-gradient(
            circle at 90% 90%,
            rgba(0, 0, 0, 0.055),
            transparent 30%
        ),
        #f7f7f7;
}


/* =========================================================
   WRAPPER
========================================================= */

.auth-page-wrapper {
    width: 100%;
    min-height: 100vh;

    padding: 34px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================================================
   MAIN AUTH BOX
========================================================= */

.auth-shell {
    width: min(1080px, 100%);
    min-height: 650px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.03fr)
        minmax(0, 0.97fr);

    overflow: hidden;

    border: 1px solid var(--gray-200);
    border-radius: 28px;

    background: var(--white);

    box-shadow:
        0 28px 75px
        rgba(0, 0, 0, 0.13);
}


/* =========================================================
   LEFT SHOWCASE
========================================================= */

.auth-showcase {
    position: relative;

    padding: 48px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 95% 10%,
            rgba(255, 255, 255, 0.10),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #f97316 0%,
            #ea580c 58%,
            #111111 150%
        );

    color: var(--white);
}


/*
    วงกลมตกแต่งด้านหลัง
*/

.auth-showcase::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    right: -190px;
    bottom: -170px;

    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.11);
}


.auth-showcase::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    right: -80px;
    top: -80px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);
}


.auth-showcase-top {
    position: relative;
    z-index: 2;
}


/* =========================================================
   LOGO
========================================================= */

.auth-showcase-brand {
    display: inline-block;

    margin-bottom: 35px;

    text-decoration: none;
}


.auth-showcase-logo {
    width: 190px;
    height: 135px;

    padding: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 20px;

    background: var(--white);

    box-shadow:
        0 15px 34px
        rgba(0, 0, 0, 0.20);
}


.auth-showcase-logo img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}


/* =========================================================
   LEFT HEADING
========================================================= */

.auth-system-label {
    display: inline-flex;

    padding: 6px 11px;

    margin-bottom: 12px;

    border:
        1px solid
        rgba(255, 255, 255, 0.30);

    border-radius: 50px;

    background:
        rgba(255, 255, 255, 0.12);

    color:
        rgba(255, 255, 255, 0.93);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1px;
}


.auth-showcase-heading h1 {
    margin: 0;

    color: var(--white);

    font-size: 34px;
    font-weight: 600;

    line-height: 1.4;
}


.auth-showcase-heading p {
    max-width: 430px;

    margin: 10px 0 0;

    color:
        rgba(255, 255, 255, 0.82);

    font-size: 14px;

    line-height: 1.9;
}


/* =========================================================
   LEFT FEATURE LIST
========================================================= */

.auth-showcase-features {
    position: relative;
    z-index: 2;

    margin-top: 42px;

    display: flex;
    flex-direction: column;

    gap: 13px;
}


.auth-feature {
    padding: 14px 16px;

    display: flex;
    align-items: center;

    gap: 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.14);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.08);

    backdrop-filter: blur(4px);
}


.auth-feature-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--white);

    color: var(--orange);

    font-size: 13px;
    font-weight: 700;
}


.auth-feature > div {
    display: flex;
    flex-direction: column;
}


.auth-feature strong {
    color: var(--white);

    font-size: 12px;
    font-weight: 500;
}


.auth-feature span:not(.auth-feature-icon) {
    margin-top: 2px;

    color:
        rgba(255, 255, 255, 0.70);

    font-size: 10px;
}


/* =========================================================
   LEFT FOOTER
========================================================= */

.auth-showcase-footer {
    position: relative;
    z-index: 2;

    margin-top: auto;
    padding-top: 28px;

    display: flex;
    align-items: center;

    gap: 8px;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 10px;
}


.auth-security-mark {
    width: 23px;
    height: 23px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.14);

    color: var(--white);
}


/* =========================================================
   RIGHT FORM SIDE
========================================================= */

.auth-form-side {
    padding: 58px 55px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    background: var(--white);
}


.auth-mobile-logo {
    display: none;
}


/* =========================================================
   FORM HEADING
========================================================= */

.auth-form-heading {
    margin-bottom: 30px;
}


.auth-form-badge {
    display: inline-flex;

    padding: 6px 10px;

    margin-bottom: 12px;

    border-radius: 50px;

    background: var(--orange-light);

    color: var(--orange-dark);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.8px;
}


.auth-form-heading h2 {
    margin: 0;

    color: var(--black);

    font-size: 30px;
    font-weight: 600;

    line-height: 1.4;
}


.auth-form-heading p {
    max-width: 430px;

    margin: 8px 0 0;

    color: var(--gray-600);

    font-size: 13px;

    line-height: 1.8;
}


/* =========================================================
   FORM
========================================================= */

.auth-form {
    width: 100%;
}


.auth-field {
    margin-bottom: 19px;
}


.auth-field label {
    display: block;

    margin-bottom: 7px;

    color: var(--gray-800);

    font-size: 12px;
    font-weight: 500;
}


.auth-input-wrapper {
    position: relative;
}


.auth-input-icon {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    pointer-events: none;

    font-size: 15px;

    opacity: 0.65;
}


.auth-input-wrapper input {
    width: 100%;

    min-height: 52px;

    padding:
        12px
        14px
        12px
        44px;

    border:
        1px solid
        var(--gray-400);

    border-radius: 11px;

    outline: none;

    background: var(--white);
    color: var(--black);

    font-family: "Prompt", sans-serif;

    font-size: 14px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.auth-input-wrapper input:hover {
    border-color: #bdbdbd;
}


.auth-input-wrapper input:focus {
    border-color: var(--orange);

    background: #fffdfa;

    box-shadow:
        0 0 0 4px
        rgba(249, 115, 22, 0.11);
}


.auth-input-wrapper input::placeholder {
    color: var(--gray-500);
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.auth-submit {
    width: 100%;
    min-height: 54px;

    margin-top: 5px;

    padding: 12px 16px 12px 20px;

    border: 0;
    border-radius: 11px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: var(--black);
    color: var(--white);

    font-family: "Prompt", sans-serif;

    font-size: 14px;
    font-weight: 500;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.13);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}


.auth-submit:hover {
    background: var(--orange);

    transform: translateY(-2px);

    box-shadow:
        0 12px 26px
        rgba(249, 115, 22, 0.24);
}


.auth-submit:active {
    transform: translateY(0);
}


.auth-submit-arrow {
    width: 31px;
    height: 31px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background:
        rgba(255, 255, 255, 0.12);

    font-size: 17px;
}


/* =========================================================
   2FA INFORMATION
========================================================= */

.auth-two-factor {
    margin-top: 24px;

    padding: 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    border: 1px solid var(--orange-soft);
    border-radius: 12px;

    background: var(--orange-light);
}


.auth-two-factor-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: var(--white);

    font-size: 17px;
}


.auth-two-factor > div:not(.auth-two-factor-icon) {
    display: flex;
    flex-direction: column;
}


.auth-two-factor strong {
    color: #9a3412;

    font-size: 11px;
    font-weight: 500;
}


.auth-two-factor span {
    margin-top: 2px;

    color: #c2410c;

    font-size: 9px;

    line-height: 1.6;
}


/* =========================================================
   BACK LINK
========================================================= */

.auth-back-home {
    margin-top: 24px;

    align-self: flex-start;

    color: var(--gray-600);

    text-decoration: none;

    font-size: 11px;

    transition:
        color 0.2s ease;
}


.auth-back-home:hover {
    color: var(--orange);
}


/* =========================================================
   AUTH ALERT
========================================================= */

.auth-alert {
    margin-bottom: 20px;

    padding: 12px 14px;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    border-radius: 11px;

    font-size: 11px;

    line-height: 1.7;
}


.auth-alert-error {
    border: 1px solid #fdba74;

    background: #fff7ed;

    color: #9a3412;
}


.auth-alert-icon {
    width: 22px;
    height: 22px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f97316;
    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}


/* =========================================================
   OTP
========================================================= */

.otp-input {
    width: 100%;

    min-height: 72px;

    padding: 14px;

    border: 2px solid var(--gray-300);
    border-radius: 14px;

    outline: none;

    background: #fafafa;
    color: var(--black);

    text-align: center;

    font-family: "Prompt", sans-serif;

    font-size: 29px;
    font-weight: 600;

    letter-spacing: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.otp-input::placeholder {
    color: #d4d4d4;
}


.otp-input:focus {
    border-color: var(--orange);

    background: var(--white);

    box-shadow:
        0 0 0 5px
        rgba(249, 115, 22, 0.11);
}


.otp-help {
    margin-top: 8px;

    color: var(--gray-500);

    font-size: 10px;

    text-align: center;

    line-height: 1.6;
}


/* =========================================================
   OTP LEFT VISUAL
========================================================= */

.otp-showcase {
    position: relative;
    z-index: 2;

    width: 100%;

    margin: auto 0;

    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 20px;

    background:
        rgba(255, 255, 255, 0.08);
}


.otp-showcase-icon {
    width: 70px;
    height: 70px;

    margin-bottom: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: var(--white);

    font-size: 29px;

    box-shadow:
        0 10px 25px
        rgba(0, 0, 0, 0.14);
}


.otp-showcase strong {
    color: var(--white);

    font-size: 18px;
    font-weight: 500;
}


.otp-showcase span {
    max-width: 340px;

    margin-top: 6px;

    color:
        rgba(255, 255, 255, 0.75);

    font-size: 11px;

    line-height: 1.8;
}




















/* =========================================================
   ALERT
========================================================= */

.alert {
    margin-bottom: 20px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.7;
}

.alert-error {
    border: 1px solid #fdba74;

    background: var(--warning-bg);

    color: #9a3412;
}

.alert-success {
    border: 1px solid #a7f3d0;

    background: var(--success-bg);

    color: var(--success-text);
}


/* =========================================================
   ADMIN LAYOUT
========================================================= */

.admin-body {
    min-height: 100vh;

    background: #f7f7f7;
    color: var(--black);
}

.admin-layout {
    min-height: 100vh;

    display: flex;
}


/* =========================================================
   ADMIN SIDEBAR
========================================================= */

.admin-sidebar {
    width: 260px;

    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    z-index: 1000;

    display: flex;
    flex-direction: column;

    background: var(--black);

    color: var(--white);
}

.sidebar-brand {
    min-height: 94px;

    padding: 18px 18px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.sidebar-logo {
    width: 60px;
    height: 60px;

    flex: 0 0 auto;

    object-fit: contain;

    border-radius: 11px;

    background: var(--white);
}

.sidebar-brand-text {
    min-width: 0;

    display: flex;
    flex-direction: column;
}

.sidebar-brand-text strong {
    color: var(--white);

    font-size: 15px;
    font-weight: 600;
}

.sidebar-brand-text span {
    margin-top: 3px;

    color: var(--gray-500);

    font-size: 11px;
}

.sidebar-menu {
    flex: 1;

    padding: 18px 12px;

    overflow-y: auto;
}

.sidebar-link {
    min-height: 48px;

    margin-bottom: 6px;

    padding: 11px 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-radius: 10px;

    color: #d4d4d4;

    text-decoration: none;

    font-size: 14px;
    font-weight: 400;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.sidebar-link:hover {
    background:
        rgba(255, 255, 255, 0.07);

    color: var(--white);

    transform: translateX(2px);
}

.sidebar-link.active {
    background: var(--orange);
    color: var(--white);

    font-weight: 500;
}

.sidebar-icon {
    width: 23px;

    flex: 0 0 auto;

    text-align: center;

    font-size: 18px;
}

.sidebar-footer {
    padding: 15px;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.09);
}

.sidebar-footer form {
    margin: 0;
}

.sidebar-logout {
    width: 100%;

    padding: 11px 14px;

    border: 1px solid #404040;
    border-radius: 9px;

    background: transparent;

    color: var(--white);

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.sidebar-logout:hover {
    border-color: var(--orange);

    background: var(--orange);
}


/* =========================================================
   ADMIN MAIN
========================================================= */

.admin-main {
    width: calc(100% - 260px);
    min-height: 100vh;

    margin-left: 260px;

    display: flex;
    flex-direction: column;
}


/* =========================================================
   ADMIN HEADER
========================================================= */

.admin-header {
    min-height: 76px;

    position: sticky;
    top: 0;

    z-index: 900;

    padding: 13px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid var(--gray-300);

    background:
        rgba(255, 255, 255, 0.97);

    backdrop-filter: blur(10px);
}

.admin-header-left {
    display: flex;
    align-items: center;

    gap: 14px;
}

.admin-header h1 {
    margin: 0;

    color: var(--black);

    font-size: 21px;
    font-weight: 600;
}

.sidebar-toggle {
    display: none;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 9px;

    align-items: center;
    justify-content: center;

    background: var(--orange);
    color: var(--white);

    cursor: pointer;

    font-size: 20px;
}

.admin-user {
    display: flex;
    align-items: center;

    gap: 10px;
}

.admin-user-avatar {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--orange);
    color: var(--white);

    font-size: 17px;
    font-weight: 600;
}

.admin-user-info {
    display: flex;
    flex-direction: column;
}

.admin-user-info strong {
    color: var(--black);

    font-size: 13px;
    font-weight: 500;
}

.admin-user-info span {
    margin-top: 2px;

    color: var(--gray-600);

    font-size: 11px;
}


/* =========================================================
   ADMIN CONTENT
========================================================= */

.admin-content {
    flex: 1;

    padding: 28px;
}


/* =========================================================
   ADMIN FOOTER
========================================================= */

.admin-footer {
    padding: 17px 28px;

    display: flex;
    justify-content: space-between;

    gap: 15px;

    border-top: 1px solid var(--gray-300);

    background: var(--white);

    color: var(--gray-600);

    font-size: 11px;
}


/* =========================================================
   GENERIC ADMIN CARD
========================================================= */

.page-card {
    padding: 24px;

    border: 1px solid var(--gray-200);
    border-radius: 17px;

    background: var(--white);

    box-shadow: var(--shadow-sm);
}

.page-card + .page-card {
    margin-top: 20px;
}

.page-title {
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.page-title h2 {
    margin: 0;

    color: var(--black);

    font-size: 20px;
    font-weight: 600;
}

.page-title p {
    margin: 4px 0 0;

    color: var(--gray-600);

    font-size: 12px;
}


/* =========================================================
   ADMIN BUTTON
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 10px 16px;

    border: 0;
    border-radius: 9px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.1s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--orange-dark);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-dark:hover {
    background: #2b2b2b;
}

.btn-light {
    border: 1px solid var(--gray-300);

    background: var(--white);
    color: var(--black);
}


/* =========================================================
   ADMIN TABLE
========================================================= */

.table-responsive {
    width: 100%;

    overflow-x: auto;
}

.data-table {
    width: 100%;

    border-collapse: collapse;

    background: var(--white);
}

.data-table th {
    padding: 12px 14px;

    border-bottom: 1px solid var(--gray-300);

    background: var(--gray-50);

    color: var(--gray-700);

    text-align: left;

    font-size: 12px;
    font-weight: 500;

    white-space: nowrap;
}

.data-table td {
    padding: 13px 14px;

    border-bottom: 1px solid var(--gray-200);

    color: var(--gray-800);

    font-size: 13px;
}

.data-table tbody tr:hover {
    background: #fffaf5;
}


/* =========================================================
   BADGES
========================================================= */

.badge {
    display: inline-flex;
    align-items: center;

    padding: 5px 9px;

    border-radius: 50px;

    font-size: 10px;
    font-weight: 500;
}

.badge-active {
    background: var(--success-bg);
    color: var(--success-text);
}

.badge-inactive {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-orange {
    background: var(--orange-light);
    color: var(--orange-dark);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger-text);
}


/* =========================================================
   DASHBOARD
========================================================= */

.dashboard-welcome {
    position: relative;

    min-height: 225px;

    padding: 38px 42px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    overflow: hidden;

    border-radius: 22px;

    background:
        linear-gradient(
            120deg,
            #111111 0%,
            #202020 65%,
            #5a2b0d 150%
        );

    color: var(--white);

    box-shadow: var(--shadow-md);
}

.dashboard-welcome::after {
    content: "";

    position: absolute;

    width: 290px;
    height: 290px;

    right: -110px;
    bottom: -180px;

    border-radius: 50%;

    background:
        rgba(249, 115, 22, 0.19);
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-label {
    display: inline-flex;

    padding: 7px 12px;

    margin-bottom: 14px;

    border:
        1px solid
        rgba(249, 115, 22, 0.4);

    border-radius: 50px;

    background:
        rgba(249, 115, 22, 0.14);

    color: #fb923c;

    font-size: 11px;
    font-weight: 500;
}

.welcome-content h2 {
    margin: 0 0 8px;

    font-size: 29px;
    font-weight: 600;
}

.welcome-content p {
    margin: 0;

    color: var(--gray-400);

    font-size: 14px;
}

.welcome-date {
    margin-top: 19px;

    color: var(--white);

    font-size: 13px;
    font-weight: 500;
}

.welcome-logo {
    position: relative;
    z-index: 2;

    width: 165px;
    height: 145px;

    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: var(--white);

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.25);
}

.welcome-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   DASHBOARD SECTION
========================================================= */

.dashboard-section {
    margin-top: 27px;
}

.section-heading {
    margin-bottom: 16px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;
}

.section-heading h2,
.panel-header h3 {
    margin: 0;

    color: var(--black);

    font-size: 18px;
    font-weight: 600;
}

.section-heading p,
.panel-header p {
    margin: 4px 0 0;

    color: var(--gray-600);

    font-size: 12px;
}

.status-live {
    padding: 7px 12px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    border: 1px solid var(--gray-300);
    border-radius: 50px;

    background: var(--white);

    color: var(--gray-700);

    font-size: 11px;
    font-weight: 500;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--orange);
}


/* =========================================================
   DASHBOARD STATS
========================================================= */

.dashboard-stats {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;
}

.stat-card {
    position: relative;

    min-height: 136px;

    padding: 21px;

    display: flex;
    align-items: center;

    gap: 17px;

    overflow: hidden;

    border: 1px solid var(--gray-200);
    border-radius: 18px;

    background: var(--white);

    box-shadow: var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);

    box-shadow: var(--shadow-md);
}

.stat-card::after {
    content: "";

    position: absolute;

    width: 72px;
    height: 72px;

    right: -28px;
    top: -28px;

    border-radius: 50%;

    background:
        rgba(249, 115, 22, 0.07);
}

.stat-icon {
    width: 52px;
    height: 52px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: var(--orange-light);
    color: var(--orange);

    font-size: 22px;
    font-weight: 600;
}

.stat-content {
    display: grid;

    grid-template-columns: auto auto;

    align-items: end;

    column-gap: 6px;
}

.stat-label {
    grid-column: 1 / -1;

    margin-bottom: 5px;

    color: var(--gray-600);

    font-size: 12px;
}

.stat-content strong {
    color: var(--black);

    font-size: 31px;
    font-weight: 600;

    line-height: 1;
}

.stat-content small {
    padding-bottom: 3px;

    color: var(--gray-600);

    font-size: 11px;
}


/* =========================================================
   DASHBOARD PANELS
========================================================= */

.dashboard-grid {
    margin-top: 23px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(0, 0.8fr);

    gap: 22px;
}

.dashboard-panel {
    padding: 23px;

    border: 1px solid var(--gray-200);
    border-radius: 18px;

    background: var(--white);

    box-shadow: var(--shadow-sm);
}

.panel-header {
    margin-bottom: 20px;
}


/* =========================================================
   WORK TYPES
========================================================= */

.work-type-list {
    display: flex;
    flex-direction: column;

    gap: 12px;
}

.work-type-item {
    padding: 17px;

    display: flex;
    align-items: center;

    gap: 15px;

    border: 1px solid var(--gray-200);
    border-radius: 14px;

    background: var(--gray-50);
}

.work-type-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    font-size: 20px;
}

.work-normal {
    background: var(--orange-light);
    color: var(--orange);
}

.work-outside {
    background: var(--black);
    color: var(--white);
}

.work-type-info {
    flex: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;
}

.work-type-info strong {
    font-size: 13px;
    font-weight: 500;
}

.work-type-info span {
    margin-top: 4px;

    color: var(--gray-600);

    font-size: 11px;
}

.work-type-number {
    color: var(--black);

    font-size: 23px;
    font-weight: 600;

    white-space: nowrap;
}

.work-type-number small {
    color: var(--gray-600);

    font-size: 10px;
    font-weight: 400;
}


/* =========================================================
   QUICK ACTION
========================================================= */

.quick-actions {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.quick-action {
    padding: 14px;

    display: flex;
    align-items: center;

    gap: 13px;

    border: 1px solid var(--gray-200);
    border-radius: 13px;

    color: var(--black);

    text-decoration: none;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.quick-action:hover {
    border-color: #fdba74;

    background: #fffaf5;

    transform: translateX(3px);
}

.quick-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: var(--orange-light);

    font-size: 19px;
}

.quick-text {
    flex: 1;

    min-width: 0;

    display: flex;
    flex-direction: column;
}

.quick-text strong {
    font-size: 13px;
    font-weight: 500;
}

.quick-text small {
    margin-top: 3px;

    color: var(--gray-600);

    font-size: 10px;
}

.quick-arrow {
    color: var(--orange);

    font-size: 23px;
}


/* =========================================================
   SYSTEM STATUS
========================================================= */

.dashboard-system {
    margin-top: 22px;
}

.system-status-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}

.system-status-item {
    min-height: 92px;

    padding: 16px;

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 12px;

    border: 1px solid var(--gray-200);
    border-radius: 14px;

    background: var(--gray-50);
}

.system-status-icon {
    font-size: 22px;
}

.system-status-item > div {
    display: flex;
    flex-direction: column;
}

.system-status-item strong {
    color: var(--black);

    font-size: 12px;
    font-weight: 500;
}

.system-status-item div span {
    margin-top: 4px;

    color: var(--gray-600);

    font-size: 10px;
}

.system-badge {
    padding: 5px 9px;

    border-radius: 50px;

    font-size: 9px;
    font-weight: 500;

    white-space: nowrap;
}

.system-badge.success {
    background: var(--success-bg);
    color: var(--success-text);
}

.system-badge.waiting {
    background: var(--orange-light);
    color: var(--warning-text);
}


/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1200px) {

    .dashboard-stats {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .system-status-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 950px) {

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-security {
        justify-content: center;
    }

    .hero-visual {
        min-height: 400px;
    }

    .public-feature-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RESPONSIVE - ADMIN
========================================================= */

@media (max-width: 900px) {

    .admin-sidebar {
        transform: translateX(-100%);

        transition: transform 0.25s ease;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        width: 100%;

        margin-left: 0;
    }

    .sidebar-toggle {
        display: flex;
    }

    .admin-header {
        padding: 12px 18px;
    }

    .admin-content {
        padding: 20px;
    }

    .admin-user-info {
        display: none;
    }

    .admin-footer {
        padding: 16px 20px;

        flex-direction: column;
    }

    .dashboard-welcome {
        min-height: auto;

        padding: 28px;
    }

    .welcome-content h2 {
        font-size: 24px;
    }

    .welcome-logo {
        width: 125px;
        height: 110px;
    }
}


/* =========================================================
   RESPONSIVE - MOBILE
========================================================= */

@media (max-width: 650px) {

    .public-container {
        width: min(
            calc(100% - 28px),
            1180px
        );
    }

    .public-navbar {
        min-height: 74px;
    }

    .public-brand img {
        width: 54px;
        height: 54px;
    }

    .public-brand div {
        display: none;
    }

    .public-login-link {
        padding: 10px 15px;

        font-size: 12px;
    }

    .public-hero {
        padding: 60px 0 70px;
    }

    .hero-content h1 {
        font-size: 39px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-visual {
        min-height: 350px;
    }

    .hero-logo-card {
        width: 270px;
    }

    .hero-logo-inner {
        height: 200px;
    }

    .floating-card {
        display: none;
    }

    .public-features {
        padding: 65px 0;
    }

    .public-section-title h2 {
        font-size: 26px;
    }

    .owner-box {
        padding: 27px;

        flex-direction: column;
        align-items: flex-start;
    }

    .owner-box h2 {
        font-size: 23px;
    }

    .owner-login-button {
        width: 100%;

        justify-content: space-between;
    }

    .public-footer-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-wrapper {
        padding: 16px;
    }

    .auth-card {
        padding: 28px 22px;

        border-radius: 17px;
    }

    .auth-logo {
        width: 165px;
        height: 120px;
    }

    .auth-brand h1 {
        font-size: 19px;
    }

    #otp {
        font-size: 22px;

        letter-spacing: 6px;
    }

    .dashboard-welcome {
        padding: 23px;

        border-radius: 16px;
    }

    .welcome-logo {
        display: none;
    }

    .welcome-content h2 {
        font-size: 21px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .stat-card {
        min-height: 110px;

        padding: 18px;
    }

    .dashboard-panel {
        padding: 18px;

        border-radius: 15px;
    }

    .work-type-item {
        padding: 14px;
    }

    .system-status-item {
        grid-template-columns:
            auto 1fr;
    }

    .system-badge {
        grid-column: 2;

        justify-self: start;
    }

    .page-title {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .hero-content h1 {
        font-size: 34px;
    }

    .hero-logo-card {
        width: 245px;
    }

    .hero-logo-inner {
        height: 180px;
    }

    .public-feature-card {
        padding: 23px;
    }

    .auth-card {
        padding: 24px 18px;
    }

    .admin-content {
        padding: 15px;
    }
}







/* =========================================================
   AUTH RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .auth-page-wrapper {
        padding: 22px;
    }

    .auth-shell {
        max-width: 580px;
        min-height: auto;

        grid-template-columns: 1fr;
    }

    .auth-showcase {
        display: none;
    }

    .auth-form-side {
        padding: 45px 40px;
    }

    .auth-mobile-logo {
        width: 180px;
        height: 125px;

        margin: 0 auto 27px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .auth-mobile-logo img {
        width: 100%;
        height: 100%;

        object-fit: contain;
    }
}


@media (max-width: 560px) {

    .auth-page-wrapper {
        padding: 0;

        align-items: stretch;
    }

    .auth-shell {
        width: 100%;
        max-width: none;
        min-height: 100vh;

        border: 0;
        border-radius: 0;

        box-shadow: none;
    }

    .auth-form-side {
        min-height: 100vh;

        padding: 34px 24px;

        justify-content: center;
    }

    .auth-mobile-logo {
        width: 155px;
        height: 108px;

        margin-bottom: 22px;
    }

    .auth-form-heading {
        margin-bottom: 25px;

        text-align: center;
    }

    .auth-form-heading h2 {
        font-size: 25px;
    }

    .auth-form-heading p {
        margin-left: auto;
        margin-right: auto;

        font-size: 12px;
    }

    .auth-form-badge {
        font-size: 9px;
    }

    .auth-input-wrapper input {
        min-height: 52px;

        font-size: 14px;
    }

    .auth-submit {
        min-height: 53px;
    }

    .otp-input {
        min-height: 68px;

        font-size: 25px;

        letter-spacing: 8px;
    }

    .auth-two-factor {
        align-items: flex-start;
    }

    .auth-back-home {
        align-self: center;
    }
}


@media (max-width: 380px) {

    .auth-form-side {
        padding-left: 18px;
        padding-right: 18px;
    }

    .otp-input {
        font-size: 23px;

        letter-spacing: 6px;
    }
}




/* =========================================================
   OUTSIDE ACTIVITIES
========================================================= */

.activity-page {
    width: 100%;
}


/* PAGE HEADER */

.activity-page-header {
    margin-bottom: 22px;

    padding: 27px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    border-radius: 18px;

    background:
        linear-gradient(
            120deg,
            #111111 0%,
            #252525 72%,
            #4c260d 150%
        );

    color: #ffffff;

    box-shadow:
        0 9px 28px
        rgba(0, 0, 0, 0.10);
}

.activity-page-label {
    display: inline-flex;

    margin-bottom: 7px;

    color: #fb923c;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1px;
}

.activity-page-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 23px;
    font-weight: 600;
}

.activity-page-header p {
    margin: 5px 0 0;

    color: #bdbdbd;

    font-size: 12px;
}

.activity-add-button {
    flex: 0 0 auto;

    white-space: nowrap;
}


/* =========================================================
   RULE
========================================================= */

.activity-rule-box {
    margin-bottom: 20px;

    padding: 17px 20px;

    display: flex;
    align-items: center;

    gap: 14px;

    border: 1px solid #fed7aa;
    border-radius: 14px;

    background: #fff7ed;
}

.activity-rule-icon {
    width: 44px;
    height: 44px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #ffffff;

    font-size: 20px;
}

.activity-rule-box > div:last-child {
    display: flex;
    flex-direction: column;
}

.activity-rule-box strong {
    color: #9a3412;

    font-size: 12px;
    font-weight: 600;
}

.activity-rule-box p {
    margin: 3px 0 0;

    color: #c2410c;

    font-size: 11px;

    line-height: 1.7;
}


/* =========================================================
   ALERT
========================================================= */

.activity-alert {
    margin-bottom: 18px;

    padding: 13px 16px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 11px;

    font-size: 12px;
}

.activity-alert > span {
    width: 23px;
    height: 23px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-weight: 600;
}

.activity-alert-success {
    border: 1px solid #a7f3d0;

    background: #ecfdf5;

    color: #047857;
}

.activity-alert-success > span {
    background: #047857;
    color: #ffffff;
}

.activity-alert-error {
    border: 1px solid #fecaca;

    background: #fff1f2;

    color: #be123c;
}

.activity-alert-error > span {
    background: #be123c;
    color: #ffffff;
}


/* =========================================================
   LIST CARD
========================================================= */

.activity-list-card {
    padding: 0;

    overflow: hidden;
}

.activity-list-heading {
    padding: 21px 23px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid #eeeeee;
}

.activity-list-heading h3 {
    margin: 0;

    font-size: 16px;
    font-weight: 600;
}

.activity-list-heading p {
    margin: 3px 0 0;

    color: #737373;

    font-size: 11px;
}

.activity-total {
    color: #737373;

    font-size: 11px;

    white-space: nowrap;
}

.activity-total strong {
    margin: 0 4px;

    color: #f97316;

    font-size: 18px;
    font-weight: 600;
}


/* =========================================================
   ACTIVITY ROW
========================================================= */

.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    padding: 19px 23px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 22px;

    border-bottom: 1px solid #eeeeee;

    background: #ffffff;

    transition:
        background 0.2s ease;
}

.activity-item:last-child {
    border-bottom: 0;
}

.activity-item:hover {
    background: #fffaf5;
}

.activity-item.inactive {
    background: #fafafa;
}

.activity-main {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 14px;
}

.activity-location-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 13px;

    background: #f5f5f5;

    font-size: 20px;
}

.activity-location-icon.active {
    background: #fff7ed;
}

.activity-info {
    min-width: 0;
}

.activity-name-row {
    display: flex;
    align-items: center;

    flex-wrap: wrap;

    gap: 8px;
}

.activity-name-row h3 {
    margin: 0;

    color: #171717;

    font-size: 14px;
    font-weight: 500;
}

.activity-item.inactive .activity-name-row h3 {
    color: #737373;
}

.activity-meta {
    margin-top: 7px;

    display: flex;
    flex-wrap: wrap;

    gap: 7px 17px;

    color: #737373;

    font-size: 10px;
}

.activity-meta strong {
    margin-right: 3px;

    color: #525252;

    font-weight: 500;
}

/* =========================================================
   ACTIONS
========================================================= */

.activity-actions {
    flex: 0 0 auto;

    display: flex;
    align-items: center;

    gap: 8px;
}

.activity-actions form {
    margin: 0;
}


/* ---------------------------------------------------------
   รูปแบบพื้นฐานของปุ่ม
--------------------------------------------------------- */

.activity-action-edit,
.activity-action-disable,
.activity-action-enable {
    min-height: 36px;

    padding: 8px 12px;

    border-radius: 8px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: "Prompt", sans-serif;

    font-size: 10px;
    font-weight: 500;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


/* ---------------------------------------------------------
   ปุ่มแก้ไข
--------------------------------------------------------- */

.activity-action-edit {
    border: 1px solid #e5e5e5;

    background: #ffffff;

    color: #525252;
}

.activity-action-edit:hover {
    border-color: #f97316;

    color: #f97316;
}


/* ---------------------------------------------------------
   รายการที่ "เปิดใช้งานอยู่" = สีเขียว
--------------------------------------------------------- 
   
   ถึงแม้ข้อความบนปุ่มจะเป็น "ปิดใช้งาน"
   แต่สีเขียวใช้บอกสถานะปัจจุบันว่า
   รายการนี้กำลังเปิดใช้งานอยู่
--------------------------------------------------------- */

.activity-action-disable {
    border: 1px solid #86efac;

    background: #f0fdf4;

    color: #15803d;
}

.activity-action-disable:hover {
    border-color: #16a34a;

    background: #dcfce7;

    color: #166534;
}


/* ---------------------------------------------------------
   รายการที่ "ปิดใช้งานอยู่" = สีแดง
--------------------------------------------------------- 
   
   ถึงแม้ข้อความบนปุ่มจะเป็น "เปิดใช้งาน"
   แต่สีแดงใช้บอกสถานะปัจจุบันว่า
   รายการนี้กำลังปิดใช้งานอยู่
--------------------------------------------------------- */

.activity-action-enable {
    border: 1px solid #fca5a5;

    background: #fff1f2;

    color: #dc2626;
}

.activity-action-enable:hover {
    border-color: #dc2626;

    background: #fee2e2;

    color: #b91c1c;
}

/* =========================================================
   EMPTY STATE
========================================================= */

.activity-empty {
    padding: 65px 25px;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

.activity-empty-icon {
    width: 70px;
    height: 70px;

    margin-bottom: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background: #fff7ed;

    font-size: 30px;
}

.activity-empty h3 {
    margin: 0;

    font-size: 16px;
    font-weight: 600;
}

.activity-empty p {
    max-width: 450px;

    margin: 7px 0 20px;

    color: #737373;

    font-size: 11px;

    line-height: 1.8;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 760px) {

    .activity-page-header {
        padding: 22px;

        align-items: flex-start;
        flex-direction: column;
    }

    .activity-add-button {
        width: 100%;
    }

    .activity-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-actions {
        width: 100%;
    }

    .activity-actions > a,
    .activity-actions form {
        flex: 1;
    }

    .activity-actions button,
    .activity-action-edit {
        width: 100%;
    }
}


@media (max-width: 480px) {

    .activity-page-header {
        border-radius: 14px;
    }

    .activity-main {
        align-items: flex-start;
    }

    .activity-location-icon {
        width: 42px;
        height: 42px;
    }

    .activity-meta {
        flex-direction: column;

        gap: 3px;
    }
}















/* =========================================================
   CREATE OUTSIDE ACTIVITY
========================================================= */

/*
|--------------------------------------------------------------------------
| Page Header
|--------------------------------------------------------------------------
*/

.activity-create-page {
    width: 100%;
}

.activity-form-header {
    margin-bottom: 22px;
    padding: 26px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            120deg,
            #111111 0%,
            #252525 75%,
            #4c260d 150%
        );

    color: #ffffff;

    box-shadow:
        0 9px 28px
        rgba(0, 0, 0, 0.10);
}

.activity-form-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 23px;
    font-weight: 600;
}

.activity-form-header p {
    margin: 5px 0 0;

    color: #bdbdbd;

    font-size: 12px;
}

.activity-back-button {
    flex: 0 0 auto;

    padding: 10px 15px;

    border: 1px solid
        rgba(255, 255, 255, 0.18);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, 0.06);

    color: #ffffff;

    font-size: 11px;
    font-weight: 500;

    text-decoration: none;

    transition: 0.2s ease;
}

.activity-back-button:hover {
    border-color: #f97316;

    background: #f97316;

    color: #ffffff;
}


/* =========================================================
   GRID
========================================================= */

.activity-form-grid {
    display: grid;

    grid-template-columns:
        minmax(320px, 0.85fr)
        minmax(420px, 1.3fr);

    gap: 20px;

    align-items: start;
}


/* =========================================================
   CARD
========================================================= */

.activity-form-card,
.activity-map-card {
    padding: 0;

    overflow: hidden;
}

.activity-form-card-header {
    padding: 20px 22px;

    display: flex;
    align-items: center;

    gap: 12px;

    border-bottom: 1px solid #eeeeee;
}

.activity-form-number {
    width: 36px;
    height: 36px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #fff7ed;

    color: #f97316;

    font-size: 13px;
    font-weight: 700;
}

.activity-form-card-header h3 {
    margin: 0;

    font-size: 15px;
    font-weight: 600;
}

.activity-form-card-header p {
    margin: 3px 0 0;

    color: #737373;

    font-size: 10px;
}


/* =========================================================
   FORM
========================================================= */

.activity-form-body {
    padding: 23px;
}

.activity-form-group {
    margin-bottom: 20px;
}

.activity-form-group label {
    display: block;

    margin-bottom: 7px;

    color: #262626;

    font-size: 11px;
    font-weight: 500;
}

.activity-form-group .required {
    color: #f97316;
}

.activity-form-control {
    width: 100%;

    min-height: 44px;

    padding: 10px 13px;

    border: 1px solid #dddddd;
    border-radius: 10px;

    outline: none;

    background: #ffffff;

    color: #171717;

    font-family: "Prompt", sans-serif;
    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.activity-form-control:focus {
    border-color: #f97316;

    box-shadow:
        0 0 0 3px
        rgba(249, 115, 22, 0.10);
}

.activity-form-group small {
    display: block;

    margin-top: 6px;

    color: #8a8a8a;

    font-size: 9px;

    line-height: 1.6;
}


/* =========================================================
   RADIUS
========================================================= */

.activity-radius-box {
    margin-bottom: 17px;

    padding: 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    border: 1px solid #fed7aa;
    border-radius: 12px;

    background: #fff7ed;
}

.activity-radius-icon {
    width: 42px;
    height: 42px;

    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: #ffffff;

    color: #f97316;

    font-size: 22px;
}

.activity-radius-box > div:last-child {
    display: flex;
    flex-direction: column;
}

.activity-radius-box span {
    color: #9a3412;

    font-size: 9px;
}

.activity-radius-box strong {
    margin-top: 1px;

    color: #c2410c;

    font-size: 16px;
    font-weight: 600;
}

.activity-radius-box p {
    margin: 1px 0 0;

    color: #9a3412;

    font-size: 8px;
}


/* =========================================================
   SELECTED LOCATION
========================================================= */

.activity-selected-location {
    padding: 15px;

    border: 1px solid #eeeeee;
    border-radius: 12px;

    background: #fafafa;
}

.activity-location-status {
    display: flex;
    align-items: center;

    gap: 10px;
}

.activity-location-status-dot {
    width: 10px;
    height: 10px;

    flex: 0 0 auto;

    border-radius: 50%;

    background: #d4d4d4;
}

.activity-location-status-dot.ready {
    background: #22c55e;

    box-shadow:
        0 0 0 4px
        rgba(34, 197, 94, 0.12);
}

.activity-location-status strong {
    display: block;

    color: #262626;

    font-size: 11px;
    font-weight: 600;
}

.activity-location-status p {
    margin: 2px 0 0;

    color: #737373;

    font-size: 9px;
}

.activity-coordinate-grid {
    margin-top: 13px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 8px;
}

.activity-coordinate-grid > div {
    padding: 10px;

    border-radius: 9px;

    background: #ffffff;
}

.activity-coordinate-grid span {
    display: block;

    margin-bottom: 3px;

    color: #a3a3a3;

    font-size: 8px;
}

.activity-coordinate-grid strong {
    color: #404040;

    font-family:
        Consolas,
        Monaco,
        monospace;

    font-size: 10px;
    font-weight: 500;
}


/* =========================================================
   FORM ACTION
========================================================= */

.activity-form-actions {
    margin-top: 22px;

    display: flex;
    justify-content: flex-end;

    gap: 9px;
}

.activity-cancel-button,
.activity-save-button {
    min-height: 42px;

    padding: 10px 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    font-family: "Prompt", sans-serif;

    font-size: 10px;
    font-weight: 500;

    cursor: pointer;

    text-decoration: none;
}

.activity-cancel-button {
    border: 1px solid #e5e5e5;

    background: #ffffff;

    color: #525252;
}

.activity-save-button {
    border: 1px solid #f97316;

    background: #f97316;

    color: #ffffff;
}

.activity-save-button:hover {
    background: #ea580c;
}


/* =========================================================
   MAP
========================================================= */

.activity-map-body {
    padding: 20px;
}

.activity-current-location-button {
    margin-bottom: 12px;

    min-height: 39px;

    padding: 8px 13px;

    display: inline-flex;
    align-items: center;

    gap: 7px;

    border: 1px solid #fed7aa;
    border-radius: 9px;

    background: #fff7ed;

    color: #c2410c;

    font-family: "Prompt", sans-serif;

    font-size: 10px;
    font-weight: 500;

    cursor: pointer;
}

.activity-current-location-button:hover {
    background: #ffedd5;
}

.activity-current-location-button:disabled {
    opacity: 0.6;

    cursor: wait;
}


/*
|--------------------------------------------------------------------------
| Map Height
|--------------------------------------------------------------------------
|
| Leaflet จำเป็นต้องให้ Container มีความสูง
| ไม่เช่นนั้นแผนที่จะไม่แสดง
|
*/

.activity-location-map {
    width: 100%;
    height: 430px;

    overflow: hidden;

    border: 1px solid #e5e5e5;
    border-radius: 13px;

    background: #eeeeee;
}

.activity-gps-message {
    display: none;

    margin-bottom: 10px;

    padding: 9px 11px;

    border-radius: 8px;

    font-size: 9px;
}

.activity-gps-message.show {
    display: block;
}

.activity-gps-message.info {
    background: #eff6ff;

    color: #1d4ed8;
}

.activity-gps-message.success {
    background: #ecfdf5;

    color: #047857;
}

.activity-gps-message.error {
    background: #fff1f2;

    color: #be123c;
}

.activity-map-help {
    margin-top: 12px;

    padding: 12px 14px;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    border-radius: 10px;

    background: #fafafa;
}

.activity-map-help > div {
    flex: 0 0 auto;
}

.activity-map-help p {
    margin: 0;

    color: #737373;

    font-size: 9px;

    line-height: 1.7;
}

.activity-map-help strong {
    color: #525252;

    font-weight: 600;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .activity-form-grid {
        grid-template-columns: 1fr;
    }

    .activity-location-map {
        height: 400px;
    }
}


@media (max-width: 650px) {

    .activity-form-header {
        padding: 21px;

        align-items: flex-start;
        flex-direction: column;
    }

    .activity-back-button {
        width: 100%;

        text-align: center;
        justify-content: center;
    }

    .activity-form-body,
    .activity-map-body {
        padding: 17px;
    }

    .activity-coordinate-grid {
        grid-template-columns: 1fr;
    }

    .activity-location-map {
        height: 350px;
    }

    .activity-form-actions {
        flex-direction: column-reverse;
    }

    .activity-cancel-button,
    .activity-save-button {
        width: 100%;
    }
}










/* =========================================================
   PLACE SEARCH
========================================================= */

.activity-place-search {
    margin-bottom: 12px;
}

.activity-place-search label {
    display: block;

    margin-bottom: 6px;

    color: #262626;

    font-size: 10px;
    font-weight: 500;
}

.activity-place-search-row {
    display: flex;

    gap: 8px;
}

.activity-place-search-row
.activity-form-control {
    flex: 1;
}

.activity-place-search-button {
    flex: 0 0 auto;

    min-width: 85px;

    padding: 9px 14px;

    border: 1px solid #171717;
    border-radius: 9px;

    background: #171717;

    color: #ffffff;

    font-family: "Prompt", sans-serif;

    font-size: 10px;
    font-weight: 500;

    cursor: pointer;
}

.activity-place-search-button:hover {
    border-color: #f97316;

    background: #f97316;
}

.activity-place-search-button:disabled {
    opacity: 0.6;

    cursor: wait;
}

.activity-place-search small {
    display: block;

    margin-top: 5px;

    color: #8a8a8a;

    font-size: 8px;
}


/* SEARCH RESULT */

.activity-place-results {
    margin-bottom: 12px;

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.activity-place-result {
    width: 100%;

    padding: 10px 12px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    border: 1px solid #eeeeee;
    border-radius: 9px;

    background: #ffffff;

    text-align: left;

    cursor: pointer;

    transition: 0.2s ease;
}

.activity-place-result:hover {
    border-color: #f97316;

    background: #fff7ed;
}

.activity-place-result strong {
    color: #404040;

    font-family: "Prompt", sans-serif;

    font-size: 9px;
    font-weight: 400;

    line-height: 1.6;
}

.activity-place-result span {
    flex: 0 0 auto;

    color: #f97316;

    font-family: "Prompt", sans-serif;

    font-size: 8px;
    font-weight: 500;

    white-space: nowrap;
}

.activity-place-result-message {
    padding: 9px 11px;

    border-radius: 8px;

    font-size: 9px;
}

.activity-place-result-message.info {
    background: #eff6ff;

    color: #1d4ed8;
}

.activity-place-result-message.error {
    background: #fff1f2;

    color: #be123c;
}


@media (max-width: 520px) {

    .activity-place-search-row {
        flex-direction: column;
    }

    .activity-place-search-button {
        width: 100%;
    }

    .activity-place-result {
        align-items: flex-start;
        flex-direction: column;
    }
}














/* =========================================================
   EMPLOYEE MANAGEMENT
========================================================= */

.employee-page,
.employee-form-page {
    width: 100%;
}

.employee-page-header {
    margin-bottom: 20px;
    padding: 27px 30px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    border-radius: 18px;

    background:
        linear-gradient(
            120deg,
            #111111 0%,
            #252525 75%,
            #4c260d 150%
        );

    color: #ffffff;
}

.employee-page-header h2 {
    margin: 0;

    color: #ffffff;

    font-size: 23px;
    font-weight: 600;
}

.employee-page-header p {
    margin: 5px 0 0;

    color: #bdbdbd;

    font-size: 11px;
}

.employee-add-button {
    padding: 11px 17px;

    border-radius: 10px;

    background: #f97316;

    color: #ffffff;

    font-size: 11px;
    font-weight: 500;

    text-decoration: none;
}


/* SUMMARY */

.employee-summary {
    margin-bottom: 20px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 13px;
}

.employee-summary-card {
    padding: 18px 20px;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 5px 20px
        rgba(0, 0, 0, 0.05);
}

.employee-summary-card span {
    display: block;

    color: #737373;

    font-size: 10px;
}

.employee-summary-card strong {
    display: block;

    margin-top: 3px;

    color: #171717;

    font-size: 25px;
    font-weight: 600;
}

.employee-summary-card.active strong {
    color: #059669;
}

.employee-summary-card.resigned strong {
    color: #be123c;
}


/* FILTER */

.employee-filter-card {
    margin-bottom: 18px;

    padding: 16px;
}

.employee-filter-form {
    display: grid;

    grid-template-columns:
        minmax(220px, 1.8fr)
        minmax(150px, 1fr)
        minmax(140px, 0.8fr)
        auto;

    gap: 9px;
}

.employee-search-button {
    padding: 9px 18px;

    border: 0;
    border-radius: 10px;

    background: #171717;

    color: #ffffff;

    font-family: "Prompt", sans-serif;

    font-size: 10px;

    cursor: pointer;
}


/* LIST */

.employee-list-card {
    padding: 0;

    overflow: hidden;
}

.employee-list-heading {
    padding: 20px 22px;

    border-bottom: 1px solid #eeeeee;
}

.employee-list-heading h3 {
    margin: 0;

    font-size: 15px;
}

.employee-list-heading p {
    margin: 3px 0 0;

    color: #737373;

    font-size: 10px;
}

.employee-table-wrap {
    overflow-x: auto;
}

.employee-table {
    width: 100%;

    border-collapse: collapse;
}

.employee-table th,
.employee-table td {
    padding: 14px 16px;

    border-bottom: 1px solid #eeeeee;

    text-align: left;

    vertical-align: middle;
}

.employee-table th {
    background: #fafafa;

    color: #737373;

    font-size: 9px;
    font-weight: 500;
}

.employee-table td {
    color: #404040;

    font-size: 10px;
}

.employee-name strong {
    display: block;

    color: #171717;

    font-size: 11px;
}

.employee-name span {
    display: block;

    margin-top: 2px;

    color: #737373;

    font-size: 9px;
}


/* STATUS */

.employee-status {
    padding: 5px 9px;

    display: inline-flex;

    border-radius: 99px;

    font-size: 9px;
    font-weight: 500;
}

.employee-status.active {
    background: #ecfdf5;

    color: #047857;
}

.employee-status.resigned {
    background: #fff1f2;

    color: #be123c;
}

.employee-id-missing {
    color: #d97706;

    font-size: 9px;
}


/* ACTION */

.employee-actions {
    display: flex;
    align-items: center;

    justify-content: flex-end;

    gap: 7px;
}

.employee-actions form {
    margin: 0;
}

.employee-edit-button,
.employee-resign-button,
.employee-reactivate-button {
    min-height: 34px;

    padding: 7px 11px;

    border-radius: 8px;

    font-family: "Prompt", sans-serif;

    font-size: 9px;

    text-decoration: none;

    cursor: pointer;
}

.employee-edit-button {
    border: 1px solid #e5e5e5;

    background: #ffffff;

    color: #525252;
}

.employee-resign-button {
    border: 1px solid #fecaca;

    background: #ffffff;

    color: #be123c;
}

.employee-reactivate-button {
    border: 1px solid #a7f3d0;

    background: #ecfdf5;

    color: #047857;
}


/* FORM */

.employee-form-card {
    max-width: 850px;

    margin: 0 auto;

    padding: 25px;
}

.employee-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 5px 16px;
}

.employee-national-id-field {
    grid-column:
        1 / -1;
}

.employee-code-box {
    margin-bottom: 20px;

    padding: 13px 15px;

    border: 1px solid #fed7aa;
    border-radius: 11px;

    background: #fff7ed;
}

.employee-code-box span {
    display: block;

    color: #9a3412;

    font-size: 9px;
}

.employee-code-box strong {
    display: block;

    margin-top: 2px;

    color: #c2410c;

    font-size: 15px;
}

.employee-form-note {
    margin-top: 8px;

    padding: 14px;

    border-radius: 10px;

    background: #fafafa;
}

.employee-form-note strong {
    font-size: 10px;
}

.employee-form-note p {
    margin: 3px 0 0;

    color: #737373;

    font-size: 9px;

    line-height: 1.7;
}

.employee-empty {
    padding: 60px 20px;

    color: #737373;

    text-align: center;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .employee-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 650px) {

    .employee-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-add-button {
        width: 100%;

        text-align: center;
    }

    .employee-summary {
        grid-template-columns: 1fr;
    }

    .employee-filter-form,
    .employee-form-grid {
        grid-template-columns: 1fr;
    }

    .employee-national-id-field {
        grid-column: auto;
    }
}










/* =========================================================
   EMPLOYEE MOBILE ATTENDANCE
========================================================= */

.employee-webapp-body {
    margin: 0;
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #fff7ed 0%,
            #f5f5f5 45%,
            #f5f5f5 100%
        );

    font-family: "Prompt", sans-serif;

    color: #171717;
}


.employee-webapp {
    width: 100%;
    min-height: 100vh;
}


/* =========================================================
   IDENTIFY
========================================================= */

.employee-identify-page {
    width: min(100%, 460px);

    margin: 0 auto;

    padding:
        50px 18px
        30px;
}


.employee-mobile-brand {
    margin-bottom: 25px;

    text-align: center;
}


.employee-logo-box {
    width: 105px;
    height: 105px;

    margin: 0 auto 16px;

    overflow: hidden;

    border-radius: 24px;

    background: #ffffff;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.08);
}


.employee-logo-box img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.employee-mobile-brand > span {
    color: #f97316;

    font-size: 10px;
    font-weight: 600;
}


.employee-mobile-brand h1 {
    margin: 4px 0 3px;

    font-size: 26px;
    font-weight: 650;

    line-height: 1.35;
}


.employee-mobile-brand p {
    margin: 0;

    color: #737373;

    font-size: 11px;
}


.employee-login-card,
.employee-attendance-card,
.employee-profile-card {
    padding: 22px;

    border:
        1px solid
        rgba(0, 0, 0, 0.05);

    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 10px 35px
        rgba(0, 0, 0, 0.06);
}


.employee-mobile-field {
    margin-bottom: 15px;
}


.employee-mobile-field label {
    display: block;

    margin-bottom: 6px;

    font-size: 11px;
    font-weight: 500;
}


.employee-mobile-field input,
.employee-mobile-field select {
    box-sizing: border-box;

    width: 100%;

    min-height: 49px;

    padding:
        11px
        13px;

    border:
        1px solid
        #dedede;

    border-radius: 11px;

    background: #ffffff;

    font-family: "Prompt", sans-serif;

    font-size: 13px;

    outline: none;
}


.employee-mobile-field input:focus,
.employee-mobile-field select:focus {
    border-color: #f97316;

    box-shadow:
        0 0 0 3px
        rgba(249, 115, 22, 0.12);
}


.employee-primary-button,
.employee-checkin-button,
.employee-checkout-button {
    width: 100%;

    min-height: 51px;

    border: 0;
    border-radius: 12px;

    font-family: "Prompt", sans-serif;

    font-size: 13px;
    font-weight: 550;

    cursor: pointer;
}


.employee-primary-button,
.employee-checkin-button {
    background:
        linear-gradient(
            135deg,
            #f97316,
            #ea580c
        );

    color: #ffffff;

    box-shadow:
        0 7px 18px
        rgba(234, 88, 12, 0.22);
}


.employee-checkout-button {
    background: #171717;

    color: #ffffff;

    box-shadow:
        0 7px 18px
        rgba(0, 0, 0, 0.14);
}


.employee-primary-button:disabled,
.employee-checkin-button:disabled,
.employee-checkout-button:disabled {
    opacity: 0.6;

    cursor: wait;
}


.employee-security-note {
    margin-top: 17px;

    padding: 12px 13px;

    border-radius: 10px;

    background: #fafafa;
}


.employee-security-note strong {
    display: block;

    font-size: 9px;
}


.employee-security-note p {
    margin: 3px 0 0;

    color: #737373;

    font-size: 9px;

    line-height: 1.6;
}


/* =========================================================
   ATTENDANCE HEADER
========================================================= */

.employee-attendance-page {
    width: min(100%, 560px);

    box-sizing: border-box;

    margin: 0 auto;

    padding:
        15px 15px
        30px;
}


.employee-attendance-header {
    margin-bottom: 15px;

    padding: 10px 3px;

    display: flex;
    align-items: center;

    gap: 10px;
}


.employee-small-logo {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    overflow: hidden;

    border-radius: 11px;

    background: #ffffff;
}


.employee-small-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


.employee-header-title {
    flex: 1;
}


.employee-header-title small {
    display: block;

    color: #f97316;

    font-size: 8px;
}


.employee-header-title strong {
    display: block;

    margin-top: 1px;

    font-size: 12px;
}


.employee-attendance-header form {
    margin: 0;
}


.employee-logout-button {
    padding:
        7px
        11px;

    border:
        1px solid
        #e5e5e5;

    border-radius: 9px;

    background: #ffffff;

    color: #737373;

    font-family: "Prompt", sans-serif;

    font-size: 9px;

    cursor: pointer;
}


/* =========================================================
   PROFILE
========================================================= */

.employee-profile-card {
    margin-bottom: 13px;

    padding: 20px;

    background:
        linear-gradient(
            125deg,
            #171717,
            #282828
        );

    color: #ffffff;
}


.employee-profile-label {
    color: #fb923c;

    font-size: 9px;
}


.employee-profile-card h1 {
    margin: 2px 0 0;

    color: #ffffff;

    font-size: 25px;

    line-height: 1.35;
}


.employee-profile-card p {
    margin: 1px 0 8px;

    color: #bdbdbd;

    font-size: 10px;
}


.employee-department-badge {
    padding:
        4px
        9px;

    display: inline-flex;

    border-radius: 99px;

    background:
        rgba(249, 115, 22, 0.17);

    color: #fdba74;

    font-size: 8px;
}


/* =========================================================
   ALERT
========================================================= */

.employee-mobile-alert {
    margin-bottom: 12px;

    padding:
        12px
        14px;

    border-radius: 11px;

    font-size: 10px;

    line-height: 1.6;
}


.employee-mobile-alert.success {
    border:
        1px solid
        #bbf7d0;

    background: #f0fdf4;

    color: #166534;
}


.employee-mobile-alert.error {
    border:
        1px solid
        #fecaca;

    background: #fff1f2;

    color: #be123c;
}


/* =========================================================
   ATTENDANCE CARD
========================================================= */

.employee-attendance-card {
    margin-bottom: 13px;
}


.employee-attendance-card-title {
    margin-bottom: 18px;

    display: flex;
    align-items: center;

    gap: 10px;
}


.employee-step-number {
    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 32px;

    border-radius: 10px;

    background: #fff7ed;

    color: #ea580c;

    font-size: 11px;
    font-weight: 600;
}


.employee-attendance-card-title strong {
    display: block;

    font-size: 12px;
}


.employee-attendance-card-title small {
    display: block;

    margin-top: 1px;

    color: #737373;

    font-size: 9px;
}


/* =========================================================
   GPS
========================================================= */

.employee-gps-box {
    margin: 14px 0;

    padding: 13px;

    display: flex;
    align-items: center;

    gap: 10px;

    border-radius: 11px;

    background: #fafafa;
}


.employee-gps-icon {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    border-radius: 50%;

    background: #fff7ed;
}


.employee-gps-box strong {
    display: block;

    font-size: 10px;
}


.employee-gps-box small {
    display: block;

    margin-top: 2px;

    color: #737373;

    font-size: 8px;
}


.employee-gps-box.loading {
    background: #fffbeb;
}


.employee-gps-box.success {
    background: #f0fdf4;
}


.employee-gps-box.error {
    background: #fff1f2;
}


.employee-gps-box.error strong,
.employee-gps-box.error small {
    color: #be123c;
}


/* =========================================================
   CURRENT JOB
========================================================= */

.employee-current-job {
    margin-bottom: 17px;

    padding-bottom: 16px;

    border-bottom:
        1px solid
        #eeeeee;
}


.employee-current-job > span {
    color: #f97316;

    font-size: 8px;
    font-weight: 600;
}


.employee-current-job h2 {
    margin: 3px 0;

    font-size: 17px;

    line-height: 1.4;
}


.employee-current-job p {
    margin: 0;

    color: #737373;

    font-size: 9px;
}


/* =========================================================
   TIME RECORD
========================================================= */

.employee-time-record {
    margin-bottom: 13px;

    padding: 13px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-radius: 12px;

    background: #f0fdf4;
}


.employee-time-record-icon {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 36px;

    border-radius: 50%;

    background: #16a34a;

    color: #ffffff;

    font-size: 13px;
}


.employee-time-record small {
    display: block;

    color: #15803d;

    font-size: 8px;
}


.employee-time-record strong {
    display: block;

    color: #166534;

    font-size: 16px;
}


.employee-time-record span {
    display: block;

    color: #65a30d;

    font-size: 8px;
}


.employee-time-record.checkout {
    margin-top: 12px;
}


/* =========================================================
   STATUS MESSAGE
========================================================= */

.employee-status-message {
    padding: 15px;

    border-radius: 11px;

    text-align: center;

    font-size: 10px;

    line-height: 1.7;
}


.employee-status-message.warning {
    background: #fff7ed;

    color: #9a3412;
}


.employee-status-message.waiting {
    background: #fafafa;

    color: #525252;
}


.employee-day-complete {
    margin-top: 13px;

    padding: 15px;

    display: flex;
    align-items: center;

    gap: 11px;

    border:
        1px solid
        #bbf7d0;

    border-radius: 12px;

    background: #f0fdf4;
}


.employee-day-complete > span {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    border-radius: 50%;

    background: #16a34a;

    color: #ffffff;
}


.employee-day-complete strong {
    display: block;

    color: #166534;

    font-size: 10px;
}


.employee-day-complete small {
    display: block;

    color: #4d7c0f;

    font-size: 8px;
}


/* =========================================================
   FOOTER
========================================================= */

.employee-mobile-footer {
    padding: 18px 5px;

    color: #a3a3a3;

    text-align: center;

    font-size: 8px;

    line-height: 1.7;
}


@media (max-width: 420px) {

    .employee-identify-page {
        padding-top: 35px;
    }

    .employee-login-card,
    .employee-attendance-card,
    .employee-profile-card {
        border-radius: 16px;
    }
}




























/* =========================================================
   PUBLIC HOME - EMPLOYEE QUICK ACCESS
========================================================= */

.public-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-employee-link {
    padding: 9px 14px;
    border-radius: 10px;
    background: #f97316;
    color: #ffffff;
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.public-employee-link:hover {
    background: #ea580c;
}

.btn-public-owner {
    min-width: 180px;
    padding: 11px 16px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #ffffff;
    color: #262626;
    text-decoration: none;
}

.btn-public-owner span {
    color: #737373;
    font-size: 8px;
}

.btn-public-owner strong {
    margin-top: 1px;
    font-size: 10px;
    font-weight: 500;
}

.public-employee-access {
    padding: 0 0 25px;
}

.employee-access-box {
    padding: 20px 22px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid #fed7aa;
    border-radius: 18px;
    background: linear-gradient(120deg, #fff7ed 0%, #ffffff 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

.employee-access-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: #f97316;
    font-size: 23px;
}

.employee-access-content > span {
    color: #f97316;
    font-size: 8px;
    font-weight: 600;
}

.employee-access-content h2 {
    margin: 3px 0;
    font-size: 16px;
    line-height: 1.4;
}

.employee-access-content p {
    margin: 0;
    color: #737373;
    font-size: 9px;
    line-height: 1.7;
}

.employee-access-button {
    padding: 11px 15px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 11px;
    background: #171717;
    color: #ffffff;
    font-size: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.employee-access-button span {
    color: #fb923c;
}

.public-feature-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.feature-link-text {
    display: inline-block;
    margin-top: 11px;
    color: #ea580c;
    font-size: 9px;
    font-weight: 500;
}

@media (max-width: 700px) {

    .public-header-actions {
        gap: 5px;
    }

    .public-employee-link {
        padding: 8px 10px;
        font-size: 8px;
    }

    .public-login-link {
        font-size: 8px;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn-public-primary,
    .btn-public-owner {
        width: 100%;
        box-sizing: border-box;
    }

    .employee-access-box {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .employee-access-button {
        grid-column: 1 / -1;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .public-header-actions .public-login-link {
        display: none;
    }

    .public-employee-link {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .employee-access-icon {
        width: 45px;
        height: 45px;
        font-size: 19px;
    }
}




/* =========================================================
   EMPLOYEE BACK HOME BUTTON
========================================================= */

.employee-back-home-button {
    margin-bottom: 18px;
    padding: 10px 14px;

    display: inline-flex;
    align-items: center;
    gap: 6px;

    border: 1px solid #262626;
    border-radius: 12px;

    background: #171717;
    color: #ffffff;

    font-size: 11px;
    font-weight: 500;
    text-decoration: none;

    box-shadow:
        0 8px 18px
        rgba(0, 0, 0, 0.10);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.employee-back-home-button:hover {
    background: #262626;
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 10px 22px
        rgba(0, 0, 0, 0.14);
}

.employee-back-home-button:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .employee-back-home-button {
        width: 100%;
        justify-content: center;
    }
}



/* =========================================================
   EMPLOYEE PAGE TOPBAR
========================================================= */

.employee-page-topbar {
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.employee-page-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.employee-page-brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);

    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.employee-page-brand-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.employee-page-brand-text span {
    display: block;
    margin-bottom: 4px;

    color: #f97316;
    font-size: 12px;
    font-weight: 600;
}

.employee-page-brand-text strong {
    display: block;

    color: #111111;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.employee-page-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.employee-topbar-button {
    min-height: 48px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.employee-topbar-button:hover {
    transform: translateY(-1px);
}

.employee-topbar-button-dark {
    background: #111111;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 17, 17, 0.18);
}

.employee-topbar-button-dark:hover {
    background: #000000;
    color: #ffffff;
}

.employee-topbar-button-outline {
    background: #ffffff;
    color: #111111;
    border: 1px solid #d4d4d8;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.employee-topbar-button-outline:hover {
    background: #f5f5f5;
    color: #111111;
}


/* =========================================================
   EMPLOYEE HERO CARD
========================================================= */

.employee-profile-card,
.employee-attendance-hero,
.employee-employee-card {
    border-radius: 28px !important;
}

.employee-profile-card h1,
.employee-attendance-hero h1,
.employee-employee-card h1 {
    font-size: 26px !important;
    line-height: 1.3 !important;
}

.employee-profile-card p,
.employee-attendance-hero p,
.employee-employee-card p {
    font-size: 15px !important;
    line-height: 1.7 !important;
}


/* =========================================================
   ATTENDANCE STATUS / ALERT BOX
========================================================= */

.employee-attendance-alert,
.employee-status-box,
.employee-warning-box {
    padding: 22px 20px !important;
    border-radius: 20px !important;
    background: #fff7ed !important;
    border: 1px solid #fdba74 !important;
}

.employee-attendance-alert strong,
.employee-status-box strong,
.employee-warning-box strong {
    display: block;
    margin-bottom: 6px;

    color: #9a3412;
    font-size: 18px;
    font-weight: 700;
}

.employee-attendance-alert p,
.employee-status-box p,
.employee-warning-box p {
    margin: 0;
    color: #9a3412;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.7;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.employee-section-title h2 {
    font-size: 28px !important;
    line-height: 1.4 !important;
}

.employee-section-title p {
    font-size: 15px !important;
    color: #666666 !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .employee-page-topbar {
        align-items: stretch;
    }

    .employee-page-topbar-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .employee-topbar-button {
        width: 100%;
    }

    .employee-page-brand-text strong {
        font-size: 18px;
    }

    .employee-page-brand-text span {
        font-size: 11px;
    }

    .employee-profile-card h1,
    .employee-attendance-hero h1,
    .employee-employee-card h1 {
        font-size: 23px !important;
    }
}

@media (max-width: 480px) {

    .employee-page-brand {
        align-items: flex-start;
    }

    .employee-page-brand-logo {
        width: 60px;
        height: 60px;
    }

    .employee-page-brand-logo img {
        width: 42px;
        height: 42px;
    }

    .employee-page-topbar-actions {
        grid-template-columns: 1fr;
    }

    .employee-topbar-button {
        min-height: 50px;
        font-size: 15px;
    }

    .employee-attendance-alert strong,
    .employee-status-box strong,
    .employee-warning-box strong {
        font-size: 17px;
    }

    .employee-attendance-alert p,
    .employee-status-box p,
    .employee-warning-box p {
        font-size: 15px;
    }
}
.employee-topbar-button-orange {
    background: #f97316;
    color: #ffffff;

    box-shadow:
        0 10px 24px
        rgba(249, 115, 22, 0.22);
}

.employee-topbar-button-orange:hover {
    background: #ea580c;
    color: #ffffff;
}














/* =========================================================
   ADMIN ATTENDANCE - COMING SOON
   หน้าแสดงสถานะชั่วคราวของเมนูรายการลงเวลา
========================================================= */

.attendance-coming-soon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 65vh;
    padding: 30px 15px;
}

.attendance-coming-soon-card {
    width: 100%;
    max-width: 720px;
    padding: 45px 40px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.attendance-coming-soon-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 18px;
    border-radius: 24px;
    background: #fff3e8;
    font-size: 38px;
}

.attendance-coming-soon-badge {
    display: inline-block;
    padding: 7px 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: #fff0e3;
    color: #e96b00;
    font-size: 14px;
    font-weight: 600;
}

.attendance-coming-soon-card h1 {
    margin: 0 0 10px;
    color: #202020;
    font-size: 30px;
    font-weight: 700;
}

.attendance-coming-soon-description {
    max-width: 560px;
    margin: 0 auto 30px;
    color: #666666;
    font-size: 16px;
    line-height: 1.8;
}

.attendance-coming-soon-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 25px;
}

.attendance-status-item {
    padding: 20px 14px;
    border: 1px solid #eeeeee;
    border-radius: 16px;
    background: #fafafa;
}

.attendance-status-icon {
    display: block;
    margin-bottom: 8px;
    font-size: 25px;
}

.attendance-status-item strong {
    display: block;
    margin-bottom: 4px;
    color: #222222;
    font-size: 15px;
}

.attendance-status-item small {
    color: #777777;
    font-size: 13px;
    line-height: 1.5;
}

.attendance-coming-soon-note {
    padding: 16px 20px;
    border-radius: 14px;
    background: #fff8f2;
    color: #92501a;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 768px) {

    .attendance-coming-soon {
        min-height: 55vh;
        padding: 20px 12px;
    }

    .attendance-coming-soon-card {
        padding: 32px 20px;
        border-radius: 20px;
    }

    .attendance-coming-soon-card h1 {
        font-size: 25px;
    }

    .attendance-coming-soon-status {
        grid-template-columns: 1fr;
    }

}















/* =========================================================
   ADMIN SETTINGS
   ใช้ร่วมกับ Layout และปุ่มกลางของระบบเดิม
========================================================= */

.settings-page {
    padding-bottom: 40px;
}


/* =========================================================
   GRID
========================================================= */

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}


/* =========================================================
   CARD
========================================================= */

.settings-card {
    padding: 24px;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-bottom: 22px;
}

.settings-card-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #fff7ed;

    font-size: 22px;
}

.settings-card-header h3 {
    margin: 0;

    color: #262626;

    font-size: 17px;
    font-weight: 600;
}

.settings-card-header p {
    margin: 4px 0 0;

    color: #737373;

    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.settings-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.settings-field-spaced {
    margin-top: 22px;
}

.settings-field label {
    color: #404040;

    font-size: 12px;
    font-weight: 600;
}

.settings-field input,
.settings-field select {
    width: 100%;
    min-height: 44px;

    box-sizing: border-box;

    padding: 9px 12px;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    background: #ffffff;
    color: #262626;

    font-family: inherit;
    font-size: 13px;

    outline: none;
}

.settings-field input:focus,
.settings-field select:focus {
    border-color: #f97316;

    box-shadow:
        0 0 0 3px
        rgba(249, 115, 22, 0.10);
}

.settings-field small {
    color: #8a8a8a;

    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   INPUT + UNIT
========================================================= */

.settings-input-with-unit {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    align-items: center;

    overflow: hidden;

    border: 1px solid #e5e5e5;
    border-radius: 10px;

    background: #ffffff;
}

.settings-input-with-unit:focus-within {
    border-color: #f97316;

    box-shadow:
        0 0 0 3px
        rgba(249, 115, 22, 0.10);
}

.settings-input-with-unit input {
    border: 0;
    border-radius: 0;

    box-shadow: none !important;
}

.settings-input-with-unit span {
    padding: 0 14px;

    color: #737373;

    font-size: 11px;

    border-left: 1px solid #eeeeee;
}


/* =========================================================
   WORK DAYS
========================================================= */

.settings-days {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 10px;
}

.settings-day {
    position: relative;

    cursor: pointer;
}

.settings-day input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}

.settings-day span {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 8px;

    border: 1px solid #e5e5e5;
    border-radius: 11px;

    background: #fafafa;
    color: #737373;

    font-size: 11px;
    font-weight: 500;

    transition: 0.2s;
}

.settings-day input:checked + span {
    border-color: #f97316;

    background: #fff7ed;
    color: #ea580c;

    font-weight: 600;
}

.settings-day span:hover {
    border-color: #fdba74;
}


/* =========================================================
   SWITCH ROW
========================================================= */

.settings-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
}

.settings-switch-row > div {
    min-width: 0;
}

.settings-switch-row strong {
    display: block;

    color: #262626;

    font-size: 13px;
    font-weight: 600;
}

.settings-switch-row small {
    display: block;

    margin-top: 4px;

    color: #737373;

    font-size: 10px;
    line-height: 1.6;
}


/* =========================================================
   SWITCH
========================================================= */

.settings-switch {
    position: relative;

    width: 52px;
    height: 28px;

    flex: 0 0 52px;

    cursor: pointer;
}

.settings-switch input {
    width: 0;
    height: 0;

    opacity: 0;
}

.settings-switch-slider {
    position: absolute;

    inset: 0;

    border-radius: 999px;

    background: #d4d4d4;

    transition: 0.2s;
}

.settings-switch-slider::before {
    content: '';

    position: absolute;

    width: 22px;
    height: 22px;

    left: 3px;
    top: 3px;

    border-radius: 50%;

    background: #ffffff;

    box-shadow:
        0 2px 5px
        rgba(0, 0, 0, 0.15);

    transition: 0.2s;
}

.settings-switch
input:checked
+ .settings-switch-slider {
    background: #22c55e;
}

.settings-switch
input:checked
+ .settings-switch-slider::before {
    transform: translateX(24px);
}


/* =========================================================
   SECURITY NOTE
========================================================= */

.settings-security-note {
    margin-top: 20px;

    padding: 14px 16px;

    border: 1px solid #fed7aa;
    border-radius: 12px;

    background: #fff7ed;
}

.settings-security-note strong {
    color: #c2410c;

    font-size: 11px;
}

.settings-security-note p {
    margin: 4px 0 0;

    color: #9a3412;

    font-size: 10px;
    line-height: 1.7;
}


/* =========================================================
   SAVE
========================================================= */

.settings-actions {
    display: flex;
    justify-content: flex-end;

    margin-top: 22px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .settings-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .settings-card {
        padding: 18px;
    }

    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-days {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .settings-switch-row {
        align-items: flex-start;
    }

    .settings-actions {
        display: block;
    }

    .settings-actions .btn {
        width: 100%;
    }
}

















