:root {
    --crm-ink: #102c45;
    --crm-muted: #697d8c;
    --crm-border: #dce6ed;
    --crm-panel: #ffffff;
    --crm-canvas: #f3f7fa;
    --crm-accent: #0b3b5b;
    --crm-accent-soft: #e9f3f8;
    --crm-shadow: 0 8px 24px rgb(15 42 62 / 6%);
}

.crm-page,
.rfp-module {
    box-sizing: border-box;
    color: var(--crm-ink);
}

.crm-page {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 28px clamp(16px, 2.4vw, 36px) 36px;
}

.crm-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 22px;
}

.crm-page-header h1,
.crm-page-header h2 {
    margin: 3px 0 5px;
    color: var(--crm-ink);
    font-size: clamp(24px, 2.1vw, 32px);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.15;
}

.crm-page-header p,
.crm-card-heading p,
.policy-filter-heading p,
.call-center-view-heading p {
    margin: 0;
    color: var(--crm-muted);
    font-size: 13px;
    line-height: 1.5;
}

.crm-eyebrow {
    display: block;
    color: #658196;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.crm-page-badge {
    display: inline-flex;
    min-height: 38px;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #d7e6ef;
    border-radius: 999px;
    color: #315b74;
    background: #f7fbfd;
    font-size: 12px;
    font-weight: 700;
}

.crm-card {
    min-width: 0;
    border: 1px solid var(--crm-border);
    border-radius: 14px;
    background: var(--crm-panel);
    box-shadow: var(--crm-shadow);
}

.crm-card-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.crm-card-heading > div {
    min-width: 0;
}

.crm-card-heading h2,
.policy-filter-heading h2 {
    margin: 0 0 4px;
    color: var(--crm-ink);
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -.015em;
}

.crm-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    border-radius: 12px;
    color: #2b6687;
    background: #e9f3f8;
    font-size: 16px;
}

.crm-card-icon-alt {
    color: #7c5b27;
    background: #fbf3e2;
}

.crm-card-icon-green {
    color: #2c7657;
    background: #e8f5ee;
}

.crm-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.crm-button:hover {
    transform: translateY(-1px);
}

.crm-button:focus-visible,
.policy-settings:focus-visible,
.call-center-access-button:focus-visible {
    outline: 3px solid rgb(56 189 248 / 45%);
    outline-offset: 2px;
}

.crm-button-primary {
    color: #fff;
    background: var(--crm-accent);
    box-shadow: 0 3px 8px rgb(11 59 91 / 15%);
}

.crm-button-primary:hover {
    background: #164f72;
}

.crm-button-secondary {
    border-color: #d4e1e9;
    color: #315b74;
    background: #fff;
}

.crm-button-secondary:hover {
    border-color: #a9c3d2;
    background: #f7fbfd;
}

/* Call Center: keep the call workspace full-width and put reminders/log behind workspace buttons. */
.call-center-page {
    max-width: none;
    padding-top: 22px;
}

.call-center-header {
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.call-center-access {
    display: flex;
    min-width: min(100%, 450px);
    align-items: stretch;
    gap: 7px;
    padding: 5px;
    border: 1px solid #dce6ed;
    border-radius: 13px;
    background: #eaf1f5;
}

.call-center-access-button {
    display: inline-flex;
    min-height: 42px;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #526a7a;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.call-center-access-button:hover {
    color: var(--crm-accent);
    background: rgb(255 255 255 / 70%);
}

.call-center-access-button.is-active {
    border-color: #e5edf2;
    color: var(--crm-accent);
    background: #fff;
    box-shadow: 0 2px 5px rgb(15 42 62 / 8%);
}

.call-center-count {
    display: inline-grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    color: #315b74;
    background: #e8f1f6;
    font-size: 10px;
    font-weight: 800;
}

.call-center-workspace {
    width: 100%;
    min-width: 0;
}

.call-center-view[hidden] {
    display: none !important;
}

.call-center-view:not([hidden]) {
    display: block;
}

#callCenterWorkspace {
    min-width: 0;
}

#callCenterInterglobalContenido {
    width: 100%;
    min-width: 0;
    padding: 0 5px;
    text-align: left;
}

#callCenterInterglobalContenido > .flex {
    gap: 14px;
}

#callCenterInterglobalContenido > .flex > [class*="w-full"] {
    min-width: 0;
}

#callCenterInterglobalContenido > .call-center-filter-row,
#callCenterInterglobalContenido > .call-center-lookup-row,
#callCenterInterglobalContenido > .call-center-business-row,
#callCenterInterglobalContenido > .call-center-outcome-row,
#callCenterInterglobalContenido > .call-center-reminder-row {
    box-sizing: border-box;
    margin: 12px 0;
    padding: 16px;
    border: 1px solid var(--crm-border);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--crm-shadow);
}

#callCenterInterglobalContenido > .call-center-filter-row > div,
#callCenterInterglobalContenido > .call-center-lookup-row > div,
#callCenterInterglobalContenido > .call-center-business-row > div {
    min-width: 0;
    padding: 4px 8px;
}

#callCenterInterglobalContenido > .call-center-filter-row p,
#callCenterInterglobalContenido > .call-center-lookup-row p {
    margin: 0 0 7px;
    color: #587183;
    font-size: 12px;
    font-weight: 700;
}

#callCenterInterglobalContenido > .call-center-filter-row select {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid #d6e1e8;
    border-radius: 8px;
    color: #30495a;
    background: #fff;
}

#callCenterInterglobalContenido > .call-center-lookup-row .flex.flex-row {
    width: 100%;
    margin: 0;
}

#callCenterInterglobalContenido > .call-center-lookup-row input {
    min-height: 44px;
    font-size: 14px;
}

#callCenterInterglobalContenido > .call-center-lookup-row #btnSearchByPhoneOrDot {
    display: inline-flex;
    min-width: 86px;
    align-items: center;
    justify-content: center;
    background: #f4faf7;
    font-weight: 750;
}

#callCenterInterglobalContenido > .call-center-lookup-row #btnNextBusiness {
    width: 100%;
    min-height: 46px;
    border-radius: 9px;
    font-weight: 800;
}

