body {
    background: #f4f6fb;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body.sidebar-open {
    overflow: hidden;
}

.app-wrapper { min-height: 100vh; }

.sidebar {
    width: 260px;
    background: linear-gradient(180deg, #1f3b73 0%, #16294f 100%);
    min-height: 100vh;
    flex-shrink: 0;
    z-index: 1040;
    transition: width .25s ease;
}

html.sidebar-collapsed .sidebar,
.sidebar.is-collapsed {
    width: 72px;
}

.main-content {
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #d9e8fb;
    border-bottom: 1px solid #c5daf5;
    flex-shrink: 0;
}

.topbar .btn-light {
    background: rgba(255, 255, 255, .72);
    border-color: rgba(31, 59, 115, .12);
}

.topbar .btn-light:hover,
.topbar .btn-light:focus {
    background: #fff;
    border-color: rgba(31, 59, 115, .18);
}

.topbar-title {
    display: inline-flex;
    align-items: center;
}

.topbar-title-icon {
    flex-shrink: 0;
    color: #1f3b73;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 1035;
}

.sidebar-close {
    flex-shrink: 0;
    margin-left: .5rem;
}

@media (max-width: 1199.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 0 0 24px rgba(0, 0, 0, .2);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-backdrop.is-visible {
        display: block;
    }

    .table-card,
    .form-card {
        padding: 1rem;
    }

    .stat-card .stat-value {
        font-size: 1.35rem;
    }

    .topbar h1 {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .sidebar-close,
    #sidebar-toggle {
        display: none !important;
    }

    .sidebar-brand,
    .topbar {
        min-height: 72px;
    }

    .sidebar-brand {
        background: #fff;
        border-bottom: 1px solid #e9edf5;
        padding: .85rem 1rem !important;
    }

    .sidebar-brand .brand-box {
        background: transparent;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .sidebar-brand .brand-logo {
        max-height: 52px;
        margin: 0;
    }

    .sidebar-collapse-toggle {
        border: 0;
        background: transparent;
        color: #212529;
        width: auto;
        height: auto;
        align-items: center;
        justify-content: center;
        padding: .25rem;
        box-shadow: none;
        line-height: 1;
    }

    .sidebar-collapse-toggle:hover,
    .sidebar-collapse-toggle:focus {
        background: transparent;
        color: #1f3b73;
        box-shadow: none;
    }

    .sidebar-collapse-icon-expanded {
        font-size: 1.65rem;
    }

    .sidebar-collapse-icon-collapsed {
        font-size: 1.15rem;
        font-weight: 700;
        letter-spacing: -.08em;
    }

    html.sidebar-collapsed .brand-logo,
    .sidebar.is-collapsed .brand-logo {
        display: none !important;
    }

    html.sidebar-collapsed .brand-icon-collapsed,
    .sidebar.is-collapsed .brand-icon-collapsed {
        display: block !important;
        margin: 0;
    }

    html.sidebar-collapsed .brand-box,
    .sidebar.is-collapsed .brand-box {
        padding: 0;
    }

    html.sidebar-collapsed .sidebar-brand,
    .sidebar.is-collapsed .sidebar-brand {
        padding-left: .75rem !important;
        padding-right: .75rem !important;
    }

    html.sidebar-collapsed .nav-label,
    html.sidebar-collapsed .submenu-chevron,
    html.sidebar-collapsed .sidebar-version,
    .sidebar.is-collapsed .nav-label,
    .sidebar.is-collapsed .submenu-chevron,
    .sidebar.is-collapsed .sidebar-version {
        display: none !important;
    }

    html.sidebar-collapsed .nav-icon,
    .sidebar.is-collapsed .nav-icon {
        margin-right: 0 !important;
    }

    html.sidebar-collapsed .sidebar .nav-link,
    .sidebar.is-collapsed .sidebar .nav-link {
        justify-content: center;
        padding-left: .5rem;
        padding-right: .5rem;
    }

    html.sidebar-collapsed .sidebar .nav-link-sub,
    .sidebar.is-collapsed .sidebar .nav-link-sub {
        padding-left: .5rem;
    }

    html.sidebar-collapsed .sidebar-nav-group,
    .sidebar.is-collapsed .sidebar-nav-group {
        position: relative;
    }

    html.sidebar-collapsed .sidebar-nav-group #admin-submenu,
    .sidebar.is-collapsed .sidebar-nav-group #admin-submenu {
        position: absolute;
        left: calc(100% + .5rem);
        top: 0;
        min-width: 210px;
        background: #16294f;
        border-radius: .75rem;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
        padding: .35rem;
        z-index: 1060;
    }

    html.sidebar-collapsed .sidebar-nav-group #admin-submenu:not(.show),
    .sidebar.is-collapsed .sidebar-nav-group #admin-submenu:not(.show) {
        display: none !important;
    }

    html.sidebar-collapsed .sidebar-nav-group #admin-submenu.show,
    .sidebar.is-collapsed .sidebar-nav-group #admin-submenu.show {
        display: block !important;
    }

    html.sidebar-collapsed .sidebar-nav-group #admin-submenu .nav-link-sub,
    .sidebar.is-collapsed .sidebar-nav-group #admin-submenu .nav-link-sub {
        justify-content: flex-start;
        padding: .55rem .85rem;
    }

    html.sidebar-collapsed .sidebar-nav-group #admin-submenu .nav-label,
    .sidebar.is-collapsed .sidebar-nav-group #admin-submenu .nav-label {
        display: inline !important;
    }

    html.sidebar-collapsed .sidebar-nav-group #admin-submenu .nav-icon,
    .sidebar.is-collapsed .sidebar-nav-group #admin-submenu .nav-icon {
        margin-right: .5rem !important;
    }

    html.sidebar-collapsed .sidebar-brand .d-flex,
    .sidebar.is-collapsed .sidebar-brand .d-flex {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: .35rem;
    }
}

