/* Custom minimal overrides for Ongo */

html,
body {
    margin: 0;
    padding: 0;
    height: 100% !important;
    overflow: hidden;
}

body {
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.app-shell {
    height: 100vh;
}

.app-header {
    position: sticky;
    top: 0;
    /* z-index: 1700; */
    padding-top: env(safe-area-inset-top, 0px);
    background: transparent;
}

html.dark-mode .app-header {
    background: #1f1f1f;
}

.app-content-scroll {
    height: calc(100% - 54px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

#newChainModal {
    z-index: 1800;
}

.navbar {
    margin-top: -30px !important;
    background: transparent !important;
}

@media (max-width: 768px) {
    .mobile-nav-titlebar {
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        align-items: center;
        justify-content: center;
        pointer-events: none;
    }

    .mobile-nav-title {
        font-size: 1rem;
        font-weight: 600;
        color: rgba(33, 37, 41, 0.9);
        text-align: center;
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-nav-back-brand {
        width: auto;
        height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 999px;
        color: rgba(33, 37, 41, 0.85);
    }

    .mobile-nav-back-brand i {
        font-size: 18px;
    }

    .navbar .container {
        position: relative;
    }

    html.dark-mode .mobile-nav-title {
        color: rgba(233, 236, 239, 0.92);
    }

    html.dark-mode .mobile-nav-back-brand {
        color: rgba(233, 236, 239, 0.92);
    }
}

.featured-contacts-scroll {
    padding-left: 67px !important;
    padding-right: 67px !important;
}

@keyframes ui-spinner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.ui-spinner {
    width: 16px;
    height: 16px;
    border: dotted 3px #ccc;
    display: block;
    border-radius: 50%;
    animation: ui-spinner 1s linear infinite;
    margin: 3px;
}

@media (max-width: 767.98px) {
    input,
    select,
    textarea,
    .form-control,
    .form-select {
        font-size: 16px;
    }

    .featured-contacts-scroll {
        padding-left: 12px !important;
        padding-right: 0 !important;
    }
}

/* Compact secondary nav under main navbar */
.secondary-nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #ffffff;
}

:root {
    --ui-link-color: rgba(33, 37, 41, 0.78);
    --ui-link-hover-color: rgba(33, 37, 41, 0.95);
    --ui-link-underline-color: rgba(33, 37, 41, 0.22);
    --ui-link-underline-hover-color: rgba(33, 37, 41, 0.55);

    --ui-important-color: rgba(33, 37, 41, 0.92);

    --settings-icon-bg: rgba(255, 255, 255, 1);
    --settings-icon-color: rgba(0, 0, 0, 1);
    --settings-cta-bg-start: rgba(0, 0, 0, 0.08);
    --settings-cta-bg-end: rgba(0, 0, 0, 0.02);
    --settings-cta-border: rgba(0, 0, 0, 0.18);
    --settings-cta-shadow: rgba(0, 0, 0, 0.08);
    --settings-badge-bg: rgba(0, 0, 0, 0.10);
    --settings-badge-color: rgba(0, 0, 0, 0.9);
    --settings-badge-border: rgba(0, 0, 0, 0.18);
}

html.dark-mode {
    --ui-link-color: rgba(233, 236, 239, 0.78);
    --ui-link-hover-color: rgba(233, 236, 239, 0.95);
    --ui-link-underline-color: rgba(233, 236, 239, 0.22);
    --ui-link-underline-hover-color: rgba(233, 236, 239, 0.55);

    --ui-important-color: rgba(233, 236, 239, 0.92);

    --settings-icon-bg: rgba(255, 255, 255, 0.1);
    --settings-icon-color: rgba(255, 255, 255, 0.92);
    --settings-cta-bg-start: rgba(255, 255, 255, 0.1);
    --settings-cta-bg-end: rgba(255, 255, 255, 0.03);
    --settings-cta-border: rgba(255, 255, 255, 0.16);
    --settings-cta-shadow: rgba(0, 0, 0, 0.35);
    --settings-badge-bg: rgba(255, 255, 255, 0.12);
    --settings-badge-color: rgba(255, 255, 255, 0.92);
    --settings-badge-border: rgba(255, 255, 255, 0.16);
}

/* Subtle link scheme (avoid buttons/nav/pagination/dropdowns) */
a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(
        .list-group-item
    ):not(.badge):not(.card-link) {
    color: var(--ui-link-color);
    text-decoration-color: var(--ui-link-underline-color);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(
        .list-group-item
    ):not(.badge):not(.card-link):hover {
    color: var(--ui-link-hover-color);
    text-decoration-color: var(--ui-link-underline-hover-color);
}

a:not(.btn):not(.nav-link):not(.page-link):not(.dropdown-item):not(
        .list-group-item
    ):not(.badge):not(.card-link):focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.35);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Explicit minimal link utility */
.link-subtle {
    color: var(--ui-link-color) !important;
    text-decoration-color: var(--ui-link-underline-color) !important;
    text-underline-offset: 0.18em;
    text-decoration-thickness: 1px;
}

.link-subtle:hover {
    color: var(--ui-link-hover-color) !important;
    text-decoration-color: var(--ui-link-underline-hover-color) !important;
}

/* Minimal emphasis utility for "important" text */
.text-important {
    color: var(--ui-important-color) !important;
    font-weight: 600;
}

.secondary-nav .nav-link {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

/* Leads table tweaks */
.leads-table-wrapper .card-body {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Base table layout */
.leads-table {
    border-collapse: separate;
    border-spacing: 0 4px; /* vertical gap between rows */
    border: none;
}

.leads-table thead th {
    font-weight: 600;
    /* border-bottom-color: rgba(0, 0, 0, 0.05); */
    text-transform: uppercase;
    font-size: 0.7rem;
    padding: 0.25rem 0.8rem !important;
}

.leads-table tbody td {
    vertical-align: middle;
    border-top: none; /* remove inner horizontal grid lines */
    padding: 0.5rem 0.8rem !important;
}

/* Alternating rows: subtle background on odd rows only */
.leads-table tbody tr:nth-child(odd) td {
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.events-table tbody tr:nth-child(odd) td {
    background-color: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.events-table tbody tr:nth-child(odd) td {
    background-color: #fff;
}
.events-table tbody td,
.events-table thead th {
    border: none !important;
}
.events-table tbody tr,
.events-table thead tr {
    border: none !important;
}
.leads-table tbody tr:nth-child(odd) td:first-child,
.events-table tbody tr:nth-child(odd) td:first-child {
    border-top-left-radius: 0.2rem;
    border-bottom-left-radius: 0.2rem;
}

.events-table tbody tr:nth-child(odd) td:last-child {
    border-top-right-radius: 0.2rem;
    border-bottom-right-radius: 0.2rem;
}

.leads-table tbody tr:nth-child(odd) td:last-child {
    border-right: 1px solid rgba(0, 0, 0, 0.05);
}
.leads-table tbody tr:nth-child(odd) td:first-child {
    border-left: 1px solid rgba(0, 0, 0, 0.05);
}

@media (max-width: 575.98px) {
    .leads-table tbody tr:nth-child(odd) td:last-child {
        border-top-right-radius: 0.2rem;
        border-bottom-right-radius: 0.2rem;
        border-right: 1px solid rgba(0, 0, 0, 0.05);
    }
}
.leads-table tbody tr:nth-child(even) td {
    background-color: transparent !important;
}
.events-table tbody tr:nth-child(even) td {
    background-color: transparent !important;
}

.service-requests-table tbody td {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
}

@media (max-width: 575.98px) {
    .service-requests-table {
        width: 100%;
        table-layout: fixed;
    }

    .service-requests-table tbody {
        font-size: 0.95rem;
    }

    .service-requests-table th,
    .service-requests-table td {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .service-requests-table .status-col {
        width: 1%;
        white-space: nowrap;
    }
}

.stacked-avatars {
    display: inline-flex;
    align-items: center;
}

.stacked-avatar {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    line-height: 1;
    text-decoration: none;
    background: #e9ecef;
    color: rgba(33, 37, 41, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.95);
    margin-left: -8px;
}

.stacked-avatars .stacked-avatar:first-child {
    margin-left: 0;
}

.stacked-avatar.is-more {
    background: #dee2e6;
    color: rgba(33, 37, 41, 0.75);
    cursor: default;
}

.stacked-avatars.stacked-avatars--lg .stacked-avatar {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
}

.stacked-avatars.stacked-avatars--lg .stacked-avatar:not(:first-child) {
    margin-left: -10px;
}

html.dark-mode .stacked-avatar {
    background: #2b3035;
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(33, 37, 41, 1);
}

html.dark-mode .stacked-avatar.is-more {
    background: #212529;
    color: rgba(255, 255, 255, 0.72);
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(33, 37, 41, 0.08);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 16px 1fr;
    column-gap: 12px;
    padding-bottom: 16px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-title-row {
    padding-top: 2px;
}

.timeline-marker {
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
    left: -0.2px;
    border-radius: 999px;
    margin-top: 14px;
    background: rgba(25, 135, 84, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow:
        0 0 0 3px rgba(25, 135, 84, 0.12),
        0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-content {
    padding: 6px 0;
}

@media (max-width: 575.98px) {
    .timeline-item {
        column-gap: 10px;
        padding-bottom: 12px;
    }

    .timeline::before {
        left: 5px;
    }

    .timeline-marker {
        margin-top: 14px;
    }

    .mobile-borderless {
        border: 0 !important;
        border-radius: 0 !important;
    }

    .profile-avatar {
        width: 44px;
        height: 44px;
        font-size: 0.95rem;
    }

    .profile-action-pill {
        width: 100%;
        justify-content: space-between;
    }

    .profile-action-pill a,
    .profile-action-pill span,
    .profile-action-pill button {
        flex: 1 1 0;
        justify-content: center;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .profile-rate-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }

    .profile-rate-left {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .profile-rate-meta {
        white-space: normal;
    }

    .profile-rate-right {
        width: 100%;
        justify-content: space-between;
        padding-left: 2.7rem;
    }
}

html.dark-mode .timeline::before {
    background: rgba(255, 255, 255, 0.12);
}

html.dark-mode .timeline-marker {
    border-color: rgba(33, 37, 41, 1);
    box-shadow:
        0 0 0 3px rgba(25, 135, 84, 0.18),
        0 6px 16px rgba(0, 0, 0, 0.28);
}

/* Rounded row corners */
.leads-table tbody tr td:first-child {
    border-top-left-radius: 0.2rem;
    border-bottom-left-radius: 0.2rem;
}

.leads-table tbody tr td:last-child {
    border-top-right-radius: 0.2rem;
    border-bottom-right-radius: 0.2rem;
}

/* Softer hover */
.leads-table tbody tr:hover td {
    /* background-color: rgba(0, 0, 0, 0.01); */
    cursor: pointer;
}

/* Follow-up highlight rows (overdue / due today) */
.leads-table tbody tr.followup-row-overdue td {
    background-color: rgba(220, 53, 69, 0.06);
    color: #842029;
}

.leads-table tbody tr.followup-row-today td {
    background-color: rgba(255, 193, 7, 0.08);
    color: #664d03;
}

html.dark-mode .leads-table tbody tr.followup-row-overdue td {
    background-color: rgba(220, 53, 69, 0.18) !important;
    color: #ea868f; /* matches .text-danger-emphasis in dark mode */
}

html.dark-mode .leads-table tbody tr.followup-row-today td {
    background-color: rgba(255, 193, 7, 0.2) !important;
    color: #ffda6a; /* matches .text-warning-emphasis in dark mode */
}

html.dark-mode .events-table tbody tr:nth-child(odd) td {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

html.dark-mode .events-table tbody tr:nth-child(odd) {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

table tr {
    border: transparent !important;
    padding: 10rem !important;
}
.ui-pagination {
    padding: 0.5rem;
}

/* If Bootstrap paginator is ever used */
.ui-pagination .pagination {
    margin-bottom: 0;
}
.ui-pagination .page-link {
    margin: 0 0.2rem;
    font-size: 0.75rem;
    border-radius: 999px;
    border: none;
    color: #6c757d;
}

.ui-pagination .page-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.ui-pagination .page-item.active .page-link {
    background-color: #000;
    color: #fff;
}

/* Styling for Laravel's default Tailwind-style pagination markup
   as rendered inside the events index (no <nav>, buttons inside
   a span.inline-flex ... wrapper) */

/* Compact layout for the button group wrapper */
.ui-pagination span.inline-flex {
    border-radius: 999px;
    box-shadow: none;
}

/* Pagination links */
.ui-pagination a,
.ui-pagination span[aria-current="page"] > span,
.ui-pagination span[aria-disabled="true"] > span {
    margin: 0 0.2rem;
    font-size: 0.75rem;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    border: 1px solid transparent !important;
    background-color: transparent !important;
    color: #6c757d !important;
    text-decoration: none;
}

.ui-pagination a:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
}

/* Current page indicator (Laravel wraps current page as
   <span aria-current="page"><span class="...">2</span></span>) */
.ui-pagination span[aria-current="page"] > span {
    background-color: #000 !important;
    color: #fff !important;
}

/* Hide mobile-only prev/next bar inside paginator (flex sm:hidden) */
.ui-pagination .flex.sm\:hidden {
    display: none;
}

/* Hide the "Showing X to Y of Z results" summary in desktop view */
.ui-pagination .hidden.sm\:flex-1 > div:first-child {
    display: none;
}

/* Center the pill group horizontally */
.ui-pagination .hidden.sm\:flex-1 > div:last-child {
    margin-left: auto;
    margin-right: auto;
}

/* Make pagination arrow icons compact */
.ui-pagination svg {
    width: 14px;
    height: 14px;
}

@media (max-width: 575.98px) {
    .ui-pagination {
        padding: 0.25rem;
    }

    .ui-pagination .hidden.sm\:flex-1 > div:last-child {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .ui-pagination span.inline-flex {
        padding: 0.2rem;
        gap: 0.15rem;
        border-radius: 999px;
        border: 1px solid rgba(0, 0, 0, 0.08);
        background: rgba(0, 0, 0, 0.02);
    }

    html.dark-mode .ui-pagination span.inline-flex {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.05);
    }

    .ui-pagination a,
    .ui-pagination span[aria-current="page"] > span,
    .ui-pagination span[aria-disabled="true"] > span {
        margin: 0;
        min-width: 34px;
        height: 32px;
        padding: 0 0.55rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        font-size: 0.75rem;
        line-height: 1;
    }

    /* Hide extra page numbers on mobile: keep first + last + current */
    .ui-pagination span.inline-flex > a:not(:first-child):not(:last-child),
    .ui-pagination
        span.inline-flex
        > span[aria-current="page"]:not(:first-child):not(:last-child) {
        display: none;
    }

    /* If current page is not at the ends, show it */
    .ui-pagination span.inline-flex > span[aria-current="page"] {
        display: inline-flex;
    }

    /* Bootstrap pagination markup support (ul.pagination > li.page-item > a.page-link) */
    .ui-pagination .pagination {
        gap: 0.15rem;
    }

    .ui-pagination .pagination .page-link {
        margin: 0;
        min-width: 34px;
        height: 32px;
        padding: 0 0.55rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
        font-size: 0.75rem;
        line-height: 1;
        border-color: rgba(0, 0, 0, 0.08);
        background: rgba(0, 0, 0, 0.02);
    }

    html.dark-mode .ui-pagination .pagination .page-link {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.05);
    }

    .ui-pagination .pagination .page-item.active .page-link {
        background: rgba(0, 0, 0, 0.9) !important;
        border-color: rgba(0, 0, 0, 0.9) !important;
        color: #fff !important;
    }

    html.dark-mode .ui-pagination .pagination .page-item.active .page-link {
        background: rgba(255, 255, 255, 0.92) !important;
        border-color: rgba(255, 255, 255, 0.92) !important;
        color: #000 !important;
    }

    /* Hide extra numbers on mobile: keep prev/next + active page */
    .ui-pagination
        .pagination
        .page-item:not(:first-child):not(:last-child):not(.active) {
        display: none;
    }
}

.dropdown-menu {
    font-size: 0.85rem;
}

.nav-user-menu {
    padding: 10px;
    border: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

html.dark-mode .nav-user-menu {
    border: none;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.nav-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
}

.nav-user-menu .dropdown-item i {
    opacity: 0.7;
}

.nav-user-menu .dropdown-item:hover i,
.nav-user-menu .dropdown-item:focus i {
    opacity: 1;
}

.leads-table .dropdown-menu {
    font-size: 0.7rem;
}
.leads-table .badge {
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.lead-details dt,
.lead-details dd {
    border-top: 0.1px solid #eee;
    padding: 5px;
    margin-bottom: 0;
}
.lead-details dt:first-of-type,
.lead-details dt:first-of-type + dd {
    border-top: none;
}
.card {
    border: solid 0.1px #ddd;
}
p {
    margin-bottom: 0;
}

.metric-pill {
    display: inline-block;
    border-radius: 0.35rem;
    background-color: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

html.dark-mode .metric-pill {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Circular icon badges inside cards */
.card .rounded-circle.d-inline-flex {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html.dark-mode .card .rounded-circle.d-inline-flex {
    border-color: rgba(255, 255, 255, 0.16);
}

/* Softer borders on small outline filter buttons in compact filter rows */
.row.g-2.align-items-end.small .btn-outline-secondary.btn-sm,
.row.g-2.align-items-center.small .btn-outline-secondary.btn-sm {
    border-width: 0.5px;
}

/* Dark mode styles */
html.dark-mode,
html.dark-mode body {
    background-color: #121212 !important;
    color: #f8f9fa;
}

html.dark-mode .navbar,
html.dark-mode .secondary-nav {
    background-color: #1f1f1f !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark-mode .navbar .navbar-brand span,
html.dark-mode .navbar .nav-link,
html.dark-mode .secondary-nav .nav-link,
html.dark-mode .btn-link,
html.dark-mode .page-link {
    color: #e9ecef !important;
    margin: 0 !important;
}

html.dark-mode .card {
    background-color: #1e1e1e;
    border-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .leads-table tbody tr:nth-child(odd) td {
    background-color: rgba(255, 255, 255, 0.04);
    border-top-color: rgba(255, 255, 255, 0.08);
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .leads-table tbody tr:nth-child(odd) td:first-child {
    border-left-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .leads-table tbody tr:nth-child(odd) td:last-child {
    border-right-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .leads-table .badge {
    border-color: rgba(255, 255, 255, 0.16);
}

html.dark-mode .lead-details dt,
html.dark-mode .lead-details dd {
    border-top-color: #333;
}

html.dark-mode .dropdown-menu {
    background-color: #1f1f1f;
    color: #f8f9fa;
}

html.dark-mode .dropdown-item {
    color: #f8f9fa;
}

html.dark-mode .dropdown-item:hover,
html.dark-mode .dropdown-item:focus {
    background-color: #2a2a2a;
}

th {
    background-color: transparent !important;
}

/* Dark-mode overrides for common Bootstrap utility classes
   so dashboard cards and stats look correct while keeping
   color variations between primary/success/warning/danger */
html.dark-mode .bg-body-tertiary,
html.dark-mode .bg-white,
html.dark-mode .bg-light {
    background-color: #1e1e1e !important; /* neutral surfaces */
}

/* Neutral text */
html.dark-mode .text-muted,
html.dark-mode .text-dark,
html.dark-mode .text-body {
    color: #e9ecef !important;
}

/* Colored accents keep distinct tints on dark */
html.dark-mode .bg-primary-subtle {
    background-color: rgba(13, 110, 253, 0.18) !important;
    border-color: rgba(13, 110, 253, 0.4) !important;
}

html.dark-mode .bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.2) !important;
    border-color: rgba(25, 135, 84, 0.45) !important;
}

html.dark-mode .bg-warning-subtle {
    background-color: rgba(255, 193, 7, 0.22) !important;
    border-color: rgba(255, 193, 7, 0.5) !important;
}

html.dark-mode .bg-danger-subtle {
    background-color: rgba(220, 53, 69, 0.2) !important;
    border-color: rgba(220, 53, 69, 0.45) !important;
}

html.dark-mode .text-primary-emphasis {
    color: #6ea8fe !important;
}

html.dark-mode .text-success-emphasis {
    color: #75b798 !important;
}

html.dark-mode .text-warning-emphasis {
    color: #ffda6a !important;
}

html.dark-mode .text-danger-emphasis {
    color: #ea868f !important;
}

html.dark-mode .form-label,
html.dark-mode .form-check-label {
    color: rgba(233, 236, 239, 0.9) !important;
}

html.dark-mode .form-control,
html.dark-mode .form-select,
html.dark-mode .form-control:focus,
html.dark-mode .form-select:focus {
    background-color: #1e1e1e !important;
    color: #f8f9fa !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

html.dark-mode .form-control::placeholder {
    color: rgba(233, 236, 239, 0.6) !important;
}

html.dark-mode .input-group-text {
    background-color: transparent !important;
    color: rgba(233, 236, 239, 0.7) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

html.dark-mode .form-check-input {
    background-color: #1e1e1e !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

.process-health-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

html.dark-mode .process-health-badge {
    border-color: rgba(255, 255, 255, 0.18);
}

.contacts-connect-icon {
    font-size: 1.2rem;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    margin: 0;
    padding: 0;
}

.sla-breached-row td {
    background-color: rgba(220, 53, 69, 0.06) !important;
}

html.dark-mode .sla-breached-row td {
    background-color: rgba(220, 53, 69, 0.14) !important;
}

.sla-breached-badge {
    background: rgba(220, 53, 69, 0.12);
    color: rgba(220, 53, 69, 0.95);
    border: 1px solid rgba(220, 53, 69, 0.25);
}

html.dark-mode .sla-breached-badge {
    background: rgba(220, 53, 69, 0.18);
    color: rgba(255, 255, 255, 0.92);
    border-color: rgba(220, 53, 69, 0.35);
}

/* Dark mode modal tweaks */
html.dark-mode .modal-content {
    background-color: #1f1f1f;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.quick-help-bar {
    background: #f8f9fa;
    display: none;
}

html.dark-mode .quick-help-bar {
    background-color: #1f1f1f;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

html.dark-mode .quick-help-bar a {
    color: rgba(233, 236, 239, 0.85) !important;
}

html.dark-mode .quick-help-bar a:hover {
    color: #f8f9fa !important;
}

html.dark-mode .quick-help-bar i {
    color: rgba(233, 236, 239, 0.8) !important;
}

/* Slightly increase default card padding */
.card-body.ui-card-body {
    padding: 0.9rem 1rem;
}

.events-hero {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    transition:
        min-height 0.3s ease,
        padding 0.3s ease;
}

.events-hero-search {
    min-height: 265px;
}

.search-results-animated {
    animation: fadeInUp 0.3s ease-out;
}

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

.categories button {
    font-size: 12px !important;
    background-color: transparent !important;
    color: #000;
    opacity: 0.7;
    border: 0.1px solid #ccc !important;
    border-radius: 20px;
    padding: 5px 10px !important;
    background: #f7f7f7 !important;
}

.categories button:hover {
    opacity: 1;
}

.gradient-text {
    background-image: linear-gradient(90deg, #6d28d9, #2563eb, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

html.dark-mode .gradient-text {
    background-image: linear-gradient(90deg, #a78bfa, #60a5fa, #22d3ee);
}

html.dark-mode .events-hero .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.home-muted {
    color: rgba(33, 37, 41, 0.7) !important;
}

html.dark-mode .home-muted {
    color: rgba(255, 255, 255, 0.65) !important;
}

.profile-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.02);
    color: rgba(33, 37, 41, 0.85);
    text-decoration: none;
}

.profile-action-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.18);
    color: rgba(33, 37, 41, 1);
}

.profile-action-pill {
    display: inline-flex;
    align-items: center;
    border-radius: var(--bs-border-radius);
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.profile-action-pill a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    color: rgba(33, 37, 41, 0.85);
    text-decoration: none;
    white-space: nowrap;
}

.profile-action-pill span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    color: rgba(33, 37, 41, 0.65);
    text-decoration: none;
    white-space: nowrap;
}

.profile-action-pill button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.7rem;
    color: rgba(33, 37, 41, 0.85);
    white-space: nowrap;
    background: transparent;
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    line-height: inherit;
}

.profile-action-pill a + a {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-action-pill span + span,
.profile-action-pill a + span,
.profile-action-pill span + a {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-action-pill button + button {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-action-pill a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(33, 37, 41, 1);
}

.profile-action-pill .is-disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.profile-action-pill button:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(33, 37, 41, 1);
}

.profile-action-pill button:focus-visible {
    outline: 2px solid rgba(13, 110, 253, 0.55);
    outline-offset: -2px;
}

html.dark-mode .profile-action-btn {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
}

html.dark-mode .profile-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: rgba(255, 255, 255, 0.95);
}

html.dark-mode .profile-action-pill {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

html.dark-mode .profile-action-pill a {
    color: rgba(255, 255, 255, 0.85);
}

html.dark-mode .profile-action-pill span {
    color: rgba(255, 255, 255, 0.65);
}

html.dark-mode .profile-action-pill button {
    color: rgba(255, 255, 255, 0.85);
}

html.dark-mode .profile-action-pill a + a {
    border-left-color: rgba(255, 255, 255, 0.16);
}

html.dark-mode .profile-action-pill span + span,
html.dark-mode .profile-action-pill a + span,
html.dark-mode .profile-action-pill span + a {
    border-left-color: rgba(255, 255, 255, 0.16);
}

html.dark-mode .profile-action-pill button + button {
    border-left-color: rgba(255, 255, 255, 0.16);
}

html.dark-mode .profile-action-pill a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

html.dark-mode .profile-action-pill button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
}

html.dark-mode .profile-action-pill button:focus-visible {
    outline-color: rgba(13, 110, 253, 0.65);
}

.profile-rates-card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.profile-rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0.7rem;
    border-radius: var(--bs-border-radius);
}

.profile-rate-row + .profile-rate-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.profile-rate-row:first-child {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.profile-rate-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.profile-rate-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.08);
    color: rgba(13, 110, 253, 0.95);
    border: 1px solid rgba(13, 110, 253, 0.22);
    flex: 0 0 auto;
}

.profile-rate-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.1;
}

.profile-rate-meta {
    font-size: 0.78rem;
    color: rgba(33, 37, 41, 0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 520px;
}

.profile-rate-right {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.profile-rate-options {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
}

.profile-rate-price {
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(33, 37, 41, 0.9);
}

.profile-rate-status {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.6);
    color: rgba(33, 37, 41, 0.75);
}

.profile-rate-status.is-available {
    background: rgba(25, 135, 84, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
    color: rgba(25, 135, 84, 0.95);
}

html.dark-mode .profile-rates-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

html.dark-mode .profile-rate-row + .profile-rate-row {
    border-top-color: rgba(255, 255, 255, 0.12);
}

html.dark-mode .profile-rate-icon {
    background: rgba(13, 110, 253, 0.18);
    color: rgba(120, 180, 255, 0.95);
    border-color: rgba(120, 180, 255, 0.32);
}

html.dark-mode .profile-rate-meta {
    color: rgba(255, 255, 255, 0.62);
}

html.dark-mode .profile-rate-price {
    color: rgba(255, 255, 255, 0.9);
}

html.dark-mode .profile-rate-status {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
}

html.dark-mode .profile-rate-status.is-available {
    background: rgba(25, 135, 84, 0.18);
    border-color: rgba(25, 135, 84, 0.28);
    color: rgba(130, 230, 180, 0.95);
}

.avatar-with-indicator {
    position: relative;
    display: inline-flex;
}

.avatar-availability-dot {
    position: absolute;
    right: -1px;
    bottom: -1px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 1);
    background: rgba(108, 117, 125, 0.7);
}

.avatar-availability-dot.is-call-now {
    background: rgba(25, 135, 84, 1);
}

.avatar-availability-dot.is-available-only {
    background: rgba(255, 193, 7, 1);
}

html.dark-mode .avatar-availability-dot {
    border-color: rgba(33, 37, 41, 1);
}

.hide-scrollbar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.featured-contact-card {
    border: solid 0.1px #eee !important;
    border-radius: 10px !important;
}

html.dark-mode .featured-contact-card {
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
}

html.dark-mode .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.line {
    border-top: dotted 1px #ddd;
}

html.dark-mode .line {
    border-top-color: rgba(255, 255, 255, 0.1) !important;
}

.full-bleed {
    width: 100vw;
    margin-left: calc(50% - 50vw);
}

.container-gutter {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    padding-right: calc(var(--bs-gutter-x) * 0.5);
}

.container-gutter-left {
    padding-left: calc(var(--bs-gutter-x) * 0.5) !important;
}

.first-card-offset {
    margin-left: calc(var(--bs-gutter-x) * 0.5);
}

@media (min-width: 576px) {
    .container-gutter {
        padding-left: max(
            calc((100vw - 540px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
        padding-right: max(
            calc((100vw - 540px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
    }

    .container-gutter-left {
        padding-left: max(
            calc((100vw - 540px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        ) !important;
    }

    .first-card-offset {
        margin-left: max(
            calc((100vw - 540px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
    }
}

@media (min-width: 768px) {
    .container-gutter {
        padding-left: max(
            calc((100vw - 720px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
        padding-right: max(
            calc((100vw - 720px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
    }

    .container-gutter-left {
        padding-left: max(
            calc((100vw - 720px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        ) !important;
    }

    .first-card-offset {
        margin-left: max(
            calc((100vw - 720px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
    }
}

@media (min-width: 992px) {
    .container-gutter {
        padding-left: max(
            calc((100vw - 960px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
        padding-right: max(
            calc((100vw - 960px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
    }

    .container-gutter-left {
        padding-left: max(
            calc((100vw - 960px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        ) !important;
    }

    .first-card-offset {
        margin-left: max(
            calc((100vw - 960px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
    }
}

@media (min-width: 1200px) {
    .container-gutter {
        padding-left: max(
            calc((100vw - 1140px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
        padding-right: max(
            calc((100vw - 1140px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
    }

    .container-gutter-left {
        padding-left: max(
            calc((100vw - 1140px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        ) !important;
    }

    .first-card-offset {
        margin-left: max(
            calc((100vw - 1140px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
    }
}

@media (min-width: 1400px) {
    .container-gutter {
        padding-left: max(
            calc((100vw - 1320px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
        padding-right: max(
            calc((100vw - 1320px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
    }

    .container-gutter-left {
        padding-left: max(
            calc((100vw - 1320px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        ) !important;
    }

    .first-card-offset {
        margin-left: max(
            calc((100vw - 1320px) / 2),
            calc(var(--bs-gutter-x) * 0.5)
        );
    }
}

html.dark-mode .categories button {
    color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

html.dark-mode .categories button:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.14) !important;
}

html.dark-mode .hero-metric {
    color: rgba(255, 255, 255, 0.85) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

html.dark-mode .ui-border {
    border: solid 0.1px rgba(255, 255, 255, 0.1) !important;
}

.ui-border {
    border: solid 0.1px #ddd !important;
}

.welcome-hero-title {
    font-size: clamp(1.75rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

@media (max-width: 575.98px) {
    .welcome-hero-title {
        font-size: 2rem;
        line-height: 1.15;
    }
}

.categories {
    text-align: center;
}

.events-hero .carousel-indicators {
    margin-bottom: 0;
}

.events-hero .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

/* Make featured slides fill the hero area */
.events-hero #featuredEventsCarousel {
    flex: 1 1 auto;
    width: 100%;
}

.events-hero #featuredEventsCarousel .carousel-inner,
.events-hero #featuredEventsCarousel .carousel-item {
    height: 100%;
}

.events-hero {
    overflow: hidden;
    border-radius: 8px;
    background-color: cover;
    background-position: center;
    position: relative;
}

.events-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(
        to bottom,
        rgba(227, 203, 183, 0),
        rgba(0, 0, 0, 0.99)
    ); */
    z-index: 1;
    pointer-events: none;
    border-radius: 8px;
}

.hero-footer {
    width: 100%;
    padding: 1rem 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-footer form {
    position: relative;
    width: 100%;
}

.hero-metrics {
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    justify-content: center;
    top: 1.4rem;
    display: flex;
    gap: 0.5rem;
    font-size: 11px;
    color: #fff;
    /* Keep above hero background but below Bootstrap modals (z-index 1055) */
    z-index: 1000;
}

html.dark-mode .hero-metrics {
    color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 575.98px) {
    .hero-metrics {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        justify-content: center;
        width: max-content;
        top: 0 !important;
        border: 0.1px solid #ddd;
        border-radius: 20px;
        background-color: #f7f7f7;
    }
}

@media (max-width: 575.98px) {
    html.dark-mode .hero-metrics {
        border-color: rgba(255, 255, 255, 0.18) !important;
        background-color: rgba(255, 255, 255, 0.06) !important;
    }
}

.hero-metric {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 2px 8px;
    border-radius: 999px;
    /* border: solid .1px #ccc; */
    color: rgba(0, 0, 0, 0.6) !important;
}

html.dark-mode .hero-metric {
    color: rgba(255, 255, 255, 0.85) !important;
}

.hero-metric-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6c757d;
}

.hero-metric-dot-active {
    background: #22c55e; /* green */
}

.hero-metric-dot-upcoming {
    background: #0ea5e9; /* blue */
}

.nav-btn {
    text-decoration: none;
}

input {
    outline: none !important;
    box-shadow: none !important;
}

.events-hero #featuredEventsCarousel .carousel-item > div {
    height: 100%;
    align-items: center;
}

@media (max-width: 575.98px) {
    .events-hero {
        min-height: 400px;
    }

    .hero-metrics {
        position: absolute !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        top: 1.4rem;
        margin-top: 0;
        justify-content: center;
        width: max-content;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .events-table tbody tr:nth-child(odd) td {
        border: none !important;
    }

    .events-table {
        border-collapse: separate;
        border-spacing: 0 6px;
    }

    .events-table tbody tr:nth-child(odd) {
        box-shadow: inset 0 0 0 1px #eee;
        border-radius: 5px;
    }

    .events-table tbody tr:nth-child(odd) td:nth-child(2) {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .events-table.events-table--chains tbody tr:nth-child(odd) td:first-child {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    .events-table.events-table--chains tbody tr:nth-child(even) td {
        padding-top: 20px !important;
        padding-bottom: 20px !important;
    }

    .events-table tbody tr:nth-child(odd) td:last-child {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }
}

/* Event images: full-width, compact, horizontal feel */
.featured-slide-img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
}

.event-card {
    overflow: hidden;
}

.event-card-media {
    position: relative;
    height: 180px;
    overflow: hidden;
}

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

.event-card-media::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0.99)
    );
    z-index: 1;
}

.event-card-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    color: #fff;
    padding: 0.5rem 1.5rem;
    padding-bottom: 1rem;
}

.event-price-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    z-index: 3;
}

.event-price-badge .badge {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.events-table .badge {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.connect-btn {
    border-radius: 10px;
    border: solid 0.2px #eee !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.connect-btn button {
    font-weight: 600;
}

html.dark-mode .connect-btn {
    border-radius: 10px;
    border: solid 0.3px rgba(255, 255, 255, 0.3) !important;
}

html.dark-mode .events-table .badge {
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.creator-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #f1f3f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

.events-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: #6c757d;
}

.events-table {
    border-collapse: collapse;
}

.events-table > :not(caption) > * > * {
    border-bottom-width: 0;
}

.events-table tbody tr:nth-child(odd) {
    border-radius: 0.5rem;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.events-table tbody tr:nth-child(even) {
    border-radius: 0;
    box-shadow: none;
}

/* (attendees-table uses the same base row styling as events-table; no extra borders) */

/* Events details modal: align with table aesthetics (minimal, modern) */
.events-modal .modal-dialog {
    max-width: 480px;
}

.events-modal .modal-content {
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.events-modal .modal-header,
.events-modal .modal-footer {
    border-color: rgba(0, 0, 0, 0.05);
    padding: 0.6rem 0.9rem;
}

.events-modal .modal-body {
    padding: 0.75rem 0.9rem;
}

.events-modal .modal-title {
    font-size: 0.95rem;
}

.events-modal .btn-sm {
    border-radius: 999px;
}

.events-modal .btn-outline-dark,
.events-modal .btn-outline-secondary {
    border-width: 0.5px;
}

.events-modal-attendees {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.events-modal-attendee-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    color: inherit;
}

.events-modal-attendee-row:hover {
    text-decoration: none;
}

.events-modal-attendee-avatar {
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.06);
}

.events-modal-attendee-avatar.more {
    background-color: rgba(13, 110, 253, 0.08);
    color: #0d6efd;
}

.events-modal-attendee-name {
    color: inherit;
}

.events-modal-attendee-occupation {
    font-size: 0.7rem;
    color: #6c757d;
}

.ui-pagination {
    justify-content: space-between !important;
}

.page-item.disabled {
    background: transparent !important;
}

.page-link {
    background-color: transparent !important;
}

.page-item.active .page-link {
    background-color: #000 !important;
}

.dashboard-metric {
    border: solid 1px rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
}

.dashboard-metric-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.dashboard-metric-link:hover {
    color: inherit;
    text-decoration: none;
}

.dashboard-metric-link:focus-visible {
    outline: none;
}

.dashboard-metric-link:focus-visible .dashboard-metric {
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.18);
}

.dashboard-metric-link:hover .dashboard-metric {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
}

.dashboard-metric .card-body {
    padding: 16px;
}

.dashboard-metric-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dashboard-metric-left {
    display: contents;
}

@media (max-width: 575.98px) {
    .dashboard-metric-left {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .dashboard-metric-top {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .dashboard-metric-top .dashboard-metric-icon {
        order: 0;
    }

    .dashboard-metric-top .dashboard-metric-label {
        order: 1;
    }
}

.dashboard-metric-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6c757d;
}

.dashboard-metric-value {
    margin-top: 10px;
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.1;
}

.dashboard-metric-value--inline {
    margin-top: 0;
    font-size: 1.25rem;
    line-height: 1;
    text-align: right;
    white-space: nowrap;
}

.dashboard-metric-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: solid 1px rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.65);
}

.dashboard-metric-icon--primary {
    background: rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.2);
    color: rgba(13, 110, 253, 0.95);
}

.dashboard-metric-icon--success {
    background: rgba(25, 135, 84, 0.12);
    border-color: rgba(25, 135, 84, 0.2);
    color: rgba(25, 135, 84, 0.95);
}

.dashboard-metric-icon--warning {
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.24);
    color: rgba(255, 193, 7, 0.95);
}

.dashboard-metric-icon--info {
    background: rgba(13, 202, 240, 0.14);
    border-color: rgba(13, 202, 240, 0.24);
    color: rgba(13, 202, 240, 0.95);
}

html.dark-mode .dashboard-metric {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

html.dark-mode .dashboard-metric-link:hover .dashboard-metric {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
}

html.dark-mode .dashboard-metric-link:focus-visible .dashboard-metric {
    box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.22);
}

html.dark-mode .dashboard-metric-label {
    color: rgba(233, 236, 239, 0.7);
}

html.dark-mode .dashboard-metric-value {
    color: #e9ecef;
}

html.dark-mode .dashboard-metric-icon {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(233, 236, 239, 0.85);
}

.modal-btns {
    display: flex;
    gap: 5px;
    border: solid 1px #eee;
    border-radius: 8px;
    padding: 6px;
    background-color: #f6f6f6;
}

html.dark-mode .modal-btns {
    border-color: rgba(255, 255, 255, 0.14);
    background-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .modal-btns .btn {
    color: #e9ecef;
}

html.dark-mode .modal-btns .btn:hover,
html.dark-mode .modal-btns .btn:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .modal-btns .btn-dark {
    background-color: #e9ecef;
    color: #000;
}

html.dark-mode .modal-btns .btn-dark:hover,
html.dark-mode .modal-btns .btn-dark:focus {
    background-color: #fff;
    color: #000;
}

html.dark-mode .modal-btns .btn-outline-secondary {
    color: #adb5bd;
}

.modal-btn {
    border: none;
    border-radius: 4px !important;
}

.events-date-quick-btn {
    border-radius: 4px !important;
}

#form-categories .form-check-inline {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* .events-table tbody tr:nth-child(odd) td:last-child {
    border-right: solid 1px #eee!important;
    border-radius: 10px!important;
    border-top-left-radius: 0.2rem!important;
    border-bottom-left-radius: 0.2rem!important;
}
.events-table tbody tr:nth-child(odd) td:first-child {
    border-left: solid 1px #eee!important;
    border-radius: 10px!important;
    border-top-right-radius: 0.2rem!important;
    border-bottom-right-radius: 0.2rem!important;
}
.events-table tbody tr:nth-child(odd) td {
    border-top: solid 1px #eee!important;
    border-bottom: solid 1px #eee!important;
} */
.events-search .input-group {
    border: solid 0.1px #ddd;
    border-radius: 4px !important;
}

.events-search input {
    background: transparent;
}

.events-search span {
    background-color: transparent !important;
}

.events-search-group {
    padding: 1px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.events-search-icon {
    color: dodgerblue;
}

.events-modal-dialog {
    width: 404px;
    max-width: calc(100vw - 24px);
}

.events-modal-when {
    margin-left: 15px;
}

html.dark-mode .events-search .input-group {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.nav-notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 16px;
    height: 16px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    background: #dc3545;
    color: #fff;
    border: 2px solid #fff;
    line-height: 1;
}

html.dark-mode .nav-notif-badge {
    border-color: #1f1f1f;
}

html.dark-mode #search-input {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background-color: rgba(255, 255, 255, 0.01) !important;
    border-radius: 3px !important;
}

.nav-notif-menu {
    width: 340px;
    max-width: calc(100vw - 24px);
    padding: 0;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

@media (max-width: 576px) {
    .nav-notif-menu {
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        top: 72px !important;
        bottom: auto !important;
        transform: none !important;
        max-height: calc(100vh - 96px);
        overflow: auto;
        z-index: 1080;
    }
}

html.dark-mode .nav-notif-menu {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    background: rgba(31, 31, 31, 0.92);
}

.nav-notif-menu .dropdown-divider {
    opacity: 0.06;
}

html.dark-mode .nav-notif-menu .dropdown-divider {
    opacity: 0.12;
}

.nav-notif-list {
    max-height: 360px;
    overflow: auto;
}

.nav-notif-item {
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-notif-item:hover {
    background: rgba(0, 0, 0, 0.035);
}

.nav-notif-item + .nav-notif-item {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

html.dark-mode .nav-notif-item + .nav-notif-item {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.nav-notif-item.is-unread {
    position: relative;
}

.nav-notif-item.is-unread::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 14px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.95);
}

html.dark-mode .nav-notif-item.is-unread::before {
    background: rgba(110, 168, 254, 0.95);
}

.nav-notif-title {
    font-size: 0.85rem;
    line-height: 1.25;
    padding-left: 10px;
    color: inherit;
}

.nav-notif-meta {
    font-size: 0.72rem;
    color: #6c757d;
    padding-left: 10px;
}

.nav-notif-empty,
.nav-notif-loading {
    padding: 12px;
    font-size: 0.8rem;
    color: #6c757d;
}

html.dark-mode .nav-notif-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

html.dark-mode .nav-notif-meta,
html.dark-mode .nav-notif-empty,
html.dark-mode .nav-notif-loading {
    color: rgba(233, 236, 239, 0.7);
}

html.dark-mode .events-search .d-flex.align-items-center.w-100 {
    background: #1e1e1e !important;
}

html.dark-mode .events-search .form-control {
    color: #f8f9fa;
}

html.dark-mode .events-search .form-control::placeholder {
    color: rgba(233, 236, 239, 0.6);
}

html.dark-mode .events-search .input-group-text {
    background-color: transparent !important;
    border-color: transparent !important;
}

html.dark-mode .events-search #eventDateFilterButton {
    background-color: transparent !important;
    color: #e9ecef;
}

html.dark-mode .events-search-group {
    background: rgba(255, 255, 255, 0.06);
}

.events-categories button {
    /* border: solid 1px #ddd!important; */
    border-radius: 20px !important;
    padding: 0 !important;
    opacity: 0.7;
    margin-right: 10px;
}
.events-categories button:hover {
    color: #000 !important;
    background: transparent;
    opacity: 1;
}

html.dark-mode .events-categories button {
    background: rgba(255, 255, 255, 0.06) !important;
    color: rgba(233, 236, 239, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding-left: 0.6rem !important;
    padding-right: 0.6rem !important;
    margin-right: 2px !important;
    margin-bottom: 2px !important;
    opacity: 0.85;
}

html.dark-mode .events-categories {
    gap: 2px !important;
}

html.dark-mode .events-categories button:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f8f9fa !important;
    opacity: 1;
}

@media (max-width: 575.98px) {
    html:not(.dark-mode) .events-categories {
        gap: 2px !important;
    }

    html:not(.dark-mode) .events-categories button {
        background: rgba(0, 0, 0, 0.02) !important;
        color: rgba(33, 37, 41, 0.9) !important;
        border: 1px solid rgba(0, 0, 0, 0.12) !important;
        padding-left: 0.6rem !important;
        padding-right: 0.6rem !important;
        margin-right: 2px !important;
        margin-bottom: 2px !important;
        opacity: 0.85;
    }

    html:not(.dark-mode) .events-categories button:hover {
        background: rgba(0, 0, 0, 0.05) !important;
        color: #000 !important;
        opacity: 1;
    }
}

.profile-stats-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
}

.profile-stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}

.profile-stat-pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.profile-stat-pill-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.profile-stat-pill-value {
    font-weight: 700;
    font-size: 0.9rem;
    color: inherit;
}

html.dark-mode .profile-stat-pill {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

html.dark-mode .profile-stat-pill-icon {
    background: rgba(13, 110, 253, 0.18);
    color: #6ea8fe;
}

html.dark-mode .profile-stat-pill-label {
    color: rgba(233, 236, 239, 0.7);
}

@media (max-width: 575.98px) {
    .profile-stat-pill {
        padding: 0.45rem 0.65rem;
    }

    .profile-stat-pill-icon {
        width: 26px;
        height: 26px;
    }
}

button {
    outline: none !important;
    box-shadow: none !important;
}

.border {
    border: 0.1px solid #ddd !important;
}

.content-center {
    justify-content: center;
    display: flex;
}

.solution-card {
    background: #ffffff;
}

html.dark-mode .solution-card {
    background: rgba(255, 255, 255, 0.06);
}

.solution-icon-badge {
    background: var(--bs-primary) !important;
}

.solution-icon-badge i {
    color: #ffffff !important;
}

.faq-pill {
    background: rgba(13, 110, 253, 0.04);
}

.faq-pill-alt {
    background: #ffffff;
}

html.dark-mode .faq-pill {
    background: rgba(255, 255, 255, 0.04);
}

html.dark-mode .faq-pill-alt {
    background: rgba(255, 255, 255, 0.06);
}

.faq-pill-button {
    color: inherit;
}

.faq-pill-button:hover {
    color: inherit;
}

.faq-pill-button:focus {
    box-shadow: none;
}

body {
    position: relative;
}

body.is-auth-view::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 140px 140px;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.35;
    -webkit-mask-image: radial-gradient(
        circle at 50% 50%,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0) 72%
    );
    mask-image: radial-gradient(
        circle at 50% 50%,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0) 72%
    );
}

body > *:not(.modal):not(.modal-backdrop) {
    position: relative;
}

.modal-backdrop {
    z-index: 1600;
}

.modal {
    z-index: 1810;
}

html.dark-mode body.is-auth-view::before {
    background-image:
        linear-gradient(
            to right,
            rgba(255, 255, 255, 0.14) 1px,
            transparent 1px
        ),
        linear-gradient(
            to bottom,
            rgba(255, 255, 255, 0.14) 1px,
            transparent 1px
        );
    background-position: center;
    opacity: 0.22;
    -webkit-mask-image: radial-gradient(
        circle at 50% 50%,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 72%
    );
    mask-image: radial-gradient(
        circle at 50% 50%,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0) 72%
    );
}

/* Button Loading Spinner */
.btn-spinner {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-right-color: transparent;
    animation: btn-spin 0.75s linear infinite;
    vertical-align: middle;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn.is-loading {
    pointer-events: none;
    opacity: 0.75;
    position: relative;
}

.btn.is-loading .btn-text {
    visibility: hidden;
}

.btn.is-loading .btn-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* Auto-loading form buttons */
form.is-submitting button[type="submit"],
form.is-submitting input[type="submit"] {
    pointer-events: none;
    opacity: 0.75;
}

/* Resources & Tools */
.tools-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tools-scroll-container::-webkit-scrollbar {
    display: none;
}

.tools-scroll {
    padding-left: 67px;
    padding-right: 67px;
}

@media (max-width: 767.98px) {
    .tools-scroll {
        padding-left: 12px;
        padding-right: 12px;
    }
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 0.2px solid #ddd;
    color: var(--bs-body-color);
    padding: 1rem 1.25rem;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.2s ease;
    width: 280px;
    flex-shrink: 0;
}

.tool-card:hover {
    background: #f0f1f2;
    color: var(--bs-body-color);
}

.tool-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    color: #fff;
}

.tool-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tool-title {
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
}

.tool-desc {
    font-size: 0.7rem;
    color: var(--bs-secondary-color);
    white-space: nowrap;
}

.tool-arrow {
    opacity: 0.3;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.tool-card:hover .tool-arrow {
    opacity: 0.6;
}

html.dark-mode .tool-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .tool-card:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* Apple-style List */
.apple-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

/* Settings list */
.settings-section-title {
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: rgba(33, 37, 41, 0.55);
    margin-left: 15px;
}

.settings-group {
    background: #ffffff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.settings-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    text-decoration: none;
    color: inherit;
    background: transparent;
}

.settings-row + .settings-row {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.settings-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    background: rgba(13, 110, 253, 0.1);
    color: rgba(13, 110, 253, 0.95);
}

.settings-icon i {
    font-size: 16px;
}

.settings-content {
    flex: 1;
    min-width: 0;
}

.settings-title {
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
}

.settings-subtitle {
    margin-top: 2px;
    font-size: 0.74rem;
    color: rgba(33, 37, 41, 0.55);
    line-height: 1.25;
}

.settings-trailing {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.settings-chevron {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.25);
}

.settings-row:active {
    background: rgba(0, 0, 0, 0.04);
}

html.dark-mode .settings-section-title {
    color: rgba(233, 236, 239, 0.62);
}

html.dark-mode .settings-group {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .settings-row + .settings-row {
    border-top-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .settings-subtitle {
    color: rgba(233, 236, 239, 0.6);
}

html.dark-mode .settings-chevron {
    color: rgba(255, 255, 255, 0.28);
}

.apple-list-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1rem;
    text-decoration: none;
    color: var(--bs-body-color);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.15s;
    margin: 0 10px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.apple-list-item:last-child {
    border-bottom: none;
}

.apple-list-item:hover {
    background: transparent !important;
    opacity: 1;
    color: #000;
}

.apple-list-item:active {
    background: rgba(0, 0, 0, 0.06);
}

.apple-list-item > i:first-child {
    font-size: 1.125rem;
    color: var(--bs-secondary-color);
    width: 1.5rem;
    text-align: center;
}

.apple-list-item > span {
    flex: 1;
    font-size: 0.9375rem;
}

.apple-list-count {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.04);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    line-height: 1.2;
    min-width: 25px;
    min-height: 25px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.apple-list-item > i:last-child {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.25);
}

html.dark-mode .apple-list {
    background: rgba(255, 255, 255, 0.05);
}

html.dark-mode .apple-list-item {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .apple-list-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

html.dark-mode .apple-list-count {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

html.dark-mode .apple-list-item > i:last-child {
    color: rgba(255, 255, 255, 0.25);
}

/* Service requests (mobile card UI) */
.sr-fab {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.95);
    border: 0;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.sr-fab:hover {
    background: rgba(34, 197, 94, 1);
    color: #fff;
}

.sr-search {
    position: relative;
}

.sr-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(33, 37, 41, 0.5);
}

.sr-search .form-control {
    padding-left: 38px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}

.sr-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 2px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.sr-chips::-webkit-scrollbar {
    display: none;
}

.sr-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 14px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    color: rgba(33, 37, 41, 0.7);
    text-decoration: none;
    white-space: nowrap;
    font-size: 0.85rem;
}

.sr-chip i {
    opacity: 0.75;
}

.sr-chip.is-active {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    color: rgba(20, 83, 45, 0.95);
}

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

.sr-card {
    position: relative;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    padding: 20px;
    overflow: hidden;
}

.sr-card.is-sla {
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.06);
    border-color: rgba(220, 53, 69, 0.22);
}

.sr-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.sr-card > *:not(.sr-card-link) {
    position: relative;
    z-index: 2;
}

.sr-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sr-card-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}

.sr-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, 0.16);
    color: rgba(21, 128, 61, 0.95);
    flex: 0 0 auto;
}

.sr-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    overflow: hidden;
    width: calc(100% - 40px);
}

.sr-subtitle {
    margin-top: 2px;
    font-size: 0.78rem;
    color: rgba(33, 37, 41, 0.55);
}

.sr-status {
    font-size: 0.62rem;
    padding: 1px 4px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
    color: rgba(33, 37, 41, 0.7);
    white-space: nowrap;
}

.sr-status--pending {
    background: rgba(255, 193, 7, 0.18);
    border-color: rgba(255, 193, 7, 0.28);
    color: rgba(133, 77, 14, 0.95);
}

.sr-status--progress {
    background: rgba(13, 110, 253, 0.14);
    border-color: rgba(13, 110, 253, 0.22);
    color: rgba(13, 110, 253, 0.95);
}

.sr-status--waiting {
    background: rgba(108, 117, 125, 0.14);
    border-color: rgba(108, 117, 125, 0.22);
    color: rgba(33, 37, 41, 0.8);
}

.sr-status--completed {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.22);
    color: rgba(21, 128, 61, 0.95);
}

.sr-status--cancelled {
    background: rgba(220, 53, 69, 0.14);
    border-color: rgba(220, 53, 69, 0.22);
    color: rgba(220, 53, 69, 0.95);
}

.sr-desc {
    margin-top: 10px;
    color: rgba(33, 37, 41, 0.75);
    font-size: 0.88rem;
    line-height: 1.35;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sr-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.sr-budget {
    font-weight: 700;
    color: rgba(21, 128, 61, 0.95);
}

.sr-budget.is-empty {
    color: rgba(33, 37, 41, 0.55);
    font-weight: 600;
}

.sr-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: rgba(33, 37, 41, 0.6);
}

.sr-footer {
    margin-top: 12px;
    padding-top: 10px;
    /* border-top: 1px solid rgba(0, 0, 0, 0.06); */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sr-requester {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.sr-avatar-wrap {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex: 0 0 auto;
}

.sr-avatar-img {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 999px;
    display: block;
}

.sr-avatar-fallback {
    width: 28px;
    height: 28px;
}

.sr-avatar {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.78rem;
    background: rgba(108, 117, 125, 0.14);
    color: rgba(33, 37, 41, 0.7);
}

.sr-requester-name {
    font-size: 0.85rem;
    color: rgba(33, 37, 41, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.sr-footer-right {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.sr-priority {
    font-size: 0.62rem;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
    color: rgba(33, 37, 41, 0.7);
}

.sr-priority--medium {
    background: rgba(255, 193, 7, 0.14);
    border-color: rgba(255, 193, 7, 0.22);
    color: rgba(133, 77, 14, 0.95);
}

.sr-priority--high {
    background: rgba(220, 53, 69, 0.12);
    border-color: rgba(220, 53, 69, 0.2);
    color: rgba(220, 53, 69, 0.95);
}

.sr-date {
    font-size: 0.75rem;
    color: rgba(33, 37, 41, 0.5);
}

.sr-actions {
    margin-top: 12px;
}

.sr-action-btn {
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    z-index: 3;
    background-color: #67ad5b;
    border-color: #67ad5b;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.dark-mode .sr-search i {
    color: rgba(233, 236, 239, 0.6);
}

html.dark-mode .sr-search .form-control {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
}

html.dark-mode .sr-chip {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(233, 236, 239, 0.75);
}

html.dark-mode .sr-chip.is-active {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.28);
    color: rgba(233, 236, 239, 0.92);
}

html.dark-mode .sr-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

html.dark-mode .sr-subtitle,
html.dark-mode .sr-meta-item,
html.dark-mode .sr-desc,
html.dark-mode .sr-date {
    color: rgba(233, 236, 239, 0.7);
}

html.dark-mode .sr-footer {
    border-top-color: rgba(255, 255, 255, 0.12);
}

html.dark-mode .sr-requester-name {
    color: rgba(233, 236, 239, 0.88);
}

html.dark-mode .sr-status,
html.dark-mode .sr-priority {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

/* Users index */
.users-list {
    display: grid;
    gap: 12px;
}

.user-card {
    position: relative;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    padding: 16px;
    overflow: hidden;
}

.user-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.user-card > *:not(.user-card-link) {
    position: relative;
    z-index: 2;
}

.user-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(0, 0, 0, 0.02);
}

.user-avatar-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    display: block;
}

.user-avatar-fallback {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: rgba(33, 37, 41, 0.75);
}

.user-availability-dot {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid #fff;
}

.user-availability-dot.is-call-now {
    background: rgba(34, 197, 94, 1);
}

.user-availability-dot.is-available-only {
    background: rgba(255, 193, 7, 1);
}

.user-meta {
    min-width: 0;
}

.user-name {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-sub {
    font-size: 0.8rem;
    color: rgba(33, 37, 41, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-card-right {
    margin-left: auto;
    flex: 0 0 auto;
}

.user-connect-btn {
    position: relative;
    z-index: 3;
    color: rgba(33, 37, 41, 0.65);
}

.user-tags {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.user-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: rgba(33, 37, 41, 0.65);
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

html.dark-mode .user-card {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

html.dark-mode .user-sub,
html.dark-mode .user-tag,
html.dark-mode .user-connect-btn {
    color: rgba(233, 236, 239, 0.7);
}

html.dark-mode .user-avatar {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

html.dark-mode .user-availability-dot {
    border-color: rgba(33, 37, 41, 1);
}

html.dark-mode .user-tag {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

/* App splash */
.app-splash {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    transition: opacity 0.35s ease;
    width: 100%;
    height: 100%;
}

.app-splash.is-hidden {
    opacity: 0;
}

.app-splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.app-splash-logo {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.app-splash-title {
    font-weight: 700;
    letter-spacing: 0.2px;
    color: rgba(33, 37, 41, 0.8);
}

html.dark-mode .app-splash {
    background: #121212;
}

html.dark-mode .app-splash-title {
    color: rgba(233, 236, 239, 0.92);
}

/* Pull to refresh */
.ptr-indicator {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translate(-50%, -70px);
    z-index: 1900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
    color: rgba(33, 37, 41, 0.75);
    font-size: 12px;
    pointer-events: none;
    transition:
        transform 0.12s ease,
        opacity 0.12s ease;
    opacity: 0;
}

.ptr-indicator.is-visible {
    opacity: 1;
}

.ptr-indicator.is-ready {
    color: rgba(25, 135, 84, 0.95);
}

.ptr-indicator .ptr-spinner {
    width: 14px;
    height: 14px;
}

html.dark-mode .ptr-indicator {
    background: rgba(18, 18, 18, 0.92);
    border-color: rgba(255, 255, 255, 0.14);
    color: rgba(233, 236, 239, 0.8);
}