#callCenterInterglobalContenido > .call-center-business-row > div {
    border: 1px solid #e3ebf0;
    border-radius: 10px;
    background: #fbfcfd;
}

#callCenterInterglobalContenido > .call-center-business-row h4,
#callCenterInterglobalContenido > .call-center-outcome-row h4,
#callCenterInterglobalContenido > .call-center-reminder-row h4 {
    margin: 5px 0 12px;
    color: var(--crm-ink);
    font-size: 16px;
    font-weight: 750;
}

#callCenterInterglobalContenido > .call-center-business-row > div:first-child > div {
    padding: 6px 0;
    border-bottom: 1px solid #e8eef2;
    color: #40596a;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

#callCenterInterglobalContenido > .call-center-business-row > div:first-child > div:last-child {
    border-bottom: 0;
}

#callCenterInterglobalContenido .company-phone-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 9px 0;
    padding: 0 !important;
    border: 0 !important;
}

#callCenterInterglobalContenido .company-call-action {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #15803d;
    border-radius: 9px;
    color: #fff;
    background: linear-gradient(135deg, #16a34a, #166534);
    box-shadow: 0 3px 8px rgb(22 101 52 / 18%);
    text-align: center;
    text-decoration: none;
    transition: filter .15s ease, box-shadow .15s ease, transform .15s ease;
}

#callCenterInterglobalContenido .company-call-action[href]:hover,
#callCenterInterglobalContenido .company-call-action[href]:focus-visible {
    color: #fff;
    filter: brightness(1.05);
    box-shadow: 0 5px 12px rgb(22 101 52 / 24%);
    transform: translateY(-1px);
}

#callCenterInterglobalContenido .company-call-action:focus-visible {
    outline: 3px solid rgb(74 222 128 / 40%);
    outline-offset: 2px;
}

#callCenterInterglobalContenido .company-call-action[aria-disabled="true"] {
    border-color: #c7d3dc;
    color: #738593;
    background: #edf2f5;
    box-shadow: none;
    cursor: not-allowed;
}

.company-call-action-label {
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.company-call-action > strong {
    font-size: 13px;
    line-height: 1.2;
}

#callCenterInterglobalContenido .company-copy-phone {
    display: inline-flex;
    flex: 0 0 44px;
    width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid #bfd0dc;
    border-radius: 9px;
    color: #0c4058;
    background: #f4f8fb;
    box-shadow: 0 2px 5px rgb(12 64 88 / 10%);
    font-size: 17px;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, transform .15s ease;
}

#callCenterInterglobalContenido .company-copy-phone:hover:not(:disabled),
#callCenterInterglobalContenido .company-copy-phone:focus-visible {
    border-color: #0875b5;
    color: #075985;
    background: #e8f4fb;
    transform: translateY(-1px);
}

#callCenterInterglobalContenido .company-copy-phone:focus-visible {
    outline: 3px solid rgb(14 165 233 / 30%);
    outline-offset: 2px;
}

#callCenterInterglobalContenido .company-copy-phone:disabled {
    color: #93a3ae;
    background: #edf2f5;
    box-shadow: none;
    cursor: not-allowed;
}

#callCenterInterglobalContenido .company-copy-phone.is-copied {
    border-color: #15803d;
    color: #fff;
    background: #15803d;
}

#callCenterInterglobalContenido .company-phone-copy-status {
    min-height: 0;
    color: #15803d;
    font-size: 11px;
    line-height: 1.35;
}

#callCenterInterglobalContenido > .call-center-business-row > div:first-child > .company-phone-copy-status {
    padding: 0;
    border: 0;
}

#callCenterInterglobalContenido .company-phone-copy-status:empty {
    display: none;
}

#callCenterInterglobalContenido .company-phone-copy-status.is-error {
    color: #b42318;
}

.company-profile-card {
    min-width: 0;
    padding: 4px;
}

.company-profile-card > h4 {
    margin: 5px 0 14px;
    color: var(--crm-ink);
    font-size: 16px;
    font-weight: 750;
    text-align: center;
}

.company-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.company-profile-metric {
    display: flex;
    min-width: 0;
    min-height: 60px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px 10px;
    border: 1px solid #e2eaf0;
    border-radius: 8px;
    background: #fff;
}

.company-profile-metric > span,
.company-insurance-details > div > span {
    color: #718493;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.company-profile-metric > strong {
    overflow-wrap: anywhere;
    color: #1d4058;
    font-size: 13px;
    font-weight: 800;
}

.company-profile-updated {
    margin: 10px 2px 0;
    color: #718493;
    font-size: 10px;
}

.company-profile-updated strong {
    color: #40596a;
    font-weight: 700;
}

.company-insurance-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #dce8ee;
    border-radius: 9px;
    background: #fff;
}

.company-insurance-details[hidden],
.company-insurance-details.hidden {
    display: none !important;
}

.company-insurance-details > h5 {
    grid-column: 1 / -1;
    margin: 0 0 2px;
    color: #315b74;
    font-size: 11px;
    font-weight: 800;
}

.company-insurance-details > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.company-insurance-details > div > strong {
    overflow-wrap: anywhere;
    color: #30495a;
    font-size: 11px;
    font-weight: 700;
}

.company-motus-summary {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #e2eaf0;
}

.company-motus-summary > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.company-motus-summary > header h5 {
    margin: 0;
    color: #315b74;
    font-size: 11px;
    font-weight: 800;
}

.company-motus-summary > header button {
    display: inline-grid;
    flex: 0 0 30px;
    width: 30px;
    min-width: 30px;
    height: 30px;
    min-height: 30px;
    aspect-ratio: 1 / 1;
    place-items: center;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #dce6ed;
    border-radius: 8px;
    color: #4b6e83;
    background: #fff;
    cursor: pointer;
}

.company-motus-summary > header button:hover,
.company-motus-summary > header button:focus-visible {
    border-color: #9cb9ca;
    color: var(--crm-accent);
}

.motus-authority-content {
    min-width: 0;
}

.motus-carrier-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.motus-carrier-meta-field,
.motus-authority-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 7px 8px;
    border: 1px solid #e5ecf1;
    border-radius: 7px;
    background: #fff;
}