.brand-box {
    background: #fff;
    border-radius: .75rem;
    padding: .75rem;
}

.brand-logo {
    max-height: 42px;
    width: auto;
    margin: 0 auto;
}

.brand-icon-collapsed {
    display: none !important;
}

@media (max-width: 1199.98px) {
    .sidebar-brand {
        background: #fff;
        border-bottom: 1px solid #e9edf5;
    }

    .sidebar-brand .brand-box {
        background: transparent;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .sidebar-brand .brand-logo {
        max-height: 48px;
        margin: 0;
    }
}

.login-logo {
    max-width: 280px;
    max-height: 72px;
    object-fit: contain;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.8);
    border-radius: .5rem;
    margin-bottom: .25rem;
    padding: .65rem 1rem;
}

.sidebar .nav-icon {
    margin-right: .5rem;
    flex-shrink: 0;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar-nav-group .sidebar-nav-toggle {
    background: transparent;
    color: rgba(255,255,255,.8);
}

.sidebar-nav-group .sidebar-nav-toggle:hover,
.sidebar-nav-group .sidebar-nav-toggle.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar-nav-group .submenu-chevron {
    font-size: .75rem;
    transition: transform .2s ease;
}

.sidebar-nav-group .sidebar-nav-toggle[aria-expanded="true"] .submenu-chevron {
    transform: rotate(180deg);
}

.sidebar .nav-link-sub {
    padding: .5rem 1rem .5rem 2.25rem;
    font-size: .92rem;
}

.stat-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(31,59,115,.08);
}

.stat-card .stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f3b73;
}

.pipeline-summary-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    padding: .85rem 1rem;
    background: linear-gradient(90deg, #eef3fb 0%, #f8faff 100%);
    border: 1px solid #d8e2f2;
    border-radius: .75rem;
}

.pipeline-summary-item {
    min-width: 7.5rem;
}

.pipeline-summary-label {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c7a94;
    margin-bottom: .15rem;
}

.pipeline-summary-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1f3b73;
    white-space: nowrap;
}

.pipeline-summary-wrap {
    border-radius: .75rem;
    overflow: hidden;
}

.pipeline-summary-mobile-toggle {
    display: none;
}

.pipeline-summary-panel {
    display: block;
}

@media (max-width: 768px) {
    .pipeline-summary-mobile-toggle {
        display: flex;
        align-items: center;
        gap: .65rem;
        width: 100%;
        min-height: 52px;
        padding: .75rem .9rem;
        border: 0;
        background: linear-gradient(90deg, #eef3fb 0%, #f8faff 100%);
        text-align: left;
        color: #1f2a44;
        -webkit-tap-highlight-color: transparent;
    }

    .pipeline-summary-mobile-toggle:active {
        background: #e8eef8;
    }

    .pipeline-summary-mobile-icon {
        flex: 0 0 1.35rem;
        width: 1.35rem;
        height: 1.35rem;
        border-radius: .35rem;
        background: #eef3fb;
        color: #1f3b73;
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.35rem;
        text-align: center;
    }

    .pipeline-summary-wrap.is-open .pipeline-summary-mobile-icon {
        background: #1f3b73;
        color: #fff;
    }

    .pipeline-summary-mobile-head {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: .75rem;
    }

    .pipeline-summary-mobile-head-col {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: .1rem;
    }

    .pipeline-summary-mobile-head-meta {
        text-align: right;
        align-items: flex-end;
    }

    .pipeline-summary-mobile-head .pipeline-summary-value {
        font-size: .95rem;
    }

    .pipeline-summary-panel {
        overflow: hidden;
        max-height: 0;
        transition: max-height .22s ease;
    }

    .pipeline-summary-panel[hidden] {
        display: block;
        max-height: 0;
    }

    .pipeline-summary-wrap.is-open .pipeline-summary-panel {
        border-top: 1px solid #d8e2f2;
    }

    .pipeline-summary-panel .pipeline-summary-row {
        border: 0;
        border-radius: 0;
        margin: 0;
    }
}

@media (min-width: 769px) {
    .pipeline-summary-panel[hidden] {
        display: block !important;
    }
}

.projects-filters .select2-container {
    width: 100% !important;
}

#projects-table .col-row-no,
#customers-table .col-row-no {
    width: 3rem;
    white-space: nowrap;
}

#projects-table th.text-end,
#projects-table td.text-end {
    font-variant-numeric: tabular-nums;
}

/* Mobil accordion (≤768px) — Projeler, Müşteriler, Kişiler */
.crm-mobile-accordion,
.projects-mobile-accordion,
.contacts-mobile-accordion {
    display: none;
}

@media (max-width: 768px) {
    #projects-table,
    #customers-table,
    #activities-table,
    #users-table,
    #contacts-table,
    .contact-edit-row {
        display: none !important;
    }

    .contacts-table-card .contacts-mobile-accordion {
        display: block;
        margin-top: .25rem;
    }

    .crm-acc-header-row,
    .contacts-acc-header-row {
        display: flex;
        align-items: center;
        gap: .5rem;
        padding: .75rem .9rem;
        background: #fff;
        border-bottom: 1px solid #e7edf7;
    }

    .crm-acc-header-row .crm-acc-header,
    .contacts-acc-header-row .contacts-acc-header {
        flex: 1 1 auto;
        min-width: 0;
        padding: 0;
        min-height: auto;
        background: transparent;
    }

    .crm-acc-header-row .crm-acc-header:active,
    .contacts-acc-header-row .contacts-acc-header:active {
        background: transparent;
    }

    .contacts-acc-meta-phone {
        flex: 0 0 auto;
        max-width: 46%;
        text-align: right;
    }

    .crm-acc-phone-link {
        display: inline-block;
        font-size: .86rem;
        font-weight: 650;
        color: #1f3b73;
        text-decoration: none;
        white-space: nowrap;
    }

    .crm-acc-phone-link:active {
        opacity: .75;
    }

    .crm-acc-phone-text {
        font-size: .86rem;
        color: #6c7a94;
        white-space: nowrap;
    }

    .crm-acc-email-link {
        color: #1f3b73;
        text-decoration: none;
        word-break: break-all;
    }

    .contacts-acc-item {
        border: 1px solid #dce4f2;
        border-radius: .75rem;
        background: #fff;
        margin-bottom: .65rem;
        overflow: hidden;
    }

    .contacts-acc-item .crm-acc-header-row {
        border-bottom: 0;
    }

    .contacts-acc-item.is-open .crm-acc-header-row {
        border-bottom: 1px solid #e7edf7;
    }

    /* Accordion DT içindeyken sıra: arama → liste → sayfalama */
    .dataTables_wrapper:has(> .crm-mobile-accordion) {
        display: flex;
        flex-direction: column;
    }

    .dataTables_wrapper:has(> .crm-mobile-accordion) > .row:has(.dataTables_length),
    .dataTables_wrapper:has(> .crm-mobile-accordion) > .row:has(.dataTables_filter) {
        order: 1;
        width: 100%;
    }

    .dataTables_wrapper:has(> .crm-mobile-accordion) > .row:has(table) {
        order: 2;
        width: 100%;
    }

    .dataTables_wrapper:has(> .crm-mobile-accordion) > .crm-mobile-accordion {
        order: 3;
        width: 100%;
    }

    .dataTables_wrapper:has(> .crm-mobile-accordion) > .row:has(.dataTables_info),
    .dataTables_wrapper:has(> .crm-mobile-accordion) > .row:has(.dataTables_paginate) {
        order: 4;
        width: 100%;
    }

    .dataTables_wrapper .dataTables_info {
        white-space: nowrap;
        font-size: .85rem;
        padding-top: .5rem !important;
        text-align: center !important;
        float: none !important;
    }

    .dataTables_wrapper .dataTables_paginate {
        text-align: center !important;
        float: none !important;
        margin-top: .25rem;
        margin-bottom: .25rem;
    }

    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        margin-bottom: .5rem;
        float: none !important;
        text-align: left !important;
    }

    .crm-mobile-accordion,
    .projects-mobile-accordion,
    .activities-mobile-accordion,
    .customers-mobile-accordion,
    .users-mobile-accordion {
        display: block;
        margin-top: .25rem;
        margin-bottom: .35rem;
    }

    .crm-acc-item,
    .projects-acc-item,
    .activities-acc-item,
    .customers-acc-item,
    .users-acc-item {
        border: 1px solid #dce4f2;
        border-radius: .75rem;
        background: #fff;
        margin-bottom: .65rem;
        overflow: hidden;
    }

    .crm-acc-header,
    .projects-acc-header {
        width: 100%;
        min-height: 52px;
        display: flex;
        align-items: center;
        gap: .65rem;
        padding: .75rem .9rem;
        border: 0;
        background: #fff;
        text-align: left;
        color: #1f2a44;
        -webkit-tap-highlight-color: transparent;
    }

    .crm-acc-header:active,
    .projects-acc-header:active {
        background: #f5f8fd;
    }

    .crm-acc-icon,
    .projects-acc-icon {
        flex: 0 0 1.35rem;
        width: 1.35rem;
        height: 1.35rem;
        border-radius: .35rem;
        background: #eef3fb;
        color: #1f3b73;
        font-weight: 700;
        font-size: 1rem;
        line-height: 1.35rem;
        text-align: center;
    }

    .crm-acc-item.is-open .crm-acc-icon,
    .projects-acc-item.is-open .projects-acc-icon {
        background: #1f3b73;
        color: #fff;
    }

    .crm-acc-title-wrap,
    .projects-acc-title-wrap {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: .15rem;
    }

    .crm-acc-title,
    .projects-acc-title {
        font-weight: 650;
        font-size: .95rem;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .crm-acc-subtitle,
    .projects-acc-subtitle {
        font-weight: 500;
        font-size: .78rem;
        line-height: 1.25;
        color: #6c7a94;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .crm-acc-meta,
    .projects-acc-customer {
        flex: 0 1 42%;
        max-width: 46%;
        text-align: right;
        color: #6c7a94;
        font-size: .86rem;
        line-height: 1.25;
        overflow: hidden;
    }

    .crm-acc-meta {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: .1rem;
        min-width: 0;
    }

    .crm-acc-meta-owner,
    .crm-acc-meta-projects,
    .projects-acc-customer {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .crm-acc-meta-projects {
        font-size: .78rem;
        color: #8a97ad;
    }

    .projects-acc-meta-pipeline {
        font-size: .82rem;
        font-weight: 650;
        color: #1f3b73;
    }

    .projects-acc-meta {
        flex: 0 1 44%;
        max-width: 48%;
        margin-left: auto;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: .12rem;
        min-width: 0;
    }

    .projects-acc-meta-customer,
    .projects-acc-meta-pipeline {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: right;
    }

    .projects-acc-meta-customer {
        font-size: .82rem;
        font-weight: 600;
        color: #4a5872;
    }

    .activities-acc-meta,
    .customers-acc-meta {
        flex: 0 1 44%;
        max-width: 48%;
        margin-left: auto;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: .12rem;
        min-width: 0;
    }

    .activities-acc-meta-customer,
    .activities-acc-meta-assignee,
    .customers-acc-meta-owner,
    .customers-acc-meta-projects {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-align: right;
    }

    .activities-acc-meta-customer,
    .customers-acc-meta-owner {
        font-size: .82rem;
        font-weight: 600;
        color: #4a5872;
    }

    .activities-acc-meta-assignee,
    .customers-acc-meta-projects {
        font-size: .76rem;
        color: #8a97ad;
    }

    .activities-acc-title-wrap,
    .customers-acc-title-wrap,
    .projects-acc-title-wrap {
        flex: 1 1 auto;
        min-width: 0;
    }

    .activities-acc-subtitle {
        font-variant-numeric: tabular-nums;
    }

    .crm-acc-panel,
    .projects-acc-panel {
        max-height: 0;
        overflow: hidden;
        transition: max-height .28s ease;
        border-top: 0 solid transparent;
    }

    .crm-acc-item.is-open .crm-acc-panel,
    .projects-acc-item.is-open .projects-acc-panel {
        border-top: 1px solid #e7edf7;
    }

    .crm-acc-panel-inner,
    .projects-acc-panel-inner {
        padding: .85rem .95rem 1rem;
        background: #f8faff;
    }

    .crm-acc-details,
    .projects-acc-details {
        display: grid;
        gap: .55rem;
    }

    .crm-acc-detail-row,
    .projects-acc-detail-row {
        display: grid;
        grid-template-columns: minmax(7.5rem, 42%) 1fr;
        gap: .5rem;
        align-items: start;
        font-size: .9rem;
        line-height: 1.35;
    }

    .crm-acc-label,
    .projects-acc-label {
        color: #1f2a44;
        font-weight: 650;
    }

    .crm-acc-value,
    .projects-acc-value {
        color: #4a5568;
        text-align: right;
        word-break: break-word;
    }

    .crm-acc-actions,
    .projects-acc-actions {
        display: flex;
        justify-content: flex-end;
        gap: .5rem;
        margin-top: .95rem;
        padding-top: .75rem;
        border-top: 1px solid #e1e8f5;
    }
}

.settings-block {
    min-height: 280px;
}

.settings-block-title {
    color: #1f3b73;
    font-weight: 600;
}

.settings-block-placeholder {
    border: 1px dashed #d5deeb;
    background: #fafbfd;
}

.settings-list .list-group-item:first-child {
    border-top: 0;
}

.settings-list .list-group-item:last-child {
    border-bottom: 0;
}

.settings-item-hidden {
    opacity: .85;
    background: #f8f9fb;
}

.table-card,
.form-card {
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(31,59,115,.06);
    padding: 1.5rem;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f3b73, #2f6b4f);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
}

.nav-tabs .nav-link.active {
    color: #1f3b73;
    font-weight: 600;
}

.badge-status { font-size: .75rem; }

.sidebar-nav-meta .sidebar-logout,
.sidebar-logout {
    color: rgba(255,255,255,.8);
    border-radius: .5rem;
    padding: .65rem 1rem;
    background: transparent;
}

button.sidebar-logout {
    cursor: pointer;
    font: inherit;
}

.sidebar-nav-meta .sidebar-logout:hover,
.sidebar-logout:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar-version {
    letter-spacing: .02em;
}

.calendar-day-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calendar-day-item {
    border: 1px solid #e1e8f5;
    border-radius: .85rem;
    padding: 1rem;
    background: #fafbfd;
}

.calendar-day-item-head {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.calendar-day-item-time {
    min-width: 3.25rem;
    font-weight: 700;
    color: #1f3b73;
    font-size: 1.05rem;
}

.calendar-day-item-main {
    flex: 1 1 auto;
    min-width: 0;
}

.calendar-day-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    color: #6c757d;
    font-size: .9rem;
}

.calendar-day-item-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem 1rem;
    margin: .85rem 0 0;
}

.calendar-day-item-details dt {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6c757d;
    margin-bottom: .15rem;
}

.calendar-day-item-details dd {
    margin: 0;
    color: #212529;
}

.calendar-day-item-wide {
    grid-column: 1 / -1;
}

@media (max-width: 575.98px) {
    .calendar-day-item-head {
        flex-direction: column;
    }

    .calendar-day-item-details {
        grid-template-columns: 1fr;
    }
}

.support-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    top: auto;
    z-index: 1055;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #1f3b73;
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 8px 28px rgba(31,59,115,.45);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transform: none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.support-fab:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(31,59,115,.5);
    color: #fff;
    background: #254889;
}

