﻿/* Set padding to keep content from hitting the edges */
.body-content {
    margin-top: 0px; /* was 15px */
    padding-left: 10px;
    padding-right: 10px;
    padding-bottom: 98px;
    padding-bottom: calc(98px + constant(safe-area-inset-bottom));
    padding-bottom: calc(98px + env(safe-area-inset-bottom));
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

input[type="text"] {
    box-sizing: border-box;
}

input.form-control,
textarea.form-control,
select.form-select {
    padding-top: 10pt;
    padding-bottom: 10pt;
}

.input-block .form-control,
.input-block .form-select {
    font-size: 11pt;
    padding-top: 9pt;
    padding-bottom: 9pt;
}

.input-block textarea.form-control {
    font-size: 11pt;
    padding-top: 9pt;
    padding-bottom: 9pt;
}

.text-purple {
    color: purple !important;
}

.border-color-transparent {
    border-color: transparent !important;
}

.bg-purple {
    background-color: purple !important;
}

input[type="number"] {
    -moz-appearance: textfield;
}

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.pac-container {
    background-color: #FFF;
    z-index: 20;
    position: fixed;
    display: inline-block;
    float: left;
}

.modal {
    z-index: 20;
}

.modal-backdrop {
    z-index: 10;
}

@media only screen and (max-width: 768px) {
    html {
        font-size: 10pt !important;
    }
}

:root {
    --crm-blue: #4359B8;
    --crm-blue-hover: #384CA6;
    --crm-blue-soft: rgba(67, 89, 184, 0.15);
    --crm-border: #dfe3eb;
    --crm-text: #213343;
    --crm-muted: #516f90;
    --crm-bg: #f5f8fa;
}

.hs-toolbar {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(33, 51, 67, 0.08);
    padding: 16px;
    margin-bottom: 16px;
}

.hs-search-group .input-group-text {
    background: #fff;
    border: 1px solid #cbd6e2;
    color: var(--crm-text);
    cursor: pointer;
}

.hs-search-group .form-control {
    border: 1px solid #cbd6e2;
    color: var(--crm-text);
}

    .hs-search-group .form-control:focus {
        border-color: var(--crm-blue);
        box-shadow: 0 0 0 3px var(--crm-blue-soft);
    }

.hs-search-btn,
.hs-add-btn {
    background-color: var(--crm-blue) !important;
    border-color: var(--crm-blue) !important;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 600;
}

    .hs-search-btn:hover,
    .hs-search-btn:focus,
    .hs-add-btn:hover,
    .hs-add-btn:focus {
        background-color: var(--crm-blue-hover) !important;
        border-color: var(--crm-blue-hover) !important;
        color: #fff !important;
    }

.hs-table-wrap {
    background: #ffffff;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(33, 51, 67, 0.08);
    overflow: hidden;
}

.hs-header-row {
    padding:  0px 10px;
    border-bottom: 1px solid #eaf0f6;
    background: #f9fbfd;
    font-weight: 700;
}

.hs-header-row-index {
    padding-top: 3pt;
    padding-bottom: 3pt;
}

    .hs-header-row a {
        color: var(--crm-text) !important;
        text-decoration: none !important;
    }

        .hs-header-row a:hover {
            color: var(--crm-blue) !important;
        }

.hs-list-row {
    padding: 14px 18px;
    border-bottom: 1px solid #eaf0f6;
}

    .hs-list-row:last-child {
        border-bottom: 0;
    }

.hs-name-row {
    align-items: center;
    margin-bottom: 6px;
}

.hs-name-col {
    font-weight: 600;
    color: var(--crm-text);
}

.hs-address-col {
    color: var(--crm-muted);
}

.hs-main-link,
.hs-meta-link,
.hs-phone a {
    text-decoration: none !important;
}

    .hs-main-link:hover,
    .hs-meta-link:hover,
    .hs-phone a:hover {
        text-decoration: underline !important;
    }

.hs-meta-link,
.hs-phone a {
    color: var(--crm-text) !important;
}

.hs-location {
    color: var(--crm-muted);
}

.hs-map-link {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
}

.hs-pager-wrap {
    margin-top: 0px;
    display: flex;
    justify-content: center;
}

.pagination {
    margin-bottom: 0;
}

    .pagination > li > a,
    .pagination > li > span {
        border-radius: 8px !important;
        margin: 0 3px;
        border: 1px solid var(--crm-border);
        color: var(--crm-text);
    }

    .pagination > .active > a,
    .pagination > .active > span,
    .pagination > .active > a:hover,
    .pagination > .active > span:hover {
        background-color: var(--crm-blue);
        border-color: var(--crm-blue);
        color: #fff;
    }

    .pagination > li > a:hover,
    .pagination > li > span:hover {
        background-color: var(--crm-bg);
        color: var(--crm-text);
    }

.crm-subtable-header {
    background: #f9fbfd;
    border: 1px solid var(--crm-border);
    border-radius: 10px 10px 0 0;
    padding: 10px 14px;
    margin-top: 12px;
    margin-bottom: 0;
}

.crm-subtable-col-head {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--crm-muted);
}

