:root {
    --bg: #f5f8ff;
    --bg-soft: #eef3ff;
    --panel: rgba(255, 255, 255, 0.74);
    --panel-strong: rgba(255, 255, 255, 0.9);
    --panel-solid: #ffffff;
    --ink: #14284a;
    --ink-soft: #40506e;
    --muted: #6d7a92;
    --line: rgba(21, 43, 79, 0.1);
    --line-strong: rgba(21, 43, 79, 0.16);
    --brand: #173a7a;
    --brand-strong: #102b5a;
    --brand-soft: #ebf2ff;
    --accent: #d8aa41;
    --accent-strong: #b8861f;
    --success: #228b5a;
    --warning: #f5a524;
    --danger: #d64d5f;
    --danger-soft: #ffe6ea;
    --shadow-sm: 0 14px 30px rgba(16, 43, 90, 0.08);
    --shadow-md: 0 24px 60px rgba(17, 42, 90, 0.12);
    --shadow-lg: 0 34px 80px rgba(14, 33, 70, 0.16);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --transition: 220ms cubic-bezier(.22, 1, .36, 1);
    --scrollbar-size: 8px;
    --scrollbar-thumb: rgba(255, 255, 255, 0.34);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.62);
    --scrollbar-track: rgba(255, 255, 255, 0.03);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

::-webkit-scrollbar {
    width: var(--scrollbar-size);
    height: var(--scrollbar-size);
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    min-height: 48px;
    border-radius: 999px;
    background-color: var(--scrollbar-thumb);
    border: 2px solid transparent;
    background-clip: padding-box;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 8px 24px rgba(16, 43, 90, 0.08);
    transition: background-color var(--transition), box-shadow var(--transition);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-thumb-hover);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        0 10px 28px rgba(16, 43, 90, 0.12);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    margin: 0;
    font-family: "Be Vietnam Pro", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(23, 58, 122, 0.14), transparent 28%),
        radial-gradient(circle at top right, rgba(216, 170, 65, 0.22), transparent 24%),
        radial-gradient(circle at bottom left, rgba(57, 105, 191, 0.12), transparent 22%),
        linear-gradient(180deg, #fafdff 0%, #f4f8ff 45%, #edf2ff 100%);
}

a {
    color: inherit;
}

img,
video {
    max-width: 100%;
    display: block;
}

.app-body,
.auth-body,
.error-body {
    min-height: 100vh;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    padding: 20px;
    position: relative;
    transition: grid-template-columns var(--transition);
}

.app-overlay {
    position: fixed;
    inset: 0;
    background: rgba(7, 18, 38, 0.38);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 20;
}

.sidebar {
    position: sticky;
    top: 20px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 20px;
    background:
        linear-gradient(180deg, rgba(13, 35, 73, 0.9), rgba(18, 42, 87, 0.82)),
        rgba(11, 28, 58, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(22px);
    color: #fff;
    z-index: 30;
    transition: transform var(--transition), opacity var(--transition), width var(--transition), padding var(--transition);
}

.brand-link {
    text-decoration: none;
}

.brand-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand-logo-wrap {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
    overflow: hidden;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0px;
}

.brand-logo-fallback {
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.brand-name {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.68);
}

.sidebar-link {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    font-weight: 600;
    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.sidebar-link:hover,
.sidebar-link.active {
    color: #fff;
    transform: translateX(4px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(216, 170, 65, 0.14));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sidebar-nav {
    min-width: 0;
}

.sidebar-footer {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-mobile-close {
    display: none;
}

.main-content {
    min-width: 0;
    padding: 4px 0 40px;
    transition: opacity var(--transition), transform var(--transition);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.topbar-heading {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    min-width: 0;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(23, 58, 122, 0.08), rgba(216, 170, 65, 0.2));
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.page-title {
    margin: 0;
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 800;
    color: var(--brand-strong);
}

.page-subtitle {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.7;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topbar-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.topbar-user-logo {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    object-fit: cover;
    background: #fff;
    padding: 4px;
}

.sidebar-toggle {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: none;
    gap: 5px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #e8efff);
    box-shadow: 9px 9px 18px rgba(133, 151, 187, 0.18), -8px -8px 16px rgba(255, 255, 255, 0.9);
    padding: 14px 12px;
}

.sidebar-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--brand-strong);
    border-radius: 999px;
}

.sidebar-desktop-toggle {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff, #e8efff);
    box-shadow: 9px 9px 18px rgba(133, 151, 187, 0.18), -8px -8px 16px rgba(255, 255, 255, 0.9);
    position: relative;
}

.sidebar-desktop-toggle span,
.sidebar-desktop-toggle::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-strong);
    transition: transform var(--transition), opacity var(--transition);
}

.sidebar-desktop-toggle span {
    transform: translateY(-5px);
}

.sidebar-desktop-toggle::before {
    transform: translateY(5px);
}

.sidebar-edge-toggle {
    position: fixed;
    left: 306px;
    top: 50%;
    z-index: 45;
    width: 34px;
    height: 64px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(16, 43, 90, 0.16);
    transform: translateY(-50%);
    transition: left var(--transition), background var(--transition), box-shadow var(--transition);
}

.sidebar-edge-toggle::before {
    content: "";
    display: block;
    width: 11px;
    height: 11px;
    margin: auto;
    border-top: 2px solid var(--brand-strong);
    border-right: 2px solid var(--brand-strong);
    transform: rotate(-135deg);
    transition: transform var(--transition);
}

.sidebar-edge-toggle:hover {
    background: #fff;
    box-shadow: 0 18px 38px rgba(16, 43, 90, 0.22);
}

body.sidebar-collapsed .sidebar-edge-toggle {
    left: 18px;
}

body.sidebar-collapsed .sidebar-edge-toggle::before {
    transform: rotate(45deg);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--accent-strong);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 800;
}

.hero-panel,
.panel-card,
.stat-card,
.detail-card,
.room-summary-card,
.auth-card,
.auth-point,
.error-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.hero-panel,
.panel-card,
.detail-card,
.room-summary-card {
    position: relative;
    overflow: hidden;
}

.hero-panel::before,
.panel-card::before,
.detail-card::before,
.room-summary-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 52%);
    pointer-events: none;
}

.hero-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 28px;
}

.hero-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(1.45rem, 2vw, 2.2rem);
    line-height: 1.3;
}

.hero-chip {
    min-width: 220px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(233, 241, 255, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.hero-chip strong {
    font-size: 1.15rem;
    color: var(--brand);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.stat-card {
    padding: 22px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: clamp(1.8rem, 2.4vw, 2.5rem);
    color: var(--brand-strong);
}

.stat-card.highlight {
    background: linear-gradient(160deg, rgba(23, 58, 122, 0.9), rgba(216, 170, 65, 0.88));
    color: #fff;
}

.stat-card.highlight strong,
.stat-card.highlight .stat-label {
    color: #fff;
}

.stat-label {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 18px;
    margin-top: 20px;
}

.content-grid.two-column-balanced,
.content-grid.room-layout,
.room-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-card,
.detail-card,
.room-summary-card {
    padding: 24px;
}

.panel-header,
.related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-header h3,
.related-header h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--brand-strong);
}

.panel-subtitle {
    color: var(--muted);
    line-height: 1.65;
}

.table-responsive {
    overflow: auto;
    border-radius: 18px;
}

.table {
    margin-bottom: 0;
    color: var(--ink);
}

.table > :not(caption) > * > * {
    padding: 0.95rem 0.8rem;
    border-bottom-color: var(--line);
    background: transparent;
}

.table thead th {
    color: var(--brand);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    white-space: nowrap;
}

.table tbody tr {
    transition: background var(--transition), transform var(--transition);
}

.table tbody tr:hover {
    background: rgba(23, 58, 122, 0.04);
}

.list-group-item {
    background: transparent;
    border-color: var(--line);
}

.status-pill,
.detail-tag,
.badge.text-bg-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.badge.text-bg-light,
.detail-tag {
    background: rgba(23, 58, 122, 0.08) !important;
    color: var(--brand-strong) !important;
    border: 1px solid rgba(23, 58, 122, 0.08);
}

.status-pill {
    border: 1px solid transparent;
}

.status-chua_lock,
.status-approved,
.status-active {
    background: rgba(34, 139, 90, 0.12);
    color: var(--success);
    border-color: rgba(34, 139, 90, 0.16);
}

.status-dang_giu,
.status-pending {
    background: rgba(245, 165, 36, 0.16);
    color: #aa6c00;
    border-color: rgba(245, 165, 36, 0.22);
}

.status-da_lock,
.status-rejected,
.status-cancelled,
.status-canceled {
    background: rgba(214, 77, 95, 0.12);
    color: var(--danger);
    border-color: rgba(214, 77, 95, 0.16);
}

.form-control,
.form-select {
    min-height: 50px;
    border-radius: 18px;
    border: 1px solid rgba(20, 40, 74, 0.12);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.78), inset -2px -2px 6px rgba(213, 222, 242, 0.32);
    color: var(--ink);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(23, 58, 122, 0.3);
    box-shadow: 0 0 0 0.24rem rgba(23, 58, 122, 0.12);
    background: #fff;
}

.form-label,
.form-check-label {
    font-weight: 700;
    color: var(--brand-strong);
}

.btn {
    position: relative;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 18px;
    font-weight: 700;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
    overflow: hidden;
}

.btn::after {
    content: "";
    position: absolute;
    inset: auto auto -100% -20%;
    width: 40%;
    height: 220%;
    background: rgba(255, 255, 255, 0.32);
    transform: rotate(18deg);
    transition: transform 420ms cubic-bezier(.22, 1, .36, 1);
}

.btn:hover::after {
    transform: translateX(220%) rotate(18deg);
}

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

.btn-primary {
    border: none;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), #2958a8);
    box-shadow: 0 16px 28px rgba(23, 58, 122, 0.2);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background: linear-gradient(135deg, #1b4691, #173a7a);
}

