:root {
    --primary: #1261d6;
    --primary-dark: #0849ad;
    --primary-light: #eaf3ff;
    --primary-soft: #f4f8ff;
    

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    
    --success: #0f9f63;
    --success-bg: #eafaf3;
    
    --warning: #d97706;
    --warning-bg: #fff7e8;
    
    --danger: #dc2626;
    --danger-bg: #fff0f0;
    
    --text: #172033;
    --text-secondary: #465268;
    --muted: #7a8497;
    
    --white: #ffffff;
    --background: #f4f7fb;
    
    --border: #e3e9f2;
    
    --radius-sm: 10px;
    --radius-md: 15px;
    --radius-lg: 22px;
    
    --shadow-sm:
        0 3px 12px rgba(31, 73, 125, .07);
    
    --shadow:
        0 10px 30px rgba(31, 73, 125, .10);
    
    --shadow-lg:
        0 18px 50px rgba(31, 73, 125, .14);

    
    }
    
    /* =========================================================
    RESET
    ========================================================= */
    
    * {
      box-sizing: border-box;
      }
    
    html {
    scroll-behavior: smooth;
    }
    
    body {
    margin: 0;
    padding: 0;
    

    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(37, 99, 235, .12),
            transparent 300px
        ),
        linear-gradient(
            180deg,
            #f8fbff 0%,
            #f4f7fb 45%,
            #f1f5fa 100%
        );
    
    color: var(--text);
    
    font-family:
        "Sarabun",
        "Noto Sans Thai",
        "Prompt",
        Tahoma,
        Arial,
        sans-serif;
    
    font-size: 16px;
    line-height: 1.65;
    
    min-height: 100vh;
    
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;

    
    }
    
    a {
    color: inherit;
    text-decoration: none;
    }
    
    button,
    input,
    select,
    textarea {
    font: inherit;
    }
    
    img {
    max-width: 100%;
    height: auto;
    }
    
    /* =========================================================
    CONTAINER
    ========================================================= */
    
    .container {
    width: min(
    1180px,
    calc(100% - 32px)
    );
    

    margin-left: auto;
    margin-right: auto;

    
    }
    
    .narrow {
    width: min(
    900px,
    calc(100% - 32px)
    );
    }
    
    /* =========================================================
    TOPBAR
    ========================================================= */
    
    .topbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    

    background: rgba(255, 255, 255, .94);
    
    border-bottom: 1px solid rgba(213, 222, 235, .9);
    
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    
    box-shadow:
        0 2px 12px rgba(30, 70, 120, .06);

    
    }
    
    .topbar-inner {
    min-height: 72px;
    

    display: flex;
    align-items: center;
    justify-content: space-between;
    
    gap: 14px;

    
    }
    
    /* =========================================================
    BRAND
    ========================================================= */
    
    .brand {
    display: flex;
    align-items: center;
    

    gap: 11px;
    
    min-width: 0;

    
    }
    
    .brand-icon {
    width: 43px;
    height: 43px;
    

    flex: 0 0 43px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    border-radius: 13px;
    
    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--blue-700)
        );
    
    color: #fff;
    
    font-size: 21px;
    font-weight: 800;
    
    box-shadow:
        0 7px 18px rgba(18, 97, 214, .28);

    
    }
    
    .brand strong {
    display: block;
    

    font-size: 20px;
    line-height: 1.1;
    
    color: var(--primary-dark);
    
    font-weight: 800;

    
    }
    
    .brand small {
    display: block;
    

    margin-top: 3px;
    
    color: var(--muted);
    
    font-size: 11px;
    
    white-space: nowrap;

    
    }
    
    /* =========================================================
    NAVIGATION
    ========================================================= */
    
    nav {
    display: flex;
    align-items: center;
    

    gap: 6px;

    
    }
    
    .nav-link,
    .nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    

    min-height: 40px;
    
    padding: 7px 13px;
    
    border-radius: 10px;
    
    font-size: 14px;
    font-weight: 700;
    
    transition:
        background .18s ease,
        color .18s ease,
        transform .18s ease;

    
    }
    
    .nav-link {
    color: var(--text-secondary);
    }
    
    .nav-link:hover,
    .nav-link.active {
    color: var(--primary);
    

    background: var(--primary-light);

    
    }
    
    .nav-button {
    color: #fff;
    

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--blue-700)
        );
    
    box-shadow:
        0 5px 15px rgba(18, 97, 214, .20);

    
    }
    
    .nav-button:hover {
    color: #fff;
    

    transform: translateY(-1px);
    
    box-shadow:
        0 8px 20px rgba(18, 97, 214, .28);

    
    }
    
    .nav-button.active {
    color: #fff;
    }
    
    /* =========================================================
    PAGE
    ========================================================= */
    
    .page {
    padding-top: 25px;
    padding-bottom: 55px;
    }
    
    /* =========================================================
    HERO
    ========================================================= */
    
    .hero {
    position: relative;
    

    overflow: hidden;
    
    min-height: 205px;
    
    display: flex;
    align-items: center;
    
    margin-bottom: 20px;
    
    padding: 30px 28px;
    
    border: 1px solid var(--blue-100);
    
    border-radius: var(--radius-lg);
    
    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f8ff 55%,
            #eaf3ff 100%
        );
    
    box-shadow: var(--shadow);

    
    }
    
    .hero::after {
    content: "";
    

    position: absolute;
    
    width: 230px;
    height: 230px;
    
    right: -90px;
    top: -100px;
    
    border-radius: 50%;
    
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, .15),
            rgba(18, 97, 214, .03)
        );

    
    }
    
    .hero::before {
    content: "";
    

    position: absolute;
    
    width: 100px;
    height: 100px;
    
    right: 90px;
    bottom: -55px;
    
    border-radius: 50%;
    
    background:
        rgba(37, 99, 235, .06);

    
    }
    
    .hero > div {
    position: relative;
    z-index: 2;
    }
    
    .hero.compact {
    min-height: 165px;
    }
    
    .eyebrow {
    display: inline-flex;
    

    align-items: center;
    
    padding: 4px 9px;
    
    margin-bottom: 8px;
    
    border-radius: 999px;
    
    background: var(--primary-light);
    
    color: var(--primary);
    
    font-size: 11px;
    
    font-weight: 800;
    
    letter-spacing: .08em;

    
    }
    
    .hero h1 {
    margin: 0;
    

    color: #14284a;
    
    font-size: clamp(
        27px,
        5vw,
        40px
    );
    
    line-height: 1.22;
    
    font-weight: 800;

    
    }
    
    .hero p {
    max-width: 760px;
    

    margin: 10px 0 0;
    
    color: var(--text-secondary);
    
    font-size: 16px;
    
    line-height: 1.65;

    
    }
    
    /* =========================================================
    CARD
    ========================================================= */
    
    .card {
    background: var(--white);
    

    border: 1px solid var(--border);
    
    border-radius: var(--radius-md);
    
    box-shadow: var(--shadow-sm);

    
    }
    
    /* =========================================================
    SEARCH
    ========================================================= */
    
    .search-card {
    padding: 20px;
    }
    
    .search-form {
    display: flex;
    

    align-items: flex-end;
    
    gap: 12px;

    
    }
    
    .grow {
    flex: 1;
    }
    
    .search-form .form-group {
    margin-bottom: 0;
    }
    
    /* =========================================================
    FORM
    ========================================================= */
    
    .form-group {
    margin-bottom: 17px;
    }
    
    .form-group label {
    display: block;
    

    margin-bottom: 7px;
    
    color: #24334d;
    
    font-size: 14px;
    
    font-weight: 800;

    
    }
    
    .form-group label em {
    color: var(--danger);
    

    font-style: normal;

    
    }
    
    input,
    select,
    textarea {
    width: 100%;
    

    border: 1px solid #d6deea;
    
    border-radius: 11px;
    
    background: #fff;
    
    color: var(--text);
    
    outline: none;
    
    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;

    
    }
    
    input,
    select {
    height: 49px;
    

    padding: 0 14px;

    
    }
    
    textarea {
    padding: 12px 14px;
    

    min-height: 110px;
    
    resize: vertical;

    
    }
    
    input::placeholder,
    textarea::placeholder {
    color: #a4adba;
    }
    
    input:hover,
    select:hover,
    textarea:hover {
    border-color: #b7c5d9;
    }
    
    input:focus,
    select:focus,
    textarea:focus {
    border-color: var(--primary);
    

    background: #fbfdff;
    
    box-shadow:
        0 0 0 4px rgba(18, 97, 214, .10);

    
    }
    
    .hint {
    display: block;
    

    margin-top: 5px;
    
    color: var(--muted);
    
    font-size: 12px;

    
    }
    
    /* =========================================================
    BUTTON
    ========================================================= */
    
    .btn {
    display: inline-flex;
    

    align-items: center;
    justify-content: center;
    
    min-height: 44px;
    
    padding: 9px 17px;
    
    border: 0;
    
    border-radius: 10px;
    
    cursor: pointer;
    
    font-size: 14px;
    
    font-weight: 800;
    
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;

    
    }
    
    .btn-primary {
    color: #fff;
    

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--blue-700)
        );
    
    box-shadow:
        0 7px 18px rgba(18, 97, 214, .20);

    
    }
    
    .btn-primary:hover {
    color: #fff;
    

    transform: translateY(-1px);
    
    box-shadow:
        0 10px 24px rgba(18, 97, 214, .28);

    
    }
    
    .btn-light {
    color: var(--text-secondary);
    

    background: #eef2f7;

    
    }
    
    .btn-light:hover {
    background: #e3e8f0;
    }
    
    .btn-download {
    min-height: 37px;
    

    padding: 6px 12px;
    
    color: #087443;
    
    background: var(--success-bg);

    
    }
    
    .btn-download:hover {
    background: #d9f5e8;
    }
    
    .btn-lg {
    min-height: 50px;
    

    padding: 10px 25px;
    
    font-size: 15px;

    
    }
    
    /* =========================================================
    ALERT
    ========================================================= */
    
    .alert {
    margin-top: 15px;
    

    padding: 12px 14px;
    
    border-radius: 11px;
    
    font-size: 14px;

    
    }
    
    .alert-danger {
    color: #a51d2d;
    

    background: var(--danger-bg);
    
    border: 1px solid #ffd1d6;

    
    }
    
    /* =========================================================
    RESULT HEADER
    ========================================================= */
    
    .result-head {
    display: flex;
    

    align-items: center;
    
    justify-content: space-between;
    
    gap: 15px;
    
    margin: 28px 0 13px;

    
    }
    
    .result-head h2 {
    margin: 0;
    

    color: #172d50;
    
    font-size: 23px;
    
    font-weight: 800;

    
    }
    
    .result-head p {
    margin: 2px 0 0;
    

    color: var(--muted);
    
    font-size: 13px;

    
    }
    
    .result-count {
    flex-shrink: 0;
    

    padding: 5px 11px;
    
    border-radius: 999px;
    
    color: var(--primary);
    
    background: var(--primary-light);
    
    font-size: 12px;
    
    font-weight: 800;

    
    }
    
    /* =========================================================
    TABLE
    ========================================================= */
    
    .table-card {
    overflow: hidden;
    }
    
    .table-wrap {
    width: 100%;
    

    overflow-x: auto;
    
    -webkit-overflow-scrolling: touch;

    
    }
    
    table {
    width: 100%;
    

    min-width: 820px;
    
    border-collapse: collapse;

    
    }
    
    th,
    td {
    padding: 14px;
    

    border-bottom: 1px solid var(--border);
    
    text-align: left;
    
    vertical-align: middle;

    
    }
    
    th {
    background:
    linear-gradient(
    180deg,
    #f7faff,
    #f2f6fc
    );
    

    color: #33415c;
    
    font-size: 13px;
    
    font-weight: 800;
    
    white-space: nowrap;

    
    }
    
    td {
    color: #27344b;
    

    font-size: 14px;

    
    }
    
    tbody tr {
    transition: background .15s ease;
    }
    
    tbody tr:hover {
    background: #f9fbff;
    }
    
    tbody tr:last-child td {
    border-bottom: 0;
    }
    
    .subtext {
    display: block;
    

    margin-top: 2px;
    
    color: var(--muted);
    
    font-size: 12px;

    
    }
    
    .muted {
    color: var(--muted);
    }
    
    /* =========================================================
    STATUS
    ========================================================= */
    
    .status {
    display: inline-flex;
    

    align-items: center;
    justify-content: center;
    
    gap: 5px;
    
    min-width: 92px;
    
    padding: 5px 10px;
    
    border-radius: 999px;
    
    font-size: 12px;
    
    font-weight: 800;
    
    white-space: nowrap;

    
    }
    
    .status::before {
    content: "";
    

    width: 6px;
    height: 6px;
    
    border-radius: 50%;
    
    background: currentColor;

    
    }
    
    .status-wait {
    color: var(--warning);
    

    background: var(--warning-bg);

    
    }
    
    .status-check {
    color: var(--blue-700);
    

    background: var(--blue-50);

    
    }
    
    .status-success {
    color: var(--success);
    

    background: var(--success-bg);

    
    }
    
    .status-danger {
    color: var(--danger);
    

    background: var(--danger-bg);

    
    }
    
    /* =========================================================
    EMPTY
    ========================================================= */
    
    .empty {
    padding: 50px 25px;
    

    text-align: center;

    
    }
    
    .empty-icon {
    width: 58px;
    height: 58px;
    

    display: flex;
    align-items: center;
    justify-content: center;
    
    margin: 0 auto 13px;
    
    border-radius: 50%;
    
    color: var(--primary);
    
    background: var(--primary-light);
    
    font-size: 26px;
    
    font-weight: 800;

    
    }
    
    .empty h3 {
    margin: 0 0 4px;
    

    font-size: 20px;

    
    }
    
    .empty p {
    margin: 0 0 20px;
    

    color: var(--muted);
    
    font-size: 14px;

    
    }
    
    /* =========================================================
    INFO CARDS
    ========================================================= */
    
    .info-grid {
    display: grid;
    

    grid-template-columns:
        repeat(3, 1fr);
    
    gap: 15px;
    
    margin-top: 22px;

    
    }
    
    .info-card {
    position: relative;
    

    overflow: hidden;
    
    padding: 20px;
    
    border: 1px solid var(--border);
    
    border-radius: 15px;
    
    background: rgba(255,255,255,.82);
    
    box-shadow: var(--shadow-sm);

    
    }
    
    .info-card::after {
    content: "";
    

    position: absolute;
    
    width: 80px;
    height: 80px;
    
    right: -30px;
    bottom: -35px;
    
    border-radius: 50%;
    
    background: var(--primary-light);

    
    }
    
    .info-card > span {
    color: var(--primary);
    

    font-size: 12px;
    
    font-weight: 900;

    
    }
    
    .info-card h3 {
    margin: 3px 0 4px;
    

    color: #203557;
    
    font-size: 18px;

    
    }
    
    .info-card p {
    margin: 0;
    

    color: var(--muted);
    
    font-size: 13px;
    
    line-height: 1.55;

    
    }
    
    /* =========================================================
    REGISTER FORM
    ========================================================= */
    
    .form-card {
    padding: 28px;
    }
    
    .section-title {
    display: flex;
    

    align-items: baseline;
    
    justify-content: space-between;
    
    gap: 15px;
    
    margin-bottom: 20px;
    
    padding-bottom: 12px;
    
    border-bottom: 1px solid var(--border);

    
    }
    
    .section-title > span {
    color: #1c355b;
    

    font-size: 20px;
    
    font-weight: 800;

    
    }
    
    .section-title small {
    color: var(--danger);
    

    font-size: 12px;

    
    }
    
    .form-grid {
    display: grid;
    

    grid-template-columns:
        repeat(2, 1fr);
    
    gap: 0 18px;

    
    }
    
    .reason-title {
    margin-top: 5px;
    }
    
    .reason-list {
    display: grid;
    

    gap: 10px;

    
    }
    
    .reason-option {
    position: relative;
    

    display: flex;
    
    align-items: center;
    
    gap: 12px;
    
    padding: 15px;
    
    border: 1px solid var(--border);
    
    border-radius: 13px;
    
    background: #fff;
    
    cursor: pointer;
    
    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;

    
    }
    
    .reason-option:hover {
    border-color: var(--blue-200);
    

    background: #f8fbff;

    
    }
    
    .reason-option:has(input:checked) {
    border-color: #8db6f3;
    

    background:
        linear-gradient(
            135deg,
            #f5f9ff,
            #edf5ff
        );
    
    box-shadow:
        0 4px 14px rgba(18,97,214,.08);

    
    }
    
    .reason-option input {
    position: absolute;
    

    opacity: 0;
    
    pointer-events: none;

    
    }
    
    .radio-mark {
    position: relative;
    

    flex: 0 0 21px;
    
    width: 21px;
    height: 21px;
    
    border: 2px solid #b7c1d0;
    
    border-radius: 50%;
    
    background: #fff;

    
    }
    
    .reason-option input:checked + .radio-mark {
    border-color: var(--primary);
    }
    
    .reason-option input:checked + .radio-mark::after {
    content: "";
    

    position: absolute;
    
    inset: 4px;
    
    border-radius: 50%;
    
    background: var(--primary);

    
    }
    
    .reason-option strong {
    display: block;
    

    color: #263958;
    
    font-size: 15px;

    
    }
    
    .reason-option small {
    display: block;
    

    margin-top: 2px;
    
    color: var(--muted);
    
    font-size: 12px;

    
    }
    
    /* =========================================================
    NOTICE
    ========================================================= */
    
    .notice {
    margin-top: 22px;
    

    padding: 14px 16px;
    
    border: 1px solid var(--blue-100);
    
    border-radius: 12px;
    
    background: var(--primary-soft);

    
    }
    
    .notice strong {
    display: block;
    

    color: var(--blue-700);
    
    font-size: 14px;

    
    }
    
    .notice p {
    margin: 3px 0 0;
    

    color: var(--text-secondary);
    
    font-size: 13px;

    
    }
    
    /* =========================================================
    FORM ACTION
    ========================================================= */
    
    .form-actions {
    display: flex;
    

    align-items: center;
    
    justify-content: flex-end;
    
    gap: 9px;
    
    margin-top: 25px;

    
    }
    
    .form-actions.center {
    justify-content: center;
    }
    
    /* =========================================================
    SUCCESS PAGE
    ========================================================= */
    
    .success-card {
    padding: 45px 30px;
    

    text-align: center;

    
    }
    
    .success-icon {
    width: 76px;
    height: 76px;
    

    display: flex;
    align-items: center;
    justify-content: center;
    
    margin: 0 auto 17px;
    
    border-radius: 50%;
    
    color: var(--success);
    
    background: var(--success-bg);
    
    font-size: 38px;
    
    font-weight: 900;
    
    box-shadow:
        0 8px 25px rgba(15,159,99,.12);

    
    }
    
    .success-card h1 {
    margin: 0;
    

    color: #19345c;
    
    font-size: 30px;
    
    font-weight: 800;

    
    }
    
    .success-card > p {
    max-width: 600px;
    

    margin: 9px auto 24px;
    
    color: var(--muted);
    
    font-size: 14px;

    
    }
    
    .request-summary {
    display: grid;
    

    grid-template-columns:
        repeat(3, 1fr);
    
    gap: 10px;
    
    margin: 24px 0;
    
    text-align: left;

    
    }
    
    .request-summary > div {
    padding: 14px;
    

    border: 1px solid var(--border);
    
    border-radius: 11px;
    
    background: #fafcff;

    
    }
    
    .request-summary span {
    display: block;
    

    color: var(--muted);
    
    font-size: 12px;

    
    }
    
    .request-summary strong {
    display: block;
    

    margin-top: 3px;
    
    color: #253b5f;
    
    font-size: 14px;

    
    }
    
    /* =========================================================
    FOOTER
    ========================================================= */
    
    footer {
    padding: 24px 0 35px;
    

    color: var(--muted);
    
    font-size: 12px;
    
    text-align: center;

    
    }
    
    /* =========================================================
    TABLET
    ========================================================= */
    
    @media (max-width: 900px) {
    

    .info-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }
    
    .info-card:last-child {
        grid-column: 1 / -1;
    }

    
    }
    
    /* =========================================================
    MOBILE
    ========================================================= */
    
    @media (max-width: 700px) {
    

    body {
        font-size: 15px;
    }
    
    .container,
    .narrow {
        width: calc(100% - 20px);
    }
    
    /* Header */
    
    .topbar-inner {
        min-height: 65px;
    
        gap: 8px;
    }
    
    .brand {
        gap: 8px;
    }
    
    .brand-icon {
        width: 39px;
        height: 39px;
    
        flex-basis: 39px;
    
        border-radius: 11px;
    
        font-size: 19px;
    }
    
    .brand strong {
        font-size: 18px;
    }
    
    .brand small {
        display: none;
    }
    
    nav {
        gap: 4px;
    }
    
    .nav-link {
        display: none;
    }
    
    .nav-button {
        min-height: 38px;
    
        padding: 6px 11px;
    
        font-size: 13px;
    }
    
    
    /* Page */
    
    .page {
        padding-top: 15px;
        padding-bottom: 35px;
    }
    
    
    /* Hero */
    
    .hero,
    .hero.compact {
        min-height: 0;
    
        padding: 24px 20px;
    
        margin-bottom: 15px;
    
        border-radius: 17px;
    }
    
    .hero h1 {
        font-size: 27px;
    }
    
    .hero p {
        margin-top: 8px;
    
        font-size: 14px;
    }
    
    
    /* Search */
    
    .search-card {
        padding: 16px;
    }
    
    .search-form {
        display: block;
    }
    
    .search-form .form-group {
        margin-bottom: 10px;
    }
    
    .search-form .btn {
        width: 100%;
    
        min-height: 48px;
    }
    
    
    /* Result */
    
    .result-head {
        margin-top: 22px;
    }
    
    .result-head h2 {
        font-size: 20px;
    }
    
    
    /* Info */
    
    .info-grid {
        grid-template-columns: 1fr;
    
        gap: 10px;
    }
    
    .info-card:last-child {
        grid-column: auto;
    }
    
    .info-card {
        padding: 16px;
    }
    
    
    /* Form */
    
    .form-card {
        padding: 20px 16px;
    
        border-radius: 15px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    
        gap: 0;
    }
    
    .section-title {
        display: block;
    
        margin-bottom: 16px;
    }
    
    .section-title > span {
        display: block;
    
        font-size: 18px;
    }
    
    .section-title small {
        display: block;
    
        margin-top: 2px;
    }
    
    input,
    select {
        height: 50px;
    }
    
    .reason-option {
        padding: 14px;
    }
    
    
    /* Form buttons */
    
    .form-actions {
        flex-direction: column-reverse;
    
        gap: 8px;
    }
    
    .form-actions .btn {
        width: 100%;
    
        min-height: 49px;
    }
    
    
    /* Success */
    
    .success-card {
        padding: 35px 18px;
    }
    
    .success-card h1 {
        font-size: 26px;
    }
    
    .request-summary {
        grid-template-columns: 1fr;
    
        text-align: left;
    }

    
    }
    
    /* =========================================================
    SMALL MOBILE
    ========================================================= */
    
    @media (max-width: 420px) {
    

    .container,
    .narrow {
        width: calc(100% - 16px);
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 13px;
    }
    
    .brand strong {
        font-size: 17px;
    }
    
    .nav-button {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .result-head {
        align-items: flex-start;
    }
    
    .result-count {
        margin-top: 3px;
    }

    
    }
    
    /* =========================================================
    MOBILE TABLE → CARD
    ========================================================= */
    
    @media (max-width: 600px) {
    

    .table-card {
        border: 0;
    
        box-shadow: none;
    
        background: transparent;
    
        overflow: visible;
    }
    
    .table-wrap {
        overflow: visible;
    }
    
    table {
        min-width: 0;
    
        width: 100%;
    
        display: block;
    }
    
    thead {
        display: none;
    }
    
    tbody {
        display: grid;
    
        gap: 12px;
    }
    
    tr {
        display: block;
    
        padding: 15px;
    
        border: 1px solid var(--border);
    
        border-radius: 15px;
    
        background: #fff;
    
        box-shadow: var(--shadow-sm);
    }
    
    td {
        display: grid;
    
        grid-template-columns:
            105px 1fr;
    
        gap: 10px;
    
        padding: 8px 0;
    
        border-bottom: 1px dashed #e8edf4;
    
        font-size: 13px;
    
        text-align: left;
    }
    
    td:last-child {
        border-bottom: 0;
    
        padding-bottom: 2px;
    }
    
    td::before {
        content: attr(data-label);
    
        color: var(--muted);
    
        font-size: 12px;
    
        font-weight: 700;
    }
    
    td:first-child {
        padding-top: 2px;
    }
    
    td:first-child::before {
        color: var(--primary);
    }
    
    td[data-label="สถานะ"] {
        align-items: center;
    }
    
    td[data-label="เอกสารอนุมัติ"] .btn {
        justify-self: start;
    }
    
    .status {
        justify-self: start;
    
        min-width: 95px;
    }

    
    }
    
    /* =========================================================
    ACCESSIBILITY
    ========================================================= */
    
    @media (prefers-reduced-motion: reduce) {
    

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    
        transition: none !important;
    }

    
    }
    
    /* =========================================================
    SAFE AREA - iPHONE
    ========================================================= */
    
    @supports (padding: max(0px)) {
    

    body {
        padding-bottom:
            max(0px, env(safe-area-inset-bottom));
    }
    
    footer {
        padding-bottom:
            max(
                35px,
                env(safe-area-inset-bottom)
            );
    }

    
    }
    