:root {
    --app-primary: #0759d9;
    --app-primary-dark: #0643b5;
}
.theme-logo-dark { display: none !important; }
[data-bs-theme='dark'] { --app-primary: var(--app-dark-primary); --app-primary-dark: var(--app-dark-primary-hover); }
[data-bs-theme='dark'] .theme-logo-light { display: none !important; }
[data-bs-theme='dark'] .theme-logo-dark { display: block !important; }

body { min-height: 100vh; padding-bottom: 72px; }
.app-launch-screen { display: none; }
.app-launch-active { overflow: hidden; }
.app-launch-active .app-launch-screen { position: fixed; z-index: 99999; inset: 0; display: grid; min-height: 100dvh; overflow: hidden; place-items: center; color: #fff; background: linear-gradient(150deg, var(--app-primary-dark) 0%, var(--app-primary) 58%, color-mix(in srgb, var(--app-primary) 78%, #5bb8ff) 100%); opacity: 1; transition: opacity .32s ease, visibility .32s ease; }
.app-launch-screen.is-leaving { visibility: hidden; opacity: 0; }
.app-launch-content { position: relative; z-index: 2; display: grid; width: min(76vw, 19rem); justify-items: center; gap: 1.35rem; }
.app-launch-brand { display: grid; width: min(70vw, 16.5rem); min-height: 7.4rem; place-items: center; padding: 1rem 1.35rem; border: 1px solid rgba(255, 255, 255, .78); border-radius: 1.55rem; background: rgba(255, 255, 255, .96); box-shadow: 0 1.2rem 3rem rgba(0, 35, 100, .25); animation: appLaunchBrand .55s cubic-bezier(.2, .8, .2, 1) both; }
.app-launch-brand img { display: block; width: 100%; height: 5rem; object-fit: contain; }
.app-launch-status { width: 100%; text-align: center; }
.app-launch-status > span { display: block; margin-bottom: .7rem; color: rgba(255, 255, 255, .84); font-size: .72rem; font-weight: 600; letter-spacing: .025em; }
.app-launch-status > div { width: 7.5rem; height: .22rem; overflow: hidden; margin: auto; border-radius: 999px; background: rgba(255, 255, 255, .2); }
.app-launch-status i { display: block; width: 45%; height: 100%; border-radius: inherit; background: #fff; animation: appLaunchProgress 1.05s ease-in-out infinite; }
.app-launch-orbit { position: absolute; display: block; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; }
.app-launch-orbit-one { top: -17vw; right: -28vw; width: 85vw; height: 85vw; }
.app-launch-orbit-two { bottom: -25vw; left: -34vw; width: 105vw; height: 105vw; border-width: 1.5rem; opacity: .45; }
.app-launch-version { position: absolute; z-index: 2; bottom: max(1.6rem, env(safe-area-inset-bottom)); color: rgba(255, 255, 255, .62); font-size: .62rem; font-weight: 600; }
@keyframes appLaunchBrand { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes appLaunchProgress { from { transform: translateX(-120%); } 55% { transform: translateX(85%); } to { transform: translateX(225%); } }
.app-workspace { min-height: calc(100vh - 61px); }
.app-content { min-width: 0; }
.desktop-navigation { display: none; }
.dashboard-page { max-width: 90rem; padding: 1.25rem; }
.dashboard-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.35rem; }
.dashboard-welcome > div:first-child > span { color: var(--app-primary); font-size: .72rem; font-weight: 750; }
.dashboard-welcome h1 { margin: .1rem 0 .25rem; color: var(--bs-heading-color); font-size: clamp(1.55rem, 4vw, 2rem); font-weight: 750; letter-spacing: -.035em; }
.dashboard-welcome p { margin: 0; color: #8490a2; font-size: .8rem; }
.dashboard-date { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .7rem; color: #748094; background: var(--bs-body-bg); font-size: .72rem; }
.dashboard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-bottom: .85rem; }
.dashboard-stats article { display: flex; align-items: center; gap: .85rem; min-width: 0; padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg); box-shadow: 0 .35rem 1rem rgba(15, 23, 42, .035); }
.dashboard-stat-icon { display: grid; width: 2.8rem; height: 2.8rem; flex: 0 0 auto; place-items: center; border-radius: .8rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 11%, transparent); font-size: 1.1rem; }
.dashboard-stats small, .dashboard-stats strong, .dashboard-stats p { display: block; }
.dashboard-stats small { color: #8b96a7; font-size: .65rem; }
.dashboard-stats strong { overflow: hidden; margin: .08rem 0; color: var(--bs-heading-color); font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-stats p { overflow: hidden; margin: 0; color: #9aa4b3; font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: .85rem; }
.dashboard-card { overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg); }
.dashboard-card > header { padding: 1rem 1.1rem .75rem; }
.dashboard-card > header span { color: var(--app-primary); font-size: .6rem; font-weight: 800; letter-spacing: .075em; }
.dashboard-card > header h2 { margin: .2rem 0 0; color: var(--bs-heading-color); font-size: .95rem; font-weight: 700; }
.dashboard-shortcuts { display: grid; padding: 0 .65rem .65rem; }
.dashboard-shortcuts > a, .dashboard-shortcuts > button { display: grid; width: 100%; grid-template-columns: 2.55rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .65rem; border: 0; border-radius: .75rem; color: var(--bs-body-color); background: transparent; text-align: left; text-decoration: none; }
.dashboard-shortcuts > a:hover, .dashboard-shortcuts > button:hover { background: color-mix(in srgb, var(--app-primary) 6%, transparent); }
.dashboard-shortcuts > * > span { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: .7rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 10%, transparent); }
.dashboard-shortcuts strong, .dashboard-shortcuts small { display: block; }
.dashboard-shortcuts strong { font-size: .78rem; }
.dashboard-shortcuts small { color: #929cab; font-size: .64rem; }
.dashboard-shortcuts > * > .bi-chevron-right { color: #aeb6c2; font-size: .65rem; }
.dashboard-empty-state { display: grid; min-height: 13.2rem; place-items: center; align-content: center; padding: 1.5rem; text-align: center; }
.dashboard-empty-state > span { display: grid; width: 3.2rem; height: 3.2rem; place-items: center; margin-bottom: .65rem; border-radius: 1rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, transparent); font-size: 1.25rem; }
.dashboard-empty-state strong { color: var(--bs-heading-color); font-size: .78rem; }
.dashboard-empty-state p { max-width: 15rem; margin: .25rem 0 0; color: #929cab; font-size: .66rem; }
.dashboard-ready-banner { display: flex; align-items: center; gap: .8rem; margin-top: .85rem; padding: .9rem 1rem; border: 1px solid color-mix(in srgb, var(--app-primary) 18%, transparent); border-radius: 1rem; background: color-mix(in srgb, var(--app-primary) 6%, var(--bs-body-bg)); }
.dashboard-ready-banner > span { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border-radius: .75rem; color: #fff; background: var(--app-primary); }
.dashboard-ready-banner strong { display: block; color: var(--bs-heading-color); font-size: .76rem; }
.dashboard-ready-banner p { margin: .15rem 0 0; color: #8490a2; font-size: .64rem; }
.dashboard-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .85rem; margin-bottom: .85rem; }
.dashboard-kpi { position: relative; display: grid; min-width: 0; grid-template-columns: 2.55rem minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; align-items: center; column-gap: .7rem; row-gap: .55rem; overflow: hidden; padding: .9rem; border: 1px solid color-mix(in srgb, var(--kpi-color, var(--app-primary)) 16%, var(--bs-border-color)); border-radius: 1rem; color: var(--bs-body-color); background-color: var(--bs-body-bg); background-image: linear-gradient(145deg, color-mix(in srgb, var(--kpi-color, var(--app-primary)) 5%, transparent), transparent 62%); box-shadow: 0 .3rem .85rem rgba(15, 23, 42, .025), inset 0 1px 0 rgba(255, 255, 255, .28); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.dashboard-kpi:hover { border-color: color-mix(in srgb, var(--kpi-color, var(--app-primary)) 28%, var(--bs-border-color)); color: var(--bs-body-color); box-shadow: 0 .7rem 1.5rem rgba(15, 23, 42, .08); transform: translateY(-2px); }
.dashboard-kpi::after { position: absolute; top: 18%; right: 0; bottom: 18%; width: 3px; border-radius: 999px 0 0 999px; background: linear-gradient(to bottom, color-mix(in srgb, var(--kpi-color) 55%, transparent), var(--kpi-color), color-mix(in srgb, var(--kpi-color) 55%, transparent)); box-shadow: -.18rem 0 .55rem color-mix(in srgb, var(--kpi-color) 18%, transparent); content: ''; opacity: .72; }
.dashboard-kpi.clients { --kpi-color: #0879e8; }
.dashboard-kpi.users { --kpi-color: #7459df; }
.dashboard-kpi.sectors { --kpi-color: #e78823; }
.dashboard-kpi.activities { --kpi-color: #159b6b; }
.dashboard-kpi-icon { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: .75rem; color: var(--kpi-color); background: color-mix(in srgb, var(--kpi-color) 11%, transparent); font-size: 1rem; }
.dashboard-kpi-value { display: block; color: var(--bs-heading-color); font-size: 1.35rem; font-weight: 650; line-height: 1; }
.dashboard-kpi-copy { display: flex; min-width: 0; height: 100%; grid-column: 1 / -1; flex-direction: column; }
.dashboard-kpi-copy small, .dashboard-kpi-copy p, .dashboard-kpi-copy em { display: block; }
.dashboard-kpi-copy small { overflow: hidden; color: #7d899b; font-size: .65rem; font-weight: 700; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-kpi-copy p { margin: .18rem 0 0; color: #98a2b3; font-size: .61rem; line-height: 1.3; }
.dashboard-kpi-copy em { overflow: hidden; margin-top: .42rem; color: var(--kpi-color); font-size: .61rem; font-style: normal; font-weight: 650; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-kpi > .bi-arrow-up-right { position: absolute; top: .85rem; right: .85rem; color: color-mix(in srgb, var(--kpi-color) 60%, transparent); font-size: .68rem; }
.dashboard-main-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .65fr); gap: .85rem; margin-bottom: .85rem; }
.dashboard-secondary-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(16rem, .65fr); gap: .85rem; }
.dashboard-card > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--bs-border-color) 70%, transparent); }
.dashboard-card > header a { color: var(--app-primary); font-size: .64rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dashboard-card > header a i { font-size: .55rem; }
.dashboard-activity-list { padding: .25rem .75rem .75rem; }
.dashboard-activity-list article { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .7rem .35rem; border-bottom: 1px solid color-mix(in srgb, var(--bs-border-color) 68%, transparent); }
.dashboard-activity-list article:last-child { border-bottom: 0; }
.dashboard-activity-list article > span { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: .7rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, transparent); font-size: .85rem; }
.dashboard-activity-list strong, .dashboard-activity-list small, .dashboard-activity-list time { display: block; }
.dashboard-activity-list strong { overflow: hidden; color: var(--bs-heading-color); font-size: .7rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-activity-list small { overflow: hidden; margin-top: .12rem; color: #939dad; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-activity-list time { color: #6d788a; font-size: .65rem; font-weight: 700; text-align: right; }
.dashboard-activity-list time small { margin-top: 0; font-weight: 500; }
.dashboard-recent-clients > div { padding: .25rem .75rem .75rem; }
.dashboard-recent-clients > div > a { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; padding: .65rem .35rem; border-bottom: 1px solid color-mix(in srgb, var(--bs-border-color) 68%, transparent); color: var(--bs-body-color); text-decoration: none; }
.dashboard-recent-clients > div > a:last-child { border-bottom: 0; }
.dashboard-recent-clients > div > a > span { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: .7rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 10%, transparent); font-size: .72rem; font-weight: 800; }
.dashboard-recent-clients strong, .dashboard-recent-clients small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dashboard-recent-clients strong { color: var(--bs-heading-color); font-size: .7rem; }
.dashboard-recent-clients small { margin-top: .12rem; color: #939dad; font-size: .6rem; }
.dashboard-recent-clients em { font-size: .58rem; font-style: normal; }
.dashboard-empty-compact { padding: 1.5rem !important; color: #929cab; font-size: .68rem; text-align: center; }
.dashboard-system-list { display: grid; padding: .4rem .9rem .9rem; }
.dashboard-system-list > div { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr); align-items: center; gap: .7rem; padding: .68rem .2rem; border-bottom: 1px solid color-mix(in srgb, var(--bs-border-color) 68%, transparent); }
.dashboard-system-list > div:last-child { border-bottom: 0; }
.dashboard-system-list > div > span { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: .7rem; color: #159b6b; background: color-mix(in srgb, #159b6b 10%, transparent); font-size: .85rem; }
.dashboard-system-list small, .dashboard-system-list strong, .dashboard-system-list p { display: block; }
.dashboard-system-list small { color: #939dad; font-size: .6rem; }
.dashboard-system-list strong { color: var(--bs-heading-color); font-size: .72rem; }
.dashboard-system-list p { margin: .08rem 0 0; color: #939dad; font-size: .58rem; }
.brand-mark, .feature-icon, .status-icon { display: inline-grid; place-items: center; }
.brand-mark { width: 36px; height: 36px; color: #fff; background: var(--app-primary); border-radius: 10px; }
.app-navbar-logo { display: block; width: auto; height: 44px; object-fit: contain; }
.app-topbar { border-bottom: 1px solid #e1e8f1; background: var(--app-background, #f4f7fc); box-shadow: 0 .25rem 1rem rgba(15, 23, 42, .055); }
.app-topbar nav { flex-wrap: nowrap; justify-content: space-between; gap: .5rem; }
.app-topbar .navbar-brand { min-width: 0; margin-right: 0; }
.topbar-network-status { display: inline-flex; min-height: 2rem; align-items: center; gap: .35rem; padding: .3rem .55rem; border: 1px solid color-mix(in srgb, #22a06b 20%, var(--bs-border-color)); border-radius: 999px; color: #168057; background: color-mix(in srgb, #22a06b 8%, var(--bs-body-bg)); font-size: .58rem; font-weight: 700; white-space: nowrap; }
.topbar-network-status i { font-size: .7rem; }
.topbar-network-status.offline { border-color: color-mix(in srgb, #d97706 25%, var(--bs-border-color)); color: #b45f08; background: color-mix(in srgb, #d97706 9%, var(--bs-body-bg)); }
.offline-record-pending { border-color: color-mix(in srgb, #d97706 36%, var(--bs-border-color)) !important; background: color-mix(in srgb, #d97706 6%, var(--bs-body-bg)) !important; box-shadow: inset .2rem 0 0 color-mix(in srgb, #d97706 72%, transparent) !important; }
.offline-record-pending:not(tr) { cursor: default; }
.offline-record-deleted { display: none !important; }
.offline-record-badge { display: inline-flex; min-height: 1.65rem; align-items: center; justify-content: center; gap: .28rem; padding: .18rem .48rem; border: 1px solid color-mix(in srgb, #d97706 30%, var(--bs-border-color)); border-radius: 999px; color: #a65b08; background: color-mix(in srgb, #d97706 10%, var(--bs-body-bg)); font-size: .55rem; font-style: normal; font-weight: 750; white-space: nowrap; }
.offline-record-badge i { font-size: .65rem; }
.offline-change-badge { margin: .3rem 0 0 .35rem; vertical-align: middle; }
.client-list-main .offline-change-badge { margin-left: 0; }
.offline-record-pending .sector-actions { justify-content: flex-start; padding: .5rem 0; }
.offline-record-note { display: inline-flex; align-items: center; gap: .35rem; color: #a65b08; font-size: .58rem; font-weight: 650; }
.offline-record-actions { display: inline-flex; align-items: center; gap: .35rem; }
.offline-record-actions button { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border: 1px solid color-mix(in srgb, var(--app-primary) 24%, var(--bs-border-color)); border-radius: .65rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 7%, var(--bs-body-bg)); }
.offline-record-actions button.danger { border-color: color-mix(in srgb, #dc3545 24%, var(--bs-border-color)); color: #dc3545; background: color-mix(in srgb, #dc3545 7%, var(--bs-body-bg)); }
.offline-record-pending .sector-actions .offline-record-note { flex: 1; padding: 0 .75rem; }
[data-bs-theme='dark'] .offline-record-pending { background: color-mix(in srgb, #d97706 9%, var(--bs-body-bg)) !important; }
[data-bs-theme='dark'] .offline-record-badge { color: #f2ad57; }
.theme-toggle-button { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border: 1px solid #e1e7ef; border-radius: .75rem; color: #677386; background: var(--bs-body-bg); font-size: 1rem; transition: color .2s, background .2s, transform .2s; }
.theme-toggle-button:hover { color: var(--app-primary); background: #f2f6fc; transform: translateY(-1px); }
.nav-menu-button { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border: 1px solid rgba(7, 89, 217, .14); border-radius: .75rem; color: var(--app-primary); background: #eff6ff; font-size: 1.35rem; transition: background .2s, transform .2s; }
.nav-menu-button:hover { background: #dbeafe; transform: translateY(-1px); }
.app-offcanvas { width: min(90vw, 24rem) !important; border-left: 0; box-shadow: -.75rem 0 2.5rem rgba(15, 23, 42, .13); }
.app-menu-header { gap: .85rem; padding: 1.5rem; border-bottom: 1px solid #e9eef5; background: linear-gradient(145deg, #eff6ff, #fff); }
.app-user-avatar { display: grid; width: 3.15rem; height: 3.15rem; flex: 0 0 auto; place-items: center; border-radius: 1rem; color: #fff; background: linear-gradient(145deg, var(--app-primary), #1595ff); box-shadow: 0 .5rem 1rem rgba(7, 89, 217, .2); font-size: 1.15rem; font-weight: 800; }
.app-user-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.app-user-info { min-width: 0; flex: 1; }
.app-user-info h2 { overflow: hidden; margin: 0 0 .2rem; color: #172033; font-size: 1rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.app-user-info p { overflow: hidden; margin: 0 0 .38rem; color: #748094; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.app-menu-nav { display: grid; gap: .1rem; }
.app-menu-nav > a { position: relative; display: grid; min-height: 2.65rem; grid-template-columns: 2.05rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .3rem .55rem; border-radius: .72rem; color: #344054; text-decoration: none; transition: color .2s, background .2s, transform .2s; }
.app-menu-nav > a:hover { color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 5%, transparent); transform: translateX(2px); }
.app-menu-icon { display: grid; width: 2.05rem; height: 2.05rem; place-items: center; border-radius: .62rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, transparent); font-size: .78rem; }
.app-menu-nav a > span:nth-child(2) { min-width: 0; }
.app-menu-nav strong, .app-menu-nav small { display: block; }
.app-menu-nav strong { margin: 0; font-size: .74rem; font-weight: 560; letter-spacing: -.005em; }
.app-menu-nav small { overflow: hidden; color: #8791a1; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.app-menu-chevron { color: #a8b0bd; font-size: .62rem; transition: transform .2s; }
.app-menu-nav > a:hover .app-menu-chevron { transform: translateX(2px); }
.app-network-status { display: inline-flex; align-items: center; gap: .42rem; color: #758093; font-size: .7rem; font-weight: 650; }
.app-network-status::before { width: .48rem; height: .48rem; content: ''; border-radius: 50%; background: #94a3b8; box-shadow: 0 0 0 .2rem rgba(148, 163, 184, .12); }
.app-network-status.online::before { background: #22a06b; box-shadow: 0 0 0 .2rem rgba(34, 160, 107, .12); }
.app-connectivity-summary { display: flex; align-items: center; gap: .65rem; }
.app-sync-pending { display: inline-flex; align-items: center; padding: .18rem .42rem; border-radius: 999px; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 10%, transparent); font-size: .58rem; font-weight: 700; }
.sync-status-pill { position: fixed; z-index: 1045; right: 1rem; bottom: calc(4.65rem + env(safe-area-inset-bottom)); display: inline-flex; min-height: 2.15rem; align-items: center; gap: .42rem; padding: .42rem .65rem; border: 1px solid var(--bs-border-color); border-radius: 999px; color: #526174; background: color-mix(in srgb, var(--bs-body-bg) 92%, transparent); box-shadow: 0 .5rem 1.4rem rgba(15, 23, 42, .15); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: .62rem; font-weight: 700; }
.sync-status-pill i { color: var(--app-primary); font-size: .78rem; }
.sync-status-pill strong { display: grid; min-width: 1.15rem; height: 1.15rem; place-items: center; padding: 0 .25rem; border-radius: 999px; color: #fff; background: var(--app-primary); font-size: .54rem; }
.sync-status-pill[data-state='offline'] { border-color: color-mix(in srgb, #d97706 28%, var(--bs-border-color)); color: #a35b0a; }
.sync-status-pill[data-state='offline'] i { color: #d97706; }
.sync-status-pill[data-state='syncing'] i { animation: syncStatusSpin .8s linear infinite; }
@keyframes syncStatusSpin { to { transform: rotate(360deg); } }
.app-menu-logout { padding-top: 1rem; border-top: 1px solid #edf0f4; }
.app-menu-logout button { display: flex; width: 100%; min-height: 2.9rem; align-items: center; justify-content: center; gap: .55rem; padding: .55rem 1rem; border: 1px solid #fee2e2; border-radius: .8rem; color: #c43b3b; background: #fff7f7; font-size: .82rem; font-weight: 700; transition: background .2s; }
.app-menu-logout button:hover { background: #feecec; }
.content-page-card { display: flex; max-width: 46rem; align-items: flex-start; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2rem); border: 1px solid #e6ebf2; border-radius: 1.25rem; background: #fff; box-shadow: 0 .65rem 1.75rem rgba(15, 23, 42, .06); }
.content-page-icon { display: grid; width: 3.2rem; height: 3.2rem; flex: 0 0 auto; place-items: center; border-radius: .9rem; color: var(--app-primary); background: #eaf2ff; font-size: 1.25rem; }
.profile-card { max-width: 40rem; overflow: hidden; border: 1px solid #e6ebf2; border-radius: 1.35rem; background: #fff; box-shadow: 0 .8rem 2.2rem rgba(15, 23, 42, .07); }
.profile-card-header { display: flex; align-items: center; gap: .8rem; padding: 1.35rem 1.75rem; border-bottom: 1px solid #edf1f6; }
.page-section-header-icon { display: grid; width: 2.55rem; height: 2.55rem; flex: 0 0 auto; place-items: center; border-radius: .75rem; color: var(--app-primary); background: #eaf2ff; font-size: 1rem; }
.page-section-header h1 { margin: 0 0 .18rem; color: var(--app-primary); font-size: .72rem; font-weight: 800; letter-spacing: .075em; line-height: 1.25; text-transform: uppercase; }
.page-section-header p { margin: 0; color: #8791a1; font-size: .72rem; line-height: 1.4; }
.profile-card form { padding: 1.5rem 1.75rem 1.75rem; }
.profile-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.profile-fieldset:disabled { opacity: .58; }
.test-mode-panel-notice { display: flex; max-width: 46rem; align-items: center; gap: .65rem; padding: .7rem .85rem; border: 1px solid #dbe8fb; border-radius: .8rem; color: #66758a; background: #f2f7ff; font-size: .72rem; }
.profile-card > .test-mode-panel-notice { margin: 1.25rem 1.75rem 0; }
.test-mode-panel-notice > i { color: var(--app-primary); }
.test-mode-panel-notice strong, .test-mode-panel-notice span { display: block; }
.test-mode-panel-notice strong { margin-bottom: .05rem; color: var(--app-primary); font-size: .74rem; }
.profile-section-heading { display: flex; align-items: flex-start; gap: .7rem; margin: 0 0 1rem; padding: .75rem .85rem; border-left: 3px solid var(--app-primary); border-radius: 0 .75rem .75rem 0; background: color-mix(in srgb, var(--app-primary) 6%, var(--bs-body-bg)); }
.profile-section-heading > i { margin-top: .05rem; color: var(--app-primary); font-size: .9rem; }
.profile-section-heading strong, .profile-section-heading small { display: block; }
.profile-section-heading strong { margin-bottom: .12rem; color: var(--bs-heading-color); font-size: .8rem; }
.profile-section-heading small { color: #8b96a7; font-size: .66rem; }
.profile-photo-section { display: flex; align-items: center; gap: 1.1rem; margin: 0 .85rem 1.75rem; }
.profile-photo-button { position: relative; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: none; }
.profile-photo-preview { display: grid; width: 5.4rem; height: 5.4rem; overflow: hidden; place-items: center; border: 4px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--app-primary), #1595ff); box-shadow: 0 .4rem 1.2rem rgba(7, 89, 217, .2); font-size: 1.8rem; font-weight: 800; }
.profile-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-action { position: absolute; right: -.1rem; bottom: .05rem; display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; background: var(--app-primary); font-size: .7rem; }
.profile-photo-section strong { display: block; margin-bottom: .2rem; color: #273244; font-size: .9rem; }
.profile-photo-section p { margin: 0 0 .4rem; color: #8791a1; font-size: .72rem; }
.profile-photo-change { padding: 0; border: 0; color: var(--app-primary); background: transparent; font-size: .75rem; font-weight: 700; }
.profile-fields { padding: 0 .85rem; }
.profile-fields .form-label { margin-bottom: .45rem; color: #344054; font-size: .8rem; font-weight: 650; }
.profile-input { display: flex; min-height: 3.25rem; align-items: center; border: 1px solid #dce3ec; border-radius: .8rem; color: #8994a5; background: #f9fafc; transition: border-color .2s, box-shadow .2s, background .2s; }
.profile-input:focus-within { border-color: #1595ff; background: #fff; box-shadow: 0 0 0 .22rem rgba(21, 149, 255, .12); }
.profile-input > i { margin-left: 1rem; }
.profile-input input { width: 100%; min-width: 0; padding: .8rem .9rem; border: 0; outline: 0; color: #1f2937; background: transparent; font-family: inherit; font-size: .88rem; }
.profile-password-heading { display: flex; align-items: flex-start; gap: .7rem; margin-top: 1rem; padding: .8rem .85rem; border-top: 1px solid var(--bs-border-color); border-bottom: 1px solid var(--bs-border-color); color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 4%, transparent); }
.profile-password-heading strong, .profile-password-heading small { display: block; }
.profile-password-heading strong { margin-bottom: .12rem; color: var(--bs-heading-color); font-size: .8rem; }
.profile-password-heading small { color: #8791a1; font-size: .66rem; }
.profile-password-toggle { align-self: stretch; padding: 0 .9rem; border: 0; color: #8791a1; background: transparent; }
.profile-password-toggle:hover { color: var(--app-primary); }
.profile-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1.6rem; }
.btn-profile-secondary, .btn-profile-save { display: inline-flex; min-height: 2.75rem; align-items: center; justify-content: center; padding: .65rem 1rem; border-radius: .75rem; font-size: .8rem; font-weight: 700; text-decoration: none; }
.btn-profile-secondary { border: 1px solid #dce3ec; color: #667085; background: #fff; }
.btn-profile-save { border: 0; color: #fff; background: var(--app-primary); box-shadow: 0 .4rem .9rem rgba(7, 89, 217, .17); }
.btn-profile-save:disabled { cursor: wait; opacity: .75; }
.profile-photo-modal .modal-content { border: 0; border-radius: 1.25rem; box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .2); }
.profile-photo-modal .modal-title { color: #172033; font-size: 1.05rem; font-weight: 750; }
.profile-photo-modal .modal-header p { color: #8791a1; font-size: .72rem; }
.profile-photo-options { display: grid; gap: .5rem; padding-top: 1.1rem; }
.profile-photo-options > button { display: grid; width: 100%; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .7rem; border: 0; border-radius: .8rem; color: #273244; background: #f7f9fc; text-align: left; }
.profile-photo-options > button:hover { background: #eef4ff; }
.profile-photo-options > button > span { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: .7rem; color: var(--app-primary); background: #e6f0ff; }
.profile-photo-options strong, .profile-photo-options small { display: block; }
.profile-photo-options strong { font-size: .82rem; }
.profile-photo-options small { color: #8791a1; font-size: .67rem; }
.profile-photo-options > button > .bi-chevron-right { color: #a6afbc; font-size: .7rem; }
.profile-crop-modal .modal-content { overflow: hidden; border: 0; border-radius: 1.2rem; box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .22); }
.profile-crop-modal .modal-title { color: #172033; font-size: 1.05rem; font-weight: 750; }
.profile-crop-modal .modal-header p { color: #8791a1; font-size: .72rem; }
.profile-crop-area { width: 100%; height: min(55vh, 25rem); overflow: hidden; border-radius: .9rem; background: #101828; }
.profile-crop-area img { display: block; max-width: 100%; }
.profile-crop-controls { display: grid; grid-template-columns: 2.5rem auto minmax(0, 1fr) auto 2.5rem; align-items: center; gap: .55rem; margin-top: 1rem; color: #98a2b3; }
.profile-crop-controls button { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 1px solid #e1e6ed; border-radius: .7rem; color: var(--app-primary); background: #f8fafc; }
.profile-crop-controls input { width: 100%; accent-color: var(--app-primary); }
.profile-crop-modal .modal-footer { gap: .5rem; }
.settings-card { max-width: 48rem; overflow: hidden; border: 1px solid #e6ebf2; border-radius: 1.35rem; background: #fff; box-shadow: 0 .8rem 2.2rem rgba(15, 23, 42, .07); }
.settings-card-header { display: flex; align-items: center; gap: .8rem; padding: 1.35rem 1.75rem; border-bottom: 1px solid #edf1f6; }
.settings-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.settings-fieldset:disabled { opacity: .58; }
.settings-test-notice { margin: 1.25rem 1.75rem 0; }
.settings-section { padding: 1.5rem 1.75rem 1.75rem; border-bottom: 1px solid var(--bs-border-color); }
.settings-section + .settings-section { padding-top: 1.75rem; }
.settings-section-title { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1.35rem; padding: .8rem .9rem; border-left: 3px solid var(--app-primary); border-radius: 0 .8rem .8rem 0; background: color-mix(in srgb, var(--app-primary) 6%, var(--bs-body-bg)); }
.settings-section-title > i { display: grid; width: 1.75rem; height: 1.75rem; flex: 0 0 auto; place-items: center; border-radius: .5rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 12%, transparent); font-size: .85rem; }
.settings-section-title h2 { margin: 0 0 .12rem; color: var(--bs-heading-color); font-size: .82rem; font-weight: 750; }
.settings-section-title p { margin: 0; color: #8a94a4; font-size: .67rem; }
.settings-section .form-label { margin-bottom: .4rem; color: #475467; font-size: .76rem; font-weight: 650; }
.settings-label-help { display: flex; align-items: center; gap: .35rem; width: fit-content; }
.settings-help-button { display: inline-grid; width: 1.15rem; height: 1.15rem; padding: 0; place-items: center; border: 0; border-radius: 50%; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, transparent); font-size: .7rem; line-height: 1; }
.settings-help-button:hover, .settings-help-button:focus { background: color-mix(in srgb, var(--app-primary) 16%, transparent); outline: none; }
.settings-section .form-control, .settings-section .form-select { min-height: 2.9rem; border-color: #dce3ec; border-radius: .75rem; background-color: #f9fafc; font-size: .82rem; }
.settings-section textarea.form-control { min-height: 5.5rem; }
.settings-section .form-control:focus, .settings-section .form-select:focus { border-color: #1595ff; background-color: #fff; box-shadow: 0 0 0 .22rem rgba(21, 149, 255, .12); }
.settings-help { display: block; margin-top: .35rem; color: #98a2b3; font-size: .65rem; }
.settings-color-field { display: grid; grid-template-columns: 3rem minmax(0, 1fr); overflow: hidden; border: 1px solid #dce3ec; border-radius: .75rem; background: #f9fafc; }
.settings-color-field input[type='color'] { width: 3rem; height: 2.9rem; padding: .3rem; border: 0; background: transparent; cursor: pointer; }
.settings-color-field input:not([type='color']) { min-width: 0; border: 0; outline: 0; color: #344054; background: transparent; font-family: monospace; font-size: .82rem; }
.settings-brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.settings-image-card { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .8rem; border: 1px solid #e1e7ef; border-radius: .9rem; color: #344054; background: #fafbfd; text-align: left; }
.settings-image-card:hover { border-color: #b9d2f6; background: #f3f7ff; }
.settings-logo-preview, .settings-icon-preview { display: grid; width: 4.2rem; height: 3.6rem; overflow: hidden; place-items: center; border-radius: .65rem; background: #eef3fa; }
.settings-logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.settings-dark-logo-card .settings-logo-preview { background: #172033; }
.settings-default-check { display: inline-flex; align-items: center; gap: .4rem; margin-top: .45rem; color: #7d899a; font-size: .65rem; cursor: pointer; }
.settings-default-check input { accent-color: var(--app-primary); }
.settings-optional-color.is-default .settings-color-field { opacity: .55; }
.settings-icon-preview img { width: 3.2rem; height: 3.2rem; border-radius: .7rem; object-fit: cover; }
.settings-image-card strong, .settings-image-card small { display: block; }
.settings-image-card strong { margin-bottom: .18rem; font-size: .76rem; }
.settings-image-card small { color: #8a94a4; font-size: .62rem; line-height: 1.35; }
.settings-image-card > i { color: var(--app-primary); font-size: .85rem; }
.settings-actions { display: flex; justify-content: flex-end; gap: .65rem; padding: 1.25rem 1.75rem; }
[data-bs-theme='dark'] .settings-card { border-color: #303b4d; background: #1b2432; }
[data-bs-theme='dark'] .settings-card-header, [data-bs-theme='dark'] .settings-section { border-color: #303b4d; }
[data-bs-theme='dark'] .settings-section-title h2 { color: #e3e9f2; }
[data-bs-theme='dark'] .settings-section .form-control, [data-bs-theme='dark'] .settings-section .form-select, [data-bs-theme='dark'] .settings-color-field, [data-bs-theme='dark'] .settings-image-card { border-color: #3b4658; color: #e3e9f2; background-color: #202a39; }

[data-bs-theme='dark'] .theme-toggle-button { border-color: #344156; color: #d4dbea; background: #202a3a; }
[data-bs-theme='dark'] .nav-menu-button { border-color: #314766; background: #1e3049; }
[data-bs-theme='dark'] .app-topbar { border-bottom-color: var(--bs-border-color); background: var(--bs-body-bg); }
[data-bs-theme='dark'] .topbar-network-status { color: #62d2a3; }
[data-bs-theme='dark'] .topbar-network-status.offline { color: #f2ad57; }
[data-bs-theme='dark'] .app-menu-header { border-color: #2b3648; background: linear-gradient(145deg, #1d2b40, #182231); }
[data-bs-theme='dark'] .app-user-info h2, [data-bs-theme='dark'] .app-menu-nav > a, [data-bs-theme='dark'] .profile-card-header h1 { color: #edf2fa; }
[data-bs-theme='dark'] .app-menu-nav > a:hover { background: #1d2b40; }
[data-bs-theme='dark'] .app-menu-icon, [data-bs-theme='dark'] .content-page-icon, [data-bs-theme='dark'] .page-section-header-icon { background: #1d3557; }
[data-bs-theme='dark'] .app-menu-logout, [data-bs-theme='dark'] .profile-card-header, [data-bs-theme='dark'] .profile-fields { border-color: #303b4d; }
[data-bs-theme='dark'] .profile-card, [data-bs-theme='dark'] .content-page-card { border-color: #303b4d; background: #1b2432; }
[data-bs-theme='dark'] .profile-input { border-color: #3b4658; color: #aeb8c8; background: #202a39; }
[data-bs-theme='dark'] .profile-input input { color: #edf2f7; }
[data-bs-theme='dark'] .profile-input:focus-within { background: #202a39; }
[data-bs-theme='dark'] .test-mode-panel-notice { border-color: #304766; background: #1d2b40; }

@media (max-width: 575.98px) {
    .profile-page { padding-right: .85rem; padding-left: .85rem; }
    .profile-card-header, .profile-card form { padding-right: 1.2rem; padding-left: 1.2rem; }
    .profile-actions > * { flex: 1; }
    .profile-photo-modal .modal-dialog { align-items: flex-end; min-height: calc(100% - 1rem); margin: .5rem; }
    .profile-photo-modal .modal-content { border-radius: 1.25rem 1.25rem .8rem .8rem; }
    .profile-crop-modal .modal-dialog { min-height: calc(100% - 1rem); margin: .5rem; }
    .profile-crop-area { height: 46vh; }
    .settings-page { padding-right: .85rem; padding-left: .85rem; }
    .settings-card-header, .settings-section, .settings-actions { padding-right: 1.2rem; padding-left: 1.2rem; }
    .settings-brand-grid { grid-template-columns: 1fr; }
    .settings-actions > * { flex: 1; }
}
.text-app { color: var(--app-primary) !important; }
.badge-app { color: #fff; background: var(--app-primary); }
.btn-app { color: #fff; border-color: var(--app-primary); background: var(--app-primary); }
.btn-app:hover, .btn-app:focus { color: #fff; border-color: var(--app-primary-dark); background: var(--app-primary-dark); }
.btn-outline-app { color: var(--app-primary); border-color: var(--app-primary); }
.btn-outline-app:hover, .btn-outline-app:focus { color: #fff; border-color: var(--app-primary); background: var(--app-primary); }
.users-page { padding: 1.4rem 1rem 6rem; }
.module-page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.module-heading { display: flex; align-items: center; gap: .8rem; }
.module-heading-icon { display: grid; width: 2.85rem; height: 2.85rem; flex: 0 0 auto; place-items: center; border: 1px solid color-mix(in srgb, var(--app-primary) 16%, transparent); border-radius: .85rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, var(--bs-body-bg)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #fff 35%, transparent); font-size: 1.05rem; }
.module-page-header .module-eyebrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--app-primary); font-size: .59rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.module-page-header .module-eyebrow::before { width: .34rem; height: .34rem; border-radius: 50%; background: var(--app-primary); content: ''; opacity: .75; }
.module-page-header h1 { margin: .12rem 0 .12rem; color: color-mix(in srgb, var(--bs-heading-color) 88%, #64748b); font-size: 1.08rem; font-weight: 650; letter-spacing: -.015em; }
.module-page-header p { margin: .2rem 0 0; color: #8a94a4; font-size: .72rem; }
.module-primary-action { display: inline-flex; min-height: 2.65rem; align-items: center; gap: .45rem; padding: .55rem .9rem; border: 0; border-radius: .72rem; font-size: .74rem; font-weight: 700; box-shadow: 0 .4rem 1rem color-mix(in srgb, var(--app-primary) 20%, transparent); }
.module-primary-action:disabled { opacity: .55; box-shadow: none; }
.users-card { overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: 1.1rem; background: var(--bs-body-bg); box-shadow: 0 .65rem 1.8rem rgba(15, 23, 42, .055); }
.users-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--bs-border-color); color: #8993a3; font-size: .67rem; }
.users-toolbar > span { white-space: nowrap; }
.users-toolbar > span strong { color: var(--bs-heading-color); }
.users-search { display: flex; width: min(100%, 23rem); min-height: 2.6rem; align-items: center; gap: .55rem; padding: 0 .8rem; border: 1px solid #dfe5ed; border-radius: .72rem; color: #98a2b3; background: color-mix(in srgb, var(--bs-body-bg) 94%, #64748b); }
.users-search:focus-within { border-color: var(--app-primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--app-primary) 12%, transparent); }
.users-search input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--bs-body-color); background: transparent; font-size: .74rem; }
.users-table { width: 100%; border-collapse: collapse; }
.users-table th { padding: .7rem 1.15rem; color: #98a2b3; background: color-mix(in srgb, var(--bs-body-bg) 96%, #64748b); font-size: .61rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.users-table td { padding: .8rem 1.15rem; border-top: 1px solid var(--bs-border-color); vertical-align: middle; }
.users-table tbody tr { cursor: pointer; transition: background-color .18s ease; }
.users-table tbody tr:hover, .users-table tbody tr:focus { outline: none; background: color-mix(in srgb, var(--app-primary) 4%, var(--bs-body-bg)); }
.users-identity { display: flex; min-width: 12rem; align-items: center; gap: .7rem; }
.users-identity > span { display: grid; width: 2.45rem; height: 2.45rem; flex: 0 0 auto; overflow: hidden; place-items: center; border-radius: .72rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 11%, var(--bs-body-bg)); font-size: .82rem; font-weight: 800; }
.users-identity img { width: 100%; height: 100%; object-fit: cover; }
.users-identity strong, .users-identity small { display: block; }
.users-identity strong { color: var(--bs-heading-color); font-size: .76rem; font-weight: 700; }
.users-identity small { margin-top: .12rem; color: #8b95a5; font-size: .64rem; }
.users-mobile-role { display: none; margin-top: .2rem; color: var(--app-primary); font-size: .56rem; font-style: normal; font-weight: 700; }
.users-role, .users-status { display: inline-flex; align-items: center; border-radius: 999px; font-size: .62rem; font-weight: 700; white-space: nowrap; }
.users-role { padding: .34rem .55rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, var(--bs-body-bg)); }
.users-status { gap: .32rem; color: #667085; }
.users-status::before { width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; content: ''; }
.users-status.active { color: #16945e; }
.users-status.inactive { color: #98a2b3; }
.users-date { color: #7e8999; font-size: .66rem; white-space: nowrap; }
.users-actions { display: flex; justify-content: flex-end; gap: .35rem; }
.users-actions button { display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--bs-border-color); border-radius: .58rem; color: #778296; background: var(--bs-body-bg); font-size: .72rem; }
.users-actions button:hover { border-color: color-mix(in srgb, var(--app-primary) 30%, var(--bs-border-color)); color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 6%, var(--bs-body-bg)); }
.users-actions button:disabled { opacity: .45; }
.users-empty { display: grid; min-height: 13rem; place-items: center; align-content: center; gap: .35rem; color: #98a2b3; text-align: center; }
.users-empty i { color: var(--app-primary); font-size: 1.5rem; }
.users-empty strong { color: var(--bs-heading-color); font-size: .8rem; }
.users-empty span { font-size: .68rem; }
.users-pagination { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; padding: .8rem 1.15rem; border-top: 1px solid var(--bs-border-color); color: #8590a0; font-size: .66rem; }
.users-pagination a { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border: 1px solid var(--bs-border-color); border-radius: .55rem; color: var(--app-primary); text-decoration: none; }
.users-pagination a:hover { background: color-mix(in srgb, var(--app-primary) 7%, var(--bs-body-bg)); }
.users-pagination a.disabled { pointer-events: none; color: #b2bac6; opacity: .6; }
.users-pagination strong { color: var(--bs-heading-color); }
.user-modal .modal-content { border: 0; border-radius: 1.15rem; box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .2); }
.user-modal .modal-header, .user-modal .modal-body, .user-modal .modal-footer { padding-right: 1.4rem; padding-left: 1.4rem; }
.user-modal .modal-header { padding-top: 1.4rem; }
.user-modal .modal-header h2 { margin: 0 0 .18rem; color: var(--bs-heading-color); font-size: 1rem; font-weight: 750; }
.user-modal .modal-header p { margin: 0; color: #8b95a5; font-size: .68rem; }
.user-modal .form-label { color: #536073; font-size: .69rem; font-weight: 700; }
.user-modal .form-label small { color: #98a2b3; font-weight: 500; }
.user-modal .form-control, .user-modal .form-select { min-height: 2.8rem; border-color: #dce3ec; border-radius: .7rem; background-color: color-mix(in srgb, var(--bs-body-bg) 96%, #64748b); font-size: .76rem; }
.user-modal .form-control:focus, .user-modal .form-select:focus { border-color: var(--app-primary); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--app-primary) 12%, transparent); }
.user-modal .modal-footer { gap: .5rem; padding-bottom: 1.4rem; }
.user-details-modal .modal-content, .user-password-modal .modal-content { overflow: hidden; border: 0; border-radius: 1.15rem; box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .2); }
.user-details-modal .modal-header { align-items: center; gap: .8rem; padding: 1.35rem; }
.user-details-avatar { display: grid; width: 3.25rem; height: 3.25rem; flex: 0 0 auto; overflow: hidden; place-items: center; border-radius: .9rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 10%, var(--bs-body-bg)); font-size: 1.05rem; font-weight: 800; }
.user-details-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-details-kicker { display: block; margin-bottom: .12rem; color: var(--app-primary); font-size: .55rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.user-details-modal h2 { margin: 0; color: var(--bs-heading-color); font-size: 1rem; font-weight: 700; }
.user-details-modal .modal-header p { margin: .12rem 0 0; color: #8b95a5; font-size: .66rem; }
.user-details-modal .modal-body { padding-right: 1.35rem; padding-left: 1.35rem; }
.user-details-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin: 0 0 1.1rem; }
.user-details-grid > div { min-width: 0; padding: .7rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .72rem; background: color-mix(in srgb, var(--bs-body-bg) 96%, #64748b); }
.user-details-grid dt { margin-bottom: .22rem; color: #98a2b3; font-size: .58rem; font-weight: 650; text-transform: uppercase; }
.user-details-grid dd { overflow: hidden; margin: 0; color: var(--bs-heading-color); font-size: .69rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.user-details-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr)); border-top: 1px solid var(--bs-border-color); }
.user-details-actions button { display: flex; min-height: 4rem; align-items: center; justify-content: center; flex-direction: column; gap: .28rem; border: 0; border-right: 1px solid var(--bs-border-color); color: #657184; background: var(--bs-body-bg); font-size: .58rem; font-weight: 650; }
.user-details-actions button:last-child { border-right: 0; }
.user-details-actions button i { color: var(--app-primary); font-size: .9rem; }
.user-details-actions button:hover { background: color-mix(in srgb, var(--app-primary) 6%, var(--bs-body-bg)); }
.user-details-actions button.danger, .user-details-actions button.danger i { color: #dc3545; }
.user-details-actions button:disabled { cursor: not-allowed; opacity: .4; }
.user-password-modal .modal-header, .user-password-modal .modal-body, .user-password-modal .modal-footer { padding-right: 1.35rem; padding-left: 1.35rem; }
.user-password-modal .modal-header { padding-top: 1.35rem; }
.user-password-modal h2 { margin: 0; color: var(--bs-heading-color); font-size: 1rem; font-weight: 700; }
.user-password-modal .modal-header p { margin: .15rem 0 0; color: #8b95a5; font-size: .68rem; }
.user-password-modal .form-label { color: #536073; font-size: .69rem; font-weight: 700; }
.user-password-modal .form-control { min-height: 2.8rem; border-color: #dce3ec; border-radius: .7rem; font-size: .76rem; }
.user-password-modal .modal-body small { display: block; margin-top: .35rem; color: #98a2b3; font-size: .62rem; }
.user-password-modal .modal-footer { gap: .5rem; padding-bottom: 1.35rem; }

@media (min-width: 992px) { .users-page { padding: 1.75rem 2rem; } }
@media (max-width: 575.98px) {
    .module-page-header { align-items: center; }
    .module-page-header p { display: none; }
    .module-primary-action { min-height: 2.4rem; padding: .45rem .7rem; }
    .users-toolbar { align-items: stretch; flex-direction: column; }
    .users-toolbar > span { align-self: flex-end; }
    .users-table th:nth-child(2), .users-table td:nth-child(2), .users-table th:nth-child(4), .users-table td:nth-child(4) { display: none; }
    .users-card .table-responsive { overflow-x: clip; }
    .users-table { table-layout: fixed; }
    .users-table th:nth-child(1), .users-table td:nth-child(1) { width: 62%; }
    .users-table th:nth-child(3), .users-table td:nth-child(3) { width: 23%; }
    .users-table th:nth-child(5), .users-table td:nth-child(5) { width: 15%; }
    .users-table th, .users-table td { padding-right: .55rem; padding-left: .55rem; }
    .users-identity { min-width: 0; }
    .users-identity > div { min-width: 0; }
    .users-identity strong, .users-identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .users-mobile-role { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .users-actions { justify-content: center; }
    .user-modal .modal-dialog { align-items: flex-end; min-height: calc(100% - 1rem); margin: .5rem; }
    .user-modal .modal-content { border-radius: 1.15rem 1.15rem .75rem .75rem; }
    .user-modal.keyboard-active .modal-dialog { align-items: flex-start; margin-top: max(.35rem, env(safe-area-inset-top)); margin-bottom: .35rem; }
    .user-modal.keyboard-active .modal-content { max-height: calc(100dvh - .7rem); overflow-y: auto; overscroll-behavior: contain; }
    .user-details-modal .modal-dialog, .user-password-modal .modal-dialog { align-items: flex-end; min-height: calc(100% - 1rem); margin: .5rem; }
    .user-details-modal .modal-content, .user-password-modal .modal-content { border-radius: 1.15rem 1.15rem .75rem .75rem; }
}
.hero { background: radial-gradient(circle at 85% 25%, rgba(21, 149, 255, .20), transparent 27%), linear-gradient(135deg, #eff6ff, #fff); }
.status-card { border-color: rgba(15, 118, 110, .15) !important; }
.status-icon { width: 48px; height: 48px; border-radius: 50%; color: var(--app-primary); background: #dbeafe; font-size: 1.5rem; }
.section-heading { max-width: 620px; }
.feature-card { transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 1rem 2rem rgba(15, 23, 42, .08) !important; }
.feature-icon { width: 56px; height: 56px; border-radius: 16px; color: var(--app-primary); background: #dbeafe; font-size: 1.6rem; }
.mobile-nav { position: fixed; z-index: 1030; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: .5rem max(.75rem, env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left)); border-top: 1px solid #e1e8f1; background: var(--app-background, #f4f7fc); box-shadow: 0 -.25rem 1rem rgba(15, 23, 42, .05); }
.mobile-nav a { display: flex; flex-direction: column; align-items: center; gap: .1rem; min-width: 62px; color: #64748b; font-size: .72rem; text-decoration: none; }
.mobile-nav a i { font-size: 1.25rem; }
.mobile-nav a.active { color: var(--app-primary); }
[data-bs-theme='dark'] .mobile-nav { border-top-color: var(--bs-border-color); background: var(--bs-body-bg); }

@media (min-width: 992px) {
    body { padding-bottom: 0; }
    .mobile-nav { display: none; }
    .app-workspace { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); }
    .desktop-navigation { position: sticky; top: 61px; display: flex; height: calc(100vh - 61px); flex-direction: column; padding: 1rem .8rem; border-right: 1px solid var(--bs-border-color); background: var(--bs-body-bg); }
    .desktop-navigation nav { display: grid; gap: .25rem; }
    .desktop-navigation a { display: flex; min-height: 2.9rem; align-items: center; gap: .75rem; padding: .65rem .8rem; border-radius: .75rem; color: #718096; font-size: .78rem; font-weight: 650; text-decoration: none; }
    .desktop-navigation a:hover { color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 6%, transparent); }
    .desktop-navigation a.active { color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 10%, transparent); }
    .desktop-navigation a i { width: 1.35rem; font-size: 1rem; text-align: center; }
    .desktop-navigation-version { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: .75rem .8rem; border-top: 1px solid var(--bs-border-color); color: #8a94a4; font-size: .65rem; }
    .desktop-navigation-version span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .desktop-navigation-version small { margin-left: .5rem; }
    .dashboard-page { padding: 1.75rem 2rem; }
    .sync-status-pill { bottom: 1rem; }
}

@media (max-width: 767.98px) {
    .dashboard-date { display: none; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-welcome p { max-width: 22rem; }
    .dashboard-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-kpi { min-height: 0; grid-template-columns: 2.2rem minmax(0, 1fr); grid-template-rows: 2.2rem auto; align-items: center; column-gap: .6rem; row-gap: .55rem; padding: .8rem; }
    .dashboard-kpi-icon { width: 2.2rem; height: 2.2rem; border-radius: .68rem; font-size: .9rem; }
    .dashboard-kpi-value { font-size: 1.3rem; font-weight: 650; }
    .dashboard-kpi-copy small { font-size: .64rem; }
    .dashboard-kpi-copy p, .dashboard-kpi-copy em { font-size: .6rem; }
    .dashboard-kpi > .bi-arrow-up-right { display: none; }
    .dashboard-main-grid, .dashboard-secondary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
    .app-navbar-logo { max-width: 5.8rem; height: 2.35rem; }
    .app-topbar nav > div { gap: .35rem !important; flex: 0 0 auto; }
}
@media (max-width: 330px) {
    .topbar-network-status { width: 2rem; justify-content: center; padding: 0; }
    .topbar-network-status > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 420px) {
    .dashboard-page { padding: 1rem .85rem; }
    .dashboard-welcome { margin-bottom: 1rem; }
    .dashboard-kpis { gap: .6rem; }
    .dashboard-kpi { min-height: 0; grid-template-columns: 2rem minmax(0, 1fr); grid-template-rows: 2rem auto; column-gap: .5rem; padding: .72rem; }
    .dashboard-kpi-icon { width: 2rem; height: 2rem; border-radius: .6rem; font-size: .82rem; }
    .dashboard-kpi-value { font-size: 1.2rem; font-weight: 650; }
    .dashboard-kpi-copy small { font-size: .62rem; }
    .dashboard-kpi-copy p, .dashboard-kpi-copy em { font-size: .59rem; }
}

.auth-page { min-height: 100vh; padding: 0; background: #f4f5f5; font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
.auth-shell { position: relative; display: flex; min-height: 100vh; flex-direction: column; align-items: center; overflow: hidden; padding: 0 1rem 2rem; background: linear-gradient(to bottom, var(--app-primary) 0, var(--app-primary) 39%, #f4f5f5 39%, #f4f5f5 100%); }
.auth-header { display: grid; width: 100%; min-height: clamp(13.5rem, 32vh, 18rem); flex-shrink: 0; place-items: center; padding-bottom: 2rem; }
.auth-logo { display: grid; width: min(72vw, 15rem); min-height: 5.6rem; place-items: center; padding: .65rem 1.15rem; border: 1px solid rgba(255, 255, 255, .75); border-radius: 1.15rem; background: rgba(255, 255, 255, .96); box-shadow: 0 .8rem 2rem rgba(2, 38, 104, .18); animation: authLogoEnter .45s ease-out both; }
.auth-logo img { display: block; width: 100%; height: 4.2rem; object-fit: contain; }
.login-card { z-index: 1; width: min(100%, 29rem); margin-top: -3.2rem; padding: clamp(1.5rem, 5vw, 2rem); border: 1px solid rgba(15, 23, 42, .06); border-radius: 1.45rem; background: #fff; box-shadow: 0 .9rem 2rem rgba(15, 23, 42, .18); animation: loginCardEnter .48s cubic-bezier(.22, 1, .36, 1) .08s both; }
.login-heading { margin-bottom: 1.5rem; }
.login-heading h1 { margin-bottom: .4rem; color: #18201e; font-size: clamp(1.5rem, 5vw, 1.75rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.login-heading p { margin: 0; color: #6f7775; font-size: .93rem; font-weight: 400; line-height: 1.55; }
.login-field { margin-bottom: 1.15rem; }
.login-field label { margin-bottom: .5rem; color: #303936; font-size: .85rem; font-weight: 600; }
.login-input { display: flex; align-items: center; min-height: 3.55rem; overflow: hidden; border: 1px solid #dce1e6; border-radius: .75rem; color: #98a2b0; background: #f8f9fa; transition: border-color .2s, box-shadow .2s, background .2s; }
.login-input:focus-within { border-color: var(--app-primary); background: #fff; box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--app-primary) 14%, transparent); }
.login-input > i { margin-left: 1.1rem; font-size: 1.1rem; }
.login-input input { width: 100%; min-width: 0; padding: .9rem 1rem; border: 0; outline: 0; color: #18201e; background: transparent; font-family: inherit; font-size: .94rem; font-weight: 500; }
.login-input input::placeholder { color: #94a3b8; }
.login-input .password-toggle { align-self: stretch; padding: 0 1.1rem; border: 0; color: #64748b; background: transparent; }
.login-input .password-toggle:hover { color: var(--app-primary); }
.login-submit { display: flex; width: 100%; min-height: 3.45rem; align-items: center; justify-content: center; margin-top: 1.35rem; border: 0; border-radius: .7rem; color: #fff; background: var(--app-primary); box-shadow: 0 .5rem 1rem color-mix(in srgb, var(--app-primary) 22%, transparent); font-family: inherit; font-size: .95rem; font-weight: 700; letter-spacing: .01em; transition: transform .2s, background .2s, box-shadow .2s; }
.login-submit:hover { transform: translateY(-1px); background: var(--app-primary-dark); box-shadow: 0 .7rem 1.25rem color-mix(in srgb, var(--app-primary) 28%, transparent); }
.login-submit:active { transform: translateY(0); }
.login-submit.is-loading { cursor: wait; opacity: .88; transform: none; box-shadow: none; }
.login-submit:disabled { pointer-events: none; }
.login-spinner { width: 1.05rem; height: 1.05rem; margin-right: .6rem; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: loginSpinner .7s linear infinite; }
.login-recovery-link { margin: 1.35rem 0 -.15rem; color: #7a8380; font-size: .78rem; text-align: center; }
.login-recovery-link a { margin-left: .2rem; color: var(--app-primary); font-weight: 700; text-decoration: none; }
.login-recovery-link a:hover { color: var(--app-primary-dark); text-decoration: underline; }
.login-footer { margin: 1.75rem 0 0; color: #6b7076; font-size: .75rem; text-align: center; }
.login-footer span { margin: 0 .25rem; }
.install-app-button { position: fixed; z-index: 1050; right: .85rem; bottom: calc(.85rem + env(safe-area-inset-bottom)); display: flex; min-height: 2.3rem; align-items: center; gap: .4rem; padding: .42rem .72rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; color: rgba(255, 255, 255, .94); background: color-mix(in srgb, var(--app-primary) 72%, transparent); box-shadow: 0 .35rem .9rem color-mix(in srgb, var(--app-primary-dark) 20%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: inherit; font-size: .7rem; font-weight: 600; transition: opacity .2s, transform .2s, background .2s; }
.install-app-button:hover { background: color-mix(in srgb, var(--app-primary) 86%, transparent); transform: translateY(-1px); }
.install-app-button:active { transform: translateY(0); }
.install-app-button i { font-size: .75rem; opacity: .78; }
.auth-page.keyboard-open .install-app-button { display: none !important; }
@media (display-mode: standalone) { .install-app-button { display: none !important; } }
.recovery-back { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.35rem; color: #6f7775; font-size: .8rem; font-weight: 600; text-decoration: none; }
.recovery-back:hover { color: var(--app-primary); }
.recovery-heading { margin-bottom: 1.5rem; }
.login-card .alert { border: 0; border-radius: .75rem; font-size: .82rem; line-height: 1.45; }
.test-mode-notice { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 1.2rem; padding: .75rem .85rem; border: 1px solid rgba(7, 89, 217, .16); border-radius: .75rem; color: #365477; background: #f0f6ff; font-size: .72rem; line-height: 1.4; }
.test-mode-notice > i { margin-top: .05rem; color: var(--app-primary); font-size: .95rem; }
.test-mode-notice strong, .test-mode-notice span { display: block; }
.test-mode-notice strong { margin-bottom: .1rem; color: var(--app-primary); font-size: .75rem; }

[data-bs-theme='dark'] .auth-page { color: #e6ebf3; background: #101722; }
[data-bs-theme='dark'] .auth-shell { background: linear-gradient(to bottom, var(--app-primary) 0, var(--app-primary) 39%, #101722 39%, #101722 100%); }
[data-bs-theme='dark'] .auth-logo { border-color: rgba(255, 255, 255, .12); background: #182333; box-shadow: 0 .9rem 2.25rem rgba(0, 0, 0, .3); }
[data-bs-theme='dark'] .login-card { border-color: #2b3748; background: #182230; box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .34); }
[data-bs-theme='dark'] .login-heading h1 { color: #f3f6fb; }
[data-bs-theme='dark'] .login-heading p, [data-bs-theme='dark'] .login-recovery-link, [data-bs-theme='dark'] .login-footer, [data-bs-theme='dark'] .recovery-back { color: #9da8b8; }
[data-bs-theme='dark'] .login-field label { color: #d9e0e9; }
[data-bs-theme='dark'] .login-input { border-color: #354255; color: #96a4b7; background: #202b3a; }
[data-bs-theme='dark'] .login-input:focus-within { border-color: var(--app-primary); background: #222e3e; box-shadow: 0 0 0 .25rem color-mix(in srgb, var(--app-primary) 17%, transparent); }
[data-bs-theme='dark'] .login-input input { color: #f1f5f9; }
[data-bs-theme='dark'] .login-input input::placeholder { color: #7f8da1; }
[data-bs-theme='dark'] .login-input .password-toggle { color: #a9b5c5; }
[data-bs-theme='dark'] .test-mode-notice { border-color: color-mix(in srgb, var(--app-primary) 30%, #29374a); color: #b9c5d4; background: color-mix(in srgb, var(--app-primary) 10%, #182230); }
[data-bs-theme='dark'] .login-card .alert-danger { color: #fecaca; background: #3a2027; }
[data-bs-theme='dark'] .login-card .alert-success { color: #bbf7d0; background: #173328; }

@keyframes loginCardEnter {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes authLogoEnter {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes loginSpinner {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-logo, .login-card, .login-spinner, .app-launch-brand, .app-launch-status i { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    .login-submit { transition: none; }
}

/* Reorganiza o login quando o teclado virtual reduz a área visível. */
.auth-page.keyboard-open .auth-shell { min-height: var(--visual-viewport-height); height: var(--visual-viewport-height); justify-content: flex-start; overflow-y: auto; overscroll-behavior: contain; }
.auth-page.keyboard-open .auth-header { min-height: 5.25rem; padding: .65rem 0 1rem; transition: min-height .2s ease; }
.auth-page.keyboard-open .auth-logo { width: 9rem; min-height: 3.5rem; padding: .3rem .65rem; border-radius: .75rem; }
.auth-page.keyboard-open .auth-logo img { height: 2.8rem; }
.auth-page.keyboard-open .login-card { margin-top: -.65rem; box-shadow: 0 .5rem 1.25rem rgba(15, 23, 42, .15); }
.auth-page.keyboard-open .login-footer { display: none; }

@media (max-width: 575.98px) {
    .auth-shell { background: linear-gradient(to bottom, var(--app-primary) 0, var(--app-primary) 36%, #f4f5f5 36%, #f4f5f5 100%); }
    [data-bs-theme='dark'] .auth-shell { background: linear-gradient(to bottom, var(--app-primary) 0, var(--app-primary) 36%, #101722 36%, #101722 100%); }
    .auth-header { min-height: 14rem; }
    .login-card { margin-top: -2.7rem; padding: 1.6rem 1.3rem; border-radius: 1.3rem; }
    .install-app-button { right: 50%; bottom: calc(.7rem + env(safe-area-inset-bottom)); transform: translateX(50%); }
    .install-app-button:hover { transform: translateX(50%) translateY(-1px); }
.install-app-button:active { transform: translateX(50%); }
}

/* Navegação organizada e módulo de cargos/setores. */
.desktop-navigation-group { margin: .8rem .8rem .2rem; color: #929daf; font-size: .54rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.app-menu-group { display: block; margin: .75rem .55rem .18rem; color: #929daf; font-size: .52rem; font-weight: 700; letter-spacing: .095em; text-transform: uppercase; }
.app-menu-group:first-child { margin-top: .15rem; }
.app-menu-nav > a.active { color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 8%, transparent); }
.app-menu-nav > a.active::before { position: absolute; top: 25%; bottom: 25%; left: 0; width: 2px; border-radius: 999px; background: var(--app-primary); content: ''; }
.app-menu-nav > a.active strong { font-weight: 650; }
.sectors-page { padding: 1.4rem 1rem 6rem; }
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .85rem; }
.sector-card { overflow: hidden; padding: 1rem 1rem 0; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg); box-shadow: 0 .55rem 1.5rem rgba(15, 23, 42, .05); }
.sector-card-heading { display: grid; grid-template-columns: 2.45rem minmax(0, 1fr) auto; align-items: center; gap: .7rem; }
.sector-card-icon { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: .7rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, var(--bs-body-bg)); }
.sector-card-heading > div { min-width: 0; }
.sector-card h2 { overflow: hidden; margin: 0 0 .18rem; color: var(--bs-heading-color); font-size: .82rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.sector-card-heading p { overflow: hidden; margin: 0; color: #8a94a4; font-size: .62rem; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.sector-metrics { display: flex; gap: 1rem; margin: .8rem 0; color: #8b95a5; font-size: .61rem; }
.sector-metrics strong { color: var(--bs-heading-color); font-size: .72rem; }
.sector-actions { display: flex; margin: 0 -1rem; border-top: 1px solid var(--bs-border-color); }
.sector-actions button { display: flex; min-height: 2.7rem; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .7rem; border: 0; border-right: 1px solid var(--bs-border-color); color: #6f7b8e; background: transparent; font-size: .62rem; font-weight: 650; }
.sector-actions button:first-child { flex: 1; }
.sector-actions button:last-child { border-right: 0; }
.sector-actions button:hover { color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 5%, transparent); }
.sector-actions button:disabled { opacity: .4; }
.sector-actions .sector-action-permissions { color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 7%, var(--bs-body-bg)); }
.sector-actions .sector-action-permissions:hover { background: color-mix(in srgb, var(--app-primary) 14%, var(--bs-body-bg)); }
.sector-admin-access { display: flex; min-height: 2.7rem; flex: 1; align-items: center; justify-content: center; gap: .35rem; padding: .5rem .7rem; border-right: 1px solid var(--bs-border-color); color: #15965e; background: color-mix(in srgb, #16a66a 8%, var(--bs-body-bg)); font-size: .62rem; font-weight: 700; }
.sector-actions .sector-action-edit { color: #d97706; background: color-mix(in srgb, #f59e0b 8%, var(--bs-body-bg)); }
.sector-actions .sector-action-edit:hover { color: #b45309; background: color-mix(in srgb, #f59e0b 16%, var(--bs-body-bg)); }
.sector-actions .sector-action-status.will-disable { color: #dc3545; background: color-mix(in srgb, #dc3545 7%, var(--bs-body-bg)); }
.sector-actions .sector-action-status.will-disable:hover { background: color-mix(in srgb, #dc3545 14%, var(--bs-body-bg)); }
.sector-actions .sector-action-status.will-enable { color: #15965e; background: color-mix(in srgb, #16a66a 8%, var(--bs-body-bg)); }
.sector-actions .sector-action-status.will-enable:hover { background: color-mix(in srgb, #16a66a 15%, var(--bs-body-bg)); }
.sector-actions .sector-action-delete { color: #dc3545; background: color-mix(in srgb, #dc3545 7%, var(--bs-body-bg)); }
.sector-actions .sector-action-delete:hover { color: #b42331; background: color-mix(in srgb, #dc3545 15%, var(--bs-body-bg)); }
.sector-modal .modal-content, .permissions-modal .modal-content { border: 0; border-radius: 1.15rem; box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .2); }
.sector-modal .modal-header, .sector-modal .modal-body, .sector-modal .modal-footer, .permissions-modal .modal-header, .permissions-modal .modal-body, .permissions-modal .modal-footer { padding-right: 1.35rem; padding-left: 1.35rem; }
.sector-modal h2, .permissions-modal h2 { margin: 0; color: var(--bs-heading-color); font-size: 1rem; font-weight: 700; }
.sector-modal .modal-header p, .permissions-modal .modal-header p { margin: .15rem 0 0; color: #8b95a5; font-size: .67rem; }
.sector-modal .form-label { color: #536073; font-size: .69rem; font-weight: 700; }
.sector-modal .form-control { border-color: #dce3ec; border-radius: .7rem; background: color-mix(in srgb, var(--bs-body-bg) 96%, #64748b); font-size: .76rem; }
.sector-modal input.form-control { min-height: 2.8rem; }
.sector-modal .modal-footer, .permissions-modal .modal-footer { gap: .5rem; padding-bottom: 1.35rem; }
.permissions-modal .modal-dialog { max-width: 52rem; }
.permissions-modal .modal-content { max-height: calc(100vh - 2rem); }
.permissions-modal .modal-body { overflow-y: auto; }
.permissions-tools { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; color: #8a94a4; font-size: .65rem; }
.permissions-tools button { border: 0; color: var(--app-primary); background: transparent; font-size: .63rem; font-weight: 700; }
.permissions-resources { display: grid; gap: .65rem; }
.permissions-stage + .permissions-stage { margin-top: 1rem; }
.permissions-stage > header { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; margin-bottom: .65rem; }
.permissions-stage > header > span { display: grid; width: 1.75rem; height: 1.75rem; place-items: center; border-radius: .5rem; color: #fff; background: var(--app-primary); font-size: .65rem; font-weight: 800; }
.permissions-stage > header strong, .permissions-stage > header small { display: block; }
.permissions-stage > header strong { color: var(--bs-heading-color); font-size: .72rem; }
.permissions-stage > header small { margin-top: .08rem; color: #98a2b3; font-size: .58rem; }
.permissions-stage > header button { padding: .25rem; border: 0; color: var(--app-primary); background: transparent; font-size: .58rem; font-weight: 700; }
.global-permission-actions { display: flex; flex-wrap: wrap; gap: .4rem; padding: .75rem; border: 1px solid var(--bs-border-color); border-radius: .8rem; background: color-mix(in srgb, var(--bs-body-bg) 97%, #64748b); }
.global-permission-actions label { cursor: pointer; }
.global-permission-actions input { position: absolute; opacity: 0; }
.global-permission-actions span { display: inline-flex; min-height: 2rem; align-items: center; gap: .3rem; padding: .35rem .58rem; border: 1px solid var(--bs-border-color); border-radius: .55rem; color: #748094; background: var(--bs-body-bg); font-size: .6rem; font-weight: 650; }
.global-permission-actions span i { font-size: .72rem; }
.global-permission-actions input:checked + span { border-color: color-mix(in srgb, var(--app-primary) 35%, transparent); color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, var(--bs-body-bg)); }
.global-permission-actions .global-action-inserir input:checked + span { border-color: #71c69c; color: #087443; background: #eaf9f1; }
.global-permission-actions .global-action-editar input:checked + span { border-color: #8eb8f5; color: #1763c6; background: #edf5ff; }
.global-permission-actions .global-action-excluir input:checked + span { border-color: #f0a3aa; color: #c52e3d; background: #fff0f2; }
.global-permission-actions .global-action-alterar_status input:checked + span { border-color: #a995e8; color: #6744bd; background: #f4f0ff; }
.global-permission-actions .global-action-redefinir_senha input:checked + span { border-color: #dfaa68; color: #a45b0a; background: #fff6e9; }
.global-permission-actions .global-action-baixar input:checked + span { border-color: #70cbd0; color: #087b81; background: #eafafb; }
.global-permission-actions .global-action-relatorio input:checked + span { border-color: #d291c4; color: #9b357f; background: #fff0fa; }
.global-permission-actions .global-action-permissao input:checked + span { border-color: #8299dc; color: #3e58a8; background: #f0f3ff; }
.permission-resource { overflow: hidden; border: 1px solid var(--bs-border-color); border-radius: .8rem; }
.permission-resource > header { display: flex; align-items: center; gap: .65rem; padding: .65rem .75rem; background: color-mix(in srgb, var(--bs-body-bg) 96%, #64748b); }
.permission-resource > header > span { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: .55rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 10%, transparent); }
.permission-resource header div { min-width: 0; flex: 1; }
.permission-resource header strong, .permission-resource header small { display: block; }
.permission-resource header strong { color: var(--bs-heading-color); font-size: .71rem; }
.permission-resource header small { color: #98a2b3; font-size: .57rem; }
.permission-page-switch input { position: absolute; opacity: 0; }
.permission-page-switch span { display: block; width: 2rem; height: 1.1rem; padding: .15rem; border-radius: 999px; background: #cbd2dc; transition: background .2s; }
.permission-page-switch span::after { display: block; width: .8rem; height: .8rem; border-radius: 50%; background: #fff; content: ''; transition: transform .2s; }
.permission-page-switch input:checked + span { background: var(--app-primary); }
.permission-page-switch input:checked + span::after { transform: translateX(.9rem); }
.permission-actions { display: flex; flex-wrap: wrap; gap: .35rem; padding: .65rem .75rem; }
.permission-actions label { cursor: pointer; }
.permission-actions input { position: absolute; opacity: 0; }
.permission-actions span { display: inline-flex; min-height: 1.75rem; align-items: center; padding: .3rem .52rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; color: #7c8798; font-size: .57rem; }
.permission-actions input:checked + span { border-color: color-mix(in srgb, var(--app-primary) 35%, transparent); color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 8%, transparent); }
.permissions-loading, .permissions-error { display: flex; min-height: 8rem; align-items: center; justify-content: center; gap: .5rem; color: #8b95a5; font-size: .7rem; }
.permissions-error { color: #dc3545; }
.user-permission-list { display: grid; gap: .45rem; }
.user-permission-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.5rem, 11rem); align-items: center; gap: .7rem; padding: .55rem .65rem; border: 1px solid var(--bs-border-color); border-radius: .7rem; background: color-mix(in srgb, var(--bs-body-bg) 97%, #64748b); }
.user-permission-item > span { display: flex; min-width: 0; align-items: center; gap: .55rem; color: var(--app-primary); }
.user-permission-item > span > i { display: grid; width: 1.8rem; height: 1.8rem; flex: 0 0 auto; place-items: center; border-radius: .5rem; background: color-mix(in srgb, var(--app-primary) 9%, transparent); font-size: .75rem; }
.user-permission-item strong, .user-permission-item small { display: block; }
.user-permission-item strong { color: var(--bs-heading-color); font-size: .66rem; }
.user-permission-item small { margin-top: .08rem; color: #98a2b3; font-size: .54rem; }
.user-permission-item select { min-height: 2rem; padding: .3rem 1.8rem .3rem .5rem; border: 1px solid var(--bs-border-color); border-radius: .5rem; color: #657184; background-color: var(--bs-body-bg); font-size: .59rem; }
.user-permissions-notice { margin-bottom: .8rem; padding: .7rem .8rem; border: 1px solid #a8d5b8; border-radius: .7rem; color: #147446; background: #effaf3; font-size: .65rem; }
@media (max-width: 575.98px) {
    .user-permission-item { grid-template-columns: 1fr; gap: .4rem; }
    .user-permission-item select { width: 100%; }
}

@media (min-width: 992px) { .sectors-page { padding: 1.75rem 2rem; } }
@media (max-width: 575.98px) {
    .sectors-grid { grid-template-columns: 1fr; }
    .sector-modal .modal-dialog, .permissions-modal .modal-dialog { align-items: flex-end; min-height: calc(100% - 1rem); margin: .5rem; }
    .sector-modal .modal-content, .permissions-modal .modal-content { border-radius: 1.15rem 1.15rem .75rem .75rem; }
    .permissions-modal .modal-content { max-height: calc(100dvh - 1rem); }
}

.access-page { max-width: 68rem; padding-top: 1rem; padding-bottom: 6rem; }
.access-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1rem; }
.access-summary > div { display: flex; align-items: center; gap: .7rem; padding: .85rem; border: 1px solid var(--bs-border-color); border-radius: .9rem; background: var(--bs-body-bg); }
.access-summary-icon { display: grid; width: 2.35rem; height: 2.35rem; flex: 0 0 auto; place-items: center; border-radius: .7rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 10%, transparent); }
.access-summary small, .access-summary strong { display: block; }
.access-summary small { color: #8a95a6; font-size: .59rem; }
.access-summary strong { margin-top: .08rem; color: var(--bs-heading-color); font-size: .78rem; }
.access-section { margin-top: .8rem; padding: 1rem; border: 1px solid var(--bs-border-color); border-radius: 1rem; background: var(--bs-body-bg); }
.access-section > header { display: flex; align-items: center; gap: .65rem; margin-bottom: .85rem; }
.access-section > header > span { display: grid; width: 1.8rem; height: 1.8rem; place-items: center; border-radius: .52rem; color: #fff; background: var(--app-primary); font-size: .65rem; font-weight: 800; }
.access-section > header strong, .access-section > header small { display: block; }
.access-section > header strong { color: var(--bs-heading-color); font-size: .76rem; }
.access-section > header small { color: #929dae; font-size: .59rem; }
.access-permission-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.access-permission-item { display: grid; grid-template-columns: 1.9rem minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: .65rem; border: 1px solid var(--bs-border-color); border-radius: .72rem; color: #768295; background: color-mix(in srgb, var(--bs-body-bg) 97%, #64748b); font-size: .65rem; }
.access-permission-item > i { display: grid; width: 1.9rem; height: 1.9rem; place-items: center; border-radius: .52rem; background: color-mix(in srgb, #64748b 9%, transparent); }
.access-permission-item em, .access-page-item em { display: inline-flex; align-items: center; gap: .28rem; font-size: .56rem; font-style: normal; font-weight: 700; }
.access-permission-item.allowed { border-color: color-mix(in srgb, #16a66a 28%, var(--bs-border-color)); color: #138353; }
.access-permission-item.allowed > i { background: color-mix(in srgb, #16a66a 10%, transparent); }
.access-pages-list { display: grid; gap: .5rem; }
.access-page-item { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .65rem; padding: .65rem .75rem; border: 1px solid var(--bs-border-color); border-radius: .75rem; }
.access-page-item > span { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: .55rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, transparent); }
.access-page-item strong, .access-page-item small { display: block; }
.access-page-item strong { color: var(--bs-heading-color); font-size: .68rem; }
.access-page-item small { color: #98a2b3; font-size: .55rem; }
.access-page-item.allowed em { color: #138353; }
.access-page-item.blocked { opacity: .62; }
@media (min-width: 992px) { .access-page { padding: 1.75rem 2rem; } }
@media (max-width: 575.98px) {
    .access-summary, .access-permission-grid { grid-template-columns: 1fr; }
    .access-page-item { grid-template-columns: 2rem minmax(0, 1fr); }
    .access-page-item em { grid-column: 2; }
}
.activities-page { max-width: 72rem; padding-top: 1rem; padding-bottom: 6rem; }
.activities-list { display: grid; }
.activity-filters { display: grid; grid-template-columns: minmax(12rem, 1.35fr) minmax(18rem, 1.6fr) minmax(11rem, 1fr) minmax(9rem, .7fr); gap: .7rem; padding: .9rem 1rem; border-bottom: 1px solid var(--bs-border-color); background: color-mix(in srgb, var(--bs-body-bg) 97%, #64748b); }
.activity-filters label { display: block; margin-bottom: .3rem; color: #6f7b8d; font-size: .56rem; font-weight: 750; }
.activity-filter-dates { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.activity-filter-dates input, .activity-filter-field input, .activity-filter-field select { width: 100%; min-height: 2.55rem; padding: .45rem .65rem; border: 1px solid var(--bs-border-color); border-radius: .65rem; color: var(--bs-body-color); background: var(--bs-body-bg); font-size: .65rem; }
.date-filter-shortcuts { grid-column: 1 / -1; display: flex; gap: .3rem; }
.date-filter-shortcuts button { padding: .22rem .48rem; border: 1px solid color-mix(in srgb, var(--app-primary) 20%, var(--bs-border-color)); border-radius: .45rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 5%, var(--bs-body-bg)); font-size: .52rem; font-weight: 700; }
.date-filter-shortcuts button:hover { background: color-mix(in srgb, var(--app-primary) 11%, var(--bs-body-bg)); }
.activity-filter-footer { grid-column: 1 / -1; display: flex; align-items: center; gap: .45rem; }
.activity-filter-footer button, .activity-filter-footer a { display: inline-flex; min-height: 2rem; align-items: center; gap: .3rem; padding: .35rem .6rem; border-radius: .5rem; font-size: .57rem; font-weight: 700; text-decoration: none; }
.activity-filter-footer button { border: 0; color: #fff; background: var(--app-primary); }
.activity-filter-footer a { border: 1px solid var(--bs-border-color); color: #748094; background: var(--bs-body-bg); }
.activity-filter-footer > span { margin-left: auto; color: #8a95a5; font-size: .58rem; }
.activity-item { display: grid; grid-template-columns: 2.35rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .8rem 1rem; border-bottom: 1px solid var(--bs-border-color); cursor: pointer; transition: background .18s; }
.activity-item:hover, .activity-item:focus-visible { outline: 0; background: color-mix(in srgb, var(--app-primary) 4%, var(--bs-body-bg)); }
.activity-item:last-child { border-bottom: 0; }
.activity-icon { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: .68rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 9%, transparent); }
.activity-icon.activity-exclusao { color: #c83443; background: color-mix(in srgb, #dc3545 9%, transparent); }
.activity-icon.activity-login { color: #138353; background: color-mix(in srgb, #16a66a 10%, transparent); }
.activity-main { min-width: 0; }
.activity-main > div { display: flex; align-items: center; gap: .45rem; }
.activity-main strong { overflow: hidden; color: var(--bs-heading-color); font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.activity-main em { padding: .15rem .35rem; border-radius: .3rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 8%, transparent); font-size: .48rem; font-style: normal; font-weight: 800; }
.activity-main p, .activity-main small { margin: .12rem 0 0; color: #8792a4; font-size: .57rem; }
.activity-item time { color: #738095; font-size: .58rem; text-align: right; }
.activity-item time span { display: block; margin-top: .08rem; }
.activity-details-modal .modal-content { border: 0; border-radius: 1rem; box-shadow: 0 1.5rem 4rem rgba(15, 23, 42, .22); }
.activity-details-modal .modal-header, .activity-details-modal .modal-body, .activity-details-modal .modal-footer { padding-right: 1.25rem; padding-left: 1.25rem; }
.activity-details-icon { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border-radius: .72rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 10%, transparent); }
.activity-details-modal h2 { margin: 0; color: var(--bs-heading-color); font-size: .95rem; font-weight: 750; }
.activity-details-modal .modal-header p { margin: .12rem 0 0; color: #8b96a7; font-size: .6rem; }
.activity-details-summary { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .7rem .8rem; border-radius: .7rem; background: color-mix(in srgb, var(--app-primary) 6%, var(--bs-body-bg)); }
.activity-details-summary strong { color: var(--bs-heading-color); font-size: .7rem; }
.activity-details-summary span { padding: .18rem .38rem; border-radius: .35rem; color: var(--app-primary); background: color-mix(in srgb, var(--app-primary) 10%, transparent); font-size: .5rem; font-weight: 800; }
.activity-details-grid, .activity-extra-section dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin: .7rem 0 0; }
.activity-details-grid > div, .activity-extra-section dl > div { padding: .6rem; border: 1px solid var(--bs-border-color); border-radius: .65rem; }
.activity-details-grid dt, .activity-extra-section dt { color: #929cad; font-size: .51rem; text-transform: uppercase; }
.activity-details-grid dd, .activity-extra-section dd { overflow-wrap: anywhere; margin: .15rem 0 0; color: var(--bs-heading-color); font-size: .64rem; font-weight: 650; }
.activity-extra-section, .activity-device { margin-top: .85rem; }
.activity-extra-section h3, .activity-device h3 { margin: 0 0 .45rem; color: var(--bs-heading-color); font-size: .65rem; }
.activity-device p { overflow-wrap: anywhere; margin: 0; padding: .6rem; border-radius: .65rem; color: #778396; background: color-mix(in srgb, var(--bs-body-bg) 95%, #64748b); font-size: .55rem; }
@media (min-width: 992px) { .activities-page { padding: 1.75rem 2rem; } }
@media (max-width: 575.98px) {
    .activity-filters { grid-template-columns: 1fr; }
    .activity-filter-footer { grid-column: 1; }
    .activity-item { grid-template-columns: 2.1rem minmax(0, 1fr); padding: .75rem; }
    .activity-icon { width: 2.1rem; height: 2.1rem; }
    .activity-item time { grid-column: 2; text-align: left; }
    .activity-item time span { display: inline; margin-left: .25rem; }
    .activity-details-grid, .activity-extra-section dl { grid-template-columns: 1fr; }
}
@media (min-width: 576px) and (max-width: 991.98px) { .activity-filters { grid-template-columns: repeat(2, 1fr); } }
.clients-page { max-width: 72rem; padding-top: 1rem; padding-bottom: 6rem; }
.clients-list { display: grid; }
.client-list-item { display: grid; grid-template-columns: 2.5rem minmax(0,1fr) auto 2.25rem; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--bs-border-color); cursor: pointer; transition: background .18s; }
.client-list-item:hover, .client-list-item:focus-visible { outline: 0; background: color-mix(in srgb,var(--app-primary) 4%,var(--bs-body-bg)); }
.client-avatar { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: .72rem; color: var(--app-primary); background: color-mix(in srgb,var(--app-primary) 10%,transparent); font-size: .75rem; font-weight: 800; }
.client-list-main { min-width: 0; }
.client-list-main strong,.client-list-main small,.client-list-main em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.client-list-main strong { color: var(--bs-heading-color); font-size: .72rem; }
.client-list-main small { color: #8792a4; font-size: .59rem; }
.client-list-main em { margin-top: .12rem; color: var(--app-primary); font-size: .52rem; font-style: normal; }
.client-edit-shortcut { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; border: 1px solid var(--bs-border-color); border-radius: .62rem; color: var(--app-primary); background: var(--bs-body-bg); }
.client-modal .modal-content { max-height: calc(100dvh - 2rem); overflow: hidden; border: 0; border-radius: 1rem; box-shadow: 0 1.5rem 4rem rgba(15,23,42,.22); }
.client-modal .modal-body { overflow-y: auto; }
.client-modal .modal-header,.client-modal .modal-body,.client-modal .modal-footer { padding-right: 1.25rem; padding-left: 1.25rem; }
.client-modal h2 { margin: 0; color: var(--bs-heading-color); font-size: 1rem; font-weight: 750; }
.client-modal .modal-header p { margin: .12rem 0 0; color: #8b96a7; font-size: .6rem; }
.client-form-section { padding: .85rem 0; border-top: 1px solid var(--bs-border-color); }
.client-form-section:first-child { padding-top: 0; border-top: 0; }
.client-form-section h3 { margin: 0 0 .65rem; color: var(--app-primary); font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.client-modal .form-label { color: #5f6b7d; font-size: .58rem; font-weight: 700; }
.client-modal .form-control,.client-modal .form-select { min-height: 2.6rem; border-color: var(--bs-border-color); border-radius: .65rem; font-size: .66rem; }
.client-modal .form-control.is-cep-loading { padding-right: 2.25rem; background-image: radial-gradient(circle at center, transparent 45%, var(--app-primary) 48%, var(--app-primary) 60%, transparent 63%); background-repeat: no-repeat; background-position: right .75rem center; background-size: 1rem 1rem; animation: cep-loading-pulse .8s ease-in-out infinite alternate; }
@keyframes cep-loading-pulse { to { background-size: .7rem .7rem; } }
.client-details-notes { margin-top: .7rem; padding: .7rem; border-radius: .7rem; background: color-mix(in srgb,var(--bs-body-bg) 95%,#64748b); }
.client-details-notes strong { color: var(--bs-heading-color); font-size: .58rem; }
.client-details-notes p { margin: .2rem 0 0; color: #7d899a; font-size: .62rem; white-space: pre-wrap; }
@media (min-width:992px){.clients-page{padding:1.75rem 2rem;}}
@media(max-width:575.98px){.client-list-item{grid-template-columns:2.3rem minmax(0,1fr) auto;padding:.7rem}.client-list-item>.users-status{grid-column:2}.client-edit-shortcut{grid-row:1/3;grid-column:3}.client-modal .modal-dialog{align-items:flex-end;min-height:calc(100% - 1rem);margin:.5rem}.client-modal .modal-content{max-height:calc(100dvh - 1rem);border-radius:1rem 1rem .7rem .7rem}}

/* Superfície configurável das áreas principais. */
.dashboard-stats article,
.dashboard-card,
.dashboard-kpi,
.content-page-card,
.profile-card,
.settings-card,
.users-card,
.sector-card,
.access-summary > div,
.access-section,
.login-card { background-color: var(--app-area-background); }