.crm-subtable-header .btn.btn-sm {
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.crm-subtable-row {
    background: #fff;
    border-left: 1px solid var(--crm-border);
    border-right: 1px solid var(--crm-border);
    border-bottom: 1px solid #eaf0f6;
    padding: 12px 14px;
}

    .crm-subtable-row:last-child {
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
    }

.crm-page-wrap {
    padding: 12px;
}

.crm-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.crm-detail-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--crm-text);
    line-height: 1.2;
}

.crm-detail-subtle {
    color: var(--crm-muted);
    font-size: 0.95rem;
}

.crm-section-card {
    background: var(--crm-card-bg);
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    box-shadow: var(--crm-shadow);
    padding: 20px;
    height: 100%;
}

.crm-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--crm-text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.crm-field-row {
    padding: 10px 0;
    border-bottom: 1px solid #eaf0f6;
}

    .crm-field-row:last-child {
        border-bottom: 0;
    }

.crm-field-label {
    color: var(--crm-muted);
    font-size: 0.92rem;
}

.crm-field-value {
    color: var(--crm-text);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}

    .crm-field-value a {
        color: var(--crm-text);
        text-decoration: none;
    }

        .crm-field-value a:hover {
            text-decoration: underline;
        }

.crm-address-block {
    margin-bottom: 16px;
    color: var(--crm-text);
    font-weight: 500;
}

    .crm-address-block a {
        text-decoration: none;
    }

.crm-stat-danger {
    color: #dc3545 !important;
}

.crm-stat-good {
    color: #198754 !important;
}

.crm-stat-info {
    color: var(--crm-blue) !important;
}

.crm-tabs-wrap {
    margin-top: 16px;
}

.crm-tabs {
    border-bottom: 1px solid var(--crm-border);
    gap: 8px;
}

    .crm-tabs .nav-item {
        min-width: 0;
    }

    .crm-tabs .nav-link {
        border: 1px solid var(--crm-border);
        border-bottom: none;
        border-radius: 10px 10px 0 0;
        background: #f9fbfd;
        color: var(--crm-text);
        font-weight: 600;
        padding: 10px 16px;
    }

        .crm-tabs .nav-link:hover {
            background: #eef3fb;
            color: var(--crm-blue);
        }

        .crm-tabs .nav-link.active {
            background: var(--crm-blue);
            border-color: var(--crm-blue);
            color: #fff;
        }

@media (max-width: 575.98px) {
    .crm-tabs {
        flex-wrap: nowrap;
        gap: 4px;
    }

        .crm-tabs .nav-item {
            flex: 1 1 0;
        }

        .crm-tabs .nav-link {
            padding: 8px 6px;
            font-size: 0.78rem;
            text-align: center;
            white-space: nowrap;
        }
}

@media (max-width: 375.98px) {
    .crm-tabs {
        gap: 2px;
    }

        .crm-tabs .nav-link {
            padding: 7px 4px;
            font-size: 0.68rem;
            letter-spacing: 0;
        }
}

.crm-inline-list br {
    line-height: 1.7;
}

@media (max-width: 991.98px) {
    .crm-field-value {
        text-align: left;
        margin-top: 4px;
    }
}

.crm-task-month-group {
    margin-top: 16px;
}

.crm-task-month-header {
    background: #f9fbfd;
    border: 1px solid var(--crm-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--crm-muted);
}

.crm-task-row {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(33, 51, 67, 0.05);
    padding: 10px 12px;
    margin-bottom: 8px;
}

.crm-task-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.crm-task-edit-btn {
    min-width: 56px;
    padding: 4px 10px;
    line-height: 1.2;
}

.crm-edit-btn {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.crm-edit-btn:hover,
.crm-edit-btn:focus,
.crm-edit-btn:active {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    color: #fff;
}

.crm-task-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.crm-task-meta-grid-compact {
    grid-template-columns: 1.1fr 1.2fr 1fr auto;
    align-items: start;
}

.crm-task-meta-item {
    min-width: 0;
}

.crm-task-meta-label {
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--crm-muted);
    margin-bottom: 2px;
}

