/* NHAS portal palette, adapted from D:/nhas/resources/views/layouts/app.blade.php.
   Shared by AdminLTE 4, guest pages and LINE LIFF; PDF templates are independent. */
:root {
    --portal-bg: #eeeeee; --portal-surface: #ffffff; --portal-card: #eef6ff;
    --portal-sidebar: #f7f7f7; --portal-sidebar-active: #eeeeee;
    --portal-border: #d9dde2; --portal-border-soft: #e8ebef;
    --portal-text: #3f454d; --portal-muted: #6f7782;
    --portal-blue: #4285f4; --portal-green: #2faa50; --portal-teal: #008976;
    --portal-red: #ef3f36; --portal-yellow: #f6b800; --portal-dark: #444444;
    --portal-link: #245ebc; --portal-radius: 4px;
    --portal-font: Tahoma, Arial, "Leelawadee UI", sans-serif;
}
.nhas-theme {
    --bs-body-font-family: var(--portal-font); --bs-body-color: var(--portal-text); --bs-body-bg: var(--portal-bg);
    --bs-primary: var(--portal-blue); --bs-primary-rgb: 66,133,244;
    --bs-success-rgb: 47,170,80; --bs-info-rgb: 0,137,118; --bs-danger-rgb: 239,63,54; --bs-warning-rgb: 246,184,0;
    --bs-link-color: var(--portal-link); --bs-link-color-rgb: 36,94,188; --bs-link-hover-color: #174b9e;
    --bs-border-color: var(--portal-border); --bs-border-radius: var(--portal-radius);
    --lte-sidebar-width: 270px; --lte-app-header-height: 60px; --app-header-height: 60px; --header-height: 60px;
    /* Compatibility for views still using the previous theme's token names. */
    --gntl-accent: var(--portal-blue); --gntl-accent-2: var(--portal-teal);
    --gtl-dark: var(--portal-text); --gtl-accent: var(--portal-blue); --gtl-accent-dark: #286bd7;
    --gtl-light: var(--portal-bg); --gtl-text: var(--portal-text);
    --inv-primary: var(--portal-text); --inv-blue: var(--portal-link); --inv-radius: 4px;
    --sh-primary: var(--portal-text); --sh-blue: var(--portal-link); --sh-radius: 4px;
    --pay-primary: var(--portal-link); --pay-radius: 4px; --pay-shadow: none;
    color: var(--portal-text); background: var(--portal-bg) !important;
    font-family: var(--portal-font); font-size: 14px; line-height: 1.6;
}
.nhas-theme .gtl-skin { --bs-primary: var(--portal-blue); --bs-success: var(--portal-green); --bs-info: var(--portal-teal); --bs-danger: var(--portal-red); --bs-warning: var(--portal-yellow); --gtl-blue: var(--portal-blue); --gtl-green: var(--portal-green); --gtl-slate: var(--portal-text); --gtl-red: var(--portal-red); --gtl-head: white; }
.nhas-theme .gtl-skin :is(.tile_stats_count, .x_panel) { background: var(--portal-card); border: 1px solid var(--portal-border-soft); border-radius: 4px; box-shadow: none; }
.nhas-theme :focus-visible { outline: 3px solid #245ebc; outline-offset: 3px; }
.nhas-theme .nhas-skip-link { position: fixed; left: 12px; top: -100px; z-index: 2000; padding: 10px 16px; background: white; color: #174b9e; }
.nhas-theme .nhas-skip-link:focus { top: 10px; }
.nhas-theme .app-wrapper, .nhas-theme .app-main { background: var(--portal-bg); min-width: 0; }
.nhas-theme .app-header { min-height: 60px; background: white !important; border-bottom: 1px solid var(--portal-border); box-shadow: none; padding: 6px 12px; z-index: 1030; }
.nhas-theme .app-header .container-fluid { gap: 8px; }
.nhas-theme .app-header .nav-link { color: var(--portal-text); }
.nhas-theme .nhas-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; min-height: 40px; padding: 8px; border: 0; border-radius: 50%; background: transparent; }
.nhas-theme .nhas-icon-button:hover { background: var(--portal-sidebar-active); color: var(--portal-link); }
.nhas-theme .nhas-header-title { font-weight: 700; color: #20242a; margin-left: 8px; font-size: 14px; }
.nhas-theme .nhas-user-tools { gap: 7px; min-width: 0; }
.nhas-theme .top-user-card { display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; padding: 6px 10px; min-height: 36px; font-size: 12px; font-weight: 700; line-height: 1.4; text-decoration: none; }
.nhas-theme .top-user-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nhas-theme .top-user-card.role { background: #e8f7ee; color: #166534; border: 1px solid #bfe8cc; max-width: 255px; }
.nhas-theme .top-user-card.name { background: #eef6ff; color: #1d4ed8; border: 1px solid #cfe2ff; max-width: 210px; }
.nhas-theme .app-sidebar { background: var(--portal-sidebar) !important; color: var(--portal-text); border-right: 1px solid var(--portal-border); box-shadow: none !important; }
.nhas-theme .sidebar-brand { height: 60px; background: white; border-bottom: 1px solid var(--portal-border); }
.nhas-theme .app-sidebar .brand-link { height: 60px; display: flex; align-items: center; gap: 9px; padding: 10px 14px; text-decoration: none; min-width: 0; }
.nhas-theme .nhas-brand-icon { background: #e33221; color: white; width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 50%; }
.nhas-theme .app-sidebar .brand-text { color: #626a74; font-size: 15px; font-weight: 700; white-space: nowrap; }
.nhas-theme .brand-text small { display: block; font-size: 10px; font-weight: 400; color: var(--portal-muted); }
.nhas-theme .app-sidebar .sidebar-wrapper { height: calc(100dvh - 60px); padding: 12px 0 !important; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #c1c7ce transparent; }
.nhas-theme .app-sidebar .sidebar-wrapper::-webkit-scrollbar-thumb { background: #c1c7ce; border-radius: 4px; }
.nhas-theme .sidebar-menu { padding: 0; }
.nhas-theme .sidebar-menu .nav-header { color: #5f6872; font-size: 12px; font-weight: 700; padding: 14px 16px 6px; letter-spacing: 0; }
.nhas-theme .sidebar-menu .nav-link { color: #4c5561; margin: 0; padding: 10px 14px; border-radius: 0; min-height: 42px; font-size: 13px; box-shadow: none; }
.nhas-theme .sidebar-menu .nav-link p { white-space: normal; line-height: 1.6; margin-bottom: 0; }
.nhas-theme .sidebar-menu .nav-link .nav-icon { width: 20px; margin-right: 8px; color: inherit; font-size: 15px; }
.nhas-theme .sidebar-menu .nav-link.active, .nhas-theme .sidebar-menu .nav-link:hover, .nhas-theme .sidebar-menu .menu-open > .nav-link { background: var(--portal-sidebar-active) !important; color: var(--portal-link) !important; box-shadow: none; }
.nhas-theme .sidebar-menu .nav-link.active { box-shadow: inset 3px 0 var(--portal-blue); }
.nhas-theme .sidebar-menu .nav-arrow { color: inherit; }
.nhas-theme .sidebar-menu .nav-treeview { background: #f0f0f0; border-block: 1px solid #e3e6ea; padding: 4px 0; }
.nhas-theme .sidebar-menu .nav-treeview .nav-link { padding-left: 34px; margin-left: 0; font-size: 12px; }
.nhas-theme .app-content { padding: 20px 6px !important; }
.nhas-theme .app-content > .container-fluid { padding-inline: 12px; }
.nhas-theme .app-content > .container-fluid > .container-fluid { padding: 0 !important; }
.nhas-theme .app-content-header { padding: 18px 18px 0; }
.nhas-theme .app-content-header h1, .nhas-theme .app-content h4 { color: #20242a; font-size: 20px; line-height: 1.5; }
.nhas-theme .app-content :is(.card, .kpi-card, .panel, .app-section-card) { border: 1px solid var(--portal-border-soft); border-radius: var(--portal-radius); box-shadow: none; background-color: var(--portal-card); }
.nhas-theme .app-content .card.card-custom-bg { background: var(--portal-card); border-color: var(--portal-border-soft); border-radius: var(--portal-radius); box-shadow: none; }
.nhas-theme .app-content .card > .card-header:not(.bg-danger):not(.bg-success):not(.bg-warning):not(.bg-primary):not(.bg-info) { background: var(--portal-card); border-bottom: 1px solid var(--portal-border-soft); color: var(--portal-text); padding: 14px 18px; }
.nhas-theme .app-content .card > .card-header h5 { font-size: 15px; font-weight: 700; }
.nhas-theme .app-content .card-body { padding: 18px; }
.nhas-theme .app-content .card-footer { background: #f8fafc; border-color: var(--portal-border-soft); }
.nhas-theme .app-content .kpi-card:hover { box-shadow: none; border-color: #b6cce8; }
.nhas-theme .app-content .kpi-icon { width: 42px; height: 42px; border-radius: 4px; font-size: 20px; }
.nhas-theme .app-content .kpi-label, .nhas-theme .app-content .kpi-sub, .nhas-theme .app-content .section-hdr { color: var(--portal-muted); letter-spacing: 0; text-transform: none; }
.nhas-theme .app-content .kpi-value { font-size: clamp(20px, 2vw, 27px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.nhas-theme .nhas-page-heading { padding: 0 0 16px; border-bottom: 1px solid var(--portal-border); }
.nhas-theme .app-content .res-invoice-card { border-radius: 4px; }
.nhas-theme .app-content :is(.hero-card, .inv-hero, .sh-hero, .hero-amount, .info-panel-header, .myprof .hero) { background: var(--portal-card); color: var(--portal-text); border: 1px solid var(--portal-border-soft); border-radius: 4px; }
.nhas-theme .app-content .hero-card::after { display: none; }
.nhas-theme .app-content .hero-avatar { background: #e1edff; color: var(--portal-link); border-radius: 4px; }
.nhas-theme .app-content :is(.info-cell, .action-btn, .section-card, .pay-section, .pay-info-panel, .pay-form-panel, .sh-section, .sh-cta) { border-radius: 4px; box-shadow: none; border: 1px solid var(--portal-border-soft); }
.nhas-theme .app-content .inv-card { box-shadow: none; }
.nhas-theme .app-content .sh-hero-back { color: var(--portal-link); }
.nhas-theme .app-content :is(.sh-amount-box, .inv-chip, .hero-badge) { background: #fff9; border-color: var(--portal-border); }
.nhas-theme .app-content :is(.hero-badge.active, .inv-chip.chip-ok) { background: #e8f7ee; border-color: #bfe8cc; color: #166534; }
.nhas-theme .app-content :is(.hero-badge.urgent) { background: #fce6e4; border-color: #efbbb7; color: #a32621; }
.nhas-theme .app-content :is(.hero-badge.warn, .inv-chip.chip-warn) { background: #fff2ca; border-color: #e9d78e; color: #725300; }
.nhas-theme .app-content :is(.hero-progress, .sh-progress-wrap) { background: #dbe3ec; }
.nhas-theme .app-content :is(.sh-pay-btn, .submit-btn, .dsk-submit-btn) { background: var(--portal-link); border-radius: 4px; box-shadow: none; }
.nhas-theme .table { --bs-table-bg: #fff; --bs-table-color: var(--portal-text); --bs-table-border-color: var(--portal-border); --bs-table-striped-bg: #f5f5f5; --bs-table-hover-bg: #edf4ff; font-size: 13px; margin-bottom: 0; }
.nhas-theme .table > thead > tr > th { background: white; color: #444b54; padding: 10px 14px; border-bottom: 2px solid var(--portal-border); font-weight: 700; vertical-align: middle; box-shadow: none; }
.nhas-theme .table > tbody > tr > :is(td, th) { padding: 9px 14px; vertical-align: middle; }
.nhas-theme .table > tbody > tr:nth-child(odd) { --bs-table-bg: #f5f5f5; }
.nhas-theme .table > tbody > tr:nth-child(even) { --bs-table-bg: #fff; }
.nhas-theme .table > tbody > tr.table-danger { --bs-table-bg: #fce6e4; }
.nhas-theme .table > tbody > tr.table-warning { --bs-table-bg: #fff4d1; }
.nhas-theme .table > tbody > tr.table-success { --bs-table-bg: #e8f7ee; }
.nhas-theme .table a:not(.btn) { color: var(--portal-link); font-weight: 600; }
.nhas-theme .table-responsive { background: white; scrollbar-width: thin; }
.nhas-theme .btn { border-radius: 3px; font-weight: 700; min-height: 36px; padding: 7px 12px; box-shadow: none; }
.nhas-theme .btn-sm { font-size: 12px; min-height: 32px; padding: 5px 9px; }
.nhas-theme .btn-primary { --bs-btn-bg: var(--portal-blue); --bs-btn-border-color: var(--portal-blue); --bs-btn-hover-bg: #286bd7; --bs-btn-hover-border-color: #286bd7; --bs-btn-active-bg: #245ebc; --bs-btn-active-border-color: #245ebc; --bs-btn-disabled-bg: var(--portal-blue); --bs-btn-disabled-border-color: var(--portal-blue); }
.nhas-theme .btn-success { --bs-btn-bg: var(--portal-green); --bs-btn-border-color: var(--portal-green); --bs-btn-hover-bg: #24883e; --bs-btn-hover-border-color: #24883e; }
.nhas-theme .btn-info { --bs-btn-color: white; --bs-btn-bg: var(--portal-teal); --bs-btn-border-color: var(--portal-teal); --bs-btn-hover-color: white; --bs-btn-hover-bg: #006d5e; --bs-btn-hover-border-color: #006d5e; }
.nhas-theme .btn-danger { --bs-btn-bg: var(--portal-red); --bs-btn-border-color: var(--portal-red); --bs-btn-hover-bg: #cb3029; --bs-btn-hover-border-color: #cb3029; }
.nhas-theme .btn-warning { --bs-btn-bg: var(--portal-yellow); --bs-btn-border-color: var(--portal-yellow); --bs-btn-hover-bg: #d9a300; --bs-btn-hover-border-color: #d9a300; }
.nhas-theme .btn-outline-primary { --bs-btn-color: var(--portal-link); --bs-btn-border-color: var(--portal-blue); --bs-btn-hover-bg: var(--portal-blue); --bs-btn-hover-border-color: var(--portal-blue); --bs-btn-active-bg: var(--portal-blue); --bs-btn-active-border-color: var(--portal-blue); }
.nhas-theme .btn-light { background: white; border-color: #d7dce2; color: var(--portal-text); }
.nhas-theme :is(.form-control, .form-select, .input-group-text) { border-radius: 3px; border-color: #cfd5dc; background-color: white; color: var(--portal-text); font-size: 14px; min-height: 38px; }
.nhas-theme .form-control:focus, .nhas-theme .form-select:focus { border-color: var(--portal-blue); box-shadow: 0 0 0 3px #4285f426; }
.nhas-theme .form-control:disabled, .nhas-theme .form-control[readonly], .nhas-theme .form-select:disabled { background: #f1f3f5; }
.nhas-theme :is(.form-control, .form-select).is-invalid { border-color: var(--portal-red); }
.nhas-theme .form-label { font-size: 13px; color: var(--portal-text); font-weight: 700; }
.nhas-theme .form-check-input:checked { background-color: var(--portal-blue); border-color: var(--portal-blue); }
.nhas-theme .select2-container--default .select2-selection { border-color: #cfd5dc; border-radius: 3px; min-height: 38px; }
.nhas-theme .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; }
.nhas-theme .select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }
.nhas-theme .select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--portal-blue); }
.nhas-theme .badge { border-radius: 999px; font-weight: 700; }
.nhas-theme .badge.bg-gradient-success { background: #e8f7ee !important; color: #166534 !important; }
.nhas-theme .badge.bg-gradient-info { background: #e7f3ff !important; color: #245ebc !important; }
.nhas-theme .badge.bg-gradient-warning { background: #fff2ca !important; color: #725300 !important; }
.nhas-theme .badge.bg-gradient-danger { background: #fce6e4 !important; color: #a32621 !important; }
.nhas-theme .alert { border-radius: 4px; }
.nhas-theme .pagination { gap: 4px; flex-wrap: wrap; }
.nhas-theme .page-link { border-radius: 3px !important; min-width: 36px; min-height: 36px; color: var(--portal-text); border-color: var(--portal-border); }
.nhas-theme .page-item.active .page-link { background: var(--portal-blue); border-color: var(--portal-blue); color: white; }
.nhas-theme .page-item.disabled .page-link { background: white; color: #77818d; }
.nhas-theme .report-pagination-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px; }
.nhas-theme .report-pagination-footer > p { flex: 1 1 220px; }
.nhas-theme .app-pagination { max-width: 100%; }
.nhas-theme .app-pagination .pagination { list-style: none; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.nhas-theme .app-pagination .page-link { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: auto; height: auto; min-width: 36px; min-height: 36px; padding: 6px 10px; margin: 0; line-height: 1.4; font-size: 14px; white-space: nowrap; }
.nhas-theme .app-pagination .page-link:focus-visible { outline: 2px solid var(--portal-blue); outline-offset: 2px; }
.nhas-theme .app-pagination-position { display: none; font-size: 13px; color: var(--portal-text); white-space: nowrap; }
@media (max-width: 575.98px) {
    .nhas-theme .report-pagination-footer { flex-direction: column; align-items: stretch; padding: 12px; gap: 10px; }
    .nhas-theme .report-pagination-footer > p { flex: none; }
    .nhas-theme .app-pagination .pagination { justify-content: center; gap: 8px; }
    .nhas-theme .app-pagination .app-pagination-number { display: none; }
    .nhas-theme .app-pagination-position { display: block; }
    .nhas-theme .app-pagination .page-link { min-height: 44px; padding: 8px 10px; }
}
.nhas-theme .modal-content { border-radius: 6px; border-color: var(--portal-border); background: white; }
.nhas-theme .modal-header { background: var(--portal-card); border-color: var(--portal-border-soft); }
.nhas-theme .app-footer { background: white; border-top: 1px solid var(--portal-border); color: var(--portal-muted); font-size: 12px; padding: 12px 18px; }
.nhas-theme .text-monospace { font-family: ui-monospace, Consolas, monospace; font-variant-numeric: tabular-nums; }
.nhas-theme.nhas-payment-confirmation { --primary: var(--portal-blue); --primary-dark: #245ebc; --text: var(--portal-text); --muted: var(--portal-muted); }
.nhas-payment-confirmation .modal-card { background: var(--portal-card); border: 1px solid var(--portal-border); border-radius: 5px; box-shadow: none; }
.nhas-payment-confirmation .ok-btn { border-radius: 4px; box-shadow: none; }

/* Centered NHAS glass login, with Welfarea's existing account and LINE entry. */
.nhas-theme.nhas-login { min-height: 100dvh; background: #e9f0ed url('../images/nhas/shops-services-login-bg-v1.png') center / cover no-repeat fixed !important; }
.nhas-login .nhas-login-shell { min-height: 100dvh; display: grid; place-items: center; padding: 32px 20px 72px; }
.nhas-login .nhas-login-card { width: min(440px, 100%); border: 6px solid #ffffffeb; border-radius: 30px; background: #ffffffb8; backdrop-filter: blur(10px); box-shadow: 0 18px 34px #1f293338; padding: 28px 32px; }
.nhas-login .nhas-login-mark { width: 76px; height: 76px; margin: 0 auto 14px; display: grid; place-items: center; border: 5px solid white; border-radius: 50%; background: #ffffffbd; color: #0b5f8a; font-size: 30px; }
.nhas-login .nhas-login-title { font-size: 19px; line-height: 1.5; text-align: center; font-weight: 700; color: #202a35; margin: 0 0 6px; }
.nhas-login .nhas-login-caption { text-align: center; color: #586574; font-size: 12px; margin-bottom: 22px; }
.nhas-login .form-label { font-size: 14px; }
.nhas-login .form-control { height: 46px; border: 1px solid #8293a5; border-radius: 12px; background-color: #ffffffbf; font-size: 16px; }
.nhas-login .nhas-password-field { position: relative; }
.nhas-login .nhas-password-field input { padding-right: 48px; }
.nhas-login .nhas-password-toggle { position: absolute; right: 3px; top: 3px; width: 40px; height: 40px; border: 0; background: transparent; color: #37647c; border-radius: 10px; }
.nhas-login .nhas-login-submit { width: 100%; min-height: 46px; border-radius: 12px; background: #1f1f1f; border: 1px solid #1f1f1f; color: white; }
.nhas-login .nhas-login-submit:hover { background: #0f1720; color: white; }
.nhas-login .nhas-login-divider { display: flex; gap: 10px; align-items: center; color: #667482; font-size: 12px; margin: 18px 0; }
.nhas-login .nhas-login-divider::before, .nhas-login .nhas-login-divider::after { content: ''; height: 1px; background: #b9c8d4; flex: 1; }
.nhas-login .nhas-line-entry { display: flex; gap: 8px; align-items: center; justify-content: center; min-height: 44px; background: #008c3c; border: 1px solid #008c3c; border-radius: 12px; color: white; text-decoration: none; font-weight: 700; }
.nhas-login .nhas-line-entry:hover { background: #007732; }
.nhas-login .nhas-line-help { display: block; text-align: center; margin-top: 12px; font-size: 12px; color: #27536d; }
.nhas-login .nhas-login-credit { padding: 12px 20px; margin-top: -56px; text-align: center; color: #25384a; font-size: 11px; text-shadow: 0 1px 2px white; }
@media (max-width: 640px) {
    .nhas-theme.nhas-login { background-position: 22% center !important; background-attachment: scroll !important; }
    .nhas-login .nhas-login-card { background: #fffffff0; }
}

/* Mobile layout stays intact; shared colors and panels extend to LIFF forms. */
.nhas-theme.liff-body, .nhas-theme.liff-body.staff-theme { --ink: var(--portal-text); --muted: var(--portal-muted); --primary: var(--portal-link); --deep: #245ebc; --bg: var(--portal-bg); --line: var(--portal-border); --shadow: none; --gold: var(--portal-yellow); }
.nhas-theme.liff-body .liff-shell { background: var(--portal-bg); border-radius: 4px; box-shadow: none; }
.nhas-theme.liff-body .brand-bar { background: white; margin-inline: -24px; padding: 16px 24px; border-bottom: 1px solid var(--portal-border); }
.nhas-theme.liff-body .brand { color: #626a74; }
.nhas-theme.liff-body .brand-mark { background: #e33221; color: white; border-radius: 50%; }
.nhas-theme.liff-body :is(.balance-card, .stat-card, .service-card, .record-card, .account-card, .settings-panel, .entry-panel, .identity-card, .panel) { background: var(--portal-card); color: var(--portal-text); border: 1px solid var(--portal-border-soft); border-radius: 5px; box-shadow: none; }
.nhas-theme.liff-body .balance-card { background-image: none; }
.nhas-theme.liff-body .balance-card::after, .nhas-theme.liff-body .balance-card::before { display: none; }
.nhas-theme.liff-body .balance-card :is(h2, p, small, .balance, .balance-label, .balance-meta, .balance-top, .balance-footer) { color: var(--portal-text); }
.nhas-theme.liff-body .balance-card a { background: white; border-color: #cfe2ff; color: var(--portal-link); }
.nhas-theme.liff-body .balance-card .balance-action { color: var(--portal-link) !important; border: 1px solid #cfe2ff; border-radius: 4px; }
.nhas-theme.liff-body .avatar { background: #e8f0ff; }
.nhas-theme.liff-body .button:not(.line-button):not(.danger):not(.secondary) { background: var(--portal-blue); color: white !important; border-radius: 4px; }
.nhas-theme.liff-body .button.secondary { border-radius: 4px; }
.nhas-theme.liff-body .section-heading h2 { color: #20242a; }
.nhas-theme.liff-body .bottom-nav { background: white; border-color: var(--portal-border); border-radius: 0; }
.nhas-theme.liff-body .bottom-nav a.active { color: var(--portal-link); background: var(--portal-card); border-radius: 4px; }
.nhas-theme.liff-body .tool-links > a { border-radius: 4px; }
.nhas-theme.liff-body .record-bottom { border-color: var(--portal-border); }
.nhas-theme.liff-body .record-bottom a { color: var(--portal-link); }
.nhas-theme.liff-body .greeting h1 { font-size: 24px; }
.nhas-theme.liff-workspace { background: var(--portal-bg) !important; }
.nhas-theme .liff-workspace-bar { background: white; color: var(--portal-text); border-bottom: 1px solid var(--portal-border); }
.nhas-theme .liff-workspace-bar a { color: var(--portal-link); }
.nhas-theme .liff-workspace-nav { border-color: var(--portal-border); }
.nhas-theme .liff-workspace-nav a { color: var(--portal-link); }
@media (max-width: 1199.98px) { .nhas-theme .nhas-header-title { font-size: 12px; } .nhas-theme .top-user-card.name { max-width: 160px; } }
@media (max-width: 991.98px) { .nhas-theme .app-content { padding: 16px 0 !important; } .nhas-theme .nhas-role-item { display: none; } .nhas-theme .app-sidebar .sidebar-wrapper { height: calc(100dvh - 60px); } }
@media (max-width: 991.98px) { .nhas-theme.liff-workspace :is(.submit-bar, .sh-sticky-bar) { bottom: calc(76px + env(safe-area-inset-bottom)); } }
@media (max-width: 575.98px) {
    .nhas-theme .app-header { padding-inline: 4px; }
    .nhas-theme .nhas-user-tools { gap: 3px; }
    .nhas-theme .top-user-card.name { max-width: 150px; font-size: 11px; }
    .nhas-theme .nhas-icon-button { width: 38px; min-height: 44px; }
    .nhas-theme .app-content .card-body { padding: 14px; }
    .nhas-theme .app-content .btn { min-height: 40px; }
    .nhas-theme :is(.form-control, .form-select) { font-size: 16px; }
    .nhas-theme .app-content .kpi-icon { width: 32px; height: 32px; font-size: 16px; }
    .nhas-theme .app-content .kpi-card .gap-3 { gap: 8px !important; }
    .nhas-login .nhas-login-shell { padding: 20px 14px 80px; }
    .nhas-login .nhas-login-card { padding: 24px 20px; border-width: 4px; border-radius: 24px; }
    .nhas-login .nhas-login-title { font-size: 18px; }
}
@media (max-width: 370px) { .nhas-theme.liff-body .brand-bar { margin-inline: -16px; padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .nhas-theme *, .nhas-theme *::before, .nhas-theme *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media print {
    .nhas-theme, .nhas-theme .app-main { background: white !important; }
    .nhas-theme :is(.app-sidebar, .app-header, .app-footer, .nhas-skip-link, .bottom-nav, .liff-workspace-bar, .liff-workspace-nav) { display: none !important; }
    .nhas-theme .app-wrapper { display: block !important; }
    .nhas-theme .app-main { margin: 0 !important; padding: 0 !important; }
    .nhas-theme .app-content { padding: 0 !important; }
    .nhas-theme .table-responsive { overflow: visible; }
    .nhas-theme .table thead { display: table-header-group; }
}