.motus-carrier-meta-field > span,
.motus-authority-field > span,
.motus-latest-history > span,
.motus-blanket-summary > span:first-child {
    color: #778b99;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.motus-carrier-meta-field > strong,
.motus-authority-field > strong {
    overflow-wrap: anywhere;
    color: #30495a;
    font-size: 10px;
    font-weight: 750;
}

.motus-status-pill {
    display: inline-flex;
    min-height: 21px;
    width: fit-content;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.motus-status-pill.is-active {
    border-color: #b9e1c8;
    color: #267047;
    background: #eaf7ef;
}

.motus-status-pill.is-inactive {
    border-color: #efc2c2;
    color: #a23c3c;
    background: #fff0f0;
}

.motus-status-pill.is-neutral {
    border-color: #d9e3e9;
    color: #5d7484;
    background: #f4f7f9;
}

.motus-authority-card {
    min-width: 0;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid #dce7ed;
    border-radius: 9px;
    background: #f9fbfc;
}

.motus-authority-heading {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.motus-authority-identity {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.motus-authority-identity > strong {
    color: #294a61;
    font-size: 10px;
    line-height: 1.35;
}

.motus-authority-identity > span {
    color: #718493;
    font-size: 9px;
}

.motus-authority-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.motus-latest-history {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    margin-top: 8px;
    padding: 8px;
    border-left: 3px solid #8aaec1;
    border-radius: 0 7px 7px 0;
    background: #fff;
}

.motus-latest-history > strong {
    color: #30495a;
    font-size: 10px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.motus-latest-history-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.motus-latest-history-main > strong {
    color: #30495a;
    font-size: 10px;
    font-weight: 750;
}

.motus-latest-history > small {
    color: #647b8b;
    font-size: 9px;
}

.motus-history-details {
    margin-top: 7px;
}

.motus-history-details > summary {
    color: #41667c;
    font-size: 9px;
    font-weight: 750;
    cursor: pointer;
}

.motus-history-table-wrap {
    max-width: 100%;
    margin-top: 6px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

.motus-history-table-wrap table {
    width: 100%;
    min-width: 430px;
    margin: 0;
    border-collapse: collapse;
    font-size: 9px;
}

.motus-history-table-wrap th,
.motus-history-table-wrap td {
    padding: 6px;
    border-bottom: 1px solid #e5ecf1;
    text-align: left;
    vertical-align: top;
}

.motus-history-table-wrap th {
    color: #708594;
    font-size: 8px;
    text-transform: uppercase;
}

.motus-filing-summary {
    margin-top: 9px;
}

.motus-filing-summary > h6 {
    margin: 0 0 5px;
    color: #456b81;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.motus-filing-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 4px 8px;
    padding: 7px 0;
    border-top: 1px solid #e4ebef;
}

.motus-filing-row > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.motus-filing-row > div > strong {
    color: #30495a;
    font-size: 9px;
    overflow-wrap: anywhere;
}

.motus-filing-row > div > small,
.motus-filing-facts {
    color: #758995;
    font-size: 8px;
    overflow-wrap: anywhere;
}

.motus-filing-facts {
    grid-column: 1 / -1;
}

.motus-blanket-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid #e4ebef;
}

.motus-blanket-summary > strong {
    color: #30495a;
    font-size: 9px;
}

.motus-summary-note,
.motus-summary-loading {
    margin: 0;
    color: #758995;
    font-size: 9px;
    line-height: 1.5;
}

.motus-summary-loading {
    display: flex;
    align-items: center;
    gap: 7px;
}

.motus-summary-retry {
    margin-top: 6px;
    padding: 5px 8px;
    border: 1px solid #d2e0e8;
    border-radius: 7px;
    color: #315b74;
    background: #fff;
    font-size: 9px;
    font-weight: 750;
    cursor: pointer;
}

#callCenterInterglobalContenido #insuranceDetails {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid #e3ebf0;
    border-radius: 9px;
    background: #fff;
}

#callCenterInterglobalContenido .call-center-business-row .history-tab {
    min-height: 40px;
    border-radius: 8px 8px 0 0;
}

#callCenterInterglobalContenido .call-center-business-row .tab-content {
    max-width: 100%;
    overflow-x: auto;
}

#callCenterInterglobalContenido > .call-center-outcome-row > div {
    width: 100%;
}

#callCenterInterglobalContenido .call-center-outcome-row [role="group"] {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

#callCenterInterglobalContenido .call-center-outcome-row .btnStatus {
    min-height: 42px;
}

#callCenterInterglobalContenido > .call-center-reminder-row #calendar,
#callCenterInterglobalContenido > .call-center-reminder-row > div:last-child {
    min-width: 0;
    padding: 8px;
}

#callCenterInterglobalContenido .call-reminder-calendar {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    text-align: left;
}

#callCenterInterglobalContenido .call-reminder-calendar > h4 {
    margin: 4px 0 12px;
    text-align: center;
}

#callCenterInterglobalContenido .call-reminder-calendar-frame {
    overflow: hidden;
    border: 1px solid #d7e3ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 14px rgb(16 47 67 / 7%);
}

#callCenterInterglobalContenido .call-reminder-calendar-header {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    min-height: 58px;
    padding: 8px 12px;
    color: #fff;
    background: linear-gradient(120deg, #092e43, #0d4661);
}

#callCenterInterglobalContenido .calendar-month-nav {
    display: inline-grid;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    place-items: center;
    padding: 0;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 9px;
    color: #fff;
    background: rgb(255 255 255 / 9%);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

#callCenterInterglobalContenido .calendar-month-nav:hover,
#callCenterInterglobalContenido .calendar-month-nav:focus-visible {
    border-color: rgb(255 255 255 / 55%);
    background: rgb(255 255 255 / 18%);
}

#callCenterInterglobalContenido .calendar-month-nav:focus-visible,
#callCenterInterglobalContenido .call-reminder-calendar-day:focus-visible {
    outline: 3px solid #8fc7e3;
    outline-offset: 2px;
}

#callCenterInterglobalContenido #monthLookup {
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .01em;
    text-align: center;
}