.crm-task-meta-value {
    color: var(--crm-text);
    font-weight: 600;
    min-width: 0;
}

.crm-task-description-wrap {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #eaf0f6;
}

.crm-task-description {
    color: var(--crm-text);
    font-size: 0.9rem;
    line-height: 1.3;
    word-break: break-word;
    white-space: normal;
}

.crm-task-badge {
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 10px;
    max-width: 100%;
    white-space: normal;
}

.crm-task-badge-complete {
    background: #f6fbf8 !important;
    color: #198754 !important;
    border: 1px solid #b7dfc8 !important;
}

.crm-empty-state {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    padding: 18px;
    color: var(--crm-muted);
}

@media (max-width: 767.98px) {
    .crm-task-row {
        padding: 10px;
    }

    .crm-task-meta-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .crm-task-meta-grid-compact {
        grid-template-columns: 1fr 1fr;
    }

    .crm-task-meta-item-edit {
        grid-column: span 2;
    }

    .crm-task-meta-item-edit .crm-task-meta-value {
        text-align: left !important;
    }

    .crm-task-meta-item {
        padding-bottom: 8px;
        border-bottom: 1px solid #eef2f7;
    }

        .crm-task-meta-item:last-child {
            border-bottom: 0;
            padding-bottom: 0;
        }

    .crm-task-description-wrap {
        margin-top: 8px;
        padding-top: 8px;
    }

    .crm-task-month-header {
        font-size: 0.82rem;
        padding: 9px 12px;
    }
}

body {
    background: #f5f8fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #213343;
}

.hs-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.hs-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #dfe3eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(33, 51, 67, 0.08);
    padding: 32px 28px 24px 28px;
}

.hs-brand {
    text-align: center;
    margin-bottom: 24px;
}

.hs-brand-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #213343;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.hs-brand-subtitle {
    font-size: 0.95rem;
    color: #516f90;
    margin-bottom: 0;
}

.hs-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #213343;
    margin-bottom: 6px;
}

.hs-form-group {
    margin-bottom: 18px;
}

.hs-login-card input[type="text"] {
    width: 100%;
    height: 48px;
    border: 1px solid #cbd6e2;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 1rem;
    color: #213343;
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

    .hs-login-card input[type="text"]:focus {
        outline: none;
        border-color: #4359B8;
        box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.15);
    }

.hs-check-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: #213343;
}

    .hs-check-row input[type="checkbox"] {
        margin-top: 3px;
        width: 16px;
        height: 16px;
        accent-color: #4359B8;
        flex: 0 0 auto;
    }

    .hs-check-row label {
        margin: 0;
        line-height: 1.35;
        cursor: pointer;
    }

.hs-login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background-color: #4359B8;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color .15s ease, transform .05s ease;
}

    .hs-login-btn:hover,
    .hs-login-btn:focus {
        background-color: #4359B5;
        color: #fff;
    }

    .hs-login-btn:active {
        transform: translateY(1px);
    }

.hs-error {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff4f2;
    border: 1px solid #f5c6bd;
    color: #8b3d2e;
    font-size: 0.95rem;
}

.hs-links {
    text-align: center;
    margin-top: 18px;
    font-size: 0.9rem;
    color: #516f90;
}

    .hs-links a {
        color: #00a4bd;
        text-decoration: none;
        font-weight: 500;
    }

        .hs-links a:hover {
            text-decoration: underline;
        }

.modal-content {
    border-radius: 12px;
    border: 1px solid #dfe3eb;
}

.modal-header {
    border-bottom: 1px solid #eaf0f6;
}

.modal-footer {
    border-top: 1px solid #eaf0f6;
}

body {
    background: #f5f8fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #213343;
}

.hs-login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.hs-login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #dfe3eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(33, 51, 67, 0.08);
    padding: 32px 28px 24px 28px;
}

.hs-brand {
    text-align: center;
    margin-bottom: 24px;
}

.hs-brand-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #213343;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.hs-brand-subtitle {
    font-size: 0.95rem;
    color: #516f90;
    margin-bottom: 0;
}

.hs-form-group {
    margin-bottom: 18px;
}

.hs-form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #213343;
    margin-bottom: 6px;
}

