:root {
    --fsro-blue: #164b9b;
    --fsro-blue-dark: #0d2f67;
}

.fsro-login-brand {
    width: 112px;
    height: 112px;
    object-fit: contain;
}

.fsro-sidebar-logo {
    width: 42px;
    height: 42px;
}

.fsro-stat-card {
    border: 0;
    overflow: hidden;
}

.fsro-stat-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 24px;
    background: rgba(22, 75, 155, .12);
    color: var(--fsro-blue);
}

.fsro-module-status {
    font-size: 11px;
    opacity: .75;
}

.auth-basic-wrapper {
    min-height: 100vh;
    background:
        radial-gradient(circle at 20% 10%, rgba(22, 75, 155, .18), transparent 34%),
        radial-gradient(circle at 85% 90%, rgba(13, 47, 103, .16), transparent 32%);
}

.btn-primary {
    --bs-btn-bg: var(--fsro-blue);
    --bs-btn-border-color: var(--fsro-blue);
    --bs-btn-hover-bg: var(--fsro-blue-dark);
    --bs-btn-hover-border-color: var(--fsro-blue-dark);
}

/* --------------------------------------------------------------------------
   FSRO professional header
   -------------------------------------------------------------------------- */
.min-w-0 { min-width: 0; }
.fsro-top-header .navbar {
    gap: 1rem;
    padding-right: 2rem;
    border-bottom: 1px solid rgba(90, 105, 125, .12);
    box-shadow: 0 4px 18px rgba(31, 45, 61, .055);
}
.fsro-header-context { align-items: center; gap: .75rem; min-width: 0; color: var(--bs-body-color); }
.fsro-header-context-label { font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; color: #1958ae; }
.fsro-header-context-separator { width: 1px; height: 24px; background: var(--bs-border-color); }
.fsro-header-context-title { max-width: 360px; font-size: .93rem; font-weight: 500; color: var(--bs-secondary-color); }
.fsro-header-actions { min-width: 0; margin-right: .15rem; }
.fsro-header-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid transparent; border-radius: 12px; color: var(--bs-body-color); }
.fsro-header-icon-btn:hover, .fsro-header-icon-btn:focus, .fsro-header-icon-btn.show { color: #1958ae; background: rgba(25, 88, 174, .08); border-color: rgba(25, 88, 174, .12); }
.fsro-user-profile { display: flex; align-items: center; gap: .65rem; width: auto !important; min-width: 0; max-width: 290px; height: 52px; padding: .35rem .55rem .35rem .45rem; border: 1px solid transparent; border-radius: 15px; color: var(--bs-body-color); text-align: left; }
.fsro-user-profile:hover, .fsro-user-profile:focus, .fsro-user-profile.show { color: var(--bs-body-color); background: rgba(25, 88, 174, .07); border-color: rgba(25, 88, 174, .12); }
.fsro-user-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #174d98, #2670d1); box-shadow: 0 5px 13px rgba(25, 88, 174, .23); font-size: .82rem; font-weight: 800; letter-spacing: .03em; }
.fsro-user-avatar-lg { flex-basis: 46px; width: 46px; height: 46px; border-radius: 14px; font-size: .92rem; }
.fsro-user-copy { flex-direction: column; min-width: 0; max-width: 175px; line-height: 1.15; }
.fsro-user-name { display: block; font-size: .9rem; font-weight: 700; }
.fsro-user-role { display: block; margin-top: .22rem; font-size: .72rem; font-weight: 500; color: var(--bs-secondary-color); }
.fsro-user-chevron { flex: 0 0 auto; font-size: 20px; color: var(--bs-secondary-color); }
.fsro-header-dropdown { min-width: 220px; padding: .55rem; border: 1px solid var(--bs-border-color) !important; border-radius: 16px !important; box-shadow: 0 16px 38px rgba(31, 45, 61, .15) !important; }
.fsro-header-dropdown::after { display: none !important; }
.fsro-header-dropdown .dropdown-item { padding: .65rem .75rem; border-radius: 10px; }
.fsro-user-menu { min-width: 270px; }
.fsro-user-menu-header { display: flex; align-items: center; gap: .75rem; padding: .5rem .55rem; }

/* --------------------------------------------------------------------------
   Administration module
   -------------------------------------------------------------------------- */
.fsro-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.fsro-page-kicker { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .35rem; color: var(--fsro-blue); font-size: .78rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.fsro-page-title { margin: 0; font-size: clamp(1.45rem, 2vw, 1.95rem); font-weight: 700; }
.fsro-page-subtitle { max-width: 760px; margin: .4rem 0 0; color: var(--bs-secondary-color); }
.fsro-admin-stat { border: 0; border-radius: 18px; box-shadow: 0 8px 28px rgba(31, 45, 61, .065); }
.fsro-admin-stat .card-body { padding: 1.15rem 1.2rem; }
.fsro-admin-stat-label { margin-bottom: .25rem; color: var(--bs-secondary-color); font-size: .82rem; font-weight: 600; }
.fsro-admin-stat-value { margin: 0; font-size: 1.65rem; font-weight: 750; line-height: 1; }
.fsro-admin-stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 14px; color: var(--fsro-blue); background: rgba(22, 75, 155, .1); }
.fsro-toolbar-card, .fsro-table-card, .fsro-permission-card { border: 0; border-radius: 18px; box-shadow: 0 8px 28px rgba(31, 45, 61, .06); }
.fsro-toolbar-card .card-body { padding: 1rem 1.1rem; }
.fsro-table-card .card-header { padding: 1.05rem 1.2rem; background: transparent; border-bottom: 1px solid var(--bs-border-color); }
.fsro-table-card .card-body { padding: 1.1rem; }
.fsro-table-card table.dataTable { margin-top: 0 !important; margin-bottom: 0 !important; }
.fsro-table-card .dataTables_filter { margin-bottom: .85rem; }
.fsro-table-card .dataTables_filter input { min-width: 220px; border-radius: 10px; }
.fsro-person-cell { display: flex; align-items: center; gap: .75rem; min-width: 210px; }
.fsro-person-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: linear-gradient(145deg, #174d98, #2670d1); font-size: .78rem; font-weight: 800; }
.fsro-person-name { font-weight: 700; line-height: 1.25; }
.fsro-person-meta { margin-top: .12rem; color: var(--bs-secondary-color); font-size: .76rem; }
.fsro-status-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .62rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.fsro-status-badge::before { width: 7px; height: 7px; border-radius: 50%; content: ''; background: currentColor; }
.fsro-status-active { color: #127a4a; background: rgba(25, 135, 84, .11); }
.fsro-status-inactive { color: #b33b3b; background: rgba(220, 53, 69, .1); }
.fsro-role-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .38rem .6rem; border: 1px solid rgba(22, 75, 155, .15); border-radius: 9px; color: var(--fsro-blue); background: rgba(22, 75, 155, .075); font-size: .75rem; font-weight: 700; }
.fsro-system-badge { display: inline-flex; align-items: center; padding: .3rem .52rem; border-radius: 8px; color: #7b4b00; background: rgba(255, 193, 7, .14); font-size: .69rem; font-weight: 700; }
.fsro-action-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.fsro-modal .modal-content { border: 0; border-radius: 20px; box-shadow: 0 22px 60px rgba(31, 45, 61, .22); }
.fsro-modal .modal-header { padding: 1.2rem 1.35rem; border-bottom-color: var(--bs-border-color); }
.fsro-modal .modal-body { padding: 1.25rem 1.35rem; }
.fsro-modal .modal-footer { padding: 1rem 1.35rem; border-top-color: var(--bs-border-color); }
.fsro-password-note { padding: .75rem .85rem; border-radius: 12px; color: var(--bs-secondary-color); background: rgba(22, 75, 155, .055); font-size: .78rem; }
.fsro-permission-group-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.1rem; border-bottom: 1px solid var(--bs-border-color); }
.fsro-permission-table th { color: var(--bs-secondary-color); font-size: .72rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; white-space: nowrap; }
.fsro-permission-table td { vertical-align: middle; }
.fsro-permission-page { min-width: 250px; }
.fsro-permission-page-name { font-weight: 700; }
.fsro-permission-page-code { margin-top: .12rem; color: var(--bs-secondary-color); font-size: .72rem; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.fsro-permission-check { width: 1.15rem; height: 1.15rem; cursor: pointer; }
.fsro-permission-sticky { position: sticky; bottom: 1rem; z-index: 20; }
.fsro-permission-sticky .card { border: 1px solid rgba(22, 75, 155, .14); border-radius: 16px; box-shadow: 0 14px 36px rgba(31, 45, 61, .16); }
.fsro-activity-message { max-width: 560px; white-space: normal; }
.fsro-empty-state-card { border-radius: 22px; box-shadow: 0 10px 34px rgba(31, 45, 61, .07); }
.fsro-empty-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 22px; color: var(--fsro-blue); background: rgba(22, 75, 155, .1); font-size: 34px; }

@media (max-width: 767.98px) {
    .fsro-top-header .navbar { padding-right: .8rem; padding-left: .8rem; }
    .fsro-user-profile { height: 44px; padding: .2rem; border-radius: 12px; }
    .fsro-user-avatar { flex-basis: 36px; width: 36px; height: 36px; }
    .fsro-page-head { flex-direction: column; align-items: stretch; }
    .fsro-page-head .btn { width: 100%; }
    .fsro-table-card .dataTables_filter input { min-width: 0; width: 100%; margin-left: 0 !important; }
}