.btn-warning {
    border: none;
    color: #3c2a08;
    background: linear-gradient(135deg, #f6c761, var(--accent));
    box-shadow: 0 14px 28px rgba(216, 170, 65, 0.24);
}

.btn-warning:hover,
.btn-warning:focus {
    color: #3c2a08;
    background: linear-gradient(135deg, #ffd982, #d39d2a);
}

.btn-outline-danger,
.btn-outline-secondary,
.btn-outline-primary {
    background: rgba(255, 255, 255, 0.68);
    border-width: 1px;
    box-shadow: 0 10px 18px rgba(17, 42, 90, 0.06);
}

.btn-outline-danger {
    color: var(--danger);
    border-color: rgba(214, 77, 95, 0.34);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.btn-outline-secondary {
    color: var(--brand-strong);
    border-color: rgba(20, 40, 74, 0.12);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: var(--brand-strong);
    background: rgba(23, 58, 122, 0.08);
    border-color: rgba(23, 58, 122, 0.2);
}

.btn-outline-primary {
    color: var(--brand);
    border-color: rgba(23, 58, 122, 0.2);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: #fff;
    background: var(--brand);
    border-color: var(--brand);
}

.alert {
    border-radius: 20px;
    padding: 16px 18px;
    border: 1px solid transparent;
}

.alert-success {
    background: rgba(34, 139, 90, 0.12);
    border-color: rgba(34, 139, 90, 0.18);
    color: #196947;
}

.alert-danger {
    background: rgba(214, 77, 95, 0.12);
    border-color: rgba(214, 77, 95, 0.18);
    color: #9f293c;
}

.empty-state,
.empty-state-card,
.detail-note,
.customer-inline-card {
    padding: 16px 18px;
    border-radius: 20px;
    background: rgba(23, 58, 122, 0.05);
    border: 1px dashed rgba(23, 58, 122, 0.12);
    color: var(--muted);
}

.auth-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.auth-panel {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    border-radius: 36px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(26px);
}

.auth-hero {
    padding: 48px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(216, 170, 65, 0.28), transparent 26%),
        linear-gradient(160deg, rgba(16, 43, 90, 0.95), rgba(24, 58, 119, 0.88));
}

.auth-brand-row {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.auth-logo {
    width: 92px;
    height: 92px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 28px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.16);
}

.auth-hero h1 {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3.25rem);
    line-height: 1.12;
}

.auth-hero p {
    max-width: 600px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.auth-points {
    display: grid;
    gap: 16px;
    margin-top: 36px;
}

.auth-point {
    padding: 20px;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.08);
}

.auth-point strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.auth-point span {
    color: rgba(255, 255, 255, 0.74);
    line-height: 1.7;
}

.auth-card {
    padding: 44px;
    background: rgba(255, 255, 255, 0.82);
}

.auth-card h2 {
    margin: 6px 0 10px;
    font-size: 2rem;
    color: var(--brand-strong);
}

.listing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 20px;
    padding: 30px;
    margin-bottom: 22px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top right, rgba(216, 170, 65, 0.3), transparent 24%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(238, 244, 255, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.listing-title,
.report-title {
    margin: 0 0 10px;
    font-size: clamp(1.85rem, 2.8vw, 2.7rem);
    line-height: 1.18;
    color: var(--brand-strong);
    font-weight: 800;
}

.listing-subtitle,
.report-subtitle {
    margin: 0;
    color: var(--muted);
    line-height: 1.78;
    font-size: 1rem;
}

.listing-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.listing-summary div {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.listing-summary span {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
}

.listing-summary strong {
    display: block;
    margin-top: 10px;
    font-size: 1.6rem;
    color: var(--brand);
}

.listing-filter-panel {
    margin-bottom: 22px;
}

.listing-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.listing-search {
    grid-column: span 2;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.listing-pagination {
    margin-top: 24px;
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.listing-pagination-summary {
    color: var(--muted);
    font-weight: 700;
    font-size: 0.92rem;
}

.listing-pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-button,
.pagination-ellipsis {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.pagination-button {
    color: var(--brand);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(23, 58, 122, 0.12);
    text-decoration: none;
    transition: transform var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.pagination-button:hover {
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 24px rgba(23, 58, 122, 0.18);
    transform: translateY(-2px);
}

.pagination-button.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 14px 26px rgba(23, 58, 122, 0.22);
}

.pagination-button.is-disabled {
    color: rgba(23, 58, 122, 0.35);
    pointer-events: none;
    background: rgba(255, 255, 255, 0.38);
    box-shadow: none;
}

.pagination-ellipsis {
    color: var(--muted);
}

.listing-card {
    text-decoration: none;
    border-radius: 26px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    transition: transform var(--transition), box-shadow var(--transition);
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.branch-card {
    position: relative;
}

.branch-card-badges {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.branch-card-badges span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    background: rgba(23, 58, 122, 0.82);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(10px);
}

.branch-available-bar {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    border-radius: 16px;
    color: #fff;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, rgba(23, 58, 122, 0.92), rgba(47, 90, 173, 0.88));
    box-shadow: 0 12px 26px rgba(23, 58, 122, 0.2);
}

.branch-card-body .listing-price {
    margin-top: 14px;
    font-size: 1.18rem;
}

.branch-detail-page {
    display: grid;
    gap: 22px;
}

.branch-detail-hero,
.branch-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 22px;
}

.branch-detail-hero {
    align-items: stretch;
    padding: 28px;
    border-radius: 30px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-sm);
}

.branch-detail-hero h1 {
    margin: 0 0 10px;
    color: var(--ink);
    font-weight: 900;
}

.branch-detail-hero p {
    color: var(--muted);
    margin-bottom: 16px;
}

.branch-fee-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.branch-fee-grid div,
.selected-room-card,
.branch-gallery-panel,
.branch-room-panel {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
}

.branch-fee-grid div {
    padding: 14px;
}

.branch-fee-grid span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.branch-fee-grid strong {
    display: block;
    margin-top: 6px;
    color: var(--brand);
}

.branch-gallery-panel,
.branch-room-panel {
    padding: 18px;
}

.branch-gallery-stage {
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(23, 58, 122, 0.08), rgba(216, 170, 65, 0.14));
}

.branch-gallery-stage img,
.branch-gallery-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.branch-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.branch-gallery-thumb {
    aspect-ratio: 1 / 0.72;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.branch-gallery-thumb.is-active {
    border-color: var(--brand);
}

.branch-gallery-thumb img,
.branch-gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-room-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.branch-room-option {
    min-height: 104px;
    padding: 14px;
    border: 1px solid rgba(23, 58, 122, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    text-align: left;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.branch-room-option:hover,
.branch-room-option.is-active {
    transform: translateY(-2px);
    border-color: rgba(23, 58, 122, 0.42);
    box-shadow: 0 14px 30px rgba(23, 58, 122, 0.12);
}

.branch-room-option strong,
.branch-room-option span,
.branch-room-option em {
    display: block;
}

.branch-room-option strong {
    font-size: 1.1rem;
    color: var(--brand);
}

.branch-room-option span {
    margin-top: 6px;
    font-weight: 800;
}

.branch-room-option em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.82rem;
    font-style: normal;
}

.selected-room-card {
    padding: 18px;
}

.selected-room-card h2 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 900;
}

.selected-room-price {
    margin-top: 8px;
    color: #ec7300;
    font-size: 1.35rem;
    font-weight: 900;
}

.branch-detail-modern {
    max-width: 1280px;
    margin: 0 auto;
    color: #17223b;
}

.branch-detail-topline,
.branch-detail-heading,
.branch-room-strip-card,
.branch-info-card,
.branch-side-panel {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(23, 58, 122, 0.08);
    box-shadow: 0 18px 45px rgba(15, 25, 61, 0.08);
}

.branch-detail-topline {
    padding: 14px 18px;
}

.branch-breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    color: #315aa8;
    font-weight: 700;
}

.branch-detail-heading {
    padding: 24px;
}

.branch-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.branch-title-row h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 900;
    color: #111b3d;
}

.branch-address-line {
    margin: 10px 0 0;
    color: #4d5d7a;
    font-weight: 600;
}

.branch-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 0.82rem;
}

.branch-badge.verified {
    color: #13804f;
    background: #dff7e9;
}

.branch-badge.hot {
    color: #fff;
    background: linear-gradient(135deg, #ff453a, #dc2626);
}

.branch-badge.warning {
    color: #fff;
    background: linear-gradient(135deg, #ffb020, #f59e0b);
}

.branch-detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
    align-items: start;
}

.branch-detail-main {
    min-width: 0;
    display: grid;
    gap: 22px;
}

.branch-gallery-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #eef3fb;
    box-shadow: 0 18px 45px rgba(15, 25, 61, 0.08);
}

.branch-gallery-stage.modern {
    aspect-ratio: 16 / 9;
    border-radius: 20px;
}

.branch-gallery-stage.modern img,
.branch-gallery-stage.modern video {
    cursor: zoom-in;
}

.branch-gallery-arrow,
.branch-public-arrow {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #173a7a;
    font-size: 2rem;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 12px 28px rgba(15, 25, 61, 0.16);
    transform: translateY(-50%);
    z-index: 2;
}

.branch-gallery-arrow.prev,
.branch-public-arrow.prev {
    left: 18px;
}

.branch-gallery-arrow.next,
.branch-public-arrow.next {
    right: 18px;
}

.branch-gallery-counter,
.branch-public-counter {
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 8px 12px;
    border-radius: 12px;
    color: #fff;
    background: rgba(18, 28, 54, 0.68);
    font-weight: 900;
}

.branch-gallery-thumbs.modern {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.branch-gallery-thumbs.modern .branch-gallery-thumb {
    border-radius: 14px;
    border-width: 2px;
}

.branch-room-strip-card,
.branch-info-card,
.branch-side-panel {
    padding: 22px;
}

.branch-section-head,
.public-room-list-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.branch-section-head h2,
.branch-info-card h2 {
    margin: 0;
    color: #10245a;
    font-size: 1.08rem;
    font-weight: 900;
}

.branch-section-head h2 span,
.branch-info-card h2 span {
    color: #66748f;
    font-weight: 700;
}

.status-legend {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    color: #53627d;
    font-size: 0.86rem;
    font-weight: 700;
}

.dot {
    width: 9px;
    height: 9px;
    display: inline-block;
    margin-right: 7px;
    border-radius: 50%;
}

.dot.green { background: #18a058; }
.dot.yellow { background: #f5b51b; }
.dot.red { background: #ef3d32; }

.branch-room-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.branch-room-card,
.public-room-card {
    min-height: 112px;
    padding: 16px;
    border: 1px solid rgba(23, 58, 122, 0.1);
    border-radius: 14px;
    background: #fff;
    text-align: left;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.branch-room-card.is-active,
.public-room-card.is-active {
    border-color: #0b63f6;
    box-shadow: 0 14px 34px rgba(11, 99, 246, 0.14);
}

.branch-room-card strong,
.public-room-card strong {
    display: block;
    color: #10245a;
    font-size: 1.15rem;
}

.branch-room-card em,
.public-room-card em {
    display: block;
    margin-top: 10px;
    color: #26344f;
    font-style: normal;
    font-weight: 800;
}

.room-status,
.public-status {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.room-status.green,
.public-status.green { color: #15804f; background: #dff7e9; }
.room-status.yellow,
.public-status.yellow { color: #a86600; background: #fff1c7; }
.room-status.red,
.public-status.red { color: #d12b20; background: #ffe1df; }

.branch-info-grid,
.selected-room-spec-grid,
.public-info-grid,
.public-selected-specs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.branch-info-grid div,
.selected-room-spec-grid div,
.public-info-grid div,
.public-selected-specs div,
.branch-fee-row div,
.public-fee-row div {
    padding: 14px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid rgba(23, 58, 122, 0.08);
}

.branch-info-grid .wide,
.public-info-grid .wide {
    grid-column: span 2;
}

.branch-info-grid span,
.selected-room-spec-grid span,
.public-info-grid span,
.public-selected-specs span,
.branch-fee-row span,
.public-fee-row span {
    display: block;
    color: #67758f;
    font-size: 0.84rem;
    font-weight: 700;
}

.branch-info-grid strong,
.selected-room-spec-grid strong,
.public-info-grid strong,
.public-selected-specs strong,
.branch-fee-row strong,
.public-fee-row strong {
    display: block;
    margin-top: 6px;
    color: #17223b;
}

.selected-room-description,
.public-selected-note {
    margin: 16px 0 0;
    color: #465672;
    line-height: 1.75;
}

.branch-fee-row,
.public-fee-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.branch-fee-note,
.public-fee-note,
.side-verified-note {
    margin-top: 14px;
    padding: 12px;
    border-radius: 12px;
    color: #1753aa;
    background: #eef5ff;
    text-align: center;
    font-weight: 700;
}

.branch-side-panel {
    position: sticky;
    top: 22px;
}

.side-label {
    color: #566785;
    font-weight: 800;
}

.branch-side-panel h2 {
    margin: 8px 0;
    font-size: 1.4rem;
}

.side-price {
    color: #f04b23;
    font-size: 1.45rem;
    font-weight: 900;
}

.listing-card-media {
    position: relative;
    aspect-ratio: 1 / 0.78;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(23, 58, 122, 0.08), rgba(216, 170, 65, 0.14));
}

.listing-card-media img,
.listing-card-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 480ms cubic-bezier(.22, 1, .36, 1);
}

.listing-card:hover .listing-card-media img,
.listing-card:hover .listing-card-media video {
    transform: scale(1.05);
}

.listing-card-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    font-weight: 700;
    color: var(--brand);
}

.listing-hot-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 9px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

.listing-hot-badge.is-hot {
    background: linear-gradient(135deg, #ff4a5d, #da2338);
}

.listing-hot-badge.is-status {
    background: linear-gradient(135deg, rgba(23, 58, 122, 0.92), rgba(56, 101, 181, 0.92));
}

.listing-card-body {
    padding: 20px;
}

.listing-card-body h3 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.45;
    font-weight: 800;
    color: var(--ink);
}

.listing-price,
.room-summary-price,
.detail-price {
    color: #ec7300;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.listing-price {
    margin-bottom: 12px;
    font-size: 1.42rem;
}

.listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.listing-tags span {
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(23, 58, 122, 0.06);
    color: var(--brand-strong);
}

.listing-address,
.listing-meta {
    color: var(--muted);
    line-height: 1.65;
}

.listing-address {
    margin-bottom: 8px;
}

.compact-card .listing-card-media {
    aspect-ratio: 1 / 0.7;
}

.room-detail-page {
    display: grid;
    gap: 22px;
}

.breadcrumb-line {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: var(--muted);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-line a {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.room-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(330px, 0.9fr);
    gap: 22px;
    align-items: start;
}

.room-gallery-main {
    min-width: 0;
}

.room-gallery-shell,
.room-summary-card,
.detail-card,
.panel-card,
.report-filter-card,
.report-chart-card {
    overflow: hidden;
}

.room-gallery-shell {
    padding: 18px;
    border-radius: var(--radius-lg);
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.room-hero-media {
    position: relative;
    margin-bottom: 16px;
}

.room-hero-stage {
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(23, 58, 122, 0.08), rgba(216, 170, 65, 0.18));
}

.room-hero-stage img,
.room-hero-stage video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.75rem;
    background: rgba(16, 43, 90, 0.68);
    backdrop-filter: blur(10px);
    transition: transform var(--transition), background var(--transition);
}

.room-gallery-nav:hover {
    transform: translateY(-50%) scale(1.06);
    background: rgba(16, 43, 90, 0.92);
}

.room-gallery-nav.prev {
    left: 16px;
}

.room-gallery-nav.next {
    right: 16px;
}

.room-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    gap: 12px;
}

.room-gallery-thumb {
    position: relative;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    aspect-ratio: 1 / 0.78;
    box-shadow: 0 10px 22px rgba(17, 42, 90, 0.08);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.room-gallery-thumb:hover,
.room-gallery-thumb.is-active {
    transform: translateY(-4px);
    border-color: rgba(216, 170, 65, 0.72);
    box-shadow: 0 16px 28px rgba(17, 42, 90, 0.12);
}

.room-gallery-thumb img,
.room-gallery-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-lightbox-trigger {
    cursor: zoom-in;
}

.room-gallery-video-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(16, 43, 90, 0.74);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.room-no-media {
    min-height: 240px;
    display: grid;
    place-items: center;
    padding: 30px;
    border-radius: 24px;
    background: rgba(23, 58, 122, 0.06);
    color: var(--muted);
    text-align: center;
}

.media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 32px;
    background: rgba(9, 18, 42, 0.88);
    backdrop-filter: blur(14px);
}

.media-lightbox[hidden] {
    display: none;
}

.media-lightbox-dialog {
    position: relative;
    max-width: min(92vw, 1180px);
    max-height: 88vh;
    display: grid;
    gap: 14px;
    justify-items: center;
}

.media-lightbox-image {
    max-width: 100%;
    max-height: calc(88vh - 72px);
    border-radius: 24px;
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.32);
}

.media-lightbox-close,
.media-lightbox-nav {
    border: none;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    transition: transform var(--transition), background var(--transition);
}

.media-lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 2rem;
    line-height: 1;
}

.media-lightbox-nav {
    font-size: 1.9rem;
}

.media-lightbox-close:hover,
.media-lightbox-nav:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.24);
}

.media-lightbox-download {
    box-shadow: 0 18px 35px rgba(216, 170, 65, 0.24);
}

.media-lightbox-download-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-size: 1.6rem;
    background: rgba(16, 43, 90, 0.72);
    backdrop-filter: blur(10px);
    box-shadow: 0 18px 38px rgba(9, 18, 42, 0.28);
    transition: transform var(--transition), background var(--transition);
    z-index: 2;
}

.media-lightbox-download-icon:hover,
.media-lightbox-download-icon:focus {
    color: #fff;
    transform: scale(1.05);
    background: rgba(16, 43, 90, 0.92);
}

body.lightbox-open {
    overflow: hidden;
}

.room-summary-card {
    position: sticky;
    top: 20px;
}

.room-summary-card h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 2.4vw, 2.8rem);
    line-height: 1.18;
    color: var(--brand-strong);
}

.room-summary-address {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.room-summary-price {
    margin-top: 14px;
    font-size: clamp(2rem, 3vw, 2.7rem);
}

.room-cta-stack {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.detail-list,
.detail-spec-grid {
    display: grid;
    gap: 14px;
}

.detail-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-spec-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-list > div,
.detail-spec-grid > div {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 58, 122, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-list span,
.detail-spec-grid span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}

.detail-list strong,
.detail-spec-grid strong {
    color: var(--brand-strong);
    line-height: 1.55;
}

.map-placeholder {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 180px;
    padding: 24px;
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(233, 241, 255, 0.72)),
        repeating-linear-gradient(45deg, rgba(23, 58, 122, 0.04) 0 12px, transparent 12px 24px);
    border: 1px solid rgba(23, 58, 122, 0.08);
}

.map-pin {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 22px;
    font-size: 1.6rem;
    background: linear-gradient(135deg, rgba(216, 170, 65, 0.9), rgba(255, 225, 150, 0.92));
    box-shadow: 0 16px 30px rgba(216, 170, 65, 0.24);
}

.related-section {
    display: grid;
    gap: 16px;
}

.media-grid,
.modal-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.media-card,
.modal-media-card {
    padding: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 58, 122, 0.08);
}

.accordion-stack {
    display: grid;
    gap: 16px;
}

.accordion-item-custom {
    padding: 20px;
    border-radius: 24px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow-sm);
}

.accordion-summary {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.accordion-toggle {
    list-style: none;
    cursor: pointer;
}

.accordion-toggle::-webkit-details-marker {
    display: none;
}

.accordion-summary h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--brand-strong);
    font-weight: 800;
}

.accordion-side {
    display: flex;
    align-items: center;
    gap: 14px;
}

.accordion-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.accordion-meta div {
    min-width: 110px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(23, 58, 122, 0.05);
    text-align: center;
}

.accordion-meta span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
}

.accordion-meta strong {
    color: var(--brand-strong);
}

.accordion-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.accordion-body-custom {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed rgba(23, 58, 122, 0.12);
}

.accordion-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: rotate(45deg);
    transition: transform var(--transition);
    margin-top: 6px;
}

details[open] > .accordion-summary .accordion-chevron {
    transform: rotate(225deg);
}

.room-form-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1200;
}

.room-form-modal.is-open {
    display: flex;
}

.room-form-backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(7, 18, 38, 0.46);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.room-form-dialog {
    position: relative;
    width: min(980px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    overflow: hidden;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 36px 90px rgba(12, 31, 67, 0.26);
    backdrop-filter: blur(20px);
    z-index: 1;
}

.room-form-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 24px 18px;
    border-bottom: 1px solid rgba(21, 43, 79, 0.08);
}

.room-form-content {
    max-height: calc(100vh - 150px);
    overflow: auto;
    padding: 24px;
}

body.room-form-modal-open {
    overflow: hidden;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.room-filter-section {
    margin-top: 20px;
    display: block;
    width: 100%;
}

.room-filter-card {
    padding: 28px;
    width: 100%;
    max-width: none;
}

.room-filter-form {
    width: 100%;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px !important;
    align-items: end;
}

.room-filter-stack {
    display: contents;
}

.room-filter-form > .room-filter-stack > div {
    min-width: 0;
}

.room-filter-card .form-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.room-filter-card .form-control,
.room-filter-card .form-select {
    min-height: 48px;
    border-radius: 14px;
}

.room-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 0;
}

.room-filter-form > .room-filter-stack:nth-of-type(3) > div:last-child {
    grid-column: span 1;
}

.room-filter-form input[name="price_min"]::placeholder,
.room-filter-form input[name="price_max"]::placeholder,
.room-filter-form input[name="keyword"]::placeholder {
    color: var(--muted);
}

.report-hero,
.report-filter-card,
.report-chart-card {
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(18px);
}

.report-hero,
.report-filter-card,
.report-chart-card {
    padding: 24px;
}

.report-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
}

.report-hero-copy {
    max-width: 780px;
}

.report-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.report-filter-note {
    color: var(--muted);
    line-height: 1.7;
}

.report-chart-grid {
    align-items: stretch;
}

.report-chart-frame {
    position: relative;
    width: 100%;
    min-height: 320px;
    max-width: 100%;
}

.report-chart-frame canvas {
    width: 100% !important;
    max-width: 100%;
    height: 320px !important;
    max-height: 320px;
}

.report-chart-frame-lg canvas {
    height: 360px !important;
    max-height: 360px;
}

.report-chart-frame-md canvas {
    height: 280px !important;
    max-height: 280px;
}

.report-secondary-stats,
.room-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.customer-action-stack,
.action-stack {
    align-items: start;
}

.customer-table {
    min-width: 1120px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.customer-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 12px 14px;
    background: rgba(245, 248, 255, 0.94);
    border-bottom: 1px solid rgba(21, 43, 79, 0.08);
    backdrop-filter: blur(16px);
}

.customer-table tbody tr {
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 10px 28px rgba(16, 43, 90, 0.06);
}

.customer-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 36px rgba(16, 43, 90, 0.1);
}

.customer-table > :not(caption) > * > * {
    padding: 16px 14px;
    border-top: 1px solid rgba(21, 43, 79, 0.08);
    border-bottom: 1px solid rgba(21, 43, 79, 0.08);
    vertical-align: top;
}

.customer-table tbody td:first-child {
    border-left: 1px solid rgba(21, 43, 79, 0.08);
    border-radius: 16px 0 0 16px;
}

.customer-table tbody td:last-child {
    border-right: 1px solid rgba(21, 43, 79, 0.08);
    border-radius: 0 16px 16px 0;
}

.customer-table td[data-label="Khách hàng"] .fw-semibold {
    font-size: 0.98rem;
    color: var(--brand-strong);
}

.customer-table td[data-label="Lịch hẹn"] > div {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 7px 11px;
    border-radius: 12px;
    background: rgba(216, 170, 65, 0.12);
    color: #7b5710;
    font-weight: 700;
}

.customer-table td[data-label="Ghi chú / phòng"] > div:first-child {
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(23, 58, 122, 0.04);
    color: var(--ink-soft);
    line-height: 1.55;
}

.customer-table td[data-label="Ghi chú / phòng"] .text-muted {
    display: inline-flex;
    margin-top: 8px !important;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(34, 139, 90, 0.1);
    color: var(--success) !important;
    font-weight: 700;
}

.customer-action-stack {
    min-width: 190px;
    justify-items: end;
}

.customer-actions-menu {
    width: min(100%, 260px);
    margin-left: auto;
    position: relative;
}

.customer-actions-menu > summary {
    display: inline-flex;
    min-height: 40px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(23, 58, 122, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--brand);
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 10px 24px rgba(16, 43, 90, 0.07);
    transition: background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

.customer-actions-menu > summary::-webkit-details-marker {
    display: none;
}

.customer-actions-menu > summary::before {
    content: "...";
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(23, 58, 122, 0.1);
    color: var(--brand);
    line-height: 1;
}

.customer-actions-menu > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--transition);
}

.customer-actions-menu[open] > summary {
    border-color: rgba(23, 58, 122, 0.28);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 14px 30px rgba(16, 43, 90, 0.16);
}

.customer-actions-menu[open] > summary::before {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.customer-actions-menu[open] > summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}

.customer-actions-popover {
    display: grid;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid rgba(21, 43, 79, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 40px rgba(16, 43, 90, 0.12);
    text-align: left;
}

.customer-action-stack .btn,
.customer-action-stack .form-select,
.customer-action-stack .form-control {
    border-radius: 12px;
}

.customer-action-stack .btn {
    min-height: 36px;
    font-weight: 800;
}

.customer-inline-card {
    width: 100%;
    max-width: 260px;
    padding: 0;
    overflow: hidden;
    border-style: solid;
    background: rgba(255, 255, 255, 0.78);
}

.customer-inline-card summary {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 14px;
    color: var(--brand);
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
    transition: background var(--transition), color var(--transition);
}

.customer-inline-card summary::-webkit-details-marker {
    display: none;
}

.customer-inline-card summary::before {
    content: "+";
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(23, 58, 122, 0.1);
    font-weight: 900;
}

.customer-inline-card[open] summary {
    border-bottom: 1px solid rgba(21, 43, 79, 0.08);
    border-radius: 14px 14px 0 0;
    background: rgba(23, 58, 122, 0.06);
}

.customer-inline-card[open] summary::before {
    content: "-";
}

.customer-inline-card form {
    padding: 12px;
}

.customer-action-panel {
    max-width: none;
    border-radius: 14px;
}

.customer-action-panel form {
    margin-top: 0 !important;
}

.customer-action-status {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(23, 58, 122, 0.05);
}

.customer-action-hint {
    display: block;
    padding: 0 12px 12px;
    line-height: 1.5;
}

.customer-actions-popover > form {
    width: 100%;
}

.customer-actions-popover > form .btn-outline-danger {
    width: 100%;
    border-color: rgba(214, 77, 95, 0.28);
    background: rgba(214, 77, 95, 0.06);
}

.customer-mobile-controls,
.customer-mobile-list,
.customer-mobile-add-sheet {
    display: none;
}

body.sidebar-collapsed .app-shell {
    grid-template-columns: 0 minmax(0, 1fr);
}

body.sidebar-collapsed .sidebar {
    transform: translateX(calc(-100% - 36px));
    opacity: 0;
    pointer-events: none;
}

body.app-loading .main-content {
    opacity: 0.72;
}

.modal-content.room-modal {
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
}

.error-card {
    max-width: 620px;
    margin: 48px auto;
    padding: 34px;
}

@media (max-width: 1199.98px) {
    .listing-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .content-grid,
    .room-detail-top,
    .branch-detail-hero,
    .branch-detail-layout,
    .branch-detail-main-grid,
    .listing-hero,
    .auth-panel {
        grid-template-columns: 1fr;
    }

    .room-summary-card {
        position: static;
    }
}

@media (max-width: 991.98px) {
    .room-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .room-filter-form > .room-filter-stack:nth-of-type(3) > div:last-child {
        grid-column: span 1;
    }

    .room-form-modal {
        padding: 16px;
    }

    .room-form-dialog {
        width: min(100%, calc(100vw - 16px));
        max-height: calc(100vh - 16px);
    }

    .room-form-header,
    .room-form-content {
        padding: 18px;
    }

    .app-shell {
        grid-template-columns: 1fr;
        padding: 14px;
        gap: 16px;
    }

    .sidebar-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
    }

    .sidebar-desktop-toggle {
        display: none;
    }

    .sidebar-edge-toggle {
        display: none;
    }

    .sidebar {
        position: fixed;
        top: 14px;
        left: 14px;
        bottom: 14px;
        width: min(320px, calc(100vw - 28px));
        height: auto;
        transform: translateX(calc(-100% - 18px));
        transition: transform var(--transition);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .app-overlay {
        opacity: 1;
        visibility: visible;
    }

    .topbar {
        padding: 18px;
    }

    .topbar-actions {
        width: 100%;
        justify-content: space-between;
    }

    .listing-filters,
    .detail-spec-grid,
    .detail-list,
    .grid-2,
    .branch-fee-grid,
    .branch-room-picker,
    .report-secondary-stats,
    .room-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .admin-mobile-list-panel {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .admin-mobile-list-panel::before {
        display: none;
    }

    .admin-mobile-list-panel > .panel-header {
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 14px;
        padding: 0 2px;
    }

    .admin-mobile-list-panel > .panel-header h3 {
        font-size: 1.08rem;
    }

    .admin-mobile-list-panel > .panel-header .panel-subtitle {
        display: none;
    }

    .admin-mobile-list-panel > .table-responsive {
        display: block;
        overflow: visible;
        border-radius: 0;
    }

    .mobile-card-table,
    .mobile-card-table thead,
    .mobile-card-table tbody,
    .mobile-card-table tr,
    .mobile-card-table th,
    .mobile-card-table td {
        display: block;
        width: 100%;
    }

    .mobile-card-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .mobile-card-table thead {
        display: none;
    }

    .mobile-card-table tbody {
        display: grid;
        gap: 14px;
    }

    .mobile-card-table tbody tr {
        display: grid;
        gap: 10px;
        padding: 16px;
        border: 1px solid rgba(21, 43, 79, 0.08);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 14px 34px rgba(16, 43, 90, 0.08);
    }

    .mobile-card-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.98);
    }

    .mobile-card-table td {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
        align-items: start;
        padding: 0;
        border: 0;
        color: var(--ink);
        text-align: left !important;
        line-height: 1.5;
    }

    .mobile-card-table td::before {
        color: var(--muted);
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .mobile-card-table td:first-child:has(.form-check-input) {
        display: flex;
        justify-content: flex-end;
    }

    .mobile-card-table td:first-child:has(.form-check-input)::before {
        content: "";
        display: none;
    }

    .mobile-card-table td:last-child {
        grid-template-columns: 1fr;
        padding-top: 4px;
    }

    .mobile-card-table td[colspan] {
        display: block;
    }

    .mobile-card-table td:last-child::before {
        display: none;
    }

    .mobile-card-table td[colspan]::before {
        display: none;
    }

    .mobile-card-table td:last-child .d-inline-flex,
    .mobile-card-table td:last-child .d-flex {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px !important;
        width: 100%;
        justify-content: stretch !important;
    }

    .mobile-card-table td:last-child .btn,
    .mobile-card-table td:last-child form,
    .mobile-card-table td:last-child button {
        width: 100%;
    }

    .mobile-card-table .status-pill,
    .mobile-card-table .detail-tag,
    .mobile-card-table .badge {
        justify-self: start;
    }

    .rooms-mobile-table td:nth-child(2)::before { content: "Phòng"; }
    .rooms-mobile-table td:nth-child(3)::before { content: "Chi nhánh"; }
    .rooms-mobile-table td:nth-child(4)::before { content: "Quận"; }
    .rooms-mobile-table td:nth-child(5)::before { content: "Giá"; }
    .rooms-mobile-table td:nth-child(6)::before { content: "Loại"; }
    .rooms-mobile-table td:nth-child(7)::before { content: "Trạng thái"; }
    .rooms-mobile-table td:nth-child(8)::before { content: "Nội thất"; }
    .rooms-mobile-table td:nth-child(9)::before { content: "Public"; }
    .rooms-mobile-table td:nth-child(10)::before { content: "Media"; }
    .rooms-mobile-table.no-bulk-select td:nth-child(1)::before { content: "Phòng"; }
    .rooms-mobile-table.no-bulk-select td:nth-child(2)::before { content: "Chi nhánh"; }
    .rooms-mobile-table.no-bulk-select td:nth-child(3)::before { content: "Quận"; }
    .rooms-mobile-table.no-bulk-select td:nth-child(4)::before { content: "Giá"; }
    .rooms-mobile-table.no-bulk-select td:nth-child(5)::before { content: "Loại"; }
    .rooms-mobile-table.no-bulk-select td:nth-child(6)::before { content: "Trạng thái"; }
    .rooms-mobile-table.no-bulk-select td:nth-child(7)::before { content: "Nội thất"; }
    .rooms-mobile-table.no-bulk-select td:nth-child(8)::before { content: "Public"; }
    .rooms-mobile-table.no-bulk-select td:nth-child(9)::before { content: "Media"; }

    .branches-mobile-table td:nth-child(2)::before { content: "Chi nhánh"; }
    .branches-mobile-table td:nth-child(3)::before { content: "Hệ thống"; }
    .branches-mobile-table td:nth-child(4)::before { content: "Phường"; }
    .branches-mobile-table td:nth-child(5)::before { content: "Quận"; }
    .branches-mobile-table td:nth-child(6)::before { content: "SĐT"; }
    .branches-mobile-table td:nth-child(7)::before { content: "Phí"; }
    .branches-mobile-table td:nth-child(8)::before { content: "Phòng"; }

    .wards-mobile-table td:nth-child(2)::before { content: "Phường"; }
    .wards-mobile-table td:nth-child(3)::before { content: "Ghi chú"; }
    .wards-mobile-table td:nth-child(4)::before { content: "Chi nhánh"; }

    .users-mobile-table td:nth-child(1)::before { content: "Họ tên"; }
    .users-mobile-table td:nth-child(2)::before { content: "Vai trò"; }
    .users-mobile-table td:nth-child(3)::before { content: "Tài khoản"; }
    .users-mobile-table td:nth-child(4)::before { content: "Liên hệ"; }
    .users-mobile-table td:nth-child(5)::before { content: "Đăng nhập"; }
    .users-mobile-table td:nth-child(6)::before { content: "Trạng thái"; }

    .logs-mobile-table td:nth-child(1)::before { content: "Thời gian"; }
    .logs-mobile-table td:nth-child(2)::before { content: "Người dùng"; }
    .logs-mobile-table td:nth-child(3)::before { content: "Vai trò"; }
    .logs-mobile-table td:nth-child(4)::before { content: "Module"; }
    .logs-mobile-table td:nth-child(5)::before { content: "Hành động"; }
    .logs-mobile-table td:nth-child(6)::before { content: "Mô tả"; }
    .logs-mobile-table td:nth-child(7)::before { content: "IP"; }
    .logs-mobile-table td:last-child {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        padding-top: 0;
    }
    .logs-mobile-table td:last-child::before {
        display: block;
    }

    .system-branches-mobile-table td:nth-child(1)::before { content: "Chi nhánh"; }
    .system-branches-mobile-table td:nth-child(2)::before { content: "Quận"; }
    .system-branches-mobile-table td:nth-child(3)::before { content: "SĐT"; }

    .rooms-mobile-list-panel [data-room-open-create] {
        position: fixed;
        right: 24px;
        bottom: 24px;
        z-index: 60;
        display: grid;
        width: 58px;
        height: 58px;
        place-items: center;
        overflow: hidden;
        border: 0;
        border-radius: 50%;
        color: transparent;
        background: linear-gradient(135deg, #1d3d7a, #2f63bf);
        box-shadow: 0 18px 34px rgba(29, 61, 122, 0.28);
    }

    .rooms-mobile-list-panel [data-room-open-create]::before {
        content: "+";
        color: #fff;
        font-size: 2rem;
        line-height: 1;
    }

    .accordion-stack {
        gap: 14px;
    }

    .accordion-item-custom,
    .accordion-summary {
        border-radius: 22px;
    }

    .accordion-summary {
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
    }

    .accordion-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .accordion-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .accordion-actions .btn,
    .accordion-actions form,
    .accordion-actions button {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .room-form-modal {
        align-items: stretch;
        padding: 10px;
    }

    .room-form-dialog {
        display: flex;
        width: 100%;
        max-height: calc(100dvh - 20px);
        flex-direction: column;
        overflow: hidden;
    }

    .room-filter-card {
        padding: 20px;
    }

    .room-filter-form {
        grid-template-columns: 1fr;
    }

    .room-filter-actions {
        justify-content: stretch;
    }

    .room-filter-actions .btn {
        width: 100%;
    }

    .room-form-header {
        flex: 0 0 auto;
        flex-direction: column;
        align-items: stretch;
    }

    .room-form-content {
        flex: 1 1 auto;
        min-height: 0;
        max-height: none;
        overflow-y: auto;
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .room-form-content [data-room-form] > .d-flex:last-child {
        position: static;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 10px !important;
        margin: 6px 0 0;
        padding: 0 0 calc(4px + env(safe-area-inset-bottom));
        background: transparent;
        border-top: 0;
        box-shadow: none;
    }

    .room-form-content [data-room-form] > .d-flex:last-child .btn {
        width: 100%;
        min-height: 48px;
        border-radius: 16px;
        font-weight: 900;
    }

    .auth-wrapper {
        padding: 16px;
    }

    .auth-hero,
    .auth-card,
    .hero-panel,
    .panel-card,
    .detail-card,
    .room-summary-card,
    .report-hero,
    .report-filter-card,
    .report-chart-card {
        padding: 20px;
    }

    .topbar,
    .listing-hero {
        padding: 18px;
    }

    .topbar-heading,
    .topbar-actions,
    .auth-brand-row,
    .report-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .topbar-heading {
        width: 100%;
    }

    .topbar-heading > div:last-child {
        width: 100%;
    }

    .topbar-user-card {
        width: 100%;
    }

    .topbar-actions form,
    .topbar-actions .btn,
    .customer-action-stack .btn,
    .customer-action-stack .form-select,
    .customer-action-stack .form-control {
        width: 100%;
    }

    .customer-table,
    .customer-table thead,
    .customer-table tbody,
    .customer-table tr,
    .customer-table th,
    .customer-table td {
        display: block;
        width: 100%;
    }

    .customer-table {
        min-width: 0;
        border-spacing: 0 14px;
    }

    .customer-table thead {
        display: none;
    }

    .customer-table tr {
        padding: 14px;
        border: 1px solid rgba(21, 43, 79, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 12px 28px rgba(16, 43, 90, 0.07);
    }

    .customer-table td {
        border: none;
        padding: 10px 0;
        text-align: left !important;
    }

    .customer-table tbody td:first-child,
    .customer-table tbody td:last-child {
        border: none;
        border-radius: 0;
    }

    .customer-table td[data-label="Ghi chú / phòng"] > div:first-child {
        max-width: none;
    }

    .customer-action-stack {
        min-width: 0;
        justify-items: stretch;
    }

    .customer-actions-menu {
        width: 100%;
    }

    .customer-inline-card {
        max-width: none;
    }

    body.app-body {
        background: #f5f7fb;
    }

    .app-shell {
        padding: 0;
        gap: 0;
    }

    .main-content {
        padding: 0 16px 104px;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 18;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
        margin: 0 -16px 16px;
        padding: 14px 16px;
        border-radius: 0 0 24px 24px;
        align-items: center;
        background: rgba(245, 247, 251, 0.92);
    }

    .topbar-heading {
        display: contents;
        width: auto;
    }

    .topbar-heading > div {
        grid-column: 2;
        flex: 1;
        min-width: 0;
        width: auto !important;
    }

    .topbar-badge,
    .page-subtitle {
        display: none;
    }

    .page-title {
        font-size: 1.12rem;
        line-height: 1.25;
        text-align: center;
    }

    .sidebar-toggle {
        grid-column: 1;
        width: 42px;
        height: 42px;
        justify-self: start;
        border-radius: 14px;
        padding: 12px 10px;
        background: transparent;
        box-shadow: none;
    }

    .topbar-actions {
        grid-column: 3;
        width: auto;
        flex: 0 0 auto;
        justify-self: end;
        gap: 8px;
    }

    .topbar-user-card {
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
        border-radius: 14px;
    }

    .topbar-user-card > div,
    .topbar-actions form {
        display: none;
    }

    .topbar-user-logo {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: calc(100vw - 56px);
        height: 100vh;
        padding: 22px 18px;
        border-radius: 0 24px 24px 0;
        transform: translateX(-104%);
        box-shadow: 28px 0 70px rgba(7, 18, 38, 0.24);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .app-overlay {
        opacity: 1;
        visibility: visible;
    }

    .sidebar-mobile-close {
        position: absolute;
        top: 14px;
        right: 14px;
        display: inline-flex;
        width: 36px;
        height: 36px;
        align-items: center;
        justify-content: center;
        border: 0;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
        font-size: 1.4rem;
        line-height: 1;
    }

    .customer-desktop-panels {
        display: none;
    }

    .customer-mobile-controls {
        display: grid;
        gap: 14px;
        margin-bottom: 18px;
    }

    .customer-mobile-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        gap: 10px;
        align-items: center;
    }

    .customer-mobile-search-field {
        display: flex;
        min-height: 52px;
        align-items: center;
        gap: 10px;
        padding: 0 16px;
        border: 1px solid rgba(21, 43, 79, 0.08);
        border-radius: 18px;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 10px 24px rgba(16, 43, 90, 0.06);
        color: var(--brand);
    }

    .customer-mobile-search-field input {
        width: 100%;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--ink);
        font-weight: 600;
    }

    .customer-mobile-filter-button {
        display: grid;
        width: 48px;
        height: 48px;
        place-items: center;
        border: 1px solid rgba(21, 43, 79, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.96);
        color: var(--brand);
        box-shadow: 0 10px 24px rgba(16, 43, 90, 0.06);
        cursor: pointer;
        list-style: none;
    }

    .customer-mobile-filter-button::-webkit-details-marker,
    .customer-mobile-fab::-webkit-details-marker,
    .customer-mobile-more::-webkit-details-marker {
        display: none;
    }

    .customer-mobile-chips {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding: 2px 0 6px;
        scrollbar-width: none;
    }

    .customer-mobile-chips::-webkit-scrollbar {
        display: none;
    }

    .customer-filter-chip {
        flex: 0 0 auto;
        min-height: 40px;
        padding: 10px 16px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(21, 43, 79, 0.08);
        color: var(--ink-soft);
        text-decoration: none;
        font-size: 0.85rem;
        font-weight: 800;
    }

    .customer-filter-chip.active {
        background: var(--brand);
        color: #fff;
        box-shadow: 0 12px 24px rgba(29, 61, 122, 0.22);
    }

    .customer-filter-chip.chip-new:not(.active) {
        background: rgba(245, 165, 36, 0.13);
        color: #9b6709;
    }

    .customer-filter-chip.chip-assigned:not(.active) {
        background: rgba(34, 139, 90, 0.12);
        color: var(--success);
    }

    .customer-filter-chip.chip-pending:not(.active) {
        background: rgba(245, 165, 36, 0.11);
        color: #7b5710;
    }

    .customer-list-panel {
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .customer-list-panel::before,
    .customer-list-panel > .panel-header,
    .customer-list-panel .table-responsive {
        display: none;
    }

    .customer-mobile-list {
        display: grid;
        gap: 14px;
    }

    .customer-mobile-card {
        position: relative;
        display: grid;
        gap: 14px;
        padding: 18px;
        border: 1px solid rgba(21, 43, 79, 0.08);
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 14px 34px rgba(16, 43, 90, 0.08);
    }

    .customer-mobile-card-head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
    }

    .customer-mobile-card h4 {
        margin: 0 0 6px;
        color: var(--brand-strong);
        font-size: 1rem;
        font-weight: 900;
    }

    .customer-mobile-card a {
        color: var(--ink-soft);
        text-decoration: none;
        font-weight: 600;
    }

    .customer-mobile-meta {
        display: grid;
        gap: 9px;
        color: var(--ink-soft);
        font-size: 0.9rem;
        font-weight: 600;
    }

    .customer-mobile-meta div {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .customer-mobile-meta span {
        color: var(--brand);
    }

    .customer-mobile-card-actions {
        position: absolute;
        right: 16px;
        bottom: 16px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .customer-mobile-call,
    .customer-mobile-more {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border: 1px solid rgba(21, 43, 79, 0.08);
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.95);
        color: var(--brand) !important;
        box-shadow: 0 10px 24px rgba(16, 43, 90, 0.08);
        cursor: pointer;
        list-style: none;
    }

    .customer-mobile-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(7, 18, 38, 0.34);
        backdrop-filter: blur(5px);
    }

    .customer-mobile-sheet-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 90;
        display: grid;
        gap: 12px;
        max-height: min(82vh, 720px);
        overflow-y: auto;
        padding: 18px;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 24px;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -20px 60px rgba(16, 43, 90, 0.18);
        animation: mobileSheetIn 180ms ease-out both;
    }

    .customer-mobile-sheet-panel::before {
        content: "";
        width: 44px;
        height: 4px;
        margin: 0 auto 2px;
        border-radius: 999px;
        background: rgba(21, 43, 79, 0.16);
    }

    .customer-mobile-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        color: var(--brand-strong);
        font-size: 1rem;
    }

    .customer-mobile-sheet-close {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 12px;
        background: rgba(23, 58, 122, 0.08);
        color: var(--brand);
        font-size: 1.25rem;
        line-height: 1;
    }

    .customer-mobile-sheet-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 4px;
    }

    .customer-sheet-action {
        display: flex;
        min-height: 46px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(21, 43, 79, 0.08);
        border-radius: 16px;
        background: rgba(23, 58, 122, 0.05);
        color: var(--brand);
        text-decoration: none;
        font-weight: 900;
    }

    .customer-sheet-action.danger {
        width: 100%;
        border-color: rgba(214, 77, 95, 0.22);
        background: rgba(214, 77, 95, 0.08);
        color: var(--danger);
    }

    .customer-mobile-add-sheet {
        display: block;
    }

    .customer-mobile-fab {
        position: fixed;
        right: 24px;
        bottom: 24px;
        z-index: 60;
        display: grid;
        width: 58px;
        height: 58px;
        place-items: center;
        border-radius: 50%;
        background: linear-gradient(135deg, #1d3d7a, #2f63bf);
        color: #fff;
        font-size: 2rem;
        font-weight: 600;
        box-shadow: 0 18px 34px rgba(29, 61, 122, 0.28);
        cursor: pointer;
        list-style: none;
    }

    .customer-mobile-add-panel {
        max-height: calc(100vh - 24px);
    }

    .customer-mobile-add-panel .form-control,
    .customer-mobile-add-panel .form-select,
    .customer-mobile-sheet-panel .form-control,
    .customer-mobile-sheet-panel .form-select {
        min-height: 46px;
        border-radius: 14px;
    }

    .customer-mobile-primary-button {
        min-height: 50px;
        border: 0;
        border-radius: 16px;
        background: linear-gradient(135deg, #1d3d7a, #2f63bf);
        font-weight: 900;
        box-shadow: 0 14px 28px rgba(29, 61, 122, 0.2);
    }

    @keyframes mobileSheetIn {
        from {
            opacity: 0;
            transform: translateY(18px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .customer-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: var(--muted);
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .listing-filters,
    .listing-grid,
    .detail-spec-grid,
    .detail-list,
    .grid-2,
    .stats-grid,
    .branch-fee-grid,
    .branch-room-picker,
    .branch-gallery-thumbs,
    .branch-info-grid,
    .selected-room-spec-grid,
    .branch-fee-row,
    .report-secondary-stats,
    .room-stats-grid,
    .room-gallery-grid {
        grid-template-columns: 1fr;
    }

    .branch-detail-heading,
    .branch-room-strip-card,
    .branch-info-card,
    .branch-side-panel {
        padding: 18px;
    }

    .branch-gallery-thumbs.modern {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .branch-side-panel {
        position: static;
    }

    .listing-search {
        grid-column: span 1;
    }

    .room-gallery-nav {
        width: 42px;
        height: 42px;
    }

    .media-lightbox {
        padding: 18px 14px;
        gap: 10px;
    }

    .media-lightbox-close {
        top: 12px;
        right: 12px;
    }

    .media-lightbox-close,
    .media-lightbox-nav {
        width: 44px;
        height: 44px;
    }

    .media-lightbox-dialog {
        width: 100%;
    }

    .media-lightbox-download-icon {
        top: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }

    .page-title {
        font-size: 1.6rem;
    }

.listing-title,
.report-title,
.room-summary-card h1,
.auth-hero h1 {
    font-size: 1.85rem;
}
}

@media (max-width: 575.98px) {
    .room-form-modal {
        padding: 10px;
    }

    .room-form-dialog {
        width: 100%;
        max-height: calc(100dvh - 12px);
        border-radius: 22px;
    }

    .room-form-header,
    .room-form-content {
        padding: 16px;
    }

    .room-form-content {
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }
}

/* Internal branch detail: stable gallery/tools layout and no text overflow. */
.branch-detail-modern {
    width: min(100% - 32px, 1280px);
    max-width: 1280px;
    margin-inline: auto;
}

.branch-detail-modern,
.branch-detail-modern * {
    box-sizing: border-box;
}

.branch-detail-modern .branch-detail-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
    gap: 24px;
    align-items: start;
}

.branch-detail-modern .branch-detail-main,
.branch-detail-modern .branch-gallery-card,
.branch-detail-modern .branch-gallery-stage,
.branch-detail-modern .branch-gallery-thumbs,
.branch-detail-modern .branch-room-strip-card,
.branch-detail-modern .branch-info-card,
.branch-detail-modern .branch-side-panel,
.branch-detail-modern .branch-room-card,
.branch-detail-modern .btn {
    min-width: 0;
}

.branch-detail-modern .branch-side-panel {
    position: static !important;
    top: auto !important;
    width: 100%;
    max-width: none;
    overflow: hidden;
    align-self: start;
    z-index: auto;
}

.branch-detail-modern .branch-side-panel h2,
.branch-detail-modern .side-price,
.branch-detail-modern .side-label,
.branch-detail-modern .side-verified-note,
.branch-detail-modern .branch-info-grid strong,
.branch-detail-modern .selected-room-spec-grid strong,
.branch-detail-modern .branch-fee-row strong,
.branch-detail-modern .selected-room-description {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.branch-detail-modern .btn {
    white-space: normal;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.branch-detail-modern .branch-room-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 16px;
    overflow-x: visible;
    padding-bottom: 0;
}

.branch-detail-modern .branch-room-card {
    width: 100%;
    min-height: 126px;
    min-width: 0;
    overflow: hidden;
    padding: 18px 20px;
    border-radius: 16px;
}

.branch-detail-modern .branch-room-card strong,
.branch-detail-modern .branch-room-card em,
.branch-detail-modern .room-status {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.branch-detail-modern .branch-room-card strong {
    line-height: 1.25;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.branch-detail-modern .branch-room-card em {
    white-space: normal;
    line-height: 1.3;
    font-size: clamp(0.86rem, 1vw, 0.98rem);
}

.branch-detail-modern .room-status {
    white-space: normal;
    line-height: 1.25;
}

.branch-detail-modern .branch-section-head {
    align-items: flex-start;
    flex-wrap: wrap;
}

.branch-detail-modern .status-legend {
    min-width: 0;
}

.branch-detail-modern .branch-gallery-stage.modern {
    width: 100%;
    overflow: hidden;
}

.branch-detail-modern .branch-gallery-thumbs.modern {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

@media (max-width: 900px) {
    .branch-detail-modern {
        width: min(100% - 28px, 1280px);
    }

    .branch-detail-modern .branch-detail-main-grid {
        grid-template-columns: 1fr;
    }

    .branch-detail-modern .branch-detail-main {
        display: contents;
    }

    .branch-detail-modern .branch-gallery-card {
        order: 1;
    }

    .branch-detail-modern .branch-gallery-thumbs {
        order: 2;
    }

    .branch-detail-modern .branch-side-panel {
        position: static !important;
        width: 100%;
        max-width: none;
        order: 3;
    }

    .branch-detail-modern .branch-room-strip-card {
        order: 4;
    }

    .branch-detail-modern .branch-info-card {
        order: 5;
    }

    .branch-detail-modern .branch-room-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .branch-detail-modern .branch-info-grid,
    .branch-detail-modern .selected-room-spec-grid,
    .branch-detail-modern .branch-fee-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .branch-detail-modern {
        width: min(100% - 20px, 1280px);
        gap: 16px;
    }

    .branch-detail-modern .branch-detail-heading,
    .branch-detail-modern .branch-room-strip-card,
    .branch-detail-modern .branch-info-card,
    .branch-detail-modern .branch-side-panel {
        padding: 14px;
        border-radius: 16px;
    }

    .branch-detail-modern .branch-room-strip,
    .branch-detail-modern .branch-info-grid,
    .branch-detail-modern .selected-room-spec-grid,
    .branch-detail-modern .branch-fee-row {
        grid-template-columns: 1fr;
    }

    .branch-detail-modern .branch-room-card {
        min-height: auto;
        padding: 14px;
    }

    .branch-detail-modern .branch-room-card strong {
        font-size: 1.05rem;
    }

    .branch-detail-modern .branch-room-card em {
        font-size: 0.95rem;
    }

    .branch-detail-modern .branch-gallery-stage.modern {
        aspect-ratio: 4 / 3;
    }

    .branch-detail-modern .branch-gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.65rem;
    }

    .branch-detail-modern .branch-gallery-arrow.prev {
        left: 10px;
    }

    .branch-detail-modern .branch-gallery-arrow.next {
        right: 10px;
    }

    .branch-detail-modern .branch-gallery-counter {
        right: 10px;
        bottom: 10px;
    }
}

.mobile-listing-brand,
.mobile-filter-icon,
.mobile-branch-list-head,
.mobile-branch-stats,
.mobile-bottom-nav,
.admin-mobile-controls,
.admin-mobile-add-sheet,
.admin-mobile-secondary-sheet,
.systems-mobile-card-list {
    display: none;
}

.mobile-bottom-nav {
    display: none !important;
}

.admin-mobile-sheet summary,
.admin-mobile-add-sheet summary,
.admin-mobile-secondary-sheet summary,
.admin-mobile-data-card summary {
    list-style: none;
}

.admin-mobile-sheet summary::-webkit-details-marker,
.admin-mobile-add-sheet summary::-webkit-details-marker,
.admin-mobile-secondary-sheet summary::-webkit-details-marker,
.admin-mobile-data-card summary::-webkit-details-marker {
    display: none;
}

@media (max-width: 767.98px) {
    body.app-body {
        background: #f5f7fb;
    }

    body.app-body .main-content {
        width: 100%;
        overflow-x: hidden;
        padding-bottom: 90px;
    }

    body.app-body .topbar {
        position: sticky;
        top: 0;
        z-index: 50;
        margin: -16px -16px 16px;
        padding: 14px 16px;
        border-radius: 0 0 24px 24px;
        background: rgba(255, 255, 255, 0.94);
        border: 0;
        border-bottom: 1px solid #e4eaf3;
        box-shadow: 0 12px 28px rgba(16, 43, 90, 0.08);
        backdrop-filter: blur(18px);
    }

    body.app-body .topbar-badge,
    body.app-body .page-subtitle,
    body.app-body .topbar-user-card > div,
    body.app-body .topbar-actions form {
        display: none;
    }

    body.app-body .page-title {
        margin: 0 !important;
        color: #17345e;
        font-size: 1.05rem;
        font-weight: 900;
        line-height: 1.2;
    }

    body.app-body .sidebar-toggle {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid #e4eaf3;
        box-shadow: 0 10px 24px rgba(16, 43, 90, 0.08);
    }

    body.app-body .sidebar-toggle span {
        background: #1d3d7a;
    }

    body.app-body .topbar-actions {
        display: flex;
    }

    body.app-body .topbar-user-card {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        display: grid;
        place-items: center;
        border-radius: 14px;
        background: #ffffff;
        border: 1px solid #e4eaf3;
        box-shadow: 0 10px 24px rgba(16, 43, 90, 0.08);
    }

    body.app-body .topbar-user-logo {
        width: 26px;
        height: 26px;
    }

    body.app-body .sidebar {
        top: 0;
        left: 0;
        bottom: 0;
        width: min(280px, 84vw);
        height: 100dvh;
        border-radius: 0 28px 28px 0;
        padding: 22px 16px;
        background: linear-gradient(180deg, #0f2f67 0%, #173a7a 52%, #102b5a 100%);
        box-shadow: 28px 0 80px rgba(7, 18, 38, 0.34);
        z-index: 80;
    }

    body.app-body .app-overlay {
        z-index: 70;
        background: rgba(7, 18, 38, 0.46);
    }

    body.app-body .brand-card {
        border-radius: 22px;
    }

    body.app-body .sidebar-link {
        min-height: 46px;
        border-radius: 14px;
    }

    .admin-desktop-panels,
    .room-filter-section {
        display: none !important;
    }

    .admin-mobile-controls {
        display: grid;
        gap: 12px;
        margin: 0 0 18px;
    }

    .admin-mobile-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        gap: 10px;
        align-items: center;
    }

    .admin-mobile-search-field {
        min-height: 48px;
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        align-items: center;
        gap: 8px;
        padding: 0 14px;
        border: 1px solid #e4eaf3;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(16, 43, 90, 0.07);
        color: #71809a;
    }

    .admin-mobile-search-field input {
        min-width: 0;
        width: 100%;
        height: 44px;
        border: 0;
        outline: 0;
        color: #17345e;
        background: transparent;
        font-weight: 700;
    }

    .admin-mobile-search-field input::placeholder {
        color: #8a97ad;
        font-weight: 600;
    }

    .admin-mobile-filter-button {
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border: 1px solid #e4eaf3;
        border-radius: 18px;
        background: #ffffff;
        color: #1d3d7a;
        box-shadow: 0 12px 28px rgba(16, 43, 90, 0.07);
        cursor: pointer;
        font-size: 1.15rem;
        font-weight: 900;
    }

    .admin-mobile-chips {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 2px 2px 6px;
        scrollbar-width: none;
    }

    .admin-mobile-chips::-webkit-scrollbar {
        display: none;
    }

    .admin-filter-chip {
        flex: 0 0 auto;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 8px 14px;
        border: 1px solid #e4eaf3;
        border-radius: 999px;
        background: #ffffff;
        color: #17345e;
        text-decoration: none;
        font-size: 0.84rem;
        font-weight: 800;
        box-shadow: 0 8px 18px rgba(16, 43, 90, 0.06);
    }

    .admin-filter-chip.active {
        border-color: transparent;
        background: linear-gradient(135deg, #1d3d7a, #2f5da8);
        color: #ffffff;
    }

    .admin-filter-chip.chip-success:not(.active) {
        color: #14784d;
        background: #e4f8ed;
        border-color: #c5ecd6;
    }

    .admin-filter-chip.chip-warning:not(.active) {
        color: #a56b05;
        background: #fff3d4;
        border-color: #ffe2a2;
    }

    .admin-filter-chip.chip-danger:not(.active) {
        color: #b73d4d;
        background: #ffecef;
        border-color: #ffd4dc;
    }

    .admin-mobile-sheet-backdrop {
        position: fixed;
        inset: 0;
        z-index: 160;
        display: none;
        background: rgba(7, 18, 38, 0.42);
        backdrop-filter: blur(5px);
    }

    .admin-mobile-sheet-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 170;
        display: none;
        max-height: min(82dvh, 720px);
        overflow-y: auto;
        padding: 18px;
        border-radius: 26px 26px 0 0;
        background: #ffffff;
        box-shadow: 0 -24px 60px rgba(7, 18, 38, 0.22);
        transform: translateY(20px);
        animation: adminSheetUp 180ms ease-out forwards;
    }

    .admin-mobile-form-panel {
        top: 12px;
        max-height: none;
        border-radius: 26px 26px 0 0;
        padding-bottom: calc(18px + env(safe-area-inset-bottom));
    }

    .admin-mobile-sheet[open] .admin-mobile-sheet-backdrop,
    .admin-mobile-sheet[open] .admin-mobile-sheet-panel,
    .admin-mobile-add-sheet[open] .admin-mobile-sheet-backdrop,
    .admin-mobile-add-sheet[open] .admin-mobile-sheet-panel,
    .admin-mobile-secondary-sheet[open] .admin-mobile-sheet-backdrop,
    .admin-mobile-secondary-sheet[open] .admin-mobile-sheet-panel {
        display: block;
    }

    .admin-mobile-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 16px;
        color: #17345e;
    }

    .admin-mobile-sheet-header::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 8px;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: #cbd5e4;
        transform: translateX(-50%);
    }

    .admin-mobile-sheet-close {
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 14px;
        background: #f5f7fb;
        color: #17345e;
        font-size: 1.35rem;
        line-height: 1;
    }

    .admin-mobile-sheet-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 18px;
    }

    .admin-mobile-sheet-actions .btn,
    .admin-mobile-primary-button {
        min-height: 46px;
        border-radius: 16px;
        font-weight: 900;
    }

    .admin-mobile-primary-button {
        width: 100%;
        background: linear-gradient(135deg, #1d3d7a, #2f5da8);
        border: 0;
        box-shadow: 0 14px 30px rgba(29, 61, 122, 0.24);
    }

    .admin-mobile-add-sheet,
    .admin-mobile-secondary-sheet {
        display: block;
    }

    .admin-mobile-fab {
        position: fixed;
        right: 20px;
        bottom: 22px;
        z-index: 120;
        display: grid;
        width: 58px;
        height: 58px;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: linear-gradient(135deg, #1d3d7a, #2f5da8);
        color: #ffffff;
        box-shadow: 0 18px 34px rgba(29, 61, 122, 0.28);
        cursor: pointer;
        font-size: 2rem;
        line-height: 1;
        font-weight: 500;
    }

    .admin-mobile-secondary-button {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        margin: -4px 0 16px;
        padding: 10px 16px;
        border: 1px solid #d9e3f2;
        border-radius: 16px;
        background: #ffffff;
        color: #1d3d7a;
        font-weight: 900;
        box-shadow: 0 10px 24px rgba(16, 43, 90, 0.07);
    }

    .admin-mobile-form-panel .form-control,
    .admin-mobile-form-panel .form-select,
    .admin-mobile-sheet-panel .form-control,
    .admin-mobile-sheet-panel .form-select {
        min-height: 46px;
        border-color: #e4eaf3;
        border-radius: 16px;
        color: #17345e;
        font-weight: 700;
    }

    .admin-mobile-form-panel textarea.form-control {
        min-height: 116px;
    }

    .admin-mobile-check-row {
        min-height: 44px;
        align-items: center;
        padding: 10px 12px;
        border: 1px solid #e4eaf3;
        border-radius: 16px;
        background: #f8fbff;
        color: #17345e;
        font-weight: 800;
    }

    .systems-mobile-card-list {
        display: grid;
        gap: 14px;
        margin-bottom: 14px;
    }

    .systems-mobile-list-panel .accordion-stack {
        display: none;
    }

    .admin-mobile-data-card {
        border: 1px solid #e4eaf3;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 14px 34px rgba(16, 43, 90, 0.08);
        overflow: hidden;
    }

    .admin-mobile-data-card > summary {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr) 24px;
        gap: 12px;
        align-items: start;
        padding: 16px;
        cursor: pointer;
    }

    .admin-card-main {
        min-width: 0;
        display: grid;
        gap: 10px;
    }

    .admin-card-title-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
    }

    .admin-card-title-row h4 {
        margin: 0;
        color: #17345e;
        font-size: 1rem;
        line-height: 1.35;
        font-weight: 900;
        overflow-wrap: anywhere;
    }

    .admin-card-title-row .status-pill {
        flex: 0 0 auto;
    }

    .admin-card-main p {
        margin: 0;
        color: #71809a;
        font-size: 0.86rem;
        line-height: 1.5;
    }

    .admin-card-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 86px));
        gap: 8px;
    }

    .admin-card-stats div {
        min-height: 54px;
        display: grid;
        place-items: center;
        padding: 8px;
        border-radius: 16px;
        background: #f2f5fa;
    }

    .admin-card-stats strong {
        color: #17345e;
        font-size: 1rem;
        line-height: 1;
        font-weight: 900;
    }

    .admin-card-stats span {
        color: #71809a;
        font-size: 0.72rem;
        font-weight: 800;
    }

    .admin-card-chevron {
        width: 20px;
        height: 20px;
        margin-top: 36px;
        border-right: 2px solid #1d3d7a;
        border-bottom: 2px solid #1d3d7a;
        transform: rotate(-45deg);
        transition: transform var(--transition);
    }

    .admin-mobile-data-card[open] .admin-card-chevron {
        transform: rotate(45deg);
    }

    .admin-card-expanded {
        padding: 0 16px 16px 50px;
        display: grid;
        gap: 12px;
    }

    .admin-card-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .admin-card-actions .btn,
    .admin-card-actions form,
    .admin-card-actions button {
        width: 100%;
        min-height: 40px;
        border-radius: 14px;
        font-weight: 900;
    }

    .admin-card-sublist {
        display: grid;
        gap: 8px;
    }

    .admin-card-sublist div {
        display: grid;
        gap: 2px;
        padding: 10px;
        border-radius: 14px;
        background: #f5f7fb;
        color: #17345e;
    }

    .admin-card-sublist span {
        color: #71809a;
        font-size: 0.8rem;
    }

    .systems-mobile-list-panel #systemsBulkDeleteForm {
        margin: 0 0 14px !important;
    }

    .systems-mobile-list-panel #systemsBulkDeleteForm .btn {
        min-height: 44px;
        border-radius: 16px;
        background: #fff7f8;
        color: #c93f50;
        border-color: #ffd4dc;
        font-weight: 900;
    }

    .mobile-card-table tbody tr {
        border-color: #e4eaf3;
        border-radius: 22px;
        background: #ffffff;
        box-shadow: 0 14px 34px rgba(16, 43, 90, 0.08);
    }

    .mobile-card-table td {
        grid-template-columns: 104px minmax(0, 1fr);
        color: #17345e;
    }

    .mobile-card-table td::before {
        color: #71809a;
    }

    .content-mobile-table td:nth-child(1)::before { content: "Bài đăng"; }
    .content-mobile-table td:nth-child(2)::before { content: "Loại"; }
    .content-mobile-table td:nth-child(3)::before { content: "Slug"; }
    .content-mobile-table td:nth-child(4)::before { content: "Trạng thái"; }
    .content-mobile-table td:nth-child(5)::before { content: "Xuất bản"; }
    .content-mobile-table td:nth-child(6)::before { content: "Người sửa"; }

    .mobile-card-table td:last-child .btn,
    .mobile-card-table td:last-child button {
        min-height: 42px;
        border-radius: 14px;
        font-weight: 900;
    }

    .room-stats-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 16px;
    }

    .room-stats-grid .stat-card {
        min-height: 86px;
        padding: 14px;
        border-radius: 18px;
    }
}

@keyframes adminSheetUp {
    to {
        transform: translateY(0);
    }
}

.listing-summary i {
    display: none;
}

@media (max-width: 768px) {
    html:has(.mobile-branch-app),
    body:has(.mobile-branch-app) {
        max-width: 100%;
        overflow-x: hidden;
    }

    body.app-body:has(.mobile-branch-app) {
        background:
            radial-gradient(circle at top right, rgba(240, 184, 58, 0.26), transparent 28%),
            radial-gradient(circle at 12% 6%, rgba(255, 255, 255, 0.16), transparent 24%),
            linear-gradient(180deg, #07327c 0%, #0b3f95 19%, #f4f8ff 43%, #ffffff 100%);
    }

    .app-shell:has(.mobile-branch-app) {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        min-height: 100vh;
        padding: 14px;
    }

    .main-content:has(.mobile-branch-app) {
        width: min(100%, 720px);
        margin: 0 auto;
        padding: 0 0 20px;
        overflow: visible;
    }

    .app-shell:has(.mobile-branch-app) .sidebar-edge-toggle {
        display: none !important;
    }

    .app-shell:has(.mobile-branch-app) .sidebar {
        display: flex;
        position: fixed;
        top: 14px;
        left: 14px;
        bottom: 14px;
        width: min(320px, calc(100vw - 28px));
        height: auto;
        max-height: none;
        margin: 0;
        border-radius: 28px;
        transform: translateX(calc(-100% - 18px));
        transition: transform var(--transition);
        z-index: 1200;
    }

    body.sidebar-open .app-shell:has(.mobile-branch-app) .sidebar {
        transform: translateX(0);
    }

    .mobile-branch-app,
    .mobile-branch-app * {
        box-sizing: border-box;
        min-width: 0;
    }

    .mobile-branch-app {
        position: relative;
        display: grid;
        gap: 14px;
        padding-bottom: 12px;
        color: #0b1f44;
    }

    .listing-hero {
        position: relative;
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        margin: 0 -12px 0;
        padding: 22px 18px 18px;
        border: 0;
        border-radius: 0 0 34px 34px;
        color: #fff;
        overflow: hidden;
        background:
            radial-gradient(circle at 84% 22%, rgba(240, 184, 58, 0.36), transparent 22%),
            radial-gradient(circle at 8% 0%, rgba(255, 255, 255, 0.16), transparent 25%),
            linear-gradient(145deg, #062968 0%, #0a3d91 54%, #0b2e6f 100%);
        box-shadow: 0 22px 48px rgba(4, 32, 82, 0.24);
        backdrop-filter: blur(18px);
    }

    .listing-hero::after {
        content: "";
        position: absolute;
        right: -42px;
        top: 64px;
        width: 190px;
        height: 70px;
        pointer-events: none;
        border-radius: 999px;
        background: linear-gradient(120deg, transparent, rgba(240, 184, 58, 0.72), rgba(255, 255, 255, 0.5), transparent);
        filter: blur(10px);
        transform: rotate(-31deg);
        opacity: 0.7;
    }

    .mobile-listing-brand {
        display: none;
    }

    .mobile-header-actions {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .mobile-header-actions form {
        margin: 0;
    }

    .mobile-brand-mark {
        width: 74px;
        height: 74px;
        display: grid;
        place-items: center;
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.22);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(14px);
    }

    .mobile-brand-mark img {
        width: 66px;
        height: 66px;
        object-fit: contain;
        filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
    }

    .mobile-header-icon {
        width: 46px;
        height: 46px;
        border: 1px solid rgba(255, 255, 255, 0.34);
        border-radius: 18px;
        color: #fff;
        background: rgba(255, 255, 255, 0.12);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
        font-size: 1.35rem;
        line-height: 1;
        backdrop-filter: blur(14px);
    }

    .mobile-header-icon.is-danger {
        font-size: 1.15rem;
    }

    .listing-hero > div:not(.listing-summary):not(.mobile-listing-brand) {
        position: relative;
        z-index: 1;
    }

    .listing-hero .eyebrow {
        display: inline-flex;
        width: fit-content;
        max-width: 100%;
        margin-bottom: 10px;
        padding: 7px 13px;
        border-radius: 999px;
        color: #f5c862;
        background: rgba(255, 255, 255, 0.12);
        border: 1px solid rgba(240, 184, 58, 0.34);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
        font-size: 0.72rem;
        font-weight: 900;
        letter-spacing: 0.12em;
    }

    .listing-title {
        margin: 0;
        color: #fff;
        font-size: clamp(2rem, 9vw, 2.65rem);
        line-height: 1;
        letter-spacing: 0;
        text-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    }

    .listing-subtitle {
        display: none;
    }

    .listing-summary {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .listing-summary div {
        min-height: 94px;
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 10px;
        align-items: center;
        padding: 12px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.76);
        border: 1px solid rgba(255, 255, 255, 0.78);
        box-shadow: 0 16px 34px rgba(4, 32, 82, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(18px);
    }

    .listing-summary i {
        grid-row: span 2;
        width: 42px;
        height: 42px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #0a3d91;
        background: rgba(255, 255, 255, 0.68);
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 10px 22px rgba(10, 45, 100, 0.12);
        font-style: normal;
        font-weight: 900;
    }

    .listing-summary div:nth-child(2) i,
    .listing-summary div:nth-child(4) i {
        color: #d88914;
    }

    .listing-summary span {
        color: #52637f;
        font-size: clamp(0.72rem, 2.8vw, 0.88rem);
        line-height: 1.25;
    }

    .listing-summary strong {
        margin-top: 2px;
        color: #0b2e6f;
        font-size: clamp(1.45rem, 7vw, 2rem);
        line-height: 1;
    }

    .listing-filter-panel {
        margin: 0;
        padding: 16px;
        border-radius: 26px;
        background: rgba(255, 255, 255, 0.76);
        border: 1px solid rgba(255, 255, 255, 0.78);
        box-shadow: 0 18px 40px rgba(10, 45, 100, 0.13);
        backdrop-filter: blur(18px);
    }

    .listing-filter-panel .panel-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 14px;
    }

    .listing-filter-panel h3 {
        margin: 0 0 4px;
        color: #0b2e6f;
        font-size: 1.22rem;
        font-weight: 900;
    }

    .listing-filter-panel .panel-subtitle {
        color: #64718a;
        font-size: 0.84rem;
        line-height: 1.45;
    }

    .mobile-filter-icon {
        flex: 0 0 auto;
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        color: #0a3d91;
        background: rgba(255, 255, 255, 0.6);
        border: 1px solid rgba(11, 46, 111, 0.1);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
        font-size: 1.3rem;
        font-weight: 900;
    }

    .listing-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .listing-filters .form-control,
    .listing-filters .form-select {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding: 11px 13px;
        border-radius: 16px;
        color: #0b1f44;
        background-color: rgba(255, 255, 255, 0.68);
        border: 1px solid rgba(159, 176, 205, 0.36);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 8px 20px rgba(10, 45, 100, 0.06);
        font-size: 0.88rem;
    }

    .listing-filters select[name="branch_id"],
    .listing-filters .listing-search {
        grid-column: 1 / -1;
    }

    .listing-filters .btn {
        min-height: 50px;
        padding: 10px 12px;
        border-radius: 18px;
        white-space: normal;
        line-height: 1.25;
        text-align: center;
        font-weight: 900;
    }

    .listing-filters .btn-outline-secondary {
        color: #0b2e6f;
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(10, 61, 145, 0.42);
    }

    .listing-filters .btn-primary {
        color: #fff;
        background: linear-gradient(135deg, #073b91, #0d4fb8);
        border: 1px solid rgba(240, 184, 58, 0.82);
        box-shadow: 0 16px 30px rgba(10, 61, 145, 0.22), inset -18px -10px 22px rgba(240, 184, 58, 0.18);
    }

    .mobile-branch-list-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 2px;
    }

    .mobile-branch-list-head h3 {
        margin: 0;
        color: #0b2e6f;
        font-size: 1.18rem;
        font-weight: 900;
    }

    .mobile-branch-list-head a {
        color: #0a3d91;
        font-size: 0.9rem;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
    }

    .branch-listing-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .branch-listing-grid .branch-card {
        display: grid;
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 12px;
        min-height: 108px;
        padding: 10px;
        border-radius: 22px;
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid rgba(255, 255, 255, 0.8);
        box-shadow: 0 14px 28px rgba(10, 45, 100, 0.1);
        backdrop-filter: blur(16px);
        overflow: hidden;
    }

    .branch-listing-grid .branch-card:hover {
        transform: none;
        box-shadow: 0 14px 28px rgba(10, 45, 100, 0.1);
    }

    .branch-listing-grid .listing-card-media {
        width: 96px;
        height: 88px;
        aspect-ratio: auto;
        border-radius: 16px;
        overflow: hidden;
    }

    .branch-listing-grid .listing-card-media img,
    .branch-listing-grid .listing-card-media video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .branch-listing-grid .listing-card-placeholder {
        font-size: 0.74rem;
        text-align: center;
    }

    .branch-listing-grid .branch-card-badges,
    .branch-listing-grid .branch-available-bar,
    .branch-listing-grid .listing-price,
    .branch-listing-grid .listing-tags {
        display: none;
    }

    .branch-listing-grid .branch-card-body {
        display: grid;
        align-content: center;
        gap: 4px;
        padding: 0;
        min-width: 0;
    }

    .branch-listing-grid .branch-card-body h3 {
        margin: 0;
        color: #0b2e6f;
        font-size: 0.98rem;
        line-height: 1.25;
        font-weight: 900;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .branch-listing-grid .listing-address,
    .branch-listing-grid .listing-meta {
        margin: 0;
        color: #65738c;
        font-size: 0.78rem;
        line-height: 1.35;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .branch-listing-grid .listing-meta::before {
        content: "✓ Phù hợp";
        display: inline-flex;
        width: fit-content;
        margin-right: 8px;
        padding: 2px 8px;
        border-radius: 999px;
        color: #16834f;
        background: #daf7e7;
        font-size: 0.74rem;
        font-weight: 900;
    }

    .mobile-branch-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-top: 4px;
        padding-top: 6px;
        border-top: 1px solid rgba(10, 61, 145, 0.08);
    }

    .mobile-branch-stats span {
        display: grid;
        gap: 1px;
        text-align: center;
    }

    .mobile-branch-stats b {
        color: #65738c;
        font-size: 0.68rem;
        font-weight: 700;
    }

    .mobile-branch-stats strong {
        color: #0b2e6f;
        font-size: 1.05rem;
        line-height: 1;
        font-weight: 900;
    }

    .mobile-branch-stats span:nth-child(2) strong {
        color: #16834f;
    }

    .mobile-branch-stats span:nth-child(3) strong {
        color: #f07a16;
    }

    .listing-pagination {
        margin-top: 14px;
        padding: 12px;
        border-radius: 20px;
    }

    .listing-pagination-summary {
        width: 100%;
        text-align: center;
        font-size: 0.78rem;
    }

    .listing-pagination-pages {
        width: 100%;
        justify-content: center;
    }

    .pagination-button,
    .pagination-ellipsis {
        min-width: 36px;
        height: 36px;
        padding: 0 11px;
        font-size: 0.82rem;
    }

    .mobile-bottom-nav {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: 10px;
        z-index: 2100;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        padding: 8px;
        border-radius: 28px;
        background: rgba(255, 255, 255, 0.84);
        border: 1px solid rgba(255, 255, 255, 0.84);
        box-shadow: 0 18px 46px rgba(10, 45, 100, 0.2);
        backdrop-filter: blur(20px);
    }

    .mobile-bottom-nav a {
        min-height: 56px;
        display: grid;
        place-items: center;
        gap: 3px;
        border-radius: 22px;
        color: #5f6e88;
        font-size: 0.72rem;
        font-weight: 800;
        text-decoration: none;
    }

    .mobile-bottom-nav a span {
        font-size: 1.18rem;
        line-height: 1;
    }

    .mobile-bottom-nav a.is-active {
        color: #0a3d91;
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 10px 24px rgba(10, 61, 145, 0.12);
    }
}

@media (max-width: 420px) {
    .main-content:has(.mobile-branch-app) {
        width: min(100% - 18px, 420px);
    }

    .listing-hero {
        margin-inline: -9px;
        padding: 18px 14px 16px;
        border-radius: 0 0 28px 28px;
    }

    .mobile-brand-mark {
        width: 64px;
        height: 64px;
        border-radius: 24px;
    }

    .mobile-brand-mark img {
        width: 58px;
        height: 58px;
    }

    .listing-summary {
        gap: 8px;
    }

    .listing-summary div {
        min-height: 88px;
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 8px;
        padding: 10px;
        border-radius: 19px;
    }

    .listing-summary i {
        width: 38px;
        height: 38px;
    }

    .listing-filter-panel {
        padding: 13px;
        border-radius: 22px;
    }

    .listing-filters {
        gap: 8px;
    }

    .listing-filters .form-control,
    .listing-filters .form-select {
        min-height: 46px;
        padding: 10px;
        border-radius: 14px;
        font-size: 0.82rem;
    }

    .listing-filters .btn {
        min-height: 48px;
        border-radius: 16px;
        font-size: 0.86rem;
    }

    .branch-listing-grid .branch-card {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 10px;
        padding: 9px;
        border-radius: 19px;
    }

    .branch-listing-grid .listing-card-media {
        width: 86px;
        height: 82px;
        border-radius: 14px;
    }

    .branch-listing-grid .branch-card-body h3 {
        font-size: 0.92rem;
    }

    .mobile-branch-stats b {
        font-size: 0.64rem;
    }

    .mobile-branch-stats strong {
        font-size: 0.98rem;
    }
}

@media (max-width: 991.98px) {
    body.app-body .topbar {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        align-items: center;
        gap: 8px;
    }

    body.app-body .topbar-heading {
        display: contents;
        width: auto;
    }

    body.app-body .topbar-heading > div {
        grid-column: 2;
        width: auto !important;
        min-width: 0;
    }

    body.app-body .sidebar-toggle {
        grid-column: 1;
        justify-self: start;
    }

    body.app-body .page-title {
        text-align: center;
    }

    body.app-body .topbar-actions {
        grid-column: 3;
        width: auto;
        justify-self: end;
        justify-content: end;
    }
}

.content-admin-page {
    display: grid;
    gap: 18px;
}

.content-admin-hero,
.content-toolbar,
.post-card,
.content-empty-state {
    border: 1px solid #e4eaf3;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(16, 43, 90, 0.08);
}

.content-admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
}

.content-admin-hero h2 {
    margin: 6px 0;
    color: #17345e;
    font-weight: 900;
}

.content-admin-hero p {
    margin: 0;
    color: #71809a;
}

.content-primary-action {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #1d3d7a, #2f5da8);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 16px 34px rgba(29, 61, 122, 0.22);
}

.content-toolbar {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.content-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.content-tabs a {
    flex: 0 0 auto;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f5f7fb;
    color: #17345e;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 900;
}

.content-tabs a.active {
    background: #1d3d7a;
    color: #ffffff;
}

.content-searchbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px 110px;
    gap: 10px;
}

.content-searchbar input,
.content-searchbar select,
.content-searchbar button,
.post-form-dialog input,
.post-form-dialog select,
.post-form-dialog textarea {
    min-height: 44px;
    border: 1px solid #e4eaf3;
    border-radius: 14px;
    padding: 10px 12px;
    color: #17345e;
    background: #ffffff;
    font-weight: 700;
}

.content-searchbar button {
    background: #f5f7fb;
    color: #1d3d7a;
    font-weight: 900;
}

.post-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.post-card {
    overflow: hidden;
}

.post-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #edf2f8;
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-thumb span,
.post-kind {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff4d8;
    color: #a46b07;
    font-size: 0.75rem;
    font-weight: 900;
}

.post-thumb span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 6px 10px;
}

.post-card-body {
    display: grid;
    gap: 10px;
    padding: 14px;
}

.post-card-topline,
.post-card-footer,
.post-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.post-kind {
    padding: 5px 9px;
}

.post-kind.is-job {
    background: #ede7ff;
    color: #6d43c9;
}

.post-card h3 {
    margin: 0;
    color: #17345e;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 900;
}

.post-card p,
.post-meta-row,
.post-views {
    color: #71809a;
    font-size: 0.82rem;
}

.post-actions-menu {
    position: relative;
}

.post-actions-menu summary {
    list-style: none;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #f5f7fb;
    color: #17345e;
    cursor: pointer;
    font-weight: 900;
}

.post-actions-menu summary::-webkit-details-marker {
    display: none;
}

.post-actions-menu > div {
    position: absolute;
    top: 40px;
    right: 0;
    z-index: 20;
    min-width: 170px;
    padding: 8px;
    border: 1px solid #e4eaf3;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(16, 43, 90, 0.16);
}

.post-actions-menu a,
.post-actions-menu button {
    width: 100%;
    display: block;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #17345e;
    text-align: left;
    text-decoration: none;
    font-weight: 800;
}

.post-actions-menu .danger {
    color: #c93f50;
}

.content-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    padding: 42px 20px;
    text-align: center;
    color: #71809a;
}