.hs-login-card input[type="number"] {
    width: 100%;
    height: 48px;
    border: 1px solid #cbd6e2;
    border-radius: 8px;
    padding: 0 14px;
    font-size: 1rem;
    color: #213343;
    background-color: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
    appearance: textfield;
    -moz-appearance: textfield;
}

    .hs-login-card input[type="number"]::-webkit-outer-spin-button,
    .hs-login-card input[type="number"]::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .hs-login-card input[type="number"]:focus {
        outline: none;
        border-color: #4359B8;
        box-shadow: 0 0 0 3px rgba(255, 122, 89, 0.15);
    }

.hs-login-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 8px;
    background-color: #4359B8;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color .15s ease, transform .05s ease;
}

    .hs-login-btn:hover,
    .hs-login-btn:focus {
        background-color: #4359B3;
        color: #fff;
    }

    .hs-login-btn:active {
        transform: translateY(1px);
    }

.hs-message {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fff4f2;
    border: 1px solid #f5c6bd;
    color: #8b3d2e;
    font-size: 0.95rem;
}

.crm-collapse-toggle {
    display: inline-flex;
    align-items: center;
}

.crm-collapse-chevron {
    display: inline-block;
    font-size: 1.25rem;
    transition: transform 0.28s ease;
    line-height: 1;
}

.crm-collapse-toggle[aria-expanded="true"] .crm-collapse-chevron {
    transform: rotate(180deg);
}

.collapsing {
    transition: height 0.32s ease;
}

.crm-collapse-body {
    padding-top: 2px;
}

/* financials */
.crm-financials-wrap {
    margin-bottom: 2rem;
}

.crm-financials-table {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--crm-shadow);
}

.crm-financials-tophead {
    background: #f9fbfd;
    border-bottom: 1px solid var(--crm-border);
    font-weight: 700;
    color: var(--crm-text);
    padding: 10px 0;
}

.crm-financials-subhead {
    background: #fff;
    border-bottom: 2px solid #eaf0f6;
    font-weight: 700;
}

.crm-financials-colhead,
.crm-financials-month-head {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--crm-muted);
    padding: 10px 10px;
}

.crm-financials-month-head {
    text-align: center;
    border-right: 1px solid #eaf0f6;
}

.crm-financials-row {
    border-bottom: 1px solid #eaf0f6;
}

    .crm-financials-row:last-of-type {
        border-bottom: 0;
    }

.crm-financials-total-row {
    background: #f9fbfd;
    border-top: 2px solid var(--crm-border);
    font-weight: 700;
}

.crm-financials-cell,
.crm-financials-month-cell {
    padding: 12px 10px;
    color: var(--crm-text);
}

.crm-financials-month-cell {
    text-align: center;
    font-weight: 700;
    border-right: 1px solid #eaf0f6;
}

.crm-financials-cell-divider {
    border-right: 1px solid #eaf0f6;
}

.crm-financials-link {
    color: inherit;
    text-decoration: none;
}

    .crm-financials-link:hover {
        text-decoration: underline;
    }

.crm-financials-month-link {
    color: var(--crm-text);
    font-weight: 700;
}

/* mobile */
.crm-mobile-financials-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.crm-mobile-financials-year {
    background: #f9fbfd;
    border: 1px solid var(--crm-border);
    border-radius: 10px;
    padding: 10px 12px;
    text-align: center;
}

.crm-mobile-financials-year-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--crm-muted);
    margin-bottom: 2px;
}

.crm-mobile-financials-year-value {
    font-weight: 700;
    color: var(--crm-text);
}

.crm-mobile-financial-card {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(33, 51, 67, 0.05);
    padding: 14px;
    margin-bottom: 12px;
}

.crm-mobile-financial-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaf0f6;
}

.crm-mobile-financial-month {
    font-size: 1rem;
    font-weight: 700;
    color: var(--crm-text);
}

.crm-mobile-financial-change {
    font-weight: 700;
    white-space: nowrap;
}

.crm-mobile-financial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.crm-mobile-financial-group {
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 12px;
    background: #fcfdff;
}

.crm-mobile-financial-group-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--crm-muted);
    font-weight: 700;
    margin-bottom: 8px;
}

.crm-mobile-financial-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
    color: var(--crm-text);
}

    .crm-mobile-financial-item span {
        color: var(--crm-muted);
        font-size: 0.9rem;
    }

    .crm-mobile-financial-item a,
    .crm-mobile-financial-item strong {
        color: inherit;
        text-decoration: none;
        font-weight: 700;
    }

.crm-mobile-financial-total {
    background: #f9fbfd;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .crm-mobile-financial-grid {
        grid-template-columns: 1fr 1fr;
    }
}
/*financials*/

