@font-face {
    font-family: "Cartera DM Sans";
    src: url("fonts/dm-sans.ttf") format("truetype");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

.cseg {
    --cseg-ink: #1b2840;
    --cseg-muted: #69768b;
    --cseg-border: #e5e9f1;
    --cseg-accent: #3e61df;
    --cseg-accent-dark: #2d4cc2;
    --cseg-surface: #fff;
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr);
    width: 100%;
    min-height: 100vh;
    margin: 0;
    background: #f6f8fc;
    color: var(--cseg-ink);
    font: 400 14px/1.5 "Cartera DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.cseg .cseg-access-form { margin-top: 18px; }
.cseg .cseg-welcome-email { margin-top: 24px; padding-top: 22px; border-top: 1px solid #e5e9f1; }
.cseg .cseg-welcome-email h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.cseg .cseg-welcome-email p { font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.cseg .cseg-welcome-send { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.cseg .cseg-welcome-send > span { font-size: 11px; }
.cseg .cseg-welcome-send button:disabled { opacity: .55; cursor: default; }
.cseg .cseg-trash-description { border-top: 1px solid #e9edf5; }
.cseg .cseg-trash-description p { margin: 0 0 16px; }
.cseg .cseg-trash-form { margin-top: 24px; }
.cseg .cseg-legacy-document { padding: 16px 0; border-bottom: 1px solid #e9edf5; }
.cseg .cseg-legacy-document:last-child { border-bottom: 0; }
.cseg .cseg-legacy-document .cseg-actions { margin-top: 12px; }
.cseg #policy-links-fields { scroll-margin-top: 22px; }
.cseg .cseg-drive-setup { margin-top: 24px; }
.cseg .cseg-drive-setup > summary { padding-inline: 0; }
.cseg .cseg-drive-guide { margin: 14px 0 22px; font-size: 12px; color: #52627c; line-height: 1.8; }
.cseg .cseg-drive-guide p { font-size: 12px; }
.cseg .cseg-drive-guide ol { padding-left: 20px; }
.cseg .cseg-drive-uri { padding: 12px 14px; border: 1px solid #dfe6f4; border-radius: 7px; background: #f6f8fc; overflow-wrap: anywhere; color: #344d79; user-select: all; }
.cseg .cseg-doc-search { align-items: end; }
.cseg .cseg-doc-search > .cseg-field { flex: 1 1 180px; max-width: 240px; }
.cseg .cseg-doc-folder { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.cseg .cseg-doc-folder p { margin: 0 0 8px; }
.cseg .cseg-doc-folder a { font-size: 12px; }
.cseg .cseg-initial-docs { margin-top: 4px; border: 1px solid #e2e8f4; border-radius: 8px; }
.cseg .cseg-initial-docs > summary { padding: 17px 20px; color: #344d79; font-weight: 600; cursor: pointer; }
.cseg .cseg-initial-docs > div { padding: 0 20px 20px; }
.cseg .cseg-initial-docs input[type="file"],.cseg .cseg-document-upload input[type="file"] { font-size: 12px; padding: 10px; min-width: 0; max-width: 100%; }
.cseg .cseg-document-options { margin-top: 13px; font-size: 11px; }
.cseg .cseg-document-options > summary { cursor: pointer; color: #3e61df; }
.cseg .cseg-document-options form { display: grid; gap: 12px; margin: 14px 0; justify-items: start; }
@media(max-width:760px) { .cseg .cseg-doc-search > .cseg-field { max-width: none; flex-basis: 100%; } }

.cseg *,
.cseg *::before,
.cseg *::after {
    box-sizing: border-box;
}

.cseg :is(h1, h2, h3, p) {
    font-family: inherit;
    font-style: normal;
    letter-spacing: normal;
}

.cseg p {
    font-size: 14px;
}

.cseg a {
    color: var(--cseg-accent);
    text-decoration: none;
    text-underline-offset: 4px;
}

.cseg a:hover {
    color: var(--cseg-accent-dark);
}

.cseg :is(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid #6484f2;
    outline-offset: 3px;
    box-shadow: none;
}

.cseg .dashicons {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

.cseg .cseg-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    align-self: start;
    height: 100vh;
    padding: 32px 18px 20px;
    overflow-y: auto;
    background: #131e33;
    color: #fff;
}

.cseg .cseg-brand {
    display: block;
    min-width: 0;
    margin: 0 0 36px;
    padding: 12px;
    border: 1px solid #e5ebf6;
    border-radius: 12px;
    background: #fff;
}

.cseg .cseg-logo {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.cseg .cseg-sidebar nav {
    display: grid;
    gap: 7px;
}

.cseg .cseg-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 47px;
    padding: 12px 14px;
    border-radius: 8px;
    color: #afbbd0;
    font-size: 14px;
    font-weight: 500;
}

.cseg .cseg-sidebar nav a:hover {
    background: #1c2b46;
    color: #fff;
}

.cseg .cseg-sidebar nav [aria-current="page"] {
    background: #29446e;
    color: #fff;
}

.cseg .cseg-sidebar nav [aria-current="page"] .dashicons {
    color: #9dbbff;
}

.cseg .cseg-account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 20px 8px 0;
    border-top: 1px solid #2a354b;
}

.cseg .cseg-account .cseg-avatar {
    background: #2a3b59;
    color: #d9e5ff;
}

.cseg .cseg-account-detail {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.cseg .cseg-account strong {
    overflow: hidden;
    color: #eef3ff;
    font-size: 12px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cseg .cseg-account a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #aab8d0;
    font-size: 11px;
}

.cseg .cseg-account a:hover {
    color: #fff;
}

.cseg .cseg-account a .dashicons {
    width: 13px;
    height: 13px;
    font-size: 13px;
}

.cseg-workspace {
    min-width: 0;
}

.cseg .cseg-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 42px 40px;
}

.cseg .cseg-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.cseg .cseg-heading h1 {
    margin: 0;
    padding: 0;
    color: var(--cseg-ink);
    font-size: clamp(27px, 2.6vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1.1px;
    overflow-wrap: anywhere;
}

.cseg .cseg-heading p {
    margin: 7px 0 0;
    color: var(--cseg-muted);
    font-size: 13px;
}

.cseg .cseg-heading .cseg-eyebrow {
    margin: 0 0 7px;
    color: var(--cseg-muted);
    font-size: 12px;
    font-weight: 500;
}

.cseg .button,
.cseg .button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    margin: 0;
    padding: 10px 17px;
    border: 1px solid #dce2ef;
    border-radius: 8px;
    background: #fff;
    color: #40516c;
    font: 600 13px/1.4 "Cartera DM Sans", Inter, sans-serif;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    box-shadow: 0 1px 2px #14254206;
}

.cseg .button:hover {
    border-color: #b9c6e6;
    background: #f5f7fd;
    color: #2d4cc2;
}

.cseg .cseg-primary,
.cseg .cseg-primary:visited {
    border-color: var(--cseg-accent);
    background: var(--cseg-accent);
    color: #fff;
    box-shadow: 0 3px 8px #3e61df20;
}

.cseg .cseg-primary:hover,
.cseg .cseg-primary:active {
    border-color: var(--cseg-accent-dark);
    background: var(--cseg-accent-dark);
    color: #fff;
}

.cseg .button .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.cseg .cseg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cseg .cseg-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.cseg .cseg-total {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid var(--cseg-border);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    box-shadow: 0 2px 4px #1b284003;
}

.cseg .cseg-total:hover {
    border-color: #becbeb;
    box-shadow: 0 5px 18px #1b284009;
}

.cseg .cseg-total-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3px;
}

.cseg .cseg-total-top > .dashicons {
    width: 15px;
    height: 15px;
    color: #a0adbf;
    font-size: 15px;
    transform: rotate(-45deg);
}

.cseg .cseg-metric-icon {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border-radius: 9px;
    background: #eff0fd;
    color: #7163c9;
}

.cseg .cseg-total strong {
    color: var(--cseg-ink);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
}

.cseg .cseg-total-label {
    color: var(--cseg-muted);
    font-size: 12px;
    font-weight: 500;
}

.cseg .cseg-total--clients {
    border-color: #1c3051;
    background: #1c3051;
}

.cseg .cseg-total--clients:hover {
    border-color: #35517e;
    background: #213a60;
}

.cseg .cseg-total--clients strong {
    color: #fff;
}

.cseg .cseg-total--clients .cseg-total-label {
    color: #c0cde1;
}

.cseg .cseg-total--clients .cseg-metric-icon {
    background: #304b76;
    color: #bad0ff;
}

.cseg .cseg-total--active .cseg-metric-icon {
    background: #eaf1ff;
    color: #3264ce;
}

.cseg .cseg-total--commissions .cseg-metric-icon {
    background: #e8f6ee;
    color: #267653;
}

.cseg .cseg-total--commissions strong {
    font-size: clamp(24px, 2.4vw, 34px);
    overflow-wrap: anywhere;
}

.cseg .cseg-total-caption {
    color: var(--cseg-muted);
    font-size: 11px;
    line-height: 1.5;
}

.cseg .cseg-agenda-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.cseg .cseg-panel {
    min-width: 0;
    margin-bottom: 22px;
    overflow: hidden;
    border: 1px solid var(--cseg-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 4px #1b284003;
}

.cseg .cseg-panel-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 20px 22px;
    border-bottom: 1px solid #edf0f5;
}

.cseg .cseg-panel-header h2,
.cseg .cseg-form-header h2 {
    margin: 0;
    color: var(--cseg-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

.cseg .cseg-panel-header > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
}

.cseg .cseg-panel-header > a .dashicons {
    width: 13px;
    height: 13px;
    font-size: 13px;
}

.cseg .cseg-avatar {
    display: grid;
    flex-shrink: 0;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eef2fd;
    color: #5870b6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
}

.cseg .cseg-search {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    padding: 16px 18px;
    border: 1px solid var(--cseg-border);
    border-radius: 12px;
    background: #fff;
}

.cseg .cseg-search label,
.cseg .cseg-field {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
    color: #42516a;
    font-size: 12px;
    font-weight: 600;
}

.cseg .cseg-search-field {
    position: relative;
    flex: 1 1 230px;
    max-width: 440px;
}

.cseg .cseg-search .cseg-company-filter {
    flex: 0 1 240px;
    max-width: 100%;
}

.cseg .cseg-search .cseg-type-filter {
    flex: 0 1 220px;
    max-width: 100%;
}

.cseg .cseg-search-field::before {
    position: absolute;
    bottom: 11px;
    left: 12px;
    color: #8795aa;
    font: 19px/1 dashicons;
    content: "\f179";
    pointer-events: none;
}

.cseg :is(input:not([type="hidden"]), select, textarea) {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #dbe2ee;
    border-radius: 7px;
    background: #fcfdff;
    color: var(--cseg-ink);
    font: 400 13px/1.5 "Cartera DM Sans", Inter, sans-serif;
    box-shadow: none;
}

.cseg :is(input, textarea)::placeholder {
    color: #8c98ab;
    opacity: 1;
}

.cseg :is(input:not([type="hidden"]), select, textarea):focus {
    border-color: #6f8ce9;
    background: #fff;
    outline: 0;
    box-shadow: 0 0 0 3px #4268e714;
}

.cseg .cseg-search :is(input, select) {
    min-height: 42px;
}

.cseg .cseg-search-field input {
    padding-left: 38px;
}

.cseg .cseg-search > a {
    align-self: center;
    margin-top: 22px;
    font-size: 12px;
}

.cseg .cseg-table-scroll {
    overflow-x: auto;
}

.cseg .cseg-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: #54637a;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

.cseg .cseg-table th,
.cseg .cseg-table td {
    padding: 18px 22px;
    border: 0;
    border-bottom: 1px solid #edf0f6;
    background: transparent;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

.cseg .cseg-table thead th {
    padding-block: 14px;
    background: #fafbfe;
    color: #64738b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .7px;
    text-transform: uppercase;
    white-space: nowrap;
}

.cseg .cseg-table tbody tr:hover {
    background: #fafbff;
}

.cseg .cseg-table tbody tr:last-child :is(th, td) {
    border-bottom: 0;
}

.cseg .cseg-table tbody th {
    color: var(--cseg-ink);
    font-weight: 600;
    text-align: left;
}

.cseg .cseg-table a {
    color: #33496b;
}

.cseg .cseg-table a:hover {
    color: var(--cseg-accent);
    text-decoration: underline;
}

.cseg .cseg-client-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 130px;
}

.cseg .cseg-secondary {
    display: block;
    margin-top: 5px;
    color: #69768b;
    font-size: 12px;
    font-weight: 400;
}

.cseg .cseg-whatsapp-link,
.cseg .cseg-table a.cseg-whatsapp-link,
.cseg .cseg-context a.cseg-whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 0;
    color: #247653;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
}

.cseg .cseg-whatsapp-link:hover,
.cseg .cseg-table a.cseg-whatsapp-link:hover {
    color: #165b3d;
    text-decoration: underline;
}

.cseg .cseg-whatsapp-link .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
}

.cseg .cseg-whatsapp-link > span:last-child {
    overflow-wrap: anywhere;
}

.cseg .cseg-contact-detail {
    display: block;
    margin-top: 5px;
}

.cseg .cseg-context-contact {
    display: inline-block;
    margin-left: 14px;
}

.cseg .cseg-whatsapp-button,
.cseg .cseg-whatsapp-button:visited {
    border-color: #c8e3d4;
    background: #edf8f2;
    color: #247653;
}

.cseg .cseg-whatsapp-button:hover {
    border-color: #91c4a6;
    background: #e2f3e9;
    color: #165b3d;
}

.cseg .cseg-field-hint {
    color: var(--cseg-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
}

.cseg .cseg-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
}

.cseg .cseg-status::before {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.cseg .cseg-status--positive {
    background: #eaf6f0;
    color: #307c5c;
}

.cseg .cseg-status--neutral {
    background: #edf2fa;
    color: #607797;
}

.cseg .cseg-status--warning {
    background: #fff5e3;
    color: #a16c1e;
}

.cseg .cseg-empty {
    margin: 0;
    padding: 42px 24px;
    color: var(--cseg-muted);
    font-size: 13px;
    text-align: center;
}

.cseg .cseg-pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--cseg-border);
}

.cseg .cseg-pager > span {
    margin-right: auto;
    color: var(--cseg-muted);
    font-size: 12px;
}

.cseg .cseg-pager .button {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 11px;
}

.cseg .cseg-back {
    margin: 0 0 14px;
    font-size: 12px;
}

.cseg .cseg-back a {
    color: var(--cseg-muted);
}

.cseg .cseg-client-identity {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.cseg .cseg-client-identity > div {
    min-width: 0;
}

.cseg .cseg-client-identity > .cseg-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 15px;
}

.cseg .cseg-profile-header > .button {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 12px;
}

.cseg .cseg-profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 36px;
    margin: 0;
    padding: 28px;
}

.cseg .cseg-profile-details > div {
    min-width: 0;
}

.cseg .cseg-profile-details dt {
    margin: 0 0 7px;
    color: var(--cseg-muted);
    font-size: 12px;
    font-weight: 500;
}

.cseg .cseg-profile-details dd {
    margin: 0;
    color: var(--cseg-ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.cseg .cseg-profile-details .cseg-whatsapp-link {
    font-size: 14px;
}

.cseg .cseg-profile-notes {
    grid-column: 1 / -1;
    padding-top: 23px;
    border-top: 1px solid #edf0f5;
}

.cseg .cseg-profile-notes dd {
    font-weight: 400;
    white-space: pre-wrap;
}

.cseg .cseg-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cseg .cseg-panel-pad {
    padding: 28px;
}

.cseg .cseg-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    overflow: visible;
}

.cseg .cseg-form-header,
.cseg .cseg-form-actions,
.cseg .cseg-wide,
.cseg .cseg-context {
    grid-column: 1 / -1;
}

.cseg .cseg-form-header {
    margin-bottom: 2px;
    padding-bottom: 20px;
    border-bottom: 1px solid #edf0f5;
}

.cseg .cseg-form-header p {
    margin: 6px 0 0;
    color: var(--cseg-muted);
    font-size: 11px;
}

.cseg .cseg-context {
    margin: 0;
    padding: 11px 14px;
    border-radius: 7px;
    background: #f4f7fd;
    color: #62728a;
    font-size: 12px;
}

.cseg .cseg-context a {
    margin-left: 6px;
    font-weight: 600;
}

.cseg textarea {
    min-height: 110px;
    resize: vertical;
}

.cseg .cseg-form-actions {
    margin-top: 2px;
    padding-top: 20px;
    border-top: 1px solid #edf0f5;
}

.cseg .cseg-message {
    margin: 0 0 22px;
    padding: 13px 18px;
    border: 1px solid #c3e1d0;
    border-radius: 9px;
    background: #edf8f2;
    color: #29674a;
    font-size: 13px;
}

.cseg .cseg-message--error {
    border-color: #efcfc7;
    background: #fff3ef;
    color: #934d3d;
}

.cseg .cseg-message ul {
    margin: 8px 0 8px 18px;
    list-style: disc;
}

.cseg .cseg-muted {
    color: var(--cseg-muted);
}

@media (max-width: 1150px) {
    .cseg {
        grid-template-columns: 200px minmax(0, 1fr);
    }

    .cseg .cseg-content {
        padding: 32px 28px;
    }

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

    .cseg .cseg-brand {
        padding: 9px;
    }
}

@media (max-width: 760px) {
    .cseg .cseg-company-heading > .cseg-client-identity {
        flex-basis: 100%;
    }

    .cseg .cseg-profile-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 20px;
    }

    .cseg .cseg-context-contact {
        display: block;
        margin: 8px 0 0;
    }

    .cseg {
        display: block;
    }

    .cseg .cseg-sidebar {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 18px 12px;
        height: auto;
        padding: 18px 16px 12px;
        overflow: visible;
    }

    .cseg .cseg-brand {
        max-width: 220px;
        margin: 0;
        padding: 10px;
        border-radius: 10px;
    }

    .cseg .cseg-sidebar nav {
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }

    .cseg .cseg-sidebar nav a {
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        min-height: 58px;
        padding: 9px 2px;
        font-size: 11px;
    }

    .cseg .cseg-account {
        grid-column: 2;
        grid-row: 1;
        gap: 8px;
        margin: 0;
        padding: 0;
        border: 0;
    }

    .cseg .cseg-account .cseg-avatar {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-size: 9px;
    }

    .cseg .cseg-account-detail {
        max-width: 105px;
    }

    .cseg .cseg-account strong {
        font-size: 10px;
    }

    .cseg .cseg-account a {
        font-size: 10px;
    }

    .cseg .cseg-content {
        padding: 26px 16px;
    }

    .cseg .cseg-heading {
        gap: 15px;
        margin-bottom: 22px;
    }

    .cseg .cseg-heading > div {
        flex: 1;
        min-width: 180px;
    }

    .cseg .cseg-heading h1 {
        font-size: 27px;
        letter-spacing: -.8px;
    }

    .cseg .cseg-heading .cseg-eyebrow {
        font-size: 10px;
    }

    .cseg .cseg-totals {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-bottom: 22px;
    }

    .cseg .cseg-total {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        padding: 16px;
    }

    .cseg .cseg-total-top {
        margin: 0;
    }

    .cseg .cseg-total-top > .dashicons {
        display: none;
    }

    .cseg .cseg-total strong {
        grid-column: 3;
        grid-row: 1;
        font-size: 28px;
    }

    .cseg .cseg-total-label {
        grid-column: 2;
        grid-row: 1;
        min-height: 0;
        font-size: 12px;
    }

    .cseg .cseg-total--commissions {
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 6px;
    }

    .cseg .cseg-total--commissions .cseg-total-top {
        grid-column: 1;
        grid-row: 1 / 4;
    }

    .cseg .cseg-total--commissions strong {
        grid-column: 2;
        grid-row: 2;
        font-size: 26px;
    }

    .cseg .cseg-total--commissions .cseg-total-label {
        grid-row: 1;
    }

    .cseg .cseg-total-caption {
        grid-column: 2;
        grid-row: 3;
    }

    .cseg .cseg-panel-header {
        padding: 18px;
    }

    .cseg .cseg-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .cseg .cseg-panel-pad {
        padding: 20px;
    }

    .cseg .cseg-search {
        gap: 12px 9px;
        padding: 16px;
    }

    .cseg .cseg-search-field {
        flex-basis: 100%;
        max-width: none;
    }

    .cseg .cseg-search > label:not(.cseg-search-field) {
        flex: 1;
    }

    .cseg .cseg-search > a {
        margin-top: 0;
    }
}

.cseg .cseg-secret {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.cseg .cseg-secret-value {
    max-width: 100%;
    font-family: ui-monospace, Consolas, monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.cseg .cseg-secret-message {
    flex-basis: 100%;
    color: #934d3d;
    font-size: 12px;
}

.cseg .cseg-secret-message:empty {
    display: none;
}

.cseg .cseg-secret-toggle {
    min-height: 34px;
    padding: 7px 12px;
    font-size: 11px;
}

.cseg .cseg-password-input {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.cseg .cseg-password-input input {
    flex: 1;
    min-width: 0;
    width: 0;
}

.cseg .cseg-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 400;
}

.cseg .cseg-checkbox input[type="checkbox"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    padding: 0;
    appearance: auto;
}

.cseg .cseg-panel-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.cseg .cseg-panel-link .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

@media (max-width: 480px) {
    .cseg .cseg-search > label:not(.cseg-search-field) {
        flex: 1 1 100%;
    }
}

.cseg [hidden] {
    display: none !important;
}

.cseg .cseg-claim-metrics a { color: inherit; text-decoration: none; }
.cseg .cseg-claim-search > label:not(.cseg-search-field) { flex: 0 1 200px; max-width: 100%; }
.cseg .cseg-claim-search > .cseg-search-field { max-width: none; }
.cseg .cseg-claim-priority { display: inline-flex; margin-top: 7px; font-size: 11px; color: var(--cseg-muted); }
.cseg .cseg-claim-priority--high { color: #a16c1e; }
.cseg .cseg-claim-priority--urgent { color: #a03932; font-weight: 700; }
.cseg .cseg-claim-editor > .cseg-form { margin-bottom: 22px; }
.cseg .cseg-claim-details > summary { padding: 19px 24px; color: var(--cseg-ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.cseg .cseg-claim-details[open] > summary { border-bottom: 1px solid var(--cseg-border); }
.cseg .cseg-claim-closure { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.cseg .cseg-claim-save { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.cseg .cseg-claim-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.cseg .cseg-claim-jump a { padding: 8px 12px; border: 1px solid #dce4f5; border-radius: 7px; background: #fff; font-size: 11px; }
.cseg .cseg-claim-profile section[id] { scroll-margin-top: 18px; }
.cseg .cseg-claim-profile .cseg-heading h1 { font-size: clamp(26px,2.5vw,34px); }
.cseg .cseg-claim-profile .cseg-heading > div:first-child { min-width: 0; }
.cseg .cseg-claim-profile .cseg-heading p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cseg .cseg-claim-profile .cseg-heading .cseg-claim-priority { margin: 0; }
.cseg .cseg-claim-date-note { margin: 0 24px 24px; padding: 12px 16px; border: 1px solid #f0ddbb; border-radius: 7px; background: #fff8ec; color: #8d631e; font-size: 12px; }
.cseg .cseg-claim-checklist { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px; }
.cseg .cseg-claim-checklist h3 { grid-column: 1/-1; margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.cseg .cseg-claim-checklist .cseg-checkbox { margin: 0; }
.cseg .cseg-claim-small-title { margin: 0 0 14px; font-size: 13px; font-weight: 600; }
.cseg .cseg-claim-checklist-view { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 24px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: #52627b; }
.cseg .cseg-claim-checklist-view span { color: #387c60; }
.cseg .cseg-claim-profile input[type="file"] { white-space: normal; padding: 9px; font-size: 12px; }
.cseg .cseg-claim-timeline { display: grid; gap: 0; margin: 0; padding: 8px 24px 16px; list-style: none; }
.cseg .cseg-claim-timeline li { padding: 20px 0; border-bottom: 1px solid #edf0f5; }
.cseg .cseg-claim-timeline li:last-child { border-bottom: 0; }
.cseg .cseg-claim-event-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--cseg-muted); }
.cseg .cseg-claim-event-meta strong { color: #42516a; font-weight: 500; }
.cseg .cseg-claim-event-body { max-height: 260px; overflow: auto; margin: 12px 0 0; color: #34435c; font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.cseg .cseg-claim-footnote { color: var(--cseg-muted); font-size: 11px; }
.cseg .cseg-claim-profile .cseg-actions .button { min-height: 36px; padding: 8px 12px; font-size: 12px; }
@media (max-width:760px) {
    .cseg .cseg-claim-closure,.cseg .cseg-claim-checklist,.cseg .cseg-claim-checklist-view { grid-template-columns: minmax(0,1fr); }
    .cseg .cseg-claim-timeline { padding-inline: 18px; }
    .cseg .cseg-claim-date-note { margin-inline: 18px; }
}
@media (max-width:480px) {
    .cseg .cseg-claim-search > label:not(.cseg-search-field) { flex: 1 1 100%; }
    .cseg .cseg-claim-save .button { width: 100%; }
}
@media print {
    body.cseg-printing-claim { background: #fff; }
    body.cseg-printing-claim .cseg-sidebar,body.cseg-printing-claim .cseg-claim-controls,body.cseg-printing-claim .cseg-claim-profile form,body.cseg-printing-claim .cseg-message,body.cseg-printing-claim .cseg-skip-link { display: none !important; }
    body.cseg-printing-claim .cseg { display: block; background: #fff; }
    body.cseg-printing-claim .cseg-content { padding: 0; max-width: none; }
    body.cseg-printing-claim .cseg-panel { box-shadow: none; border-color: #ccc; overflow: visible; }
    body.cseg-printing-claim .cseg-claim-event-body { max-height: none; overflow: visible; }
    body.cseg-printing-claim .cseg-claim-profile a { color: #111; }
    body.cseg-printing-claim .cseg-claim-profile a::after { content: none !important; }
}

.cseg .cseg-risk-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e4eaf7;
    border-radius: 9px;
    background: #f8faff;
}

.cseg .cseg-risk-group h3 {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--cseg-ink);
    font-size: 13px;
    font-weight: 600;
}

.cseg .cseg-risk-group--property .cseg-field {
    grid-column: 1 / -1;
}

.cseg .cseg-renewal-reminders {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 6px;
}

.cseg .cseg-renewal-reminders a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px;
    border: 1px solid #dce4f6;
    border-radius: 10px;
    background: #fff;
    color: #425b8b;
    font-size: 12px;
}

.cseg .cseg-renewal-reminders strong {
    margin-right: 4px;
    color: var(--cseg-accent-dark);
    font-size: 20px;
}

.cseg .cseg-search .cseg-followup-filter {
    flex: 0 1 270px;
    max-width: 100%;
}

.cseg .cseg-renewal-table .cseg-actions .button {
    min-height: 35px;
    padding: 8px 10px;
    font-size: 11px;
}

.cseg .cseg-contact-due {
    color: #a66c1a;
}

.cseg .cseg-renewal-message {
    margin: 0;
    padding: 24px;
    border: 0;
    color: var(--cseg-ink);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.cseg .cseg-followup-whatsapp {
    padding-top: 0;
}

@media (max-width: 760px) {
    .cseg .cseg-risk-group {
        grid-template-columns: minmax(0, 1fr);
        padding: 16px;
    }
    .cseg .cseg-renewal-reminders {
        grid-template-columns: minmax(0, 1fr);
    }
    .cseg .cseg-sidebar nav a > span:not(.dashicons) {
        max-width: 100%;
        overflow-wrap: anywhere;
        text-align: center;
        line-height: 1.25;
    }
}

@media (max-width: 720px) {
    .cseg .cseg-renewal-table .cseg-renewal-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .cseg .cseg-sidebar nav a { font-size: 10px; }
}

.cseg .cseg-type-form {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
}

.cseg .cseg-type-actions {
    border-top: 1px solid var(--cseg-border);
}

.cseg .cseg-danger {
    border-color: #ebc8c5;
    background: #fff2f1;
    color: #a03932;
}

.cseg .cseg-danger:hover {
    border-color: #d7a39e;
    background: #ffe7e4;
    color: #862d27;
}

.cseg .cseg-commission-remove-form { margin-top: 9px; }
.cseg .cseg-commission-remove-form .button { font-size: 11px; padding: 6px 10px; min-height: 32px; }

.cseg .cseg-commission-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}

.cseg .cseg-commission-metric {
    min-width: 0;
    padding: 22px;
    border: 1px solid var(--cseg-border);
    border-radius: 12px;
    background: #fff;
}

.cseg .cseg-commission-metric h2,
.cseg .cseg-commission-metric h3 {
    margin: 0 0 12px;
    color: var(--cseg-muted);
    font-size: 12px;
    font-weight: 500;
}

.cseg .cseg-income-overview {
    min-width: 0;
    scroll-margin-top: 20px;
}

.cseg .cseg-income-heading {
    margin-bottom: 18px;
}

.cseg .cseg-income-heading h2 {
    margin: 0;
    color: var(--cseg-ink);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.5px;
}

.cseg .cseg-income-period-note {
    align-self: center;
    color: var(--cseg-muted);
    font-size: 12px;
}

.cseg .cseg-income-metrics {
    margin-bottom: 10px;
}

.cseg .cseg-income-metrics h3 {
    line-height: 1.6;
}

.cseg .cseg-income-metrics .cseg-income-change--up strong {
    color: #267653;
}

.cseg .cseg-income-metrics .cseg-income-change--down strong {
    color: #a34b40;
}

.cseg .cseg-income-metrics .cseg-income-change--unknown strong {
    color: var(--cseg-muted);
}

.cseg .cseg-income-note {
    margin: 0;
    padding: 12px 22px 20px;
    color: var(--cseg-muted);
    font-size: 11px;
    line-height: 1.7;
}

.cseg .cseg-income-overview > .cseg-income-note {
    padding: 0 2px 20px;
}

.cseg .cseg-income-annual h3,
.cseg .cseg-income-ranking h3 {
    margin: 0;
    color: var(--cseg-ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

.cseg .cseg-income-year-total {
    display: grid;
    gap: 3px;
    text-align: right;
}

.cseg .cseg-income-year-total span {
    color: var(--cseg-muted);
    font-size: 11px;
}

.cseg .cseg-income-year-total strong {
    color: var(--cseg-accent-dark);
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.cseg .cseg-income-chart {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    padding: 24px 24px 8px;
}

.cseg .cseg-income-month {
    display: grid;
    gap: 9px;
    min-width: 0;
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--cseg-muted);
}

.cseg .cseg-income-month-track {
    display: flex;
    align-items: flex-end;
    height: 180px;
    border-bottom: 1px solid #dce3ef;
    border-radius: 5px 5px 0 0;
    background: #f5f7fb;
}

.cseg .cseg-income-month-track > span {
    display: block;
    width: 100%;
    border-radius: 5px 5px 0 0;
    background: #91a8f0;
}

.cseg .cseg-income-month.has-amount .cseg-income-month-track {
    border-bottom-color: #91a8f0;
}

.cseg .cseg-income-month-label {
    font-size: 11px;
    text-align: center;
}

.cseg .cseg-income-month.is-selected {
    border-color: #b8c8fb;
    background: #eef2ff;
    color: #304fbe;
    font-weight: 700;
}

.cseg .cseg-income-month.is-selected .cseg-income-month-track > span {
    background: #4668e2;
}

.cseg .cseg-income-month:hover {
    border-color: #b8c8fb;
    color: #304fbe;
}

.cseg .cseg-income-month-details {
    border-top: 1px solid var(--cseg-border);
}

.cseg .cseg-income-month-details > summary {
    padding: 15px 22px;
    color: var(--cseg-accent-dark);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.cseg .cseg-income-breakdowns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cseg .cseg-income-ranking .cseg-panel-header p {
    margin: 4px 0 0;
    color: var(--cseg-muted);
    font-size: 11px;
}

.cseg .cseg-income-ranking-rows {
    display: grid;
    gap: 24px;
    padding: 22px;
}

.cseg .cseg-income-ranking .cseg-company-bar a {
    font-weight: 500;
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .cseg .cseg-income-chart {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px 6px;
        padding-inline: 14px;
    }

    .cseg .cseg-income-month-track {
        height: 100px;
    }

    .cseg .cseg-income-breakdowns {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .cseg .cseg-income-year-total {
        text-align: left;
    }
}

.cseg .cseg-commission-metric strong {
    display: block;
    color: var(--cseg-ink);
    font-size: clamp(23px, 2.5vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.cseg .cseg-commission-total {
    border-color: #d4ddfb;
    background: #eef2ff;
}

.cseg .cseg-commission-total strong {
    color: #304fbe;
}

.cseg .cseg-commission-metric p {
    margin: 8px 0 0;
    color: var(--cseg-muted);
    font-size: 11px;
}

.cseg .cseg-commission-breakdown {
    margin-bottom: 22px;
}

.cseg .cseg-commission-breakdown .cseg-panel-header > span,
.cseg [aria-labelledby="cseg-commission-policies"] .cseg-panel-header > span {
    font-size: 12px;
}

.cseg .cseg-company-bars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 36px;
    padding: 24px;
}

.cseg .cseg-company-bar {
    min-width: 0;
}

.cseg .cseg-company-bar > div:first-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    margin-bottom: 9px;
    font-size: 13px;
}

.cseg .cseg-company-bar strong {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.cseg .cseg-company-bar > div:first-child > span {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cseg .cseg-bar-track {
    height: 7px;
    overflow: hidden;
    border-radius: 4px;
    background: #edf1f9;
}

.cseg .cseg-bar-track > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #5576e7;
}

.cseg .cseg-company-bar p {
    margin: 7px 0 0;
    color: var(--cseg-muted);
    font-size: 11px;
}

.cseg .cseg-commission-note {
    margin: 0;
    padding: 14px 24px;
    color: var(--cseg-muted);
    font-size: 11px;
    line-height: 1.7;
}

.cseg .cseg-commission-row-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 240px;
}

.cseg .cseg-commission-input {
    position: relative;
    display: block;
    flex: 1;
    min-width: 0;
}

.cseg .cseg-commission-input > span {
    position: absolute;
    top: 11px;
    left: 11px;
    color: var(--cseg-muted);
    font-size: 13px;
    pointer-events: none;
}

.cseg .cseg-commission-input input {
    min-height: 40px;
    padding: 9px 10px 9px 26px;
    font-variant-numeric: tabular-nums;
}

.cseg .cseg-commission-row-form .button {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
}

.cseg .cseg-commission-archive {
    margin-top: 22px;
}

.cseg .cseg-commission-archive > summary {
    padding: 20px 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 760px) {
    .cseg .cseg-commission-metrics {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .cseg .cseg-commission-metric {
        padding: 18px;
    }

    .cseg .cseg-commission-metric h2 {
        margin-bottom: 7px;
    }

    .cseg .cseg-company-bars {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .cseg .cseg-commission-note {
        padding-inline: 18px;
    }
}

@media (max-width: 720px) {
    .cseg .cseg-commission-table .cseg-commission-amount-cell {
        grid-column: 1 / -1;
    }

    .cseg .cseg-commission-row-form {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 720px) {
    .cseg .cseg-table-scroll {
        overflow: visible;
    }

    .cseg .cseg-table {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .cseg .cseg-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .cseg .cseg-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .cseg .cseg-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding: 16px;
        border: 1px solid #e8edf5;
        border-radius: 9px;
        background: #fff;
    }

    .cseg .cseg-table tbody th {
        grid-column: 1 / -1;
        padding: 0 0 14px;
        border-bottom: 1px solid #edf0f5;
    }

    .cseg .cseg-table tbody td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        font-size: 12px;
    }

    .cseg .cseg-table tbody td::before {
        display: block;
        margin-bottom: 5px;
        color: #64728a;
        font-size: 10px;
        font-weight: 500;
        letter-spacing: .4px;
        text-transform: uppercase;
        content: attr(data-label);
    }

    .cseg .cseg-table .cseg-client-link {
        min-width: 0;
    }

    .cseg .cseg-table tbody tr:last-child th {
        border-bottom: 1px solid #edf0f5;
    }

    .cseg .cseg-form-actions .button {
        width: 100%;
    }
}