#callCenterInterglobalContenido .call-reminder-weekdays,
#callCenterInterglobalContenido #calendarBody.call-reminder-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

#callCenterInterglobalContenido .call-reminder-weekdays {
    padding: 10px 10px 4px;
    color: #8294a1;
    background: #fff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

#callCenterInterglobalContenido #calendarBody.call-reminder-calendar-grid {
    min-height: 0;
    padding: 6px 10px 12px;
    border: 0;
    background: #fff;
}

#callCenterInterglobalContenido .call-reminder-calendar-day {
    display: grid;
    width: 100% !important;
    min-width: 0;
    min-height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #30495a;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

#callCenterInterglobalContenido .call-reminder-calendar-day:hover:not(.bg-green-800) {
    border-color: #c7dce8;
    color: #0b4b6c !important;
    background: #eef6fa !important;
}

#callCenterInterglobalContenido .call-reminder-calendar-day.is-today:not(.bg-green-800) {
    border-color: #8ebbd1;
    color: #0b4b6c;
    background: #eef7fb;
    font-weight: 850;
}

#callCenterInterglobalContenido .call-reminder-calendar-day.bg-green-800,
#callCenterInterglobalContenido .call-reminder-calendar-day.bg-green-800:hover {
    border-color: #15734a;
    color: #fff !important;
    background: #16834e !important;
    box-shadow: 0 3px 8px rgb(22 131 78 / 24%);
}

#callCenterInterglobalContenido .call-reminder-calendar-empty {
    min-height: 42px;
}

#callCenterInterglobalContenido .call-reminder-date-hint {
    min-height: 16px;
    margin: 8px 2px 0;
    color: #718493;
    font-size: 11px;
}

#callCenterInterglobalContenido > .call-center-reminder-row textarea {
    min-height: 150px;
    font-size: 14px;
}

#callCenterInterglobalContenido > .call-center-reminder-row > div:last-child > div:last-child {
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

#callCenterInterglobalContenido > .call-center-reminder-row #sentMessage {
    width: 20px;
    height: 20px;
}

#callCenterInterglobalContenido > .flex-row.flex.mt-2 {
    padding: 0 4px 8px;
}

#callCenterInterglobalContenido #btnSaveCall {
    min-width: 140px;
    min-height: 44px;
    border-radius: 9px;
    font-weight: 800;
}

#callCenterInterglobalContenido > hr {
    display: none;
}

.call-center-view:not(#callCenterWorkspace) {
    padding: clamp(16px, 2.2vw, 28px);
    border: 1px solid var(--crm-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--crm-shadow);
}

.call-center-view-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.call-center-view-heading h2 {
    margin: 4px 0 5px;
    color: var(--crm-ink);
    font-size: 21px;
    font-weight: 760;
    letter-spacing: -.025em;
}

.call-center-total {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #dce9f0;
    border-radius: 999px;
    color: #587183;
    background: #f7fbfd;
    font-size: 12px;
}

.call-center-total strong {
    color: var(--crm-accent);
    font-size: 15px;
}

.call-center-refresh {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #dce6ed;
    border-radius: 9px;
    color: #315b74;
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.call-center-table-wrap,
.quote-table-wrap,
.policy-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.call-center-table {
    width: 100%;
    min-width: 480px;
    border-collapse: separate;
    border-spacing: 0;
    color: #30495a;
    font-size: 13px;
}

.call-center-table thead th {
    padding: 12px 16px;
    border-bottom: 1px solid #dce6ed;
    color: #60798a;
    background: #f5f8fa;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}

.call-center-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid #edf1f4;
    line-height: 1.45;
}

.call-center-table tbody tr:last-child td {
    border-bottom: 0;
}

.call-center-table tbody tr:hover td {
    background: #f8fbfd;
}

.call-center-empty {
    color: #8596a3;
    text-align: center !important;
}

/* Call log. */
.call-log-page {
    min-width: 0;
}

.call-log-filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(125px, 1fr)) auto;
    align-items: end;
    gap: 13px;
    margin-bottom: 20px;
    padding: 16px;
    border: 1px solid #e1e9ee;
    border-radius: 12px;
    background: #f8fafb;
}

.call-log-filter {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.call-log-filter label {
    color: #526a7a;
    font-size: 11px;
    font-weight: 700;
}

.call-log-filter select {
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid #d6e1e8;
    border-radius: 8px;
    color: #30495a;
    background: #fff;
}

.call-log-filter input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 10px;
    border: 1px solid #d6e1e8;
    border-radius: 8px;
    color: #30495a;
    background: #fff;
}

.call-log-filter input:focus,
.call-log-filter select:focus {
    border-color: #7ba9c1;
    outline: none;
    box-shadow: 0 0 0 3px rgb(14 116 144 / 10%);
}

.call-log-filter-actions {
    display: flex;
    align-items: end;
    gap: 7px;
}

.call-log-results-heading {
    margin: 0 0 9px;
    color: #718493;
    font-size: 12px;
    font-weight: 650;
}

.call-log-table {
    min-width: 1100px;
}

.call-log-table tbody tr {
    cursor: default;
}

.call-log-table .call-log-business {
    min-width: 190px;
    color: #263f51;
    font-weight: 700;
}

.call-log-table .call-log-note {
    min-width: 220px;
    max-width: 360px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.call-log-status {
    display: inline-flex;
    min-height: 25px;
    align-items: center;
    padding: 3px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.call-log-status--lead {
    border-color: #b8e4ca;
    color: #246c46;
    background: #eaf7ef;
}

.call-log-status--possible {
    border-color: #c4dfef;
    color: #236481;
    background: #edf7fc;
}

.call-log-status--no-answer {
    border-color: #f2d992;
    color: #84620f;
    background: #fff8df;
}

.call-log-status--not-interested,
.call-log-status--blacklist {
    border-color: #efc2c2;
    color: #9d3b3b;
    background: #fff0f0;
}

.call-log-status--other {
    border-color: #d8e1e7;
    color: #526a7a;
    background: #f3f6f8;
}

.call-log-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 14px;
}

.call-log-pagination > span {
    min-width: 72px;
    color: #60798a;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.call-log-pagination .crm-button:disabled {
    opacity: .48;
    cursor: not-allowed;
    transform: none;
}

/* Quotes. */
.quotes-page {
    background: var(--crm-canvas);
}

.quotes-action-grid,
.quotes-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.quote-action-card,
.quote-list-card {
    padding: 18px;
}

.quote-action-card {
    min-height: 210px;
}

.quote-search-form,
.quote-manual-form {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 17px;
}

.quote-search-form label,
.quote-manual-form label {
    color: #587183;
    font-size: 11px;
    font-weight: 750;
}

.quote-manual-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
}