.content-empty-state strong {
    color: #17345e;
    font-size: 1.2rem;
}

.content-modal,
.content-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 2400;
    display: none;
    place-items: center;
    padding: 18px;
}

.content-modal.is-open,
.content-confirm-modal.is-open {
    display: grid;
}

.content-modal-overlay {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(9, 21, 42, 0.46);
    backdrop-filter: blur(7px);
}

.content-type-dialog,
.post-form-dialog,
.content-confirm-dialog {
    position: relative;
    z-index: 1;
    width: min(620px, calc(100vw - 28px));
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 32px 80px rgba(7, 18, 38, 0.28);
    animation: modalPop 180ms ease-out both;
}

.content-type-dialog {
    padding: 28px;
    text-align: center;
}

.content-modal-x,
.post-form-dialog header button {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: #f5f7fb;
    color: #17345e;
    font-size: 1.25rem;
}

.content-type-dialog h3 {
    color: #17345e;
    font-weight: 900;
}

.content-type-dialog p {
    color: #71809a;
}

.post-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 18px;
}

.post-type-grid button {
    display: grid;
    place-items: center;
    gap: 10px;
    min-height: 190px;
    padding: 18px;
    border: 1px solid #e4eaf3;
    border-radius: 22px;
    background: #ffffff;
    color: #17345e;
    cursor: pointer;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.post-type-grid button:hover {
    border-color: #1d3d7a;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(16, 43, 90, 0.12);
}

.post-type-grid span {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff4d8;
    color: #1d3d7a;
    font-size: 1.8rem;
}

.post-type-grid em {
    color: #71809a;
    font-size: 0.86rem;
    font-style: normal;
}

.post-form-dialog {
    width: min(1100px, calc(100vw - 28px));
    max-height: 90dvh;
    overflow: hidden;
}

.job-form-dialog {
    width: min(1200px, calc(100vw - 28px));
}

.post-form-dialog form {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    max-height: 90dvh;
}

.post-form-dialog header,
.post-form-dialog footer {
    position: sticky;
    z-index: 2;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
}

.post-form-dialog header {
    top: 0;
    padding: 18px 22px;
    border-bottom: 1px solid #e4eaf3;
}

.post-form-dialog header span {
    color: #2f5da8;
    font-size: 0.8rem;
    font-weight: 900;
}

.post-form-dialog header h3 {
    margin: 3px 0 0;
    color: #17345e;
    font-weight: 900;
}

.post-form-dialog main {
    overflow-y: auto;
    padding: 22px;
}

.post-form-dialog footer {
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid #e4eaf3;
}

.modal-footer-toggle {
    display: none;
}

.form-grid-2,
.form-grid-3 {
    display: grid;
    gap: 14px;
}

.form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-section {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
}

.form-section label,
.content-check {
    color: #17345e;
    font-weight: 900;
}

.content-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin: 4px 0 16px;
}

