/* ===== LOCAL FONTS (Sarabun) ===== */
@font-face { font-family:'Sarabun'; font-weight:300; font-style:normal; font-display:swap;
  src: url('fonts/sarabun-300-thai.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family:'Sarabun'; font-weight:300; font-style:normal; font-display:swap;
  src: url('fonts/sarabun-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }

@font-face { font-family:'Sarabun'; font-weight:400; font-style:normal; font-display:swap;
  src: url('fonts/sarabun-400-thai.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family:'Sarabun'; font-weight:400; font-style:normal; font-display:swap;
  src: url('fonts/sarabun-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }

@font-face { font-family:'Sarabun'; font-weight:500; font-style:normal; font-display:swap;
  src: url('fonts/sarabun-500-thai.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family:'Sarabun'; font-weight:500; font-style:normal; font-display:swap;
  src: url('fonts/sarabun-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }

@font-face { font-family:'Sarabun'; font-weight:600; font-style:normal; font-display:swap;
  src: url('fonts/sarabun-600-thai.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family:'Sarabun'; font-weight:600; font-style:normal; font-display:swap;
  src: url('fonts/sarabun-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }

@font-face { font-family:'Sarabun'; font-weight:700; font-style:normal; font-display:swap;
  src: url('fonts/sarabun-700-thai.woff2') format('woff2');
  unicode-range: U+02D7,U+0303,U+0331,U+0E01-0E5B,U+200C-200D,U+25CC; }
@font-face { font-family:'Sarabun'; font-weight:700; font-style:normal; font-display:swap;
  src: url('fonts/sarabun-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+FEFF,U+FFFD; }

/* ===== THEME VARIABLES ===== */
:root {
    --body-bg: linear-gradient(135deg, #0a2e10 0%, #0d3818 50%, #0a4418 100%);
    --dot-color: rgba(79,173,38,0.25);
    --login-footer-color: rgba(255,255,255,0.7);
    --login-footer-shadow: 0 1px 4px rgba(0,0,0,0.5);
    --page-bg: #f8fafc;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --text-primary: #2d3748;
    --text-muted: #718096;
    --input-bg: #f8fafc;
    --input-border: #e2e8f0;
    --table-header-bg: #f8fafc;
    --table-row-hover: #f0f4f8;
    --stat-card-bg: #ffffff;
    --topbar-bg: rgba(10,46,16,0.97);
}

@media (prefers-color-scheme: light) {
    :root {
        --body-bg: linear-gradient(135deg, #eef6ef 0%, #f0f7f1 50%, #f5faf5 100%);
        --dot-color: rgba(29,107,34,0.14);
        --login-footer-color: rgba(20,60,20,0.6);
        --login-footer-shadow: none;
        --login-card-bg: #ffffff;
        --login-card-shadow: 0 25px 60px rgba(0,0,0,0.12);
        --login-label-color: #2d3748;
        --login-input-bg: #f8fafc;
        --login-input-border: #e2e8f0;
        --login-input-color: #2d3748;
        --login-placeholder: #b0bec5;
        --login-input-focus-bg: #ffffff;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --dot-color: rgba(255,255,255,0.12);
        --login-card-bg: #1b3f1f;
        --login-card-shadow: 0 0 20px rgba(255,255,255,0.35), 0 0 60px rgba(255,255,255,0.18), 0 0 120px rgba(255,255,255,0.08);
        --login-card-border: none;
        --login-label-color: #f0f0f0;
        --login-input-bg: #0a1f0c;
        --login-input-border: #1e4a22;
        --login-input-color: #e8f5e9;
        --login-placeholder: #4a7a4e;
        --login-input-focus-bg: #0a1f0c;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== SELECTION PAGE ===== */
body.select-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.select-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    max-width: 560px;
}

.select-header {
    text-align: center;
    color: #fff;
}

.select-logo {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 12px;
}

.select-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.select-header p {
    font-size: 0.95rem;
    opacity: 0.6;
    font-weight: 300;
}

.select-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    font-family: 'Sarabun', sans-serif;
    text-align: left;
    transition: all 0.2s ease;
    box-shadow: 0 6px 24px rgba(0,0,0,0.2);
}

.ae-card {
    background: linear-gradient(135deg, #ffffff, #f0f4ff);
    color: #1a1f36;
}

.ae-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(29, 107, 34, 0.35);
}

.cro-card {
    background: linear-gradient(135deg, #0a2e10, #145218);
    color: #fff;
}

.cro-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.card-icon {
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
}

.ae-card .card-icon {
    background: #e8f5e9;
}

.cro-card .card-icon {
    background: rgba(255,255,255,0.1);
}

.card-body {
    flex: 1;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.card-desc {
    font-size: 0.88rem;
    line-height: 1.5;
}

.ae-card .card-desc {
    color: #718096;
}

.ae-card .card-desc span {
    color: #1d6b22;
    font-weight: 600;
}

.cro-card .card-desc {
    color: rgba(255,255,255,0.6);
}

.cro-card .card-desc span {
    color: #90cdf4;
    font-weight: 600;
}

.card-arrow {
    font-size: 1.3rem;
    opacity: 0.4;
    transition: all 0.2s;
}

.user-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.select-footer {
    color: rgba(255,255,255,0.35);
    font-size: 0.78rem;
}

/* ===== ROLE BADGE (login page) ===== */
.role-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.ae-badge {
    background: #e8f5e9;
    color: #1d6b22;
}

.cro-badge {
    background: #1a1f36;
    color: #90cdf4;
    border: 1px solid rgba(144,205,244,0.3);
}

/* ===== TOPBAR ROLE TAG ===== */
.topbar-role-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 10px;
    letter-spacing: 0.5px;
}

.ae-tag {
    background: rgba(29, 107, 34, 0.25);
    color: #a5d6a7;
}

.cro-tag {
    background: rgba(144, 205, 244, 0.2);
    color: #90cdf4;
}

/* ===== LOGIN BACK LINK ===== */
.login-back {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    text-decoration: none;
    align-self: flex-start;
    transition: color 0.2s;
    margin-bottom: -10px;
}

.login-back:hover {
    color: rgba(255,255,255,0.85);
}

/* ===== LOGIN PAGE ===== */
body.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
    background:
        radial-gradient(circle, var(--dot-color) 1px, transparent 1px),
        var(--body-bg);
    background-size: 28px 28px, auto;
}


.login-bg-svg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.login-bg-svg svg {
    width: 100%;
    height: 100%;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--login-card-bg, #fff);
    box-shadow: var(--login-card-shadow, 0 25px 60px rgba(0,0,0,0.35));
    border: var(--login-card-border, none);
    border-radius: 20px;
    padding: 48px 44px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
    text-align: center;
}

.login-logo {
    font-size: 3.2rem;
    margin-bottom: 14px;
    display: block;
}

.login-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 4px;
}

.login-subtitle {
    font-size: 0.88rem;
    color: #a0aec0;
    margin-bottom: 36px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-weight: 500;
}

.login-field {
    text-align: left;
    margin-bottom: 22px;
}

.login-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--login-label-color, #4a5568);
    margin-bottom: 8px;
}

.login-field input {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--login-input-border, #e2e8f0);
    background: var(--login-input-bg, #f8fafc);
    color: var(--login-input-color, #2d3748);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Sarabun', sans-serif;
    color: #2d3748;
    background: #fafbfc;
    text-align: center;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    outline: none;
}

.login-field input:focus {
    border-color: #1d6b22;
    background: var(--login-input-focus-bg, #fff);
    box-shadow: 0 0 0 3px rgba(29, 107, 34, 0.15);
}

.password-field-wrap { position: relative; }
.password-field-wrap input { padding-right: 44px; }
.password-toggle-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 6px 8px;
    line-height: 1;
    opacity: 0.55;
    transition: opacity 0.2s;
}
.password-toggle-btn:hover { opacity: 1; }

/* Export status filter dropdown */
.export-dropdown { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.export-dropdown .btn-primary { height: 42px; box-sizing: border-box; }
.export-filter-btn {
    width: 42px;
    height: 42px;
    padding: 0;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1.5px solid #1d6b22;
    background: #fff;
    color: #1d6b22;
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.export-filter-btn:hover { background: #1d6b22; color: #fff; }
.export-status-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    padding: 14px;
    width: 270px;
    z-index: 50;
    text-align: left;
}
.export-status-panel-header {
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: .85rem;
    color: #2d3748;
}
.export-status-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: .85rem;
    color: #4a5568;
}
.export-status-list label,
.export-status-panel-header label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.login-field input::placeholder {
    color: var(--login-placeholder, #b0bec5);
    font-weight: 300;
}

.btn-login {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #1d7a24, #145218);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Sarabun', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(29, 107, 34, 0.4);
    margin-top: 4px;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(29, 107, 34, 0.5);
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login-footer {
    color: var(--login-footer-color);
    font-size: 0.78rem;
    text-shadow: var(--login-footer-shadow);
}

/* ===== TOP BAR (form page) ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 46, 16, 0.97);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 56px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-logo {
    font-size: 1.3rem;
}

.topbar-logo-img {
    height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
}

.topbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.3px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.3px;
    pointer-events: none;
}

.topbar-user {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(255,255,255,0.1);
    padding: 5px 14px;
    border-radius: 20px;
}

.btn-logout {
    background: #b91c1c;
    color: #fff;
    border: 1px solid #991b1b;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-family: 'Sarabun', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-logout:hover {
    background: #7f1d1d;
    color: #fff;
    border-color: #7f1d1d;
}

body {
    font-family: 'Sarabun', sans-serif;
    background: var(--body-bg);
    min-height: 100vh;
    padding: 0;
    color: #2d3748;
}

.page-wrapper {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.header-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.header p {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: 300;
}

/* Card Container */
.container {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

/* Alert */
.alert {
    margin: 20px 30px 0;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert.alert-error {
    background: #fff5f5;
    border: 1px solid #fed7d7;
    color: #c53030;
}

.alert.alert-success {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
    color: #276749;
}

/* Section */
.section {
    padding: 28px 35px;
    border-bottom: 1px solid #f0f4f8;
}

.section:last-of-type {
    border-bottom: none;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f5e9;
}

.section-icon {
    font-size: 1.2rem;
    background: #e8f5e9;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #4a5568;
    letter-spacing: 0.2px;
}

.required {
    color: #e53e3e;
    margin-left: 2px;
}

input[type="text"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Sarabun', sans-serif;
    color: #2d3748;
    background: #fafbfc;
    transition: all 0.2s ease;
    outline: none;
}

input[readonly] {
    background: #eef1f5;
    color: #718096;
    cursor: not-allowed;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
    border-color: #1d6b22;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(29, 107, 34, 0.1);
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: #b0bec5;
    font-weight: 300;
}

input.input-error,
select.input-error {
    border-color: #e53e3e;
    background: #fff5f5;
}

textarea {
    resize: vertical;
    min-height: 90px;
}

select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718096' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.error-msg {
    font-size: 0.78rem;
    color: #e53e3e;
    font-weight: 500;
    min-height: 16px;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 14px;
    padding: 24px 35px;
    background: #f8fafc;
    border-top: 1px solid #f0f4f8;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Sarabun', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #1d6b22, #145218);
    color: #fff;
    box-shadow: 0 4px 14px rgba(29, 107, 34, 0.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(29, 107, 34, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: #fff;
    color: #718096;
    border: 1.5px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    color: #4a5568;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 45px 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    from { transform: scale(0.85); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.modal-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(72, 187, 120, 0.4);
}

.modal-box h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 10px;
}

.modal-box p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-box .btn-primary {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
}

/* ===== CONTENT AREA (light bg for dashboard/detail pages) ===== */
.content-area {
    background: #f0f4f8;
    min-height: calc(100vh - 56px);
}

/* ===== STATUS BADGES ===== */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.status-blue   { background: #ebf8ff; color: #2b6cb0; }
.status-orange { background: #fff7ed; color: #c05621; }
.status-red    { background: #fff5f5; color: #c53030; }
.status-green  { background: #f0fff4; color: #276749; }
.status-yellow { background: #fffff0; color: #975a16; }
.status-gray   { background: #f7fafc; color: #718096; }
.status-pink   { background: #fdf2f8; color: #be185d; }

/* ===== DASHBOARD ===== */
.dash-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}
.dash-header {
    margin-bottom: 24px;
}
.dash-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}
.dash-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.stat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 26px;
    text-align: center;
    min-width: 120px;
    color: #1a202c;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.stat-card:hover, .stat-card.active {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: #cbd5e0;
}
.stat-num { font-size: 2.2rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.75rem; color: #718096; letter-spacing: 0.3px; }
.stat-blue   { border-top: 3px solid #1d6b22; }
.stat-blue   .stat-num { color: #1d6b22; }
.stat-orange { border-top: 3px solid #f6993f; }
.stat-orange .stat-num { color: #d97706; }
.stat-red    { border-top: 3px solid #e53e3e; }
.stat-red    .stat-num { color: #e53e3e; }
.stat-green  { border-top: 3px solid #38a169; }
.stat-green  .stat-num { color: #38a169; }
.stat-purple { border-top: 3px solid #7c3aed; }
.stat-purple .stat-num { color: #7c3aed; }
.stat-teal   { border-top: 3px solid #0d9488; }
.stat-teal   .stat-num { color: #0d9488; }
.stat-gray   { border-top: 3px solid #718096; }
.stat-gray   .stat-num { color: #718096; }

/* Page header card */
.page-header-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    border: 1px solid #e8edf2;
}
.page-header-left { display: flex; flex-direction: column; gap: 3px; }
.page-title { font-size: 1.25rem; font-weight: 700; color: #1a202c; }
.page-subtitle { font-size: 0.85rem; color: #718096; }

/* Dash card (white card wrapping table) */
.dash-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border: 1px solid #e8edf2;
    margin-top: 16px;
}
.dash-card-header {
    padding: 14px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf2;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
}

/* Table helpers */
.table-empty { text-align: center; padding: 48px 20px; color: #a0aec0; font-size: 0.95rem; }
.td-name { font-weight: 600; color: #1a202c; }
.td-car {
    color: #4a5568;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.7;
}
.td-id .case-id {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
    line-height: 1.7;
}
.td-amount { font-weight: 600; color: #2d3748; white-space: nowrap; }
.td-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.td-actions > * { white-space: normal; overflow-wrap: break-word; flex-shrink: 0; width: 100%; text-align: center; line-height: 1.25; }
.dash-table .td-actions .btn-assign,
.dash-table .td-actions .btn-view,
.dash-table .td-actions .btn-reassign {
    padding: 5px 6px;
    font-size: 0.78rem;
    box-sizing: border-box;
}

/* ซ่อนคอลัมน์เบอร์โทรบนจอกว้าง โชว์เฉพาะบนมือถือ (การ์ดมีที่พอ) */
.col-phone-mobile { display: none; }

/* stat-active */
.stat-active { box-shadow: 0 0 0 2px #1d6b22; border-color: #1d6b22; }

/* Dashboard Table */
.dash-table-wrap {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}
.dash-table-scroll { overflow-x: auto; }
.dash-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.dash-table th {
    background: #f1f5f9;
    padding: 11px 14px;
    text-align: left;
    font-weight: 700;
    color: #4a5568;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    border-bottom: 2px solid #e2e8f0;
    white-space: nowrap;
}
.dash-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #e2e8f0;
    color: #2d3748;
    vertical-align: middle;
    overflow-wrap: break-word;
    overflow: hidden;
}
.dash-table tbody tr:nth-child(even) td { background: #f8fafc; }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table td.money-cell { font-size: 1.1rem; font-weight: 700; color: #1d6b22; white-space: nowrap; }

/* จอแนวนอนมือถือ/แท็บเล็ต (641-900px): ย่อตัวอักษร+ระยะขอบ ให้ตัวเลขอยู่บรรทัดเดียวพอดี ไม่ตัด ไม่ต้องเลื่อน
   ตั้งใจไม่ให้ทับช่วง ≤640px เพราะช่วงนั้นตารางเปลี่ยนเป็นการ์ดแล้ว มีขนาดตัวอักษรของตัวเองอยู่แล้ว */
@media (min-width: 641px) and (max-width: 900px) {
    .dash-table { font-size: 0.72rem; }
    .dash-table th { font-size: 0.62rem; padding: 8px 5px; }
    .dash-table td { padding: 8px 5px; }
    .dash-table td.money-cell { font-size: 0.82rem; }
}
.dash-table tbody tr:hover td { background: #eef2f7; }

.case-id {
    font-weight: 700;
    color: #1d6b22;
    text-decoration: none;
}
.case-id:hover { text-decoration: underline; }

.btn-assign {
    background: linear-gradient(135deg, #1d6b22, #145218);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-family: 'Sarabun', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-assign:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(74,108,247,0.4); }
.btn-reassign { background: linear-gradient(135deg, #f6993f, #dd6b20); }
.btn-reassign:hover { box-shadow: 0 4px 12px rgba(246,153,63,0.4); }

.btn-close-case { background: linear-gradient(135deg, #f472b6, #db2777); }
.btn-close-case:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(219,39,119,0.4); }

.btn-return-case {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.88rem;
    font-family: 'Sarabun', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-return-case:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(185,28,28,0.4); }

.btn-accept {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-family: 'Sarabun', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-accept:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(72,187,120,0.4); }

.btn-view {
    background: rgba(74,108,247,0.1);
    color: #1d6b22;
    border: 1px solid rgba(74,108,247,0.2);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-family: 'Sarabun', sans-serif;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
.btn-view:hover { background: rgba(74,108,247,0.18); }

/* Countdown */
.countdown {
    font-size: 0.9rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: #d97706;
}

/* ===== TOPBAR BACK LINK ===== */
.topbar-back {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s;
}
.topbar-back:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ===== CASE DETAIL ===== */
.detail-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 24px 48px;
}
.detail-header {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    color: #1a202c;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-left: 5px solid #1d6b22;
}
.detail-case-id {
    display: inline-block;
    background: #e8f5e9;
    color: #1d6b22;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}
.detail-customer { font-size: 1.7rem; font-weight: 700; color: #1a202c; margin-bottom: 4px; }
.detail-phone { font-size: 0.95rem; color: #718096; }
.detail-body { display: flex; flex-direction: column; gap: 16px; }

.detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.detail-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1f36;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8f5e9;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 32px;
}
.detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.detail-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.detail-grid > div > *:last-child:not(.detail-label) {
    font-size: 0.95rem;
    color: #1a202c;
    font-weight: 500;
}
.status-select-input {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Sarabun', sans-serif;
    color: #2d3748;
    background: #fafbfc;
    min-width: 240px;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718096' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.status-select-input:focus { border-color: #1d6b22; box-shadow: 0 0 0 3px rgba(74,108,247,0.1); }

/* Notes */
.notes-log {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
    margin-bottom: 16px;
}
.note-empty { color: #a0aec0; font-size: 0.9rem; text-align: center; padding: 24px 0; }
.note-item {
    background: #f8fafc;
    border-radius: 10px;
    padding: 12px 16px;
    border-left: 3px solid #e2e8f0;
}
.note-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.note-author { font-weight: 600; color: #2d3748; font-size: 0.88rem; }
.note-role-tag {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 8px;
    background: rgba(74,108,247,0.1);
    color: #1d6b22;
    letter-spacing: 0.3px;
}
.note-role-tag.cro-tag { background: rgba(144,205,244,0.2); color: #2b77a8; }
.note-date { color: #a0aec0; font-size: 0.78rem; margin-left: auto; }
.note-text { color: #4a5568; font-size: 0.9rem; line-height: 1.6; }
.note-form textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-family: 'Sarabun', sans-serif;
    color: #2d3748;
    background: #fafbfc;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
}
.note-form textarea:focus { border-color: #1d6b22; box-shadow: 0 0 0 3px rgba(74,108,247,0.1); }

/* ===== MODAL select fix ===== */
.modal-box .login-field select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Sarabun', sans-serif;
    color: #2d3748;
    background: #fafbfc;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23718096' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    outline: none;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 900px) {
    .dash-wrapper { padding: 20px 16px 36px; }
    .dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .detail-grid { gap: 14px 20px; }
}

/* ===== HAMBURGER BUTTON ===== */
.topbar-hamburger {
    display: none;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    color: #fff;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}
.topbar-hamburger:hover { background: rgba(255,255,255,0.18); }

/* Topbar — hamburger layout: ใช้ตั้งแต่มือถือแนวนอนขึ้นไปด้วย (ไม่ใช่แค่แนวตั้ง)
   เพราะถ้าปล่อยให้ topbar-right ยังเรียงแนวนอนอยู่ ตอนจอแคบ (641-900px) นาฬิกากลางจอ (position:absolute)
   จะไปทับกับชื่อ user/เมนูที่ชิดขวา — พับเป็นเมนู hamburger ตั้งแต่ 900px ไปเลยจะได้ไม่ชนกัน */
@media (max-width: 900px) {
    .topbar {
        height: auto;
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 0;
        align-items: center;
    }
    .topbar-left { flex: 1; gap: 8px; }
    .topbar-logo { font-size: 1.1rem; }
    .topbar-title { font-size: 0.9rem; }
    .topbar-role-tag { font-size: 0.68rem; padding: 2px 8px; }

    /* วันที่/เวลา: ขึ้นบรรทัดใหม่ของตัวเอง แทนการลอยทับตรงกลาง (พื้นที่แคบเกินไป) */
    .topbar-center {
        position: static;
        transform: none;
        order: 3;
        width: 100%;
        text-align: center;
        font-size: 0.74rem;
        font-weight: 500;
        color: rgba(255,255,255,0.85);
        margin-top: 6px;
    }
    .topbar-hamburger { display: flex; }

    /* Menu drawer — hidden by default */
    .topbar-right {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 6px;
        padding: 10px 0 4px;
        border-top: 1px solid rgba(255,255,255,0.12);
        margin-top: 8px;
    }
    .topbar-right.open { display: flex; }

    /* Items inside drawer */
    .topbar-user {
        display: flex !important;
        background: rgba(255,255,255,0.07);
        border-radius: 8px;
        padding: 9px 14px;
        font-size: 0.9rem;
        justify-content: center;
        color: rgba(255,255,255,0.85);
    }
    .topbar-right a,
    .topbar-right .btn-logout,
    .topbar-right .btn-view {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
        display: block;
        box-sizing: border-box;
    }
    .topbar-back {
        display: inline-block;
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}

/* Mobile */
@media (max-width: 640px) {

    /* Content area */
    .content-area { min-height: calc(100vh - 52px); }
    .dash-wrapper { padding: 14px 12px 32px; }

    /* กล่องผลการค้นหา: กลืนกับพื้นหลังหน้าจอมือถือ ไม่ต้องมีกรอบ/เงาซ้อนกับการ์ดรถแต่ละคัน */
    #cc-results-card {
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    #cc-results-card .dash-card-header {
        background: transparent;
        border-bottom: none;
        padding: 14px 4px 8px;
    }
    #cc-results-card .dash-table-scroll { padding: 0 4px; }

    /* Page header card */
    .page-header-card {
        padding: 14px 16px;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .page-title { font-size: 1.05rem; }
    .page-subtitle { font-size: 0.82rem; }
    .page-header-card .btn-primary { width: 100%; justify-content: center; }

    /* Stat cards: 2 per row */
    .dash-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .stat-card { padding: 14px 12px; border-radius: 12px; min-width: 0; }
    .stat-num { font-size: 1.8rem; }
    .stat-label { font-size: 0.72rem; }

    /* Dash card */
    .dash-card { border-radius: 12px; margin-top: 12px; }
    .dash-card-header { padding: 12px 14px; font-size: 0.82rem; }

    /* Card Table: แปลง table เป็น card บนมือถือ */
    .dash-table-scroll { overflow: visible; }
    .dash-table { min-width: 0 !important; width: 100%; }
    .dash-table thead { display: none; }
    .dash-table tbody tr {
        display: block;
        background: #fff;
        border: 2px solid #1d6b22;
        border-radius: 12px;
        margin: 0 0 16px 0;
        padding: 4px 0;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    .dash-table tbody tr:last-child { margin-bottom: 0; }
    .dash-table tbody tr:nth-child(even) td { background: transparent; }
    .dash-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 16px;
        font-size: 0.88rem;
        border-bottom: 1px solid #f0f4f8;
        text-align: right;
        min-width: 0;
        gap: 10px;
    }
    .dash-table tbody tr td:last-child { border-bottom: none; }
    .dash-table tbody td::before {
        content: attr(data-label);
        font-size: 0.72rem;
        font-weight: 700;
        color: #a0aec0;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        flex-shrink: 0;
        text-align: left;
    }
    .dash-table tbody td.td-id {
        background: #f8fafc;
        padding: 10px 16px;
        font-size: 0.95rem;
    }
    .dash-table tbody td.td-id::before { display: none; }
    /* บนมือถือมีที่พอ ไม่ต้องตัดข้อความ */
    .td-id .case-id, .td-car {
        max-width: none;
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
    }
    .dash-table tbody td.col-phone-mobile { display: flex !important; }
    .dash-table tbody td.td-actions {
        flex-direction: row;
        justify-content: flex-end;
        padding: 10px 16px 14px;
        gap: 8px;
        flex-wrap: wrap;
    }
    .dash-table tbody td.td-actions::before { display: none; }
    .dash-table tbody td.td-actions > * {
        flex: 1 1 0;
        text-align: center;
        min-width: 0;
    }
    .dash-table tbody td[data-label="hide"] { display: none; }
    .table-empty { padding: 32px 12px; font-size: 0.88rem; }

    /* Buttons */
    .btn-assign, .btn-reassign { padding: 7px 14px; font-size: 0.82rem; }
    .btn-accept { padding: 7px 14px; font-size: 0.82rem; }
    .btn-view { padding: 7px 14px; font-size: 0.82rem; }
    .td-actions { gap: 6px; flex-wrap: wrap; }

    /* Case detail */
    .detail-wrapper { padding: 14px 12px 32px; }
    .detail-header {
        flex-direction: column;
        gap: 14px;
        padding: 18px 18px;
        border-left-width: 4px;
    }
    .detail-customer { font-size: 1.3rem; }
    .detail-card { padding: 18px 16px; border-radius: 12px; }
    .detail-grid { grid-template-columns: 1fr; gap: 14px; }
    .status-select-input { min-width: 100%; width: 100%; }
    .note-form textarea { font-size: 0.88rem; }
    .detail-card-title { font-size: 0.9rem; }

    /* AE form page */
    .page-wrapper { padding: 16px 12px; }
    .header h1 { font-size: 1.5rem; }
    .section { padding: 18px 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full-width { grid-column: auto; }
    .form-actions { padding: 16px; flex-direction: column; }
    .btn-primary, .btn-secondary { width: 100%; justify-content: center; }

    /* Login / select pages */
    .login-card { padding: 32px 22px; }
    .login-title { font-size: 1.4rem; }
    .select-cards { gap: 12px; }
    .user-card { padding: 18px 18px; gap: 14px; }
    .card-title { font-size: 1.2rem; }

    /* Modal */
    .modal { padding: 12px; align-items: flex-end; }
    .modal-box { padding: 28px 20px; border-radius: 20px 20px 16px 16px; max-width: 100%; }
}

/* Very small screens */
@media (max-width: 380px) {
    .topbar-title { display: none; }
    .stat-num { font-size: 1.5rem; }
    .detail-customer { font-size: 1.15rem; }
}

/* ===== Review modal (AE ตรวจสอบข้อมูลก่อนบันทึก) ===== */
.review-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f4f8;
    font-size: 0.88rem;
}
.review-row:last-child { border-bottom: none; }
.review-label { color: #718096; flex-shrink: 0; }
.review-value { color: #1a202c; font-weight: 600; text-align: right; overflow-wrap: break-word; }

/* ===== TOAST (success banner after redirect) ===== */
.toast-success {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #1d6b22;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    font-family: 'Sarabun', sans-serif;
    z-index: 2000;
    animation: toast-slide-in 0.3s ease-out;
}
.toast-success .toast-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}
@keyframes toast-slide-in {
    from { transform: translateX(30px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@media (max-width: 640px) {
    .toast-success { left: 12px; right: 12px; top: 12px; }
}