.quote-input-action {
    display: flex;
    min-width: 0;
    gap: 8px;
}

.quote-input-action input,
.quote-manual-form input {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d6e1e8;
    border-radius: 8px;
    outline: none;
    color: #30495a;
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.quote-input-action input:focus,
.quote-manual-form input:focus {
    border-color: #7ba9c1;
    box-shadow: 0 0 0 3px rgb(14 116 144 / 10%);
}

.quote-input-action .crm-button {
    flex: 0 0 auto;
}

.quote-detail-area:empty {
    display: none;
}

.quote-detail-area:not(:empty) {
    margin-top: 16px;
}

.quote-detail-area > div {
    overflow: hidden;
    border: 1px solid var(--crm-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--crm-shadow);
}

.quote-detail-area > div > div:first-child {
    background: var(--crm-accent) !important;
}

.quotes-list-grid {
    margin-top: 16px;
    align-items: start;
}

.quote-list-heading {
    margin-bottom: 14px;
}

.quote-table {
    width: 100%;
    min-width: 470px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: #344e5f;
    font-size: 12px;
}

.quote-table thead th {
    padding: 10px 12px;
    border: 0;
    color: #fff;
    background: var(--crm-accent);
    font-size: 10px;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.quote-table tbody td {
    padding: 11px 12px;
    border-bottom: 1px solid #e8eef2;
    vertical-align: middle;
}

.quote-table tbody tr {
    cursor: pointer;
    transition: background-color .15s ease;
}

.quote-table tbody tr:hover td {
    background: #f1f7fa;
}

/* Insurance portfolio. */
.policy-page {
    background: var(--crm-canvas);
}

.policy-page-header {
    margin-bottom: 16px;
}

.policy-settings {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 9px;
    padding: 0 13px;
    border: 1px solid #d7e3eb;
    border-radius: 10px;
    color: #315b74;
    background: #fff;
    box-shadow: var(--crm-shadow);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.policy-settings i {
    font-size: 14px;
}

.policy-summary-area {
    min-width: 0;
    margin-bottom: 16px;
}

.policy-page #policySummary {
    display: block;
    width: 100%;
    max-height: none;
}

.policy-summary-card {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    height: auto !important;
    min-height: 250px;
    padding: 18px;
    border: 1px solid var(--crm-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--crm-shadow);
}

.policy-summary-card > div {
    min-width: 0;
    width: 100%;
}

.policy-summary-card > div:first-child > .flex {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 7px;
}

.policy-summary-card .btn-check {
    min-height: 34px;
    padding: 4px 9px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
}

.policy-summary-card .btn-check.checked {
    color: #fff;
    background: var(--crm-accent);
}

.policy-summary-card #chartContainer {
    width: 100%;
    min-height: 340px;
}

.policy-filters {
    padding: 17px;
}

.policy-filter-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.policy-filter-heading i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #48728a;
    background: #edf5f9;
}

.policy-filter-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    align-items: end;
    gap: 11px;
    padding: 0 !important;
    color: #526a7a;
    text-align: left !important;
}

.policy-filter-grid > div {
    min-width: 0;
}

.policy-filter-grid > div > span,
.policy-filter-grid label {
    margin-bottom: 5px;
    color: #587183;
    font-size: 10px;
    font-weight: 750;
}

.policy-filter-grid select,
.policy-filter-grid input {
    width: 100%;
    min-height: 40px;
    padding: 0 9px !important;
    border: 1px solid #d6e1e8 !important;
    border-radius: 8px !important;
    color: #30495a;
    background: #fff;
    font-size: 12px;
}

.policy-filter-grid > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.policy-filter-grid > div:last-child button {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
}

.policy-results {
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--crm-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--crm-shadow);
}

.policy-table-scroll {
    padding: 8px 12px 12px;
}

.policy-table-scroll #tblTransactions {
    min-width: 1050px;
    margin-bottom: 0;
    color: #344e5f;
    font-size: 11px;
}

.policy-table-scroll #tblTransactions thead {
    background: #f2f6f8;
}

.policy-table-scroll #tblTransactions thead td {
    padding: 11px 9px;
    color: #60798a;
    font-size: 9px;
    letter-spacing: .04em;
}

.policy-table-scroll #tblTransactions tbody td {
    padding: 10px 9px;
    border-bottom: 1px solid #e8eef2;
}

/* RFP wizard and data-entry area. */
.rfp-module {
    width: 100%;
    max-width: 1800px;
    min-height: 100%;
    margin: 0 auto;
    padding: 26px clamp(16px, 2.2vw, 32px) 36px;
    background: var(--crm-canvas);
}

.rfp-page-header {
    margin-bottom: 16px;
}

.rfp-module .row {
    --bs-gutter-x: 1rem;
}

.rfp-module #tabMenu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start !important;
    gap: 5px;
    margin: 0;
    padding: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--crm-border) !important;
    border-radius: 12px !important;
    background: #eaf1f5;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
}

.rfp-module #tabMenu .nav-item {
    flex: 0 0 auto;
    margin: 0 !important;
    border: 0 !important;
}

.rfp-module #tabMenu .nav-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #516d80;
    background: transparent;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.rfp-module #tabMenu .nav-link:hover {
    color: var(--crm-accent);
    background: rgb(255 255 255 / 75%);
}

.rfp-module #tabMenu .nav-link.active {
    border-color: #dbe7ee !important;
    color: var(--crm-accent) !important;
    background: #fff !important;
    box-shadow: 0 2px 5px rgb(15 42 62 / 8%);
    text-decoration: none;
}