.push-permission-bar {
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border-radius: .75rem;
    border: 1px solid #d8e2f2;
    background: linear-gradient(90deg, #eef3fb 0%, #f8faff 100%);
    box-shadow: 0 4px 16px rgba(31, 59, 115, .08);
}

.push-permission-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.push-permission-bar-text {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .9rem;
    color: #1f2a44;
    flex: 1 1 12rem;
}

.push-permission-bar-text .bi {
    color: #1f3b73;
    font-size: 1.1rem;
}

.push-permission-bar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pwa-install-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1055;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem .75rem calc(.7rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(90deg, #1f3b73 0%, #254889 100%);
    color: #fff;
    box-shadow: 0 -6px 24px rgba(31, 59, 115, .28);
}

.pwa-install-bar[hidden] {
    display: none !important;
}

.pwa-install-bar-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: .92rem;
    font-weight: 600;
    padding: .35rem .5rem;
    text-align: left;
}

.pwa-install-bar-main .bi {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.pwa-install-bar-close {
    border: 0;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

body.has-pwa-install-bar .main-content,
body.has-pwa-install-bar .login-page {
    padding-bottom: 4.25rem;
}

body.has-pwa-install-bar .support-fab {
    bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    top: auto;
    transform: none;
}

/* Mobil alt menü — ikon + etiket (≤768px) */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        --glass-bg: rgba(22, 40, 58, .78);
        --glass-bg-solid: rgba(22, 40, 58, .94);
        --glass-border: rgba(255, 255, 255, .22);
        --glass-blur: blur(22px) saturate(180%);
        --glass-shadow: 0 10px 28px rgba(0, 0, 0, .28);
        --glass-text: #fff;
        --glass-pill: rgba(255, 255, 255, .14);
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(.625rem + env(safe-area-inset-bottom, 0px));
        z-index: 1060;
        display: flex;
        justify-content: center;
        pointer-events: none;
        padding: 0 .875rem;
    }

    .mobile-bottom-nav-inner {
        pointer-events: auto;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .125rem;
        width: min(26.25rem, calc(100% - .5rem));
        min-height: 4rem;
        padding: .375rem .5rem .5rem;
        border: 1px solid var(--glass-border);
        border-radius: 999px;
        background: transparent;
        box-shadow: var(--glass-shadow);
        overflow: visible;
    }

    .mobile-bottom-nav-inner::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        border-radius: inherit;
        background: var(--glass-bg);
        -webkit-backdrop-filter: var(--glass-blur);
        backdrop-filter: var(--glass-blur);
    }

    .mobile-bottom-nav-inner > * {
        position: relative;
        z-index: 1;
    }

    @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
        .mobile-bottom-nav-inner::before {
            background: var(--glass-bg-solid);
        }
    }

    body.has-mobile-bottom-nav .main-content {
        padding-bottom: calc(6.75rem + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav .support-fab {
        /* Alt menü üstüne: padding + bar yüksekliği + boşluk */
        bottom: calc(6.1rem + env(safe-area-inset-bottom, 0px));
        top: auto;
        right: 1rem;
        transform: none;
        width: 48px;
        height: 48px;
        z-index: 1061;
    }

    body.has-mobile-bottom-nav .support-fab:hover {
        transform: scale(1.06);
    }

    body.has-mobile-bottom-nav.has-pwa-install-bar .support-fab {
        bottom: calc(9.7rem + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav.has-pwa-install-bar #pwa-install-bar {
        bottom: calc(6.2rem + env(safe-area-inset-bottom, 0px));
    }

    body.has-mobile-bottom-nav.has-pwa-install-bar .main-content {
        padding-bottom: calc(10.25rem + env(safe-area-inset-bottom, 0px));
    }
}

.mobile-bottom-nav-item {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .12rem;
    min-height: 3.15rem;
    padding: .28rem .2rem .22rem;
    border: 0;
    background: transparent;
    color: var(--glass-text, rgba(255, 255, 255, .78));
    text-decoration: none;
    font: inherit;
    border-radius: 999px;
    transition: color .15s ease, background .15s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item:focus-visible {
    color: var(--glass-text, #fff);
    background: var(--glass-pill, rgba(255, 255, 255, .1));
    outline: none;
}

.mobile-bottom-nav-item.active {
    color: var(--glass-text, #fff);
    background: var(--glass-pill, rgba(255, 255, 255, .18));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}

.mobile-bottom-nav-icon {
    position: relative;
    z-index: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    font-size: 1.15rem;
    line-height: 1;
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-icon {
    transform: none;
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-icon::after {
    content: none;
}

.mobile-bottom-nav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: 1.1;
    opacity: .92;
}

.mobile-bottom-nav-item.active .mobile-bottom-nav-label {
    opacity: 1;
}

.mobile-bottom-nav-item--refresh.is-spinning .mobile-bottom-nav-icon {
    animation: mobile-nav-spin .55s linear infinite;
}

@keyframes mobile-nav-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Select2 + DataTables */
.select2-container--bootstrap-5 .select2-selection {
    min-height: 38px;
}

.select2-container--bootstrap-5 .select2-dropdown {
    z-index: 1060;
}

table.datatable thead th {
    white-space: nowrap;
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: .375rem;
    border: 1px solid #ced4da;
    padding: .375rem .75rem;
}

/* Proje sohbet */
.project-chat {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.project-chat-messages {
    max-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .85rem;
    padding: .25rem;
}

.chat-message {
    display: flex;
    gap: .65rem;
    max-width: 85%;
}

.chat-message-mine {
    margin-left: auto;
    flex-direction: row-reverse;
}

.chat-message-mine .chat-body {
    align-items: flex-end;
}

.chat-message-mine .chat-meta {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e9edf5;
    color: #1f3b73;
    font-weight: 700;
    font-size: .9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-message-mine .chat-avatar {
    background: #1f3b73;
    color: #fff;
}

.chat-body {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    min-width: 0;
}

.chat-meta {
    display: flex;
    gap: .5rem;
    font-size: .75rem;
    color: #6c757d;
}

.chat-author {
    font-weight: 600;
    color: #495057;
}

.chat-bubble {
    background: #f4f6fa;
    border-radius: .85rem;
    padding: .65rem .85rem;
    line-height: 1.45;
    word-break: break-word;
}

.chat-message-mine .chat-bubble {
    background: #1f3b73;
    color: #fff;
}

.project-chat-form {
    display: flex;
    gap: .75rem;
    align-items: flex-end;
    border-top: 1px solid #e9edf5;
    padding-top: 1rem;
}

.project-chat-form textarea {
    resize: vertical;
    min-height: 56px;
}

.profile-chat-form .btn {
    white-space: nowrap;
}

/* Profil */
.topbar-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.user-inline {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-width: 0;
}

.user-inline-name {
    line-height: 1.2;
}

.user-avatar {
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
}

.user-avatar-xs {
    width: 22px;
    height: 22px;
    font-size: .65rem;
}

.user-avatar-sm {
    width: 24px;
    height: 24px;
    font-size: .7rem;
}

.user-avatar-md {
    width: 32px;
    height: 32px;
    font-size: .8rem;
}

.chat-message > .user-avatar-md {
    align-self: flex-end;
}

.user-avatar-placeholder {
    background: linear-gradient(135deg, #dce3f0, #c5d0e4);
    color: #1f3b73;
}

.chat-message-mine .user-avatar-placeholder {
    background: #1f3b73;
    color: #fff;
}

.profile-avatar-wrap {
    width: 140px;
    height: 140px;
}

.profile-avatar-img,
.profile-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f3b73, #2f6b4f);
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
}

.profile-crop-area {
    max-height: 420px;
    background: #f4f6fa;
    border-radius: .75rem;
    overflow: hidden;
}

.profile-crop-area img {
    display: block;
    max-width: 100%;
}

.win-probability-slider {
    --wp-accent: hsl(120, 62%, 42%);
    --wp-accent-soft: hsla(120, 55%, 42%, 0.18);
    --wp-panel-bg: #f3f9f0;
    --wp-track-bg: #d8ead2;
    --wp-thumb-size: 1.65rem;
    --wp-track-inset: calc(var(--wp-thumb-size) / 2);
    padding: 0.25rem 0 0.5rem;
}

.win-probability-slider-lg {
    margin-top: 0.75rem;
    padding-top: 0.25rem;
}

.win-probability-panel {
    background: var(--wp-panel-bg);
    border: 1px solid #dce9d6;
    border-radius: 0.85rem;
    padding: 1rem 1rem 0.85rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.win-probability-slider-lg .win-probability-panel {
    padding: 1.15rem 1.1rem 1rem;
}

.win-probability-scale {
    margin-bottom: 0.25rem;
    padding: 0 var(--wp-track-inset);
}

.win-probability-scale-inner {
    position: relative;
    height: 2rem;
}

.win-probability-scale-mark {
    position: absolute;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateX(-50%);
}

.win-probability-scale-mark[data-value="0"] {
    transform: none;
    align-items: flex-start;
}

.win-probability-scale-mark[data-value="100"] {
    transform: translateX(-100%);
    align-items: flex-end;
}

.win-probability-scale-num {
    font-size: 0.95rem;
    font-weight: 700;
    color: #4f5f4d;
    line-height: 1;
    white-space: nowrap;
    transition: color .15s ease, transform .15s ease;
}

.win-probability-slider-lg .win-probability-scale-num {
    font-size: 1.05rem;
}

.win-probability-scale-tick {
    display: block;
    width: 2px;
    height: 0.65rem;
    border-radius: 1px;
    background: #9cb596;
}

.win-probability-scale-mark.is-active .win-probability-scale-num {
    color: var(--wp-accent);
    transform: scale(1.08);
}

.win-probability-scale-mark:hover .win-probability-scale-num,
.win-probability-scale-mark:focus-visible .win-probability-scale-num {
    color: var(--wp-accent);
    outline: none;
}

.win-probability-control {
    position: relative;
    height: 3.5rem;
    margin: 0.1rem 0 0.5rem;
    padding: 0;
}

.win-probability-slider-lg .win-probability-control {
    height: 4rem;
    margin-bottom: 0.65rem;
}

.win-probability-bubble {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    min-width: 2.4rem;
    padding: 0.2rem 0.45rem;
    border-radius: 0.45rem;
    background: #fff;
    border: 1px solid #d5e5d0;
    box-shadow: 0 2px 6px rgba(44, 74, 40, 0.12);
    color: #2f4a2c;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
    transition: left .12s ease, color .15s ease, border-color .15s ease;
    z-index: 2;
}

.win-probability-slider-lg .win-probability-bubble {
    min-width: 2.6rem;
    padding: 0.28rem 0.55rem;
    font-size: 1rem;
}

.win-probability-track {
    position: absolute;
    left: var(--wp-track-inset);
    right: var(--wp-track-inset);
    top: 2rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--wp-track-bg);
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.win-probability-slider-lg .win-probability-track {
    top: 2.35rem;
    height: 0.7rem;
}

.win-probability-track-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--wp-accent);
    transition: width .12s ease, background-color .15s ease;
}

.win-probability-range {
    position: absolute;
    left: 0;
    right: 0;
    top: 1.55rem;
    width: 100%;
    height: 2rem;
    margin: 0;
    background: transparent;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-appearance: none;
    appearance: none;
    z-index: 3;
}

.win-probability-slider-lg .win-probability-range {
    top: 1.75rem;
    height: 2.25rem;
}

.win-probability-range:focus {
    outline: none;
}

.win-probability-range:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px var(--wp-accent-soft), 0 2px 8px rgba(44, 74, 40, 0.25);
}

.win-probability-range::-webkit-slider-runnable-track {
    height: 0.55rem;
    background: transparent;
    border: 0;
}

.win-probability-slider-lg .win-probability-range::-webkit-slider-runnable-track {
    height: 0.7rem;
}

.win-probability-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: var(--wp-thumb-size);
    height: var(--wp-thumb-size);
    margin-top: calc((0.55rem - var(--wp-thumb-size)) / 2);
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--wp-accent);
    box-shadow: 0 2px 8px rgba(44, 74, 40, 0.28);
    transition: background-color .15s ease, transform .12s ease;
}

.win-probability-slider-lg .win-probability-range::-webkit-slider-thumb {
    margin-top: calc((0.7rem - var(--wp-thumb-size)) / 2);
}

.win-probability-range:active::-webkit-slider-thumb {
    transform: scale(1.06);
}

.win-probability-range::-moz-range-track {
    height: 0.55rem;
    background: transparent;
    border: 0;
}

.win-probability-slider-lg .win-probability-range::-moz-range-track {
    height: 0.7rem;
}

.win-probability-range::-moz-range-thumb {
    width: var(--wp-thumb-size);
    height: var(--wp-thumb-size);
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--wp-accent);
    box-shadow: 0 2px 8px rgba(44, 74, 40, 0.28);
    transition: background-color .15s ease;
}

.win-probability-legend {
    display: block;
    margin-top: 0.15rem;
    padding: 0 var(--wp-track-inset);
    text-align: center;
}

.win-probability-legend-dynamic {
    display: inline-block;
    min-width: 7rem;
    color: var(--wp-accent);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
}

.win-probability-slider-lg .win-probability-legend-dynamic {
    font-size: 0.95rem;
}

@media (min-width: 768px) {
    .win-probability-slider-lg {
        --wp-thumb-size: 1.55rem;
    }

    .win-probability-slider-lg .win-probability-panel {
        max-width: 50%;
    }

    .win-probability-slider-lg .win-probability-control {
        height: 3rem;
        margin-bottom: 0.5rem;
    }

    .win-probability-slider-lg .win-probability-scale-num {
        font-size: 0.95rem;
    }

    .win-probability-slider-lg .win-probability-bubble {
        min-width: 2.35rem;
        padding: 0.22rem 0.5rem;
        font-size: 0.92rem;
    }

    .win-probability-slider-lg .win-probability-track {
        top: 1.85rem;
        height: 0.55rem;
    }

    .win-probability-slider-lg .win-probability-range {
        top: 1.45rem;
        height: 1.75rem;
    }

    .win-probability-slider-lg .win-probability-range::-webkit-slider-runnable-track {
        height: 0.55rem;
    }

    .win-probability-slider-lg .win-probability-range::-moz-range-track {
        height: 0.55rem;
    }
}

@media (max-width: 575.98px) {
    .win-probability-panel {
        padding: 0.95rem 0.75rem 0.8rem;
    }

    .win-probability-slider-lg .win-probability-panel {
        max-width: none;
    }

    .win-probability-scale-num {
        font-size: 0.88rem;
    }

    .win-probability-control {
        height: 3.75rem;
    }

    .win-probability-slider-lg .win-probability-control {
        height: 3.85rem;
    }

    .win-probability-slider {
        --wp-thumb-size: 2rem;
    }
}

.customer-qr-reader {
    min-height: 280px;
    background: #111;
}

.customer-qr-reader video {
    border-radius: 0;
}

@media (max-width: 767.98px) {
    .customer-show-actions {
        width: 100%;
    }
}

/* Dashboard */
.dashboard-welcome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #1f3b73 0%, #2d5aa8 55%, #3d7bd9 100%);
    color: #fff;
    box-shadow: 0 12px 32px rgba(31, 59, 115, .18);
}

.dashboard-welcome-kicker {
    font-size: .8rem;
    opacity: .85;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.dashboard-welcome-title {
    color: #fff;
    font-weight: 700;
}

.dashboard-welcome-sub {
    opacity: .9;
    font-size: .95rem;
}

.dashboard-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.dashboard-weather {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .65rem 1rem;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    min-width: 11rem;
}

.dashboard-weather-icon {
    font-size: 2rem;
    line-height: 1;
    opacity: .95;
}

.dashboard-weather-temp {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.dashboard-weather-city {
    font-size: .85rem;
    font-weight: 600;
    opacity: .95;
}

.dashboard-weather-desc {
    font-size: .75rem;
    opacity: .85;
}

.dashboard-stat-link {
    display: block;
    color: inherit;
}

.dashboard-stat-card {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(31, 59, 115, .08);
    transition: transform .15s ease, box-shadow .15s ease;
    overflow: hidden;
}

.dashboard-stat-link:hover .dashboard-stat-card {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(31, 59, 115, .12);
}

.dashboard-stat-card .card-body {
    padding: 1rem 1.1rem;
}

.dashboard-stat-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    background: rgba(31, 59, 115, .1);
    color: #1f3b73;
}

.dash-stat-danger .dashboard-stat-icon {
    background: rgba(220, 53, 69, .12);
    color: #dc3545;
}

.dash-stat-5 .dashboard-stat-icon {
    background: rgba(25, 135, 84, .12);
    color: #198754;
}

.dashboard-stat-label {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c7a94;
    margin-bottom: .1rem;
}

.dashboard-stat-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1f3b73;
    line-height: 1.2;
}

.dash-stat-danger .dashboard-stat-value {
    color: #dc3545;
}

.dashboard-gauge-card {
    text-align: center;
}

.dashboard-gauge-wrap {
    position: relative;
    max-width: 260px;
    margin: 0 auto;
}

.dashboard-gauge {
    width: 100%;
    height: auto;
    display: block;
}

.dashboard-gauge-track {
    fill: none;
    stroke: #e9edf5;
    stroke-width: 14;
    stroke-linecap: round;
}

.dashboard-gauge-fill {
    fill: none;
    stroke: url(#dashboardGaugeGradient);
    stroke-width: 14;
    stroke-linecap: round;
    stroke: #2d5aa8;
    transition: stroke-dashoffset .8s ease;
}

.dashboard-gauge-needle {
    stroke: #1f3b73;
    stroke-width: 3;
    stroke-linecap: round;
    transition: all .8s ease;
}

.dashboard-gauge-hub {
    fill: #1f3b73;
}

.dashboard-gauge-value {
    position: absolute;
    left: 50%;
    bottom: .15rem;
    transform: translateX(-50%);
    font-size: 1.75rem;
    font-weight: 700;
    color: #1f3b73;
    line-height: 1;
}

.dashboard-gauge-value span {
    font-size: 1rem;
    font-weight: 600;
}

.dashboard-map {
    height: 320px;
    border-radius: .75rem;
    overflow: hidden;
    border: 1px solid #e9edf5;
    z-index: 1;
    max-width: 100%;
    contain: paint;
}

.dashboard-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem 0;
    border-bottom: 1px solid #f0f3f8;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.dashboard-list-item:last-child {
    border-bottom: 0;
}

.dashboard-list-item:hover {
    color: #1f3b73;
}

.dashboard-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .55rem 0;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f3f8;
}

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

.dashboard-timeline-item:hover {
    color: #1f3b73;
}

.dashboard-timeline-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    background: #2d5aa8;
    margin-top: .45rem;
    flex-shrink: 0;
}

