/* ==================================================
   CATRAIA MANAGER SPECIFIC STYLES & OVERRIDES
   ================================================== */

/* Logo Styling */
.logo-box {
    height: 70px !important;
    min-height: 70px !important;
    line-height: 70px !important;
    padding: 0 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s ease;
}

.app-menu .logo-box {
    justify-content: flex-start !important;
}

.navbar-custom .logo-box {
    justify-content: center !important;
    padding: 0 0.75rem !important;
    height: 70px !important;
}

.logo-brand {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    line-height: 1 !important;
}

.logo-box .logo-lg {
    display: inline-flex !important;
    align-items: center !important;
    height: auto !important;
    line-height: 1 !important;
}

.logo-box .logo-sm {
    display: none !important;
    align-items: center !important;
    height: auto !important;
    line-height: 1 !important;
}

/* Condensed Sidebar Logo */
html[data-sidenav-size="condensed"] .app-menu .logo-box {
    justify-content: center !important;
    padding: 0 !important;
}

html[data-sidenav-size="condensed"] .app-menu .logo-box .logo-lg {
    display: none !important;
}

html[data-sidenav-size="condensed"] .app-menu .logo-box .logo-sm {
    display: inline-flex !important;
    justify-content: center !important;
}

/* Sidebar Navigation Groups & Toggles */
.menu-group {
    list-style: none;
    margin-bottom: 0.6rem;
}

.menu-group-toggle {
    display: flex;
    align-items: center;
    width: calc(100% - 20px);
    margin: 0 10px 4px;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.menu-group-toggle:hover,
.menu-group-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: #FFFFFF;
}

.menu-group-active > .menu-group-toggle {
    color: #FFFFFF;
    background: rgba(17, 139, 234, 0.12);
}