.rfp-module #tabContent {
    display: block !important;
    width: 100%;
    margin: 16px 0 0;
    padding: clamp(16px, 2vw, 26px);
    border: 1px solid var(--crm-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--crm-shadow);
}

.rfp-module #tabContent .tab-pane {
    display: none;
}

.rfp-module #tabContent .tab-pane.active.show {
    display: block;
}

.rfp-module #tabContent .h4 {
    color: var(--crm-ink) !important;
    text-decoration: none !important;
}

.rfp-module #tabContent [class*="bg-primary"] {
    color: #fff;
    background: #164b69 !important;
}

.rfp-module #tabContent input:not([type="checkbox"]),
.rfp-module #tabContent select,
.rfp-module #tabContent textarea {
    min-height: 40px;
    border-color: #d6e1e8 !important;
    border-radius: 8px !important;
    background: #fff;
}

.rfp-module #tabContent table {
    max-width: 100%;
}

.rfp-module #rfpNavigationFooter {
    max-width: 100%;
    margin-top: 12px;
    padding: 0 10px;
}

.rfp-module #rfpNavigationFooter .btn {
    min-width: 120px;
    min-height: 44px;
    border-radius: 9px;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .policy-filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .call-log-filters {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .call-log-filter-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
    }

    .policy-summary-card {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .crm-page {
        padding: 18px 12px 24px;
    }

    .crm-page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }

    .crm-page-badge {
        min-height: 34px;
    }

    .call-center-page {
        padding-top: 15px;
    }

    .call-center-header {
        gap: 14px;
    }

    .call-center-access {
        width: 100%;
        min-width: 0;
        gap: 3px;
    }

    .call-center-access-button {
        min-width: 0;
        min-height: 44px;
        flex-direction: column;
        gap: 3px;
        padding: 4px 6px;
        font-size: 10px;
    }

    #callCenterInterglobalContenido > .call-center-filter-row,
    #callCenterInterglobalContenido > .call-center-lookup-row,
    #callCenterInterglobalContenido > .call-center-business-row,
    #callCenterInterglobalContenido > .call-center-outcome-row,
    #callCenterInterglobalContenido > .call-center-reminder-row {
        gap: 8px;
        margin: 9px 0;
        padding: 11px 9px;
        border-radius: 11px;
    }

    #callCenterInterglobalContenido > .call-center-filter-row > div,
    #callCenterInterglobalContenido > .call-center-lookup-row > div,
    #callCenterInterglobalContenido > .call-center-business-row > div,
    #callCenterInterglobalContenido > .call-center-reminder-row > div {
        width: 100%;
        padding: 4px;
    }

    .company-profile-grid,
    .company-insurance-details,
    .motus-carrier-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #callCenterInterglobalContenido .company-call-action {
        width: auto;
        flex: 1 1 auto;
    }

    #callCenterInterglobalContenido > .call-center-lookup-row .flex.flex-row {
        flex-direction: row;
    }

    #callCenterInterglobalContenido > .call-center-lookup-row #btnNextBusiness {
        width: 100%;
    }

    #callCenterInterglobalContenido .call-center-outcome-row .btnStatus {
        flex: 1 1 130px;
        padding: 8px 10px;
    }

    #callCenterInterglobalContenido > .call-center-reminder-row > div:last-child {
        padding: 4px;
    }

    #callCenterInterglobalContenido > .call-center-reminder-row #calendar {
        max-width: 100%;
    }

    #callCenterInterglobalContenido > .flex-row.flex.mt-2 #btnSaveCall {
        width: 100%;
    }

    .call-center-view:not(#callCenterWorkspace) {
        padding: 15px 12px;
    }

    .call-center-view-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .call-center-view-heading > div {
        flex: 1 1 100%;
    }

    .call-center-refresh {
        margin-left: auto;
    }

    .call-log-filters {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .call-log-filter-actions {
        grid-column: auto;
        flex-direction: column;
    }

    .call-log-filter-actions .crm-button {
        width: 100%;
    }

    .quotes-action-grid,
    .quotes-list-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .quote-action-card,
    .quote-list-card {
        padding: 14px;
    }

    .quote-action-card {
        min-height: 0;
    }

    .quote-manual-form {
        display: flex;
        flex-direction: column;
    }

    .quote-input-action {
        flex-direction: column;
    }

    .quote-input-action .crm-button {
        width: 100%;
    }

    .policy-summary-card {
        gap: 10px;
        padding: 13px;
        grid-template-columns: minmax(0, 1fr);
    }

    .policy-summary-card > div:first-child > .flex {
        justify-content: flex-start;
    }

    .policy-summary-card #chartContainer {
        min-height: 240px;
    }

    .policy-filter-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .policy-filter-grid > div:last-child button {
        flex: 1 1 auto;
    }

    .policy-table-scroll {
        padding: 8px;
    }

    .quote-table-wrap .quote-table,
    .policy-table-scroll #tblTransactions {
        display: table !important;
        overflow: visible !important;
    }

    .rfp-module {
        padding: 16px 10px 92px;
    }

    .rfp-module #tabMenu .nav-link {
        min-height: 40px;
        padding: 0 10px;
        font-size: 10px;
    }

    .rfp-module #tabContent {
        padding: 13px 10px;
    }

    .rfp-module #rfpNavigationFooter {
        position: sticky;
        z-index: 20;
        bottom: 0;
        display: block !important;
        margin: 14px -10px -92px;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--crm-border);
        background: rgb(255 255 255 / 96%);
        backdrop-filter: blur(10px);
    }

    .rfp-module #rfpNavigationFooter .row {
        display: flex;
        margin: 0;
    }

    .rfp-module #rfpNavigationFooter .col {
        width: 50%;
        padding: 0 5px;
    }

    .rfp-module #rfpNavigationFooter .btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .crm-button,
    .call-center-access-button,
    .quote-table tbody tr,
    .rfp-module #tabMenu .nav-link {
        transition-duration: .01ms !important;
    }
}

/* E-Tickets */
.ticket-module {
    --ticket-urgent: #a72c32;
    --ticket-high: #b65a18;
    --ticket-normal: #176c9b;
    --ticket-low: #607787;
}

.ticket-module [hidden] {
    display: none !important;
}