.image-uploader label {
    display: block;
    cursor: pointer;
}

.image-uploader input[type="file"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.image-uploader [data-image-preview] {
    min-height: 150px;
    display: grid;
    place-items: center;
    border: 1px dashed #cdd8e8;
    border-radius: 18px;
    background: #f8fbff;
    color: #71809a;
    overflow: hidden;
}

.image-uploader img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.image-uploader-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 8px;
    color: #71809a;
    font-size: 0.82rem;
}

.image-uploader-actions button {
    border: 0;
    background: transparent;
    color: #c93f50;
    font-weight: 900;
}

.rich-editor {
    border: 1px solid #e4eaf3;
    border-radius: 18px;
    overflow: hidden;
    background: #ffffff;
}

.rte-toolbar {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px;
    border-bottom: 1px solid #e4eaf3;
    background: #f8fbff;
}

.rte-toolbar button {
    flex: 0 0 auto;
    min-width: 36px;
    height: 34px;
    border: 1px solid #e4eaf3;
    border-radius: 10px;
    background: #ffffff;
    color: #17345e;
    font-weight: 900;
}

.rte-surface {
    min-height: 220px;
    padding: 14px;
    color: #17345e;
    line-height: 1.7;
    outline: 0;
}

.rte-surface:empty::before {
    content: attr(data-placeholder);
    color: #9aa6ba;
}

.tag-input {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid #e4eaf3;
    border-radius: 16px;
}

