@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --blue: #1687d4;
    --blue-dark: #0878bd;
    --blue-soft: #eaf6fe;
    --ink: #17324d;
    --muted: #7d8fa0;
    --line: #e3ebf2;
    --background: #f5f8fb;
    --white: #fff;
    --shadow: 0 14px 35px rgba(27, 76, 113, .08);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 13px; background: var(--background); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.auth-page { background: #fff; }
.login-layout { display: grid; grid-template-columns: minmax(440px, 42%) 1fr; min-height: 100vh; }
.login-panel { display: grid; place-items: center; padding: 48px 30px; background: #fff; }
.login-box { width: min(100%, 354px); }
.login-logo { display: block; width: 64px; height: 64px; margin: 0 auto 30px; }
.login-heading { margin-bottom: 28px; text-align: center; }
.eyebrow { display: inline-block; color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.login-heading h1 { margin: 9px 0 8px; color: #143b5d; font-size: 28px; letter-spacing: -.04em; }
.login-heading p, .page-heading p { margin: 0; color: var(--muted); }
.login-form label { display: block; margin: 14px 0 7px; color: #31536d; font-size: 11px; font-weight: 700; }
.login-form label span { color: var(--blue); }
.login-form input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid #d8e2eb; border-radius: 8px; color: var(--ink); outline: none; background: #fff; transition: .2s; }
.login-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 135, 212, .1); }
.login-form input::placeholder { color: #a4b3c0; }
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-toggle { position: absolute; top: 0; right: 0; width: 42px; height: 45px; border: 0; color: #8498aa; cursor: pointer; background: transparent; }
.primary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 42px; padding: 0 19px; border: 0; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; transition: .2s; }
.primary-button { background: linear-gradient(135deg, var(--blue), #0879be); box-shadow: 0 8px 18px rgba(22, 135, 212, .2); }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 10px 23px rgba(22, 135, 212, .28); }
.login-button { width: 100%; height: 46px; margin-top: 25px; border-radius: 23px; font-size: 12px; }
.login-button span { font-size: 20px; font-weight: 400; line-height: 0; }
.login-hero { position: relative; display: flex; align-items: center; overflow: hidden; padding: 8vw; color: #fff; background: linear-gradient(140deg, #168fdc, #087bc3); }
.hero-content { position: relative; z-index: 1; width: min(100%, 545px); }
.hero-kicker { color: rgba(255, 255, 255, .73); font-size: 11px; font-weight: 800; letter-spacing: .19em; }
.hero-content h2 { margin: 18px 0 22px; font-size: clamp(34px, 4vw, 56px); line-height: 1.08; letter-spacing: -.055em; }
.hero-content h2 strong { font-weight: 800; }
.hero-content p { max-width: 550px; margin: 0 0 25px; color: rgba(255,255,255,.84); font-size: 14px; line-height: 1.8; }
.hero-content ul { display: grid; gap: 12px; margin: 0; padding: 0; color: rgba(255,255,255,.91); list-style: none; font-size: 13px; }
.hero-content li::before { display: inline-block; width: 22px; color: #bcecff; content: '✓'; font-weight: 800; }
.hero-orb { position: absolute; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; background: rgba(255,255,255,.055); }
.orb-one { top: -160px; right: -85px; width: 390px; height: 390px; }
.orb-two { right: -115px; bottom: -235px; width: 460px; height: 460px; }
.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 8px; font-size: 12px; }
.alert-error { color: #a63747; background: #fff0f2; }
.alert-success { color: #13714d; background: #eafaf2; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; top: 0; bottom: 0; left: 0; display: flex; width: 225px; flex-direction: column; color: #5c7185; background: #eef5fb; border-right: 1px solid #dfe8ef; transition: transform .25s ease; }
.brand { display: flex; align-items: center; height: 51px; padding: 0 10px; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .08em; background: #168fda; }
.brand img { width: 31px; height: 31px; margin-right: 10px; }
.mobile-toggle { display: block; margin-left: auto; border: 0; color: #fff; background: transparent; font-size: 19px; cursor: pointer; }
.main-nav { padding: 19px 7px; }
.nav-label { margin: 0 10px 10px; color: #8799a9; font-size: 8px; font-weight: 800; letter-spacing: .09em; }
.nav-label:not(:first-child) { margin-top: 22px; }
.nav-link { display: flex; align-items: center; gap: 10px; height: 34px; margin: 3px 0; padding: 0 11px; border-radius: 7px; color: #52697d; font-size: 11px; transition: .2s; }
.nav-link:hover, .nav-link.active { color: var(--blue-dark); background: #edf5fb; }
.nav-link.active { font-weight: 600; box-shadow: none; background: #dfe7ef; }
.nav-icon { display: inline-grid; width: 19px; place-items: center; color: currentColor; font-size: 18px; line-height: 1; }
.sidebar-footer { margin-top: auto; padding: 18px 14px 23px; border-top: 1px solid var(--line); }
.main-area { display: flex; width: calc(100% - 225px); min-height: 100vh; margin-left: 225px; flex-direction: column; }
.topbar { display: flex; align-items: center; height: 51px; padding: 0 31px; border-bottom: 1px solid var(--line); background: #fff; }
.menu-toggle { display: none; border: 0; color: var(--blue); background: transparent; font-size: 22px; cursor: pointer; }
.topbar-spacer { flex: 1; }
.notification { margin-right: 25px; color: #526b80; font-size: 19px; }
.user-summary { display: flex; align-items: center; gap: 12px; }
.user-copy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.user-copy strong { color: #435d72; font-size: 10px; }
.user-copy small { color: #9aaab7; font-size: 10px; }
.user-avatar { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #188fdb, #086faf); font-size: 13px; font-weight: 800; }
.content-area { flex: 1; padding: 37px 42px 28px; }
.app-footer { padding: 0 38px 17px; color: #9caab4; font-size: 10px; text-align: center; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 31px; }
.page-heading h1 { margin: 7px 0 7px; color: #173d5e; font-size: 29px; letter-spacing: -.05em; }
.heading-date { color: #98a8b5; font-size: 11px; }
.heading-date span { margin: 0 6px; color: var(--blue); }
.compact-heading { align-items: center; margin-bottom: 25px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 17px; margin-bottom: 25px; }
.stat-card { display: flex; align-items: center; gap: 15px; min-height: 126px; padding: 21px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.stat-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 14px; font-size: 23px; }.stat-icon i { font-size: 18px; }
.stat-card > div:last-child { display: flex; min-width: 0; flex-direction: column; gap: 6px; }
.stat-card span { overflow: hidden; color: #8295a5; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.stat-card strong { color: #173c5b; font-size: 27px; letter-spacing: -.06em; }
.stat-card small { color: #a6b2bd; font-size: 10px; }
.stat-blue .stat-icon { color: #1589d5; background: #eaf7ff; }.stat-purple .stat-icon { color: #8166dd; background: #f1edff; }.stat-green .stat-icon { color: #1aae78; background: #e8fbf4; }.stat-orange .stat-icon { color: #e8913a; background: #fff3e7; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .8fr; gap: 22px; }
.panel { border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.chart-panel { padding: 25px 27px 24px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 27px; }
.panel-heading h2, .welcome-card h2 { margin: 6px 0 0; color: #214562; font-size: 18px; letter-spacing: -.04em; }
.text-link { color: var(--blue); font-size: 11px; font-weight: 700; }
.bars { display: grid; gap: 19px; }
.bar-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: #728697; font-size: 11px; }.bar-label strong { color: #31566e; }.bar-track { height: 8px; overflow: hidden; border-radius: 10px; background: #edf2f5; }.bar-track span { display: block; width: 100%; height: 100%; border-radius: 10px; background: linear-gradient(90deg, #1594dd, #77cdf2); }
.welcome-card { position: relative; min-height: 310px; overflow: hidden; padding: 28px; color: #fff; background: linear-gradient(140deg, #107fc9, #139ce3); }
.welcome-card .eyebrow { color: rgba(255,255,255,.68); }.welcome-card h2 { position: relative; color: #fff; font-size: 25px; }.welcome-card p { position: relative; max-width: 270px; margin: 14px 0 25px; color: rgba(255,255,255,.83); line-height: 1.7; }.welcome-card .primary-button { position: relative; color: var(--blue-dark); background: #fff; box-shadow: none; }.welcome-shape { position: absolute; right: -70px; bottom: -110px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.09); }
.summary-strip { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; padding: 18px 21px; border: 1px solid #b9e8fb; border-radius: 9px; color: #147cae; background: #e8f9ff; }.summary-strip > div:first-child { display: flex; align-items: baseline; gap: 9px; }.summary-strip strong { font-size: 22px; }.summary-strip span, .strip-note { color: #5c96b2; font-size: 11px; }.table-panel { overflow: hidden; }.table-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 21px; border-bottom: 1px solid var(--line); }.table-toolbar strong { color: #39566c; font-size: 13px; }.table-toolbar input { width: 225px; height: 35px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); outline: 0; }.table-toolbar input:focus { border-color: var(--blue); }.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; text-align: left; } th { padding: 13px 17px; color: #8b9baa; background: #f9fbfc; font-size: 10px; font-weight: 700; white-space: nowrap; } td { padding: 14px 17px; border-top: 1px solid #edf1f4; color: #5d7384; font-size: 11px; white-space: nowrap; } tbody tr:hover { background: #fbfdff; } td strong { color: #31536d; }.id-text { color: var(--blue) !important; }.tag, .status { display: inline-flex; align-items: center; min-height: 22px; padding: 0 9px; border-radius: 20px; font-size: 10px; font-weight: 700; }.tag-blue { color: #147cb7; background: #e9f6fd; }.tag-purple { color: #785fc9; background: #f0ebff; }.status::before { width: 5px; height: 5px; margin-right: 6px; border-radius: 50%; content: ''; }.status-active { color: #16815a; background: #e9faf3; }.status-active::before { background: #1abc83; }.status-inactive { color: #9d6f2f; background: #fff6e7; }.status-inactive::before { background: #e8a33c; }.icon-button { width: 29px; height: 29px; border: 0; border-radius: 6px; color: #4c7892; cursor: pointer; background: #edf4f8; }.outline-button { color: var(--blue); border: 1px solid #b9dff1; background: #fff; }.outline-button:hover { background: var(--blue-soft); }
.filter-panel { display: grid; grid-template-columns: minmax(260px, 1fr) 190px 190px auto auto; align-items: end; gap: 12px; margin-bottom: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }.filter-panel label { display: block; margin: 0 0 7px; color: #8092a1; font-size: 10px; font-weight: 700; }.search-input { position: relative; }.search-input i { position: absolute; top: 12px; left: 13px; color: #9aabb9; font-size: 13px; }.search-input input, .filter-field select { width: 100%; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); outline: none; background: #fff; font-size: 11px; }.search-input input { padding-left: 34px; }.search-input input:focus, .filter-field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 135, 212, .08); }.filter-button { min-height: 38px; padding: 0 15px; white-space: nowrap; }.clear-filters { align-self: center; margin-top: 19px; color: #71899a; font-size: 11px; font-weight: 600; }.per-page { display: flex; align-items: center; gap: 7px; color: #8c9aa6; font-size: 11px; }.per-page select { height: 30px; padding: 0 7px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; }.pagination-wrap { display: flex; justify-content: flex-end; padding: 16px 21px; border-top: 1px solid var(--line); }.pagination { display: flex; gap: 5px; margin: 0; padding: 0; list-style: none; }.pagination li a { display: grid; min-width: 29px; height: 29px; place-items: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 5px; color: #6c8191; background: #fff; font-size: 11px; }.pagination li.active a, .pagination li a:hover { border-color: var(--blue); color: #fff; background: var(--blue); }.empty-state { padding: 45px 15px; color: #8fa0ad; text-align: center; }.empty-state i { margin-right: 7px; color: var(--blue); }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 81px; margin: -37px -42px 28px; padding: 0 42px 0 59px; color: #fff; background: linear-gradient(105deg, #087abd, #189be5); }.page-toolbar h1 { margin: 0; color: #fff; font-size: 24px; letter-spacing: -.04em; }.toolbar-actions { display: flex; align-items: center; gap: 8px; }.toolbar-outline-button, .toolbar-action-button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 14px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; }.toolbar-outline-button { border: 1px solid rgba(255,255,255,.75); color: #fff; background: transparent; }.toolbar-outline-button:hover { background: rgba(255,255,255,.12); }.toolbar-action-button { border: 1px solid #fff; color: #087abd; background: #fff; }
.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; visibility: hidden; place-items: center; padding: 20px; opacity: 0; background: rgba(11, 39, 61, .48); transition: opacity .2s ease, visibility .2s ease; }.modal-backdrop.is-open { visibility: visible; opacity: 1; }.detail-modal { width: min(100%, 620px); overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 24px 70px rgba(12, 47, 74, .25); transform: translateY(12px) scale(.98); transition: transform .2s ease; }.modal-backdrop.is-open .detail-modal { transform: translateY(0) scale(1); }.detail-modal-header { display: flex; align-items: flex-start; justify-content: space-between; padding: 24px 26px 20px; color: #fff; background: linear-gradient(105deg, #087abd, #189be5); }.detail-modal-header .eyebrow { color: rgba(255,255,255,.7); }.detail-modal-header h2 { margin: 6px 0 0; color: #fff; font-size: 20px; }.modal-close { width: 31px; height: 31px; border: 1px solid rgba(255,255,255,.55); border-radius: 7px; color: #fff; cursor: pointer; background: transparent; }.modal-close:hover { background: rgba(255,255,255,.14); }.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 20px 26px; background: #edf2f5; }.detail-grid > div { display: flex; min-height: 67px; flex-direction: column; justify-content: center; gap: 6px; padding: 0 13px; background: #fff; }.detail-grid span { color: #8b9aa7; font-size: 10px; font-weight: 700; }.detail-grid strong { overflow: hidden; color: #31536d; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.modal-loading { padding: 0 26px 20px; color: #7e919f; font-size: 11px; }.modal-loading i { margin-right: 6px; color: var(--blue); }
.user-actions { display: flex; align-items: center; gap: 5px; }.icon-button.danger { color: #b45d69; background: #fff0f1; }.icon-button.warning { color: #a7792f; background: #fff6e7; }.icon-button:disabled { cursor: not-allowed; opacity: .45; }.user-modal { width: min(100%, 680px); }.user-form { padding: 23px 26px 0; }.user-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }.user-form-grid.single-column { grid-template-columns: 1fr; }.user-form label { display: flex; flex-direction: column; gap: 7px; }.user-form label > span { color: #718595; font-size: 10px; font-weight: 700; }.user-form label small { color: #9aa9b4; font-weight: 400; }.user-form input, .user-form select { width: 100%; height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); outline: 0; background: #fff; font-size: 12px; }.user-form input:focus, .user-form select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 135, 212, .08); }.user-form-full { grid-column: 1 / -1; }.user-form-status { max-width: 220px; }.user-form-footer { display: flex; justify-content: flex-end; gap: 9px; margin: 23px -26px 0; padding: 16px 26px; border-top: 1px solid var(--line); background: #f9fbfc; }.user-form-footer .primary-button, .user-form-footer .outline-button { min-height: 37px; }.modal-form-error { margin-top: 15px; padding: 10px 12px; border: 1px solid #f2c9cd; border-radius: 6px; color: #a94450; background: #fff1f2; font-size: 11px; }.password-user-name { margin: 0 0 19px; color: #557083; font-size: 12px; font-weight: 700; }.app-toast { position: fixed; z-index: 50; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 13px 17px; border-radius: 8px; color: #fff; box-shadow: 0 9px 25px rgba(21, 59, 83, .2); font-size: 12px; font-weight: 700; }.app-toast.is-success { background: #168e68; }.app-toast.is-error { background: #b94b59; }

@media (max-width: 1050px) { .stats-grid { grid-template-columns: repeat(2, 1fr); }.dashboard-grid { grid-template-columns: 1fr; }.login-layout { grid-template-columns: 1fr; }.login-hero { display: none; } }
@media (max-width: 760px) { .sidebar { transform: translateX(-100%); box-shadow: 12px 0 30px rgba(0,0,0,.12); }.sidebar.open { transform: translateX(0); }.mobile-toggle, .menu-toggle { display: block; }.main-area { width: 100%; margin-left: 0; }.topbar { height: 62px; padding: 0 18px; }.menu-toggle { margin-right: 14px; }.content-area { padding: 27px 17px; }.page-heading { align-items: flex-start; flex-direction: column; gap: 17px; }.compact-heading { flex-direction: row; align-items: center; }.heading-date { display: none; }.stats-grid { gap: 10px; }.stat-card { min-height: 112px; padding: 14px; }.stat-icon { width: 38px; height: 38px; flex-basis: 38px; }.stat-card strong { font-size: 22px; }.stat-card span { font-size: 10px; }.user-copy { display: none; }.summary-strip { align-items: flex-start; flex-direction: column; gap: 6px; }.table-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }.table-toolbar input { width: 100%; }.app-footer { padding-bottom: 15px; } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr 1fr; }.stat-card { align-items: flex-start; flex-direction: column; gap: 8px; }.stat-card > div:last-child { width: 100%; }.login-panel { padding: 35px 22px; }.login-logo { margin-bottom: 25px; }.login-heading h1 { font-size: 25px; }.compact-heading { align-items: flex-start; flex-direction: column; }.compact-heading .primary-button, .compact-heading .outline-button { width: 100%; } }

.menu-svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.nav-icon i { width: 18px; color: currentColor; font-size: 15px; text-align: center; }
.mobile-toggle i, .menu-toggle i { font-size: 18px; }

@media (min-width: 761px) {
    .sidebar { width: 49px; }
    .sidebar.sidebar-open { width: 225px; box-shadow: 12px 0 30px rgba(29, 75, 108, .12); }
    .sidebar.sidebar-open + .main-area { width: calc(100% - 225px); margin-left: 225px; }
    .main-area { width: calc(100% - 49px); margin-left: 49px; transition: width .25s ease, margin-left .25s ease; }
    .brand { justify-content: center; padding: 0 8px; }
    .brand img { margin-right: 0; }
    .brand-name, .nav-text { overflow: hidden; width: 0; opacity: 0; white-space: nowrap; transition: width .2s ease, opacity .15s ease; }
    .sidebar.sidebar-open .brand { justify-content: flex-start; padding: 0 10px; }
    .sidebar.sidebar-open .brand img { margin-right: 10px; }
    .sidebar.sidebar-open .brand-name, .sidebar.sidebar-open .nav-text { width: auto; opacity: 1; }
    .sidebar:not(.sidebar-open) .nav-label { height: 7px; margin: 0 0 7px; overflow: hidden; opacity: 0; font-size: 0; }
    .sidebar:not(.sidebar-open) .nav-link { justify-content: center; gap: 0; padding: 0; }
    .sidebar:not(.sidebar-open) .mobile-toggle { width: 22px; padding: 0; }
    .sidebar:not(.sidebar-open) .mobile-toggle { display: none; }
    .sidebar.sidebar-open .mobile-toggle { margin-left: auto; }
    .sidebar:not(.sidebar-open) .sidebar-footer .nav-link { justify-content: center; }
}

@media (max-width: 760px) {
    .sidebar { width: 225px; transform: translateX(-100%); box-shadow: 12px 0 30px rgba(0,0,0,.12); }
    .sidebar.sidebar-open { transform: translateX(0); }
    .sidebar.sidebar-open .brand-name, .sidebar.sidebar-open .nav-text { opacity: 1; width: auto; }
    .sidebar.sidebar-open .nav-label { opacity: 1; font-size: 8px; }
    .sidebar:not(.sidebar-open) .brand-name, .sidebar:not(.sidebar-open) .nav-text, .sidebar:not(.sidebar-open) .nav-label { opacity: 1; width: auto; }
    .sidebar:not(.sidebar-open) .nav-link { justify-content: flex-start; gap: 10px; padding: 0 11px; }
}

.user-menu { position: relative; }
.user-menu-toggle { padding: 4px 0 4px 4px; border: 0; cursor: pointer; background: transparent; }
.user-menu-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 8px; }
.user-menu-chevron { margin-left: 2px; color: #8ca0af; font-size: 9px; transition: transform .2s ease; }
.user-menu-toggle[aria-expanded="true"] .user-menu-chevron { transform: rotate(180deg); }
.user-menu-dropdown { position: absolute; z-index: 40; top: calc(100% + 9px); right: 0; width: 180px; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 14px 30px rgba(27, 76, 113, .16); }
.user-menu-dropdown[aria-hidden="true"] { display: none; }
.user-menu-dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 11px; border-radius: 6px; color: #52697d; font-size: 11px; font-weight: 600; }
.user-menu-dropdown a:hover { color: var(--blue-dark); background: var(--blue-soft); }
.user-menu-dropdown i { width: 15px; color: var(--blue); text-align: center; }
.profile-card { max-width: 760px; overflow: hidden; }
.profile-card-header { display: flex; align-items: center; gap: 17px; padding: 28px; color: #fff; background: linear-gradient(105deg, #087abd, #189be5); }
.profile-avatar { display: grid; width: 58px; height: 58px; place-items: center; border: 3px solid rgba(255,255,255,.45); border-radius: 50%; color: #087abd; background: #fff; font-size: 22px; font-weight: 800; }
.profile-card-header h2 { margin: 6px 0 4px; color: #fff; font-size: 20px; }
.profile-card-header p { margin: 0; color: rgba(255,255,255,.78); font-size: 11px; }
.profile-layout { display: block; width: 100%; max-width: none; }
.profile-identity { max-width: none !important; margin-bottom: 16px; }
.profile-tabs { display: flex; gap: 4px; margin-bottom: 16px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.profile-tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 6px; color: #718595; cursor: pointer; background: transparent; font-size: 11px; font-weight: 700; }
.profile-tabs button:hover, .profile-tabs button[aria-selected="true"] { color: var(--blue-dark); background: var(--blue-soft); }
.profile-tabs button[aria-selected="true"] { box-shadow: inset 0 -2px 0 var(--blue); }
.profile-tab-panel { max-width: none !important; }
.profile-tab-panel[hidden] { display: none; }
.profile-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding: 1px; background: #edf2f5; }
.profile-form { padding: 23px 26px 0; }
.profile-form h3, .profile-section-heading h3 { margin: 0; color: #214562; font-size: 16px; }
.profile-help, .profile-section-heading p { margin: 7px 0 20px; color: var(--muted); font-size: 11px; }
.profile-fields-form { gap: 15px; padding: 0; background: transparent; }
.profile-fields-form > div, .profile-fields-form label { min-height: 0; padding: 0; background: transparent; }
.profile-fields-form label { display: flex; flex-direction: column; gap: 7px; }
.profile-fields-form label > span, .profile-fields-form > div > span, .profile-form > label > span { color: #718595; font-size: 10px; font-weight: 700; }
.profile-fields-form input, .profile-form > label input { width: 100%; height: 39px; padding: 0 11px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); outline: 0; background: #fff; font-size: 12px; }
.profile-fields-form input:focus, .profile-form > label input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 135, 212, .08); }
.profile-fields-form strong { color: #31536d; font-size: 12px; }
.profile-form-footer { display: flex; justify-content: flex-end; margin: 23px -26px 0; padding: 16px 26px; border-top: 1px solid var(--line); background: #f9fbfc; }
.profile-section-heading { display: flex; align-items: center; gap: 12px; padding: 23px 26px 0; }
.profile-section-heading p { margin-bottom: 0; }
.profile-section-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: var(--blue); background: var(--blue-soft); }
.profile-section-heading { justify-content: flex-start; }.profile-section-heading > div { flex: 1; }.profile-filter-toggle { flex: 0 0 auto; min-height: 34px; padding: 0 12px; font-size: 11px; }.profile-log-filters { display: grid; grid-template-columns: minmax(250px, 2fr) minmax(150px, 1fr) 145px 145px auto; align-items: end; gap: 12px; margin: 20px 26px 0; padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #f9fbfc; }.profile-log-filters label { display: flex; flex-direction: column; gap: 7px; }.profile-log-filters label > span { color: #718595; font-size: 10px; font-weight: 700; }.profile-log-filters input, .profile-log-filters select { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); outline: 0; background: #fff; font-size: 11px; }.profile-log-filters input:focus, .profile-log-filters select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22, 135, 212, .08); }.profile-filter-actions { display: flex; align-items: center; gap: 7px; }.profile-filter-actions .primary-button, .profile-filter-actions .outline-button { min-height: 36px; padding: 0 11px; white-space: nowrap; font-size: 10px; }.profile-log-filters[hidden] { display: none; }
.profile-password-error { margin: 20px 26px 0; }
.profile-form .password-requirements { margin: 15px 0 19px; }
.profile-confirmation { margin: 8px 0 0; color: #9aa9b4; font-size: 10px; }
.profile-confirmation.is-met { color: #168e68; }
.profile-access-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 23px 26px 0; }
.profile-access-grid > div { display: flex; min-height: 70px; flex-direction: column; justify-content: center; gap: 7px; padding: 0 15px; border: 1px solid var(--line); border-radius: 8px; background: #f9fbfc; }
.profile-access-grid span { color: #8b9aa7; font-size: 10px; font-weight: 700; }.profile-access-grid strong { color: #31536d; font-size: 12px; }
.profile-log-table { width: 100%; margin-top: 23px; }.profile-log-table td { white-space: normal; overflow-wrap: anywhere; }.profile-log-table th { white-space: normal; }.profile-log-table table { width: 100%; min-width: 0; table-layout: fixed; }.profile-log-table th, .profile-log-table td { padding-left: 14px; padding-right: 14px; }.profile-pagination, .logs-pagination { align-items: center; justify-content: space-between; }.pagination-summary { color: #8b9aa7; font-size: 10px; }.profile-password-modal { width: min(100%, 560px); }.profile-password-modal .profile-password-error { margin: 20px 26px 0; }.profile-password-modal .profile-form { padding-top: 20px; }.logs-search { display: flex; align-items: center; gap: 8px; }.logs-search .outline-button { min-height: 35px; padding: 0 12px; font-size: 11px; }.log-meta { display: block; margin-top: 4px; color: #8a9ba8; font-size: 10px; font-weight: 400; line-height: 1.35; }
body.modal-open { overflow: hidden; }
.profile-fields > div { display: flex; min-height: 76px; flex-direction: column; justify-content: center; gap: 7px; padding: 0 20px; background: #fff; }
.profile-fields span { color: #8b9aa7; font-size: 10px; font-weight: 700; }
.profile-fields strong { color: #31536d; font-size: 12px; }
.profile-active { color: #16815a !important; }.profile-inactive { color: #9d6f2f !important; }
@media (max-width: 1050px) { .profile-log-filters { grid-template-columns: repeat(2, 1fr); }.profile-filter-search { grid-column: 1 / -1; }.profile-filter-actions { justify-content: flex-end; } }
@media (max-width: 760px) { .user-copy { display: none; }.user-menu-dropdown { right: -4px; }.profile-tabs { overflow-x: auto; }.profile-tabs button { flex: 0 0 auto; }.profile-fields, .profile-fields-form, .profile-access-grid, .profile-log-filters { grid-template-columns: 1fr; }.profile-form { padding: 19px 17px 0; }.profile-form-footer { margin-left: -17px; margin-right: -17px; padding-left: 17px; padding-right: 17px; }.profile-section-heading { align-items: flex-start; flex-wrap: wrap; }.profile-filter-toggle { margin-left: 50px; } }

@media (max-width: 1050px) {
    .filter-panel { grid-template-columns: 1fr 1fr; }
    .filter-search { grid-column: span 2; }
}

@media (max-width: 760px) {
    .filter-panel { grid-template-columns: 1fr; }
    .filter-search { grid-column: auto; }
    .filter-button { width: 100%; }
    .clear-filters { margin-top: 0; }
    .per-page { width: 100%; justify-content: flex-end; }
    .pagination-wrap { justify-content: center; overflow-x: auto; }
    .page-toolbar { min-height: 67px; margin: -27px -17px 24px; padding: 0 17px; }.page-toolbar h1 { font-size: 21px; }
    .detail-grid { grid-template-columns: 1fr; padding: 14px; }
    .user-form-grid { grid-template-columns: 1fr; }.user-form-full { grid-column: auto; }.user-form-status { max-width: none; }.user-form { padding: 19px 17px 0; }.user-form-footer { margin-left: -17px; margin-right: -17px; padding-left: 17px; padding-right: 17px; }
}