.ticket-view-tabs {
    display: flex;
    gap: 8px;
    margin: 0 0 18px;
    padding: 5px;
    overflow-x: auto;
    border: 1px solid var(--crm-border);
    border-radius: 12px;
    background: #eaf1f5;
}

.ticket-view-tab {
    display: inline-flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #526d80;
    background: transparent;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ticket-view-tab:hover {
    color: var(--crm-accent);
    background: #f8fbfd;
}

.ticket-view-tab.active {
    border-color: #d8e5ed;
    color: var(--crm-accent);
    background: #fff;
    box-shadow: 0 2px 6px rgb(15 42 62 / 8%);
}

.ticket-view-panel {
    min-width: 0;
}

.ticket-my-grid {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    align-items: start;
    gap: 16px;
}

.ticket-create-card,
.ticket-list-card,
.ticket-admin-card {
    min-width: 0;
    padding: 20px;
}

.ticket-section-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.ticket-section-heading > div {
    min-width: 0;
    flex: 1 1 auto;
}

.ticket-section-heading h2 {
    margin: 0 0 3px;
    color: var(--crm-ink);
    font-size: 17px;
    font-weight: 750;
}

.ticket-section-heading p {
    margin: 0;
    color: var(--crm-muted);
    font-size: 12px;
    line-height: 1.45;
}

.ticket-section-icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 11px;
    color: #126389;
    background: #e8f4fa;
}

.ticket-section-icon-green {
    color: #18744e;
    background: #e9f6ef;
}

.ticket-count {
    display: inline-flex;
    min-width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border: 1px solid #dce6ed;
    border-radius: 999px;
    color: #365d75;
    background: #f6fafc;
    font-size: 12px;
    font-weight: 800;
}

.ticket-form {
    display: grid;
    gap: 8px;
}

.ticket-form label,
.ticket-admin-controls label,
.ticket-filters label {
    color: #3b596d;
    font-size: 12px;
    font-weight: 750;
}

.ticket-form input,
.ticket-form select,
.ticket-form textarea,
.ticket-admin-controls select,
.ticket-admin-controls textarea,
.ticket-filters select {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    border: 1px solid #cfdde6;
    border-radius: 9px;
    color: #183950;
    background: #fff;
    font: inherit;
    font-size: 13px;
}

.ticket-form input,
.ticket-form select,
.ticket-admin-controls select,
.ticket-filters select {
    min-height: 42px;
    padding: 8px 11px;
}

.ticket-form textarea,
.ticket-admin-controls textarea {
    min-height: 106px;
    padding: 10px 11px;
    resize: vertical;
}

.ticket-form input:focus,
.ticket-form select:focus,
.ticket-form textarea:focus,
.ticket-admin-controls select:focus,
.ticket-admin-controls textarea:focus,
.ticket-filters select:focus {
    border-color: #67a9d1;
    outline: 3px solid rgb(43 137 190 / 13%);
}

.ticket-form-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: -4px;
    color: #8293a0;
    font-size: 11px;
}

.ticket-submit-button {
    justify-self: start;
    min-width: 160px;
    margin-top: 6px;
}

.ticket-form-message,
.ticket-update-message {
    min-height: 18px;
    margin: 0;
    color: #687e8e;
    font-size: 12px;
}

.ticket-form-message.is-success,
.ticket-update-message.is-success {
    color: #18744e;
}

.ticket-form-message.is-error,
.ticket-update-message.is-error {
    color: #a72c32;
}

.ticket-card-list,
.ticket-priority-groups {
    display: grid;
    gap: 12px;
}

.ticket-item,
.ticket-admin-item,
.ticket-kanban-card {
    position: relative;
    min-width: 0;
    border: 1px solid #dce6ed;
    border-left: 4px solid var(--ticket-normal);
    border-radius: 11px;
    background: #fff;
}

.ticket-item,
.ticket-kanban-card {
    padding: 14px;
}

.ticket-priority-1 {
    --ticket-priority-color: var(--ticket-urgent);
    border-left-color: var(--ticket-urgent) !important;
}

.ticket-priority-2 {
    --ticket-priority-color: var(--ticket-high);
    border-left-color: var(--ticket-high) !important;
}

.ticket-priority-3 {
    --ticket-priority-color: var(--ticket-normal);
    border-left-color: var(--ticket-normal) !important;
}

.ticket-priority-4 {
    --ticket-priority-color: var(--ticket-low);
    border-left-color: var(--ticket-low) !important;
}

.ticket-item-top,
.ticket-admin-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ticket-id {
    color: #597284;
    font-size: 11px;
    font-weight: 800;
}

.ticket-type {
    display: inline-block;
    margin-left: 8px;
    color: #718594;
    font-size: 11px;
}