.dashboard-timeline-compact .dashboard-timeline-item {
    padding: .4rem 0;
}

.dashboard-status-row + .dashboard-status-row {
    margin-top: .75rem;
}

.dashboard-status-bar {
    height: .45rem;
    background: #eef3fb;
    border-radius: 999px;
    overflow: hidden;
}

.dashboard-status-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #1f3b73, #3d7bd9);
    border-radius: 999px;
}

.dashboard-message-item {
    display: block;
    padding: .6rem 0;
    border-bottom: 1px solid #f0f3f8;
    text-decoration: none;
    color: inherit;
    max-width: 100%;
    overflow: hidden;
}

.dashboard-message-item:last-child {
    border-bottom: 0;
}

.dashboard-message-item:hover {
    color: #1f3b73;
}

.dashboard-message-item .d-flex {
    min-width: 0;
    max-width: 100%;
}

.dashboard-messages {
    max-width: 100%;
    overflow: hidden;
}

.dashboard-page {
    max-width: 100%;
    overflow-x: clip;
}

.dashboard-page .table-card,
.dashboard-page .row > [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.dashboard-team-table th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #6c7a94;
}

@media (max-width: 767.98px) {
    .dashboard-welcome {
        padding: 1rem;
    }

    .dashboard-weather {
        min-width: 0;
        width: 100%;
    }

    .dashboard-stat-value {
        font-size: 1.15rem;
    }

    .dashboard-map {
        height: 260px;
    }

    .dashboard-page {
        overflow-x: hidden;
    }
}

.outlook-setup-steps {
    padding-left: 1.1rem;
    margin-bottom: 0;
}

.outlook-setup-steps > li {
    padding-left: .25rem;
}

.outlook-setup-steps strong {
    color: #1f3b73;
}

.project-outlook-help-link {
    color: #dc3545;
    font-size: .9rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: .15em;
}

.project-outlook-help-link:hover {
    color: #b02a37;
}

.project-email-detail .fw-semibold,
.project-email-detail .badge {
    display: inline-block;
    margin-bottom: .55rem;
}

.project-email-body {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.55;
    font-size: .95rem;
    max-height: none;
    overflow: visible;
    padding: 1rem 1.1rem;
    background: #f8faff;
    border: 1px solid #e2e8f2;
    border-radius: .75rem;
}

.project-email-body br {
    display: block;
    content: '';
    margin-top: .2rem;
}