.tag-input [data-tag-list] {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag-input [data-tag-list] button {
    border: 0;
    border-radius: 999px;
    background: #edf4ff;
    color: #1d3d7a;
    padding: 6px 10px;
    font-weight: 900;
}

.tag-input input[type="text"] {
    border: 0;
    min-height: 34px;
    padding: 0;
    outline: 0;
}

.field-error {
    margin-top: 6px;
    color: #c93f50;
    font-size: 0.82rem;
    font-weight: 800;
}

.content-confirm-dialog {
    width: min(420px, calc(100vw - 28px));
    padding: 24px;
    text-align: center;
}

.content-confirm-dialog strong {
    color: #17345e;
    font-size: 1.15rem;
}

.content-confirm-dialog p {
    color: #71809a;
}

.content-confirm-dialog > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@keyframes modalPop {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 767.98px) {
    .content-admin-hero,
    .content-toolbar {
        border-radius: 20px;
        padding: 16px;
    }

    .content-admin-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .content-primary-action,
    .content-searchbar button {
        width: 100%;
        justify-content: center;
    }

    .content-searchbar,
    .form-grid-2,
    .form-grid-3,
    .post-type-grid {
        grid-template-columns: 1fr;
    }

    .post-card-grid {
        grid-template-columns: 1fr;
    }

    .content-modal {
        padding: 0;
        align-items: end;
    }

    .content-type-dialog {
        width: 100%;
        border-radius: 26px 26px 0 0;
    }

    .post-form-dialog,
    .job-form-dialog {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
    }

    .post-form-dialog form {
        max-height: 100dvh;
    }

    .post-form-dialog main {
        padding: 16px 16px 96px;
    }

    .post-form-dialog footer {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -14px 34px rgba(16, 43, 90, 0.08);
        transition: transform 180ms ease, max-height 180ms ease;
    }

    .post-form-dialog footer .modal-footer-toggle {
        display: grid;
        place-items: center;
        min-height: 34px;
        border: 0;
        border-radius: 999px;
        background: #edf4ff;
        color: #1d3d7a;
        font-weight: 900;
        font-size: 0.86rem;
    }

    .post-form-dialog footer .btn {
        min-height: 48px;
    }

    .post-form-dialog footer:not(.is-expanded) {
        grid-template-columns: auto 1fr;
        align-items: center;
    }

    .post-form-dialog footer:not(.is-expanded) [data-close-modal],
    .post-form-dialog footer:not(.is-expanded) [data-preview-form],
    .post-form-dialog footer:not(.is-expanded) [data-submit-as="draft"] {
        display: none;
    }

    .post-form-dialog footer:not(.is-expanded) [data-submit-as="published"] {
        min-height: 50px;
    }

    .rte-toolbar {
        scrollbar-width: none;
    }

    .rte-surface {
        min-height: 190px;
    }

    .mobile-news-modal {
        align-items: stretch;
        background: #f5f7fb;
    }

    .mobile-news-shell {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        background: #f5f7fb;
        color: #17345e;
        overflow: hidden;
    }

    .mobile-news-shell form {
        height: 100dvh;
        display: grid;
        grid-template-rows: auto auto minmax(0, 1fr) auto;
    }

    .mobile-news-header {
        position: sticky;
        top: 0;
        z-index: 4;
        min-height: 64px;
        display: grid;
        grid-template-columns: 48px 1fr auto;
        align-items: center;
        gap: 8px;
        padding: max(10px, env(safe-area-inset-top)) 18px 10px;
        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid rgba(228, 234, 243, 0.86);
        backdrop-filter: blur(16px);
    }

    .mobile-news-header strong {
        text-align: center;
        font-size: 1.05rem;
        font-weight: 900;
        color: #17345e;
    }

    .mobile-news-icon-btn,
    .mobile-news-save {
        min-height: 44px;
        border: 0;
        border-radius: 14px;
        background: #f5f7fb;
        color: #1d3d7a;
        font-weight: 900;
    }

    .mobile-news-icon-btn {
        width: 44px;
        display: grid;
        place-items: center;
        font-size: 2rem;
        line-height: 1;
    }

    .mobile-news-save {
        padding: 0 12px;
        white-space: nowrap;
    }

    .mobile-news-stepper {
        position: sticky;
        top: 64px;
        z-index: 3;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding: 18px 16px 16px;
        background: rgba(255, 255, 255, 0.96);
        border-bottom: 1px solid #e4eaf3;
        box-shadow: 0 10px 28px rgba(16, 43, 90, 0.05);
    }

    .mobile-news-stepper button {
        position: relative;
        display: grid;
        justify-items: center;
        gap: 8px;
        border: 0;
        background: transparent;
        color: #71809a;
        font-weight: 800;
        min-width: 0;
    }

    .mobile-news-stepper button:not(:first-child)::before {
        content: "";
        position: absolute;
        top: 18px;
        left: -50%;
        width: 100%;
        height: 1px;
        background: #dce5f2;
        z-index: 0;
    }

    .mobile-news-stepper span {
        position: relative;
        z-index: 1;
        width: 36px;
        height: 36px;
        display: grid;
        place-items: center;
        border: 1px solid #dce5f2;
        border-radius: 50%;
        background: #ffffff;
        color: #17345e;
        font-size: 0.95rem;
        font-style: normal;
        font-weight: 900;
    }

    .mobile-news-stepper em {
        min-width: 0;
        max-width: 100%;
        font-size: 0.74rem;
        font-style: normal;
        line-height: 1.25;
        white-space: normal;
        text-align: center;
    }

    .mobile-news-stepper .is-active {
        color: #1d3d7a;
    }

    .mobile-news-stepper .is-active span,
    .mobile-news-stepper .is-complete span {
        background: #1d3d7a;
        border-color: #1d3d7a;
        color: #ffffff;
    }

    .mobile-news-body {
        min-height: 0;
        overflow-y: auto;
        padding: 14px 16px 118px;
        background: #f5f7fb;
    }

    .mobile-news-step {
        display: none;
        animation: mobileStepIn 180ms ease-out both;
    }

    .mobile-news-step.is-active {
        display: grid;
        gap: 16px;
    }

    .mobile-field {
        display: grid;
        gap: 9px;
    }

    .mobile-field label,
    .mobile-field-label label {
        color: #17345e;
        font-weight: 900;
    }

    .mobile-field b,
    .mobile-field-label b {
        color: #e24b5f;
    }

    .mobile-field-label {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .mobile-field-label span,
    .mobile-field small {
        color: #71809a;
        font-size: 0.82rem;
        line-height: 1.45;
    }

    .mobile-news-shell input:not([type="checkbox"]):not([type="file"]),
    .mobile-news-shell textarea,
    .mobile-news-shell select {
        width: 100%;
        min-height: 48px;
        border: 1px solid #dce5f2;
        border-radius: 16px;
        background: #ffffff;
        color: #17345e;
        padding: 12px 14px;
        font-size: 1rem;
        font-weight: 650;
        outline: none;
        box-shadow: 0 8px 24px rgba(16, 43, 90, 0.04);
    }

    .mobile-news-shell textarea {
        min-height: 156px;
        resize: vertical;
        line-height: 1.65;
        font-weight: 550;
    }

    .mobile-input-icon {
        position: relative;
    }

    .mobile-input-icon input {
        padding-right: 44px !important;
    }

    .mobile-input-icon span {
        position: absolute;
        right: 14px;
        top: 50%;
        transform: translateY(-50%);
        color: #2f5da8;
        font-weight: 900;
    }

    .mobile-news-shell .image-uploader [data-image-preview] {
        min-height: 220px;
        border-radius: 20px;
        background: #ffffff;
        border-color: #dce5f2;
    }

    .mobile-news-shell .image-uploader img {
        max-height: 260px;
        min-height: 220px;
    }

    .mobile-news-shell .image-uploader-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mobile-news-shell .image-uploader-actions button {
        min-height: 44px;
        border: 1px solid #ffd5dc;
        border-radius: 14px;
        background: #fff5f7;
    }

    .mobile-news-shell .tag-input {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .mobile-news-shell .tag-input [data-tag-list] button {
        min-height: 38px;
        background: #edf4ff;
        color: #1d3d7a;
    }

    .mobile-news-shell .tag-input input[type="text"] {
        min-height: 46px;
        border: 1px solid #dce5f2;
        border-radius: 16px;
        background: #ffffff;
        padding: 0 14px;
    }

    .mobile-add-tag {
        width: fit-content;
        min-height: 40px;
        border: 0;
        border-radius: 999px;
        background: #edf4ff;
        color: #1d3d7a;
        padding: 0 14px;
        font-weight: 900;
    }

    .mobile-news-shell .rich-editor {
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 14px 36px rgba(16, 43, 90, 0.08);
    }

    .mobile-news-shell .rte-toolbar {
        display: grid;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        gap: 0;
        overflow-x: auto;
        padding: 0;
        background: #ffffff;
        scrollbar-width: none;
    }

    .mobile-news-shell .rte-toolbar button {
        min-width: 52px;
        height: 52px;
        border: 0;
        border-right: 1px solid #e4eaf3;
        border-radius: 0;
        background: #ffffff;
        color: #17345e;
        font-size: 1rem;
    }

    .mobile-news-shell .rte-surface {
        min-height: 320px;
        padding: 18px;
        font-size: 1rem;
        line-height: 1.85;
    }

    .mobile-editor-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 10px 14px;
        border: 1px solid #e4eaf3;
        border-top: 0;
        border-radius: 0 0 18px 18px;
        background: #ffffff;
        color: #71809a;
    }

    .mobile-editor-meta button {
        width: 36px;
        height: 36px;
        border: 0;
        border-radius: 12px;
        background: #f5f7fb;
        color: #1d3d7a;
    }

    .mobile-status-grid {
        display: grid;
        gap: 10px;
    }

    .mobile-status-grid button,
    .mobile-toggle-row,
    .mobile-seo-preview {
        border: 1px solid #e4eaf3;
        border-radius: 18px;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(16, 43, 90, 0.05);
    }

    .mobile-status-grid button {
        display: grid;
        grid-template-columns: 24px 1fr;
        gap: 4px 10px;
        min-height: 76px;
        padding: 14px;
        text-align: left;
        color: #17345e;
    }

    .mobile-status-grid button span {
        grid-row: span 2;
        width: 22px;
        height: 22px;
        border: 2px solid #cfd9e8;
        border-radius: 50%;
        margin-top: 2px;
    }

    .mobile-status-grid button strong {
        font-weight: 900;
    }

    .mobile-status-grid button em {
        color: #71809a;
        font-style: normal;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .mobile-status-grid .is-selected {
        border-color: #80d6ad;
        background: #f1fff7;
    }

    .mobile-status-grid .is-selected span {
        border-color: #39a66f;
        background: radial-gradient(circle at center, #39a66f 0 38%, transparent 42%);
    }

    .mobile-toggle-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 16px;
    }

    .mobile-toggle-row span {
        display: grid;
        gap: 4px;
    }

    .mobile-toggle-row strong {
        color: #17345e;
        font-weight: 900;
    }

    .mobile-toggle-row em {
        color: #71809a;
        font-style: normal;
        font-size: 0.86rem;
        line-height: 1.35;
    }

    .mobile-toggle-row input[type="checkbox"] {
        appearance: none;
        flex: 0 0 auto;
        width: 52px;
        height: 32px;
        border-radius: 999px;
        background: #d5deea;
        position: relative;
        transition: background var(--transition);
    }

    .mobile-toggle-row input[type="checkbox"]::after {
        content: "";
        position: absolute;
        width: 26px;
        height: 26px;
        top: 3px;
        left: 3px;
        border-radius: 50%;
        background: #ffffff;
        box-shadow: 0 3px 10px rgba(16, 43, 90, 0.18);
        transition: transform var(--transition);
    }

    .mobile-toggle-row input[type="checkbox"]:checked {
        background: #1d3d7a;
    }

    .mobile-toggle-row input[type="checkbox"]:checked::after {
        transform: translateX(20px);
    }

    .mobile-seo-preview {
        display: grid;
        gap: 6px;
        padding: 16px;
    }

    .mobile-seo-preview span {
        color: #71809a;
        font-size: 0.78rem;
        font-weight: 900;
        text-transform: uppercase;
    }

    .mobile-seo-preview strong {
        color: #17345e;
        font-weight: 900;
    }

    .mobile-seo-preview em {
        color: #2f5da8;
        font-style: normal;
        font-size: 0.86rem;
        overflow-wrap: anywhere;
    }

    .mobile-seo-preview p {
        margin: 0;
        color: #71809a;
        line-height: 1.5;
    }

    .mobile-news-footer {
        position: sticky;
        bottom: 0;
        z-index: 4;
        display: grid;
        gap: 10px;
        padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid #e4eaf3;
        box-shadow: 0 -14px 32px rgba(16, 43, 90, 0.08);
        backdrop-filter: blur(16px);
    }

    .mobile-autosave-state {
        text-align: center;
        color: #71809a;
        font-size: 0.82rem;
        font-weight: 750;
    }

    .mobile-footer-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mobile-footer-actions button[hidden] {
        display: none !important;
    }

    .mobile-footer-actions:has(.mobile-secondary-action[hidden]) {
        grid-template-columns: 1fr;
    }

    .mobile-primary-action,
    .mobile-secondary-action {
        min-height: 52px;
        border-radius: 14px;
        font-weight: 900;
        font-size: 1rem;
    }

    .mobile-primary-action {
        border: 0;
        color: #ffffff;
        background: linear-gradient(135deg, #1d3d7a, #2f5da8);
        box-shadow: 0 14px 28px rgba(29, 61, 122, 0.2);
    }

    .mobile-secondary-action {
        border: 1px solid #dce5f2;
        background: #ffffff;
        color: #1d3d7a;
    }

    .mobile-preview-modal {
        position: fixed;
        inset: 0;
        z-index: 2600;
        display: grid;
        place-items: end stretch;
        background: rgba(9, 21, 42, 0.42);
        backdrop-filter: blur(8px);
    }

    .mobile-preview-overlay {
        position: absolute;
        inset: 0;
        border: 0;
        background: transparent;
    }

    .mobile-preview-card {
        position: relative;
        z-index: 1;
        max-height: 92dvh;
        overflow: hidden;
        display: grid;
        grid-template-rows: auto minmax(0, 1fr);
        border-radius: 26px 26px 0 0;
        background: #ffffff;
        box-shadow: 0 -24px 60px rgba(7, 18, 38, 0.24);
    }

    .mobile-preview-card header {
        display: grid;
        grid-template-columns: 44px 1fr;
        align-items: center;
        gap: 8px;
        padding: 14px 16px;
        border-bottom: 1px solid #e4eaf3;
    }

    .mobile-preview-card header button {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 14px;
        background: #f5f7fb;
        color: #1d3d7a;
        font-size: 2rem;
    }

    .mobile-preview-card header strong {
        color: #17345e;
        font-weight: 900;
    }

    .mobile-preview-card main {
        overflow-y: auto;
        padding: 20px;
        color: #17345e;
        line-height: 1.8;
    }

    .mobile-preview-card h1 {
        font-size: 1.7rem;
        line-height: 1.25;
        font-weight: 950;
    }

    .mobile-preview-card p {
        color: #71809a;
        font-size: 1rem;
    }

    .mobile-preview-card img {
        max-width: 100%;
        border-radius: 16px;
    }

    @keyframes mobileStepIn {
        from { opacity: 0; transform: translateY(8px); }
        to { opacity: 1; transform: translateY(0); }
    }
}