.ticket-item h3,
.ticket-admin-item h3,
.ticket-kanban-card h3 {
    margin: 7px 0 5px;
    color: #15364e;
    font-size: 14px;
    font-weight: 760;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.ticket-description {
    margin: 0;
    color: #526b7c;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ticket-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 14px;
    margin-top: 12px;
    color: #778a98;
    font-size: 11px;
}

.ticket-priority-pill,
.ticket-status-pill {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    padding: 2px 9px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.ticket-priority-pill.ticket-priority-1 { color: #92232a; background: #fff0f0; border-color: #f0c7c9; }
.ticket-priority-pill.ticket-priority-2 { color: #96501d; background: #fff5e9; border-color: #f2d5b2; }
.ticket-priority-pill.ticket-priority-3 { color: #1c6289; background: #edf7fc; border-color: #cbe3f0; }
.ticket-priority-pill.ticket-priority-4 { color: #5d7180; background: #f0f4f6; border-color: #dce4e8; }
.ticket-status-open { color: #8b5a10; background: #fff6df; border-color: #f0ddaa; }
.ticket-status-progress { color: #155f85; background: #eaf5fb; border-color: #c8e2ef; }
.ticket-status-resolved { color: #176b49; background: #eaf7ef; border-color: #c6e5d1; }

.ticket-resolution-summary {
    margin-top: 12px;
    padding: 10px 11px;
    border: 1px solid #d7e9dc;
    border-radius: 9px;
    background: #f5fbf6;
}

.ticket-resolution-summary strong {
    color: #286448;
    font-size: 11px;
}

.ticket-resolution-summary p {
    margin: 4px 0;
    color: #385c49;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.ticket-resolution-summary small {
    color: #738b7c;
    font-size: 10px;
}

.ticket-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
    padding: 13px;
    border: 1px solid #e1e9ee;
    border-radius: 10px;
    background: #f8fbfc;
}

.ticket-filters label {
    display: grid;
    min-width: 175px;
    flex: 1 1 180px;
    gap: 6px;
}

.ticket-priority-group {
    display: grid;
    gap: 9px;
}

.ticket-priority-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 11px;
    border-radius: 8px;
    color: #fff;
    background: var(--ticket-priority-color, var(--ticket-normal));
}

.ticket-priority-heading h2 {
    margin: 0;
    color: inherit;
    font-size: 12px;
    font-weight: 800;
}

.ticket-priority-heading > span {
    display: grid;
    min-width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 999px;
    background: rgb(255 255 255 / 18%);
    font-size: 11px;
    font-weight: 800;
}

.ticket-admin-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(245px, .45fr);
    gap: 18px;
    padding: 15px;
}

.ticket-admin-title > div {
    min-width: 0;
}

.ticket-admin-title .ticket-status-pill {
    flex: 0 0 auto;
}

.ticket-admin-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 9px;
    padding-left: 16px;
    border-left: 1px solid #e5edf1;
}

.ticket-admin-controls label {
    display: grid;
    gap: 5px;
}

.ticket-admin-controls .ticket-resolution-input-label {
    grid-column: 1 / -1;
}

.ticket-admin-controls .ticket-resolution-input-label.is-required::after {
    content: 'Required to resolve';
    color: #a72c32;
    font-size: 10px;
    font-weight: 600;
}

.ticket-admin-controls textarea {
    min-height: 72px;
}

.ticket-update-button {
    justify-self: start;
    min-height: 38px;
    grid-column: 1 / -1;
}

.ticket-board-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.ticket-summary-card {
    display: grid;
    min-height: 112px;
    align-content: center;
    gap: 4px;
    padding: 16px 19px;
    border: 1px solid #dce6ed;
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--crm-shadow);
}

.ticket-summary-card span {
    color: #60798b;
    font-size: 12px;
    font-weight: 750;
}

.ticket-summary-card strong {
    color: var(--crm-ink);
    font-size: 29px;
    font-weight: 800;
    line-height: 1.1;
}

.ticket-summary-card small {
    color: #8595a0;
    font-size: 11px;
}

.ticket-summary-open { border-top: 3px solid #d0a232; }
.ticket-summary-progress { border-top: 3px solid #2682ac; }
.ticket-summary-resolved { border-top: 3px solid #2c9664; }

.ticket-kanban {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
}

.ticket-kanban-column {
    min-width: 0;
    padding: 11px;
    border: 1px solid #dce6ed;
    border-radius: 13px;
    background: #edf3f6;
}

.ticket-kanban-column > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding: 2px 1px 9px;
    border-bottom: 1px solid #d9e4ea;
}

.ticket-kanban-column > header h2 {
    margin: 0;
    color: #23465e;
    font-size: 14px;
    font-weight: 800;
}

.ticket-kanban-cards {
    display: grid;
    gap: 9px;
}

.ticket-kanban-card {
    padding: 12px;
    box-shadow: 0 2px 7px rgb(15 42 62 / 4%);
}

.ticket-kanban-card .ticket-item-top {
    margin-bottom: 5px;
}

.ticket-kanban-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 9px;
    margin-top: 12px;
    color: #718594;
    font-size: 10px;
}

.ticket-kanban-meta strong {
    color: #3d5a6e;
    font-weight: 650;
    overflow-wrap: anywhere;
}

.ticket-kanban-empty,
.ticket-empty-state,
.ticket-loading,
.ticket-error-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px;
    border: 1px dashed #d5e1e8;
    border-radius: 10px;
    color: #718594;
    background: #fbfdfe;
    font-size: 12px;
    text-align: center;
}

.ticket-empty-state {
    flex-direction: column;
    min-height: 140px;
}

.ticket-empty-state > i {
    color: #8fa4b2;
    font-size: 20px;
}

.ticket-empty-state strong {
    color: #34566d;
    font-size: 13px;
}

.ticket-empty-state span {
    color: #81929d;
    font-size: 11px;
}

.ticket-error-state {
    color: #9d3138;
    border-color: #efcdd0;
    background: #fff9f9;
}

.ticket-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid #d7e5ed;
    border-top-color: #1d7196;
    border-radius: 50%;
    animation: ticket-spin .75s linear infinite;
}

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

@media (max-width: 1050px) {
    .ticket-my-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-admin-item {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-admin-controls {
        padding: 14px 0 0;
        border-top: 1px solid #e5edf1;
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    .ticket-module {
        padding: 18px 10px 28px;
    }

    .ticket-module .crm-page-header {
        align-items: flex-start;
    }

    .ticket-module .crm-page-badge {
        display: none;
    }

    .ticket-view-tabs {
        margin-bottom: 12px;
    }

    .ticket-view-tab {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    .ticket-create-card,
    .ticket-list-card,
    .ticket-admin-card {
        padding: 14px;
    }

    .ticket-section-heading {
        gap: 9px;
    }

    .ticket-board-summary {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .ticket-summary-card {
        min-height: 82px;
        grid-template-columns: 1fr auto;
        align-items: center;
        padding: 12px 14px;
    }

    .ticket-summary-card strong {
        grid-column: 2;
        grid-row: 1 / span 2;
        font-size: 25px;
    }

    .ticket-kanban {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-kanban-column {
        padding: 9px;
    }

    .ticket-admin-controls {
        grid-template-columns: minmax(0, 1fr);
    }

    .ticket-admin-controls .ticket-resolution-input-label,
    .ticket-update-button {
        grid-column: auto;
    }

    .ticket-admin-title {
        align-items: flex-start;
    }

    .ticket-item-meta {
        display: grid;
        gap: 6px;
    }
}