/*contacts*/
.crm-contacts-wrap {
    margin-bottom: 2rem;
}

.crm-contact-row {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(33, 51, 67, 0.05);
    padding: 0 16px;
    margin-bottom: 12px;
}

.crm-contact-card {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(33, 51, 67, 0.05);
    padding: 14px;
    margin-bottom: 12px;
}

.crm-contact-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaf0f6;
}

.crm-contact-card-name-wrap {
    min-width: 0;
    flex: 1;
}

.crm-contact-name {
    color: var(--crm-text);
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.crm-contact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.crm-contact-badge {
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 5px 8px;
}

.crm-contact-badge-success {
    background: #eaf8ef !important;
    color: #198754 !important;
    border: 1px solid #b7dfc8 !important;
}

.crm-contact-badge-blue {
    background: rgba(67, 89, 184, 0.12) !important;
    color: var(--crm-blue) !important;
    border: 1px solid rgba(67, 89, 184, 0.25) !important;
}

.crm-contact-badge-purple {
    background: rgba(111, 66, 193, 0.12) !important;
    color: #6f42c1 !important;
    border: 1px solid rgba(111, 66, 193, 0.25) !important;
}

.crm-contact-badge-danger {
    background: #fdf0f0 !important;
    color: #dc3545 !important;
    border: 1px solid #f0c2c7 !important;
}

.crm-contact-link {
    color: var(--crm-text);
    text-decoration: none;
}

    .crm-contact-link:hover {
        text-decoration: underline;
    }

.crm-contact-muted {
    color: var(--crm-muted);
    word-break: break-word;
}

.crm-contact-field {
    color: var(--crm-text);
    font-weight: 600;
    word-break: break-word;
}

.crm-contact-notes {
    color: var(--crm-text);
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
}

.crm-contact-edit-btn {
    min-width: 72px;
}

.crm-contact-card-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.crm-contact-mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.crm-contact-mobile-item {
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .crm-contact-mobile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .crm-contact-card-top {
        flex-direction: column;
        align-items: stretch;
    }

    .crm-contact-edit-btn {
        width: 100%;
    }
}
/*contacts*/

/*opportunities*/
.crm-opps-wrap {
    margin-bottom: 2rem;
}

.crm-opps-table-head {
    background: #f9fbfd;
    border: 1px solid var(--crm-border);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 10px;
}

.crm-opp-row {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(33, 51, 67, 0.05);
    padding: 0 16px;
    margin-bottom: 12px;
}

.crm-opp-card {
    background: #fff;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(33, 51, 67, 0.05);
    padding: 14px;
    margin-bottom: 12px;
}

.crm-opp-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaf0f6;
}

.crm-opp-card-title-wrap {
    min-width: 0;
    flex: 1;
}

.crm-opp-title {
    color: var(--crm-text);
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.crm-opp-subtitle {
    color: var(--crm-muted);
    font-size: 0.9rem;
    margin-top: 4px;
}

.crm-opp-edit-btn {
    min-width: 72px;
}

.crm-opp-card-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}

.crm-opp-mobile-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.crm-opp-mobile-item {
    min-width: 0;
}

.crm-opp-value {
    color: var(--crm-text);
    font-weight: 600;
    word-break: break-word;
}

.crm-opp-note {
    color: var(--crm-text);
    font-size: 0.95rem;
    line-height: 1.45;
    word-break: break-word;
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .crm-opp-mobile-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .crm-opp-card-top {
        flex-direction: column;
        align-items: stretch;
    }

    .crm-opp-edit-btn {
        width: 100%;
    }
}
/*opportunities*/

/* footer */
.app-footer {
    background: #dbe5f0;
    border-top: 1px solid #b8c6d6;
    box-shadow: 0 -4px 18px rgba(33, 51, 67, 0.14);
    z-index: 1050;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

.app-footer-inner {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 14px 14px 0 0;
    min-height: 58px;
}

.app-version,
.app-user,
.app-copy {
    color: #516f90;
    font-size: 0.78rem;
    line-height: 1.2;
}

.app-user {
    font-weight: 500;
}

.app-divider {
    color: #b6c2cf;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 999px;
    text-decoration: none;
    background: #fff3eb;
    border: 1px solid #ffd7c8;
    color: #ff7a59;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

    .logout-btn:hover {
        background: #ffe7dc;
        color: #e56745;
        text-decoration: none;
    }

body {
    padding-bottom: 72px;
}
/*footer*/

/* general */

/* general */