.menu-group-header-static {
    display: flex;
    align-items: center;
    width: calc(100% - 20px);
    margin: 0 10px 4px;
    padding: 7px 10px;
    color: rgba(255, 255, 255, 0.65);
    font-family: 'Sora', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.menu-group-icon {
    color: var(--menu-group-color, #118BEA);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.menu-group-icon svg {
    height: 1rem;
    width: 1rem;
}

.menu-group-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-group-chevron {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.45);
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.menu-group-chevron svg {
    height: 0.85rem;
    width: 0.85rem;
}

.menu-group-toggle:hover .menu-group-chevron {
    color: rgba(255, 255, 255, 0.85);
}

.menu-group-toggle[aria-expanded='true'] .menu-group-chevron {
    transform: rotate(180deg);
}

.menu-group-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-group-items[hidden] {
    display: none !important;
}

/* Condensed Sidebar Navigation */
html[data-sidenav-size="condensed"] .menu-group {
    margin-bottom: 0.25rem;
}

html[data-sidenav-size="condensed"] .menu-group-toggle,
html[data-sidenav-size="condensed"] .menu-group-header-static {
    justify-content: center;
    width: 44px;
    margin: 2px auto;
    padding: 8px 0;
    border-radius: 8px;
}

html[data-sidenav-size="condensed"] .menu-group-icon {
    margin-right: 0 !important;
}

html[data-sidenav-size="condensed"] .menu-group-label,
html[data-sidenav-size="condensed"] .menu-group-chevron {
    display: none !important;
}

html[data-sidenav-size="condensed"] .menu-group-items[hidden] {
    display: block !important;
}

html[data-sidenav-size="condensed"] .app-menu .menu-link {
    width: 44px !important;
    margin: 2px auto !important;
    padding: 9px 0 !important;
    justify-content: center !important;
    text-align: center;
}

html[data-sidenav-size="condensed"] .app-menu .menu-link .menu-icon {
    margin: 0 !important;
    min-width: 0 !important;
    width: auto !important;
}

html[data-sidenav-size="condensed"] .app-menu .menu-link .menu-text {
    display: none !important;
}

.manager-shortcuts-dialog {
    border: 1px solid #DDE5E7;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(7, 28, 38, 0.24);
    color: #172126;
    max-width: min(28rem, calc(100vw - 2rem));
    padding: 1.25rem;
    width: 100%;
}

.manager-shortcuts-dialog::backdrop {
    background: rgba(7, 28, 38, 0.55);
}

.manager-shortcuts-dialog-header {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.manager-shortcuts-dialog-header h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.1rem;
    margin: 0;
}

.manager-shortcuts-close {
    background: transparent;
    border: 0;
    color: #5D6A70;
    font-size: 1.5rem;
    line-height: 1;
}

.manager-shortcuts-list {
    margin: 1.25rem 0 0;
}

.manager-shortcuts-list > div {
    align-items: center;
    border-bottom: 1px solid #EEF3F4;
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
}

.manager-shortcuts-list dd {
    color: #5D6A70;
    margin: 0;
}

.manager-shortcuts-list kbd {
    background: #EEF3F4;
    border: 1px solid #DDE5E7;
    border-radius: 5px;
    color: #172126;
    font: 600 0.78rem 'Inter', sans-serif;
    padding: 0.2rem 0.4rem;
}

.manager-shortcuts-hint {
    color: #5D6A70;
    font-size: 0.8rem;
    margin: 1rem 0 0;
}

.manager-search-trigger {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

.manager-search-trigger-shortcut {
    border: 1px solid rgba(23, 33, 38, 0.15);
    border-radius: 4px;
    color: #5D6A70;
    display: none;
    font-size: 0.65rem;
    padding: 0.1rem 0.25rem;
}

@media (min-width: 1200px) {
    .manager-search-trigger-shortcut {
        display: inline-block;
    }
}

.manager-search-dialog {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(7, 28, 38, 0.3);
    color: #172126;
    margin: 10vh auto auto;
    max-height: min(75vh, 42rem);
    max-width: min(42rem, calc(100vw - 2rem));
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.manager-search-dialog::backdrop {
    background: rgba(7, 28, 38, 0.58);
    backdrop-filter: blur(2px);
}

.manager-search-dialog-content {
    padding: 1.25rem;
}

.manager-search-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.manager-search-heading h2 {
    font-family: 'Sora', sans-serif;
    font-size: 1.15rem;
    margin: 0;
}

.manager-search-heading p {
    color: #5D6A70;
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

.manager-search-close {
    background: transparent;
    border: 0;
    color: #5D6A70;
    font-size: 1.5rem;
    line-height: 1;
}

.manager-search-input {
    border-color: #C7D3D7;
    font-size: 1rem;
    padding: 0.8rem 0.9rem;
}

.manager-search-input:focus {
    border-color: #118BEA;
    box-shadow: 0 0 0 0.2rem rgba(17, 139, 234, 0.15);
}

.manager-search-status {
    color: #5D6A70;
    font-size: 0.83rem;
    min-height: 2.1rem;
    padding: 0.65rem 0.15rem 0.2rem;
}

.manager-search-results {
    max-height: min(48vh, 26rem);
    overflow-y: auto;
}

.manager-search-result {
    align-items: center;
    border-radius: 8px;
    color: #172126;
    display: flex;
    gap: 0.75rem;
    padding: 0.65rem 0.7rem;
    text-decoration: none;
}

.manager-search-result:hover,
.manager-search-result-active {
    background: #E7F3FD;
    color: #071C26;
}

.manager-search-result-icon {
    align-items: center;
    background: #EEF3F4;
    border-radius: 8px;
    color: #118BEA;
    display: inline-flex;
    flex: 0 0 2.2rem;
    height: 2.2rem;
    justify-content: center;
}

.manager-search-result-icon svg {
    height: 1.1rem;
    width: 1.1rem;
}

.manager-search-result-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
}

.manager-search-result-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manager-search-result-type {
    color: #5D6A70;
    font-size: 0.75rem;
}

.manager-search-result kbd,
.manager-search-footer kbd {
    background: #EEF3F4;
    border: 1px solid #DDE5E7;
    border-radius: 4px;
    color: #5D6A70;
    font: 500 0.68rem 'Inter', sans-serif;
    padding: 0.1rem 0.3rem;
}

.manager-search-footer {
    align-items: center;
    color: #5D6A70;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    gap: 0.3rem;
    margin: 0.8rem 0 0;
}

.catraia-table-wrapper {
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
}

/* Quick Filter Bar Component */
.catraia-filter-bar {
    background: #FFFFFF;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Metric / Stat Card Widget */
.widget-rounded-circle {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.widget-rounded-circle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(7, 28, 38, 0.08) !important;
}

.widget-rounded-circle .avatar-title {
    border-radius: 10px;
}

/* Page Header Actions Toolbar */
.page-title-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Form Actions Bar */
.form-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Empty State Component */
.catraia-empty-state {
    text-align: center;
    padding: 3.5rem 1.5rem;
    color: var(--text-secondary);
}

.catraia-empty-state-icon {
    font-size: 3rem;
    color: var(--brand-primary-light);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.catraia-empty-state-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--brand-deep);
    margin-bottom: 0.5rem;
}
.notification-bell { position: relative; color: inherit; }
.notification-bell-trigger { display: inline-flex; align-items: center; gap: .4rem; border: 0; background: transparent; color: inherit; cursor: pointer; padding: .4rem .65rem; }
.notification-bell-trigger i { font-size: 1.25rem; }
.notification-bell-count { min-width: 1.25rem; border-radius: 999px; background: #e65050; padding: .05rem .35rem; color: #fff; text-align: center; font-size: .7rem; font-weight: 700; }
.notification-bell-panel { position: absolute; z-index: 1050; top: calc(100% + .5rem); right: 0; width: min(22rem, calc(100vw - 2rem)); overflow: hidden; border: 1px solid #e6e8eb; border-radius: .5rem; background: #fff; color: #343a40; box-shadow: 0 16px 40px rgb(0 0 0 / 18%); }
.notification-bell-header, .notification-bell-footer { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; }
.notification-bell-header { border-bottom: 1px solid #e6e8eb; }
.notification-bell-header h2 { margin: 0; font-size: .95rem; font-weight: 700; }
.notification-bell-header button, .notification-bell-footer button { border: 0; background: transparent; color: #118bea; cursor: pointer; font-size: .8rem; }
.notification-bell-items { max-height: 22rem; overflow-y: auto; }
.notification-bell-item { display: flex; flex-direction: column; gap: .2rem; padding: .75rem 1rem; color: inherit; text-decoration: none; }
.notification-bell-item + .notification-bell-item { border-top: 1px solid #e6e8eb; }
.notification-bell-item:hover, .notification-bell-item-unread { background: #edf7ff; }
.notification-bell-item-title { font-size: .85rem; font-weight: 650; }
.notification-bell-item-body, .notification-bell-message { color: #6c757d; font-size: .78rem; }
.notification-bell-message { margin: 0; padding: 1rem; }
.notification-bell-footer { justify-content: space-between; border-top: 1px solid #e6e8eb; font-size: .78rem; }
.notification-bell-footer a { color: #118bea; text-decoration: underline; }
.manager-page-favorite { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid #d9e3ec; border-radius: .35rem; background: #fff; color: #536171; padding: .45rem .7rem; font-size: .85rem; }
.manager-page-favorite:hover, .manager-page-favorite.is-favorite { border-color: #e5a100; color: #b98100; }
.manager-page-favorite svg { width: 1rem; height: 1rem; }

/* ==========================================================================
   Page Title, Icon Badge and Actions Header (Matching laravel-tenant-church)
   ========================================================================== */
.page-title-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
    padding-top: 0.25rem;
}

.page-title-head .page-title-box {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.page-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 8px;
    background-color: #EEF3F4;
    color: #007D86;
    flex-shrink: 0;
    transition: all .2s ease;
    box-shadow: 0 1px 3px rgba(7, 28, 38, 0.04);
}

.page-title-icon svg,
.page-title-icon i {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #172126;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0;
}

.page-title-subtitle {
    display: block;
    font-size: 0.78rem;
    color: #5D6A70;
    margin-top: 2px;
    line-height: 1.3;
}

.page-title-actions,
.page-title-head > .text-end {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.page-title-actions .btn,
.page-title-head > .text-end .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.375rem !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0 0.85rem !important;
    font-size: 0.8125rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    transition: all .2s ease !important;
}

.page-title-actions .btn svg,
.page-title-actions .btn i,
.page-title-head > .text-end .btn svg,
.page-title-head > .text-end .btn i {
    font-size: 15px;
}

/* Toolbar Card Standardization */
.toolbar-card {
    border: 1px solid #DDE5E7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(7, 28, 38, .04);
}

.toolbar-card > .card-header {
    padding: 0.85rem 1.25rem;
    background: transparent;
    border-bottom: 1px solid #DDE5E7;
}

@media (max-width: 767.98px) {
    .page-title-head {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 0.75rem;
    }

    .page-title-head > .text-end,
    .page-title-head .page-title-actions {
        justify-content: flex-start;
        width: 100%;
    }

    .page-title-head > .text-end .btn,
    .page-title-head .page-title-actions .btn {
        flex: 1 1 auto;
    }
}

