.refund-main {
    background:
        radial-gradient(circle at top right, rgba(255, 214, 10, 0.22), transparent 32%),
        linear-gradient(180deg, #f6f8fc 0%, #eef2f8 100%);
    overflow-x: hidden;
}

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

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

.refund-page img,
.refund-page svg,
.refund-page video,
.refund-page canvas,
.refund-page iframe {
    max-width: 100%;
    height: auto;
}

.refund-shell {
    width: min(1320px, calc(100% - 64px));
    margin: 0 auto;
}

.refund-hero {
    padding: 72px 0 48px;
    background: linear-gradient(135deg, #12366f 0%, #0e2750 48%, #081a39 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.refund-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -120px auto;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 214, 10, 0.24) 0%, rgba(255, 214, 10, 0) 72%);
}

.refund-kicker {
    margin: 0 0 14px;
    color: #ffd60a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.refund-hero h1,
.refund-section-heading h2 {
    margin: 0;
    font-weight: 700;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.refund-hero h1 {
    max-width: 900px;
    font-size: clamp(34px, 4vw, 58px);
}

.refund-lead {
    max-width: 760px;
    margin: 22px 0 0;
    font-size: 19px;
    line-height: 1.7;
}

.refund-hero-actions,
.refund-form-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.refund-hero-actions .button,
.refund-form-actions .button,
.refund-inline-otp-row .button,
.portal-admin-preview-banner .button,
.portal-workspace-actions .button {
    max-width: 100%;
}

.refund-inline-buttons {
    margin-top: 0;
}

.refund-section {
    padding: 56px 0;
}

.refund-section.-alt {
    background: rgba(255, 255, 255, 0.72);
    border-top: 1px solid rgba(18, 54, 111, 0.08);
    border-bottom: 1px solid rgba(18, 54, 111, 0.08);
}

.refund-section-heading {
    max-width: 760px;
    margin-bottom: 26px;
}

.refund-section-heading h2 {
    color: #0f2954;
    font-size: clamp(28px, 3vw, 42px);
    max-width: 14ch;
}

.refund-grid {
    display: grid;
    gap: 22px;
    min-width: 0;
}

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

.refund-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.refund-card,
.refund-panel,
.refund-step,
.refund-form {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(18, 54, 111, 0.1);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(7, 24, 53, 0.08);
    min-width: 0;
}

.refund-card,
.refund-panel,
.refund-step {
    padding: 24px;
}

.refund-card h3,
.refund-panel h3,
.refund-step h3,
.refund-otp-copy h3 {
    margin: 0 0 10px;
    color: #102d5c;
    font-size: 22px;
}

.refund-card p,
.refund-panel p,
.refund-step p,
.refund-list,
.refund-otp-copy p {
    margin: 0;
    color: #31445f;
    font-size: 16px;
    line-height: 1.65;
}

.refund-list {
    padding-left: 18px;
}

.refund-list li + li {
    margin-top: 10px;
}

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

.refund-step {
    display: grid;
    gap: 14px 18px;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "badge title"
        "body body";
    align-items: start;
    min-height: 220px;
    padding: 28px;
}

.refund-step span {
    grid-area: badge;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 999px;
    background: #12366f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 -2px 0 rgba(255, 255, 255, 0.08);
}

.refund-step h3 {
    grid-area: title;
    margin: 2px 0 0;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.15;
}

.refund-step p {
    grid-area: body;
    max-width: 30ch;
    font-size: 18px;
    line-height: 1.7;
    color: #425875;
}

.refund-form-section {
    padding-bottom: 80px;
}

.refund-form {
    padding: 28px;
}

.refund-form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
}

.refund-form-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.refund-form-grid label,
.refund-inline-action {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.refund-field-hint {
    color: #5b6d88;
    font-size: 13px;
    line-height: 1.5;
}

.refund-form span {
    color: #0f2954;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.refund-form input,
.refund-form select {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 1px solid rgba(18, 54, 111, 0.16);
    border-radius: 14px;
    background: #f9fbff;
    color: #102d5c;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    min-width: 0;
}

.refund-form input:focus,
.refund-form select:focus {
    outline: none;
    border-color: #12366f;
    box-shadow: 0 0 0 4px rgba(18, 54, 111, 0.1);
    background: #fff;
}

.refund-email-stack {
    display: grid;
    gap: 14px;
}

.refund-inline-otp {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(18, 54, 111, 0.06), rgba(255, 214, 10, 0.14));
    border: 1px solid rgba(18, 54, 111, 0.08);
}

.refund-inline-otp-copy {
    display: grid;
    gap: 4px;
}

.refund-inline-otp-title {
    color: #102d5c;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.refund-inline-otp-copy p {
    margin: 0;
    color: #52657f;
    font-size: 14px;
    line-height: 1.5;
}

.refund-inline-otp-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.refund-inline-otp-row input {
    margin: 0;
    min-width: 0;
}

.refund-inline-otp[hidden] {
    display: none;
}

.refund-inline-action {
    justify-content: flex-end;
}

.refund-inline-action span {
    font-weight: 400;
    color: #425875;
    line-height: 1.6;
}

.refund-status {
    min-height: 26px;
    margin-top: 22px;
    color: #12366f;
    font-size: 15px;
    font-weight: 600;
}

.refund-status.-error {
    color: #af2430;
}

.refund-status.-success {
    color: #0b7d5d;
}

.refund-tracker {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(320px, 480px) minmax(0, 1fr);
    align-items: start;
}

.refund-tracker-result[hidden],
.refund-reference-card[hidden] {
    display: none;
}

.refund-tracker-card,
.refund-reference-card {
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(18, 54, 111, 0.1);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(7, 24, 53, 0.08);
}

.refund-tracker-card h3,
.refund-reference-card h3 {
    margin: 0 0 10px;
    color: #102d5c;
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.1;
}

.refund-history {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.refund-history-item {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 16px;
    align-items: start;
    position: relative;
}

.refund-history-marker {
    position: relative;
    display: flex;
    justify-content: center;
    padding-top: 4px;
}

.refund-history-marker::after {
    content: "";
    position: absolute;
    top: 24px;
    bottom: -20px;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(18, 54, 111, 0.18), rgba(18, 54, 111, 0.04));
}

.refund-history-item:last-child .refund-history-marker::after {
    display: none;
}

.refund-history-marker span {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #12366f;
    box-shadow: 0 0 0 6px rgba(18, 54, 111, 0.1);
}

.refund-history-content {
    padding: 0 0 18px;
}

.refund-history-item:last-child .refund-history-content {
    padding-bottom: 0;
}

.refund-history-status-row {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.refund-history-status {
    color: #102d5c;
    font-size: 18px;
    font-weight: 700;
}

.refund-history-badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(18, 54, 111, 0.08);
    color: #12366f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.refund-history-time {
    margin-top: 4px;
    color: #5b6d88;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.refund-history-content p,
.refund-history-empty {
    margin: 10px 0 0;
    color: #31445f;
    font-size: 15px;
    line-height: 1.65;
}

.refund-history-item.is-received .refund-history-marker span,
.refund-history-item.is-received .refund-history-badge,
.crm-status-pill.is-received {
    background: rgba(18, 54, 111, 0.12);
    color: #12366f;
}

.refund-history-item.is-under-review .refund-history-marker span,
.crm-status-pill.is-under-review {
    background: #c47a00;
    box-shadow: 0 0 0 6px rgba(196, 122, 0, 0.12);
}

.refund-history-item.is-under-review .refund-history-badge,
.crm-status-pill.is-under-review {
    background: rgba(196, 122, 0, 0.12);
    color: #9a5d00;
}

.refund-history-item.is-documents-requested .refund-history-marker span,
.crm-status-pill.is-documents-requested {
    background: #8a3ffc;
    box-shadow: 0 0 0 6px rgba(138, 63, 252, 0.12);
}

.refund-history-item.is-documents-requested .refund-history-badge,
.crm-status-pill.is-documents-requested {
    background: rgba(138, 63, 252, 0.12);
    color: #6e28cf;
}

.refund-history-item.is-resolved .refund-history-marker span,
.crm-status-pill.is-resolved {
    background: #0b7d5d;
    box-shadow: 0 0 0 6px rgba(11, 125, 93, 0.12);
}

.refund-history-item.is-resolved .refund-history-badge,
.crm-status-pill.is-resolved {
    background: rgba(11, 125, 93, 0.12);
    color: #0b7d5d;
}

.refund-reference-card p {
    margin: 0;
    color: #31445f;
    font-size: 16px;
    line-height: 1.65;
}

.refund-primary-button {
    min-width: 320px;
    min-height: 62px;
    padding: 18px 32px;
    border-radius: 16px;
    background: #12366f;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(18, 54, 111, 0.22);
    max-width: 100%;
}

.refund-primary-button:hover,
.refund-primary-button:focus {
    background: #0d2a57;
    color: #fff;
}

.refund-primary-button:disabled {
    opacity: 0.72;
    cursor: wait;
}

.refund-thank-you-card {
    max-width: 760px;
    margin: 0 auto;
}

.refund-tracker-meta {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.refund-tracker-meta div {
    display: grid;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid rgba(18, 54, 111, 0.1);
}

.refund-tracker-meta dt {
    color: #5b6d88;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.refund-tracker-meta dd {
    margin: 0;
    color: #102d5c;
    font-size: 18px;
    font-weight: 700;
}

.refund-admin-toolbar {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.refund-admin-table select,
.refund-admin-currency-row select {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(18, 54, 111, 0.16);
    border-radius: 12px;
    background: #f9fbff;
    color: #102d5c;
}

.refund-admin-layout {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(340px, 420px) minmax(0, 1fr);
    align-items: start;
}

.refund-admin-list-card,
.refund-admin-detail-card,
.refund-admin-activity-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(18, 54, 111, 0.1);
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(7, 24, 53, 0.08);
}

.refund-admin-list-card,
.refund-admin-detail-card {
    padding: 24px;
}

.refund-admin-list-head h3,
.refund-admin-detail-head h3,
.refund-admin-panel h4,
.refund-admin-activity-card h4 {
    margin: 0;
    color: #102d5c;
    font-size: 28px;
    line-height: 1.1;
}

.refund-admin-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.refund-admin-row {
    width: 100%;
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid rgba(18, 54, 111, 0.1);
    border-radius: 18px;
    background: #fbfcff;
    text-align: left;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.refund-admin-row:hover,
.refund-admin-row.is-active {
    border-color: rgba(18, 54, 111, 0.28);
    box-shadow: 0 12px 24px rgba(7, 24, 53, 0.08);
    transform: translateY(-1px);
}

.refund-admin-row-top,
.refund-admin-detail-head {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-start;
}

.refund-admin-row-top strong {
    display: block;
    color: #102d5c;
    font-size: 18px;
}

.refund-admin-row-top span,
.refund-admin-detail-subtitle {
    display: block;
    margin-top: 4px;
    color: #5b6d88;
    font-size: 14px;
    line-height: 1.5;
}

.refund-admin-mini-pill,
.refund-admin-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(18, 54, 111, 0.08);
    color: #12366f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.refund-admin-row-grid {
    display: grid;
    gap: 10px;
    color: #31445f;
    font-size: 14px;
    line-height: 1.5;
}

.refund-admin-row-activity {
    padding-top: 14px;
    border-top: 1px solid rgba(18, 54, 111, 0.08);
}

.refund-admin-row-activity strong {
    color: #102d5c;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.refund-admin-row-activity p {
    margin: 8px 0 0;
    color: #31445f;
    font-size: 14px;
    line-height: 1.6;
}

.refund-admin-row-activity span {
    display: block;
    margin-top: 8px;
    color: #5b6d88;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.refund-admin-empty {
    padding: 22px;
    border-radius: 18px;
    background: #fbfcff;
    border: 1px dashed rgba(18, 54, 111, 0.14);
    color: #5b6d88;
}

.refund-admin-meta {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
}

.refund-admin-meta div {
    padding: 16px 18px;
    border-radius: 16px;
    background: #f9fbff;
    border: 1px solid rgba(18, 54, 111, 0.08);
}

.refund-admin-meta dt {
    margin: 0 0 8px;
    color: #5b6d88;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.refund-admin-meta dd {
    margin: 0;
    color: #102d5c;
    font-size: 16px;
    line-height: 1.5;
}

.refund-admin-panel-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
}

.refund-admin-panel {
    padding: 20px;
    border-radius: 18px;
    background: #fbfcff;
    border: 1px solid rgba(18, 54, 111, 0.08);
}

.refund-admin-panel h4 {
    font-size: 22px;
    margin-top: 4px;
}

.refund-admin-field {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.refund-admin-field span {
    color: #102d5c;
    font-size: 13px;
    font-weight: 700;
}

.refund-admin-panel input,
.refund-admin-panel textarea,
.refund-admin-panel select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid rgba(18, 54, 111, 0.16);
    border-radius: 12px;
    background: #fff;
    color: #102d5c;
    font-size: 14px;
}

.refund-admin-panel textarea {
    min-height: 110px;
    resize: vertical;
}

.refund-admin-currency-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 140px 1fr;
}

.refund-admin-panel .button {
    margin-top: 16px;
}

.refund-admin-activity-card {
    margin-top: 22px;
    padding: 20px;
}

.refund-portal-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

body.portal-session-active .refund-portal-page #refund-portal-hero,
body.portal-session-active .refund-portal-page #refund-portal-access {
    display: none;
}

body.portal-admin-preview-active .refund-portal-page #refund-portal-hero,
body.portal-admin-preview-active .refund-portal-page #refund-portal-access {
    display: none;
}

body.portal-session-active .refund-portal-page #refund-portal-dashboard {
    padding-top: 64px;
    padding-bottom: 92px;
    background: #f3f6fb;
}

body.portal-admin-preview-active .refund-portal-page #refund-portal-dashboard {
    display: block;
    padding-top: 64px;
    padding-bottom: 92px;
    background: #f3f6fb;
}

.portal-admin-preview-banner {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
    padding: 18px 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff7d6 0%, #fff1b0 100%);
    border: 1px solid rgba(237, 190, 38, 0.35);
    color: #5a4a00;
}

.portal-admin-preview-banner strong {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.6;
}

.portal-admin-preview-banner .button {
    margin-top: 0;
    white-space: normal;
}

.portal-workspace-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 28px;
    margin-top: 10px;
    border-radius: 26px;
    background: linear-gradient(135deg, #0b1730 0%, #12254c 100%);
    color: #fff;
    box-shadow: 0 24px 56px rgba(8, 20, 42, 0.16);
}

.portal-workspace-header h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 46px);
    overflow-wrap: anywhere;
}

.portal-workspace-header .refund-lead {
    margin-top: 10px;
    color: rgba(248, 251, 255, 0.82);
    font-size: 18px;
}

.portal-workspace-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.portal-workspace-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 30px;
    margin-top: 34px;
    align-items: start;
    min-width: 0;
}

.portal-workspace-layout.-single-column {
    grid-template-columns: 1fr;
}

.portal-workspace-layout.-single-column .portal-workspace-main {
    width: 100%;
}

.refund-portal-page footer {
    margin-top: 0;
}

.refund-portal-page .footer {
    margin-top: 0;
    padding-top: 22px;
}

.portal-workspace-sidebar {
    position: sticky;
    top: 24px;
}

.portal-sticky-card {
    box-shadow: 0 20px 50px rgba(7, 24, 53, 0.08);
}

.portal-sticky-card h3,
.portal-panel-card h3 {
    font-size: clamp(24px, 2.8vw, 30px);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.portal-workspace-main {
    min-width: 0;
    display: grid;
    gap: 28px;
}

.portal-main-row {
    display: grid;
    gap: 28px;
    min-width: 0;
}

.portal-main-row-top {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: start;
}

.portal-main-row-full {
    grid-template-columns: minmax(0, 1fr);
}

.portal-panel-card {
    min-width: 0;
}

.portal-summary-section + .portal-summary-section {
    margin-top: 24px;
}

.portal-summary-section h4 {
    margin: 0 0 12px;
    color: #102d5c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.portal-summary-list {
    gap: 10px;
}

.portal-summary-list dd,
.portal-detail-card dd {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.portal-detail-card {
    margin: 0;
    padding: 6px 18px;
    border-radius: 18px;
    border: 1px solid rgba(18, 54, 111, 0.08);
    background: #f9fbff;
}

.portal-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 14px 0;
}

.portal-detail-row + .portal-detail-row {
    border-top: 1px solid rgba(18, 54, 111, 0.08);
}

.portal-detail-row dt {
    margin: 0;
    color: #102d5c;
    font-size: 14px;
    font-weight: 700;
}

.portal-detail-row dd {
    margin: 0;
    max-width: 58%;
    color: #31445f;
    font-size: 15px;
    line-height: 1.6;
    text-align: right;
}

.refund-notifications,
.refund-documents {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.refund-notification,
.refund-document-item {
    padding: 16px 18px;
    border: 1px solid rgba(18, 54, 111, 0.08);
    border-radius: 16px;
    background: #f9fbff;
}

.refund-notification-title {
    color: #102d5c;
    font-size: 16px;
    font-weight: 700;
}

.refund-notification p,
.refund-document-item a {
    margin: 8px 0 0;
    color: #31445f;
    font-size: 15px;
    line-height: 1.6;
}

.refund-notification.is-success {
    background: rgba(11, 125, 93, 0.06);
}

.refund-upload-form input[type="file"],
.refund-message-form textarea {
    width: 100%;
    margin-top: 14px;
    border: 1px solid rgba(18, 54, 111, 0.16);
    border-radius: 14px;
    background: #f9fbff;
    color: #102d5c;
    font-size: 16px;
}

.refund-upload-form input[type="file"] {
    padding: 14px;
    max-width: 100%;
    overflow: hidden;
    min-width: 0;
}

.refund-upload-form .refund-form-actions,
.refund-message-form .refund-form-actions {
    justify-content: flex-start;
}

.refund-message-form textarea {
    min-height: 120px;
    padding: 16px;
    resize: vertical;
}

.refund-chatbox {
    display: grid;
    gap: 14px;
    max-height: 360px;
    overflow-y: auto;
    margin-top: 18px;
    padding-right: 6px;
}

.refund-chat-message {
    padding: 16px 18px;
    border-radius: 18px;
    background: #f9fbff;
    border: 1px solid rgba(18, 54, 111, 0.08);
}

.refund-chat-message.is-applicant {
    background: rgba(18, 54, 111, 0.08);
}

.refund-chat-message.is-system {
    background: rgba(255, 214, 10, 0.12);
}

.refund-chat-head {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    color: #102d5c;
    font-size: 14px;
}

.refund-chat-message p {
    margin: 10px 0 0;
    color: #31445f;
    font-size: 15px;
    line-height: 1.65;
}

.refund-summary-meta {
    margin: 18px 0 0;
    display: grid;
    gap: 16px;
}

.refund-summary-meta-compact {
    margin-top: 14px;
    gap: 12px;
}

.refund-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.refund-profile-item,
.refund-summary-meta div {
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(18, 54, 111, 0.08);
    background: #f9fbff;
}

.refund-profile-item dt,
.refund-summary-meta dt {
    margin: 0 0 8px;
    color: #102d5c;
    font-size: 14px;
    font-weight: 700;
}

.refund-profile-item dd,
.refund-summary-meta dd {
    margin: 0;
    color: #31445f;
    font-size: 15px;
    line-height: 1.65;
}

.refund-tracker-links {
    margin-top: 22px;
}

.refund-tracking-notes {
    margin-top: 24px;
}

@media (max-width: 960px) {
    .refund-grid-3,
    .refund-grid-2,
    .refund-form-grid,
    .refund-tracker,
    .refund-admin-layout,
    .refund-admin-panel-grid,
    .refund-admin-meta,
    .refund-profile-grid {
        grid-template-columns: 1fr;
    }

    .refund-timeline {
        grid-template-columns: 1fr;
    }

    .refund-step {
        grid-template-columns: 1fr;
        grid-template-areas:
            "badge"
            "title"
            "body";
        min-height: 0;
    }

    .refund-inline-otp-row {
        grid-template-columns: 1fr;
    }

    .refund-admin-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .refund-admin-currency-row {
        grid-template-columns: 1fr;
    }

    .portal-workspace-header,
    .portal-workspace-layout,
    .portal-main-row,
    .portal-main-row-top,
    .portal-main-row-full {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .portal-workspace-sidebar {
        position: static;
    }

    .portal-detail-row {
        flex-direction: column;
        gap: 6px;
    }

    .portal-detail-row dd {
        max-width: none;
        text-align: left;
    }

    .portal-admin-preview-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-admin-preview-banner .button {
        width: 100%;
    }

    .refund-page #ecb-doc-header .headerHolder,
    .refund-page #ecb-doc-footer .ecb-serviceNavigation,
    .refund-page #ecb-doc-footer .ecb-footerBottom,
    .refund-page #ecb-doc-footer .footerBottomLinks {
        width: calc(100% - 32px);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 820px) {
    .refund-section {
        padding: 44px 0;
    }

    .refund-hero {
        padding: 56px 0 36px;
    }

    .refund-hero::after {
        width: 280px;
        height: 280px;
        inset: auto -10% -96px auto;
        opacity: 0.42;
    }

    .refund-hero h1,
    .refund-section-heading h2,
    .refund-tracker-card h3,
    .refund-reference-card h3 {
        line-height: 1.12;
    }

    .refund-hero-actions .button,
    .refund-form-actions .button,
    .refund-upload-form .refund-form-actions .button,
    .refund-message-form .refund-form-actions .button,
    .portal-workspace-actions .button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .refund-primary-button {
        min-width: 0;
    }

    .refund-form,
    .refund-tracker-card,
    .refund-reference-card {
        padding: 24px;
    }

    .refund-inline-otp {
        padding: 14px 16px;
    }

    .portal-workspace-header {
        padding: 24px;
        margin-top: 0;
    }

    .portal-workspace-layout {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 24px;
    }

    .portal-main-row,
    .portal-workspace-main {
        gap: 22px;
    }

    .portal-main-row-top {
        grid-template-columns: 1fr;
    }

    .portal-detail-card {
        padding: 4px 16px;
    }

    .refund-chatbox {
        max-height: 300px;
    }

    .refund-page #ecb-doc-header .headerHolder {
        padding-left: 14px;
        padding-right: 14px;
    }

    .refund-page #ecb-doc-footer .ecb-serviceNavigation {
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .refund-shell {
        width: min(100% - 28px, 1120px);
    }

    .refund-main {
        overflow-x: clip;
    }

    .refund-hero {
        padding: 48px 0 28px;
    }

    .refund-hero h1 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .refund-lead {
        font-size: 16px;
        line-height: 1.65;
    }

    .refund-hero-actions,
    .refund-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .refund-hero-actions .button,
    .refund-form-actions .button,
    .portal-admin-preview-banner .button,
    .portal-workspace-actions .button {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .refund-form,
    .refund-tracker-card,
    .refund-reference-card {
        padding: 20px;
        border-radius: 18px;
    }

    .refund-form-grid {
        gap: 14px;
    }

    .refund-form input,
    .refund-form select,
    .refund-message-form textarea {
        font-size: 16px;
    }

    .refund-inline-otp-row {
        gap: 10px;
    }

    .refund-inline-otp-row .button {
        width: 100%;
        min-width: 0;
    }

    .refund-primary-button {
        width: 100%;
        padding: 16px 20px;
        font-size: 17px;
    }

    body.portal-session-active .refund-portal-page #refund-portal-dashboard {
        padding-top: 36px;
        padding-bottom: 56px;
    }

    body.portal-admin-preview-active .refund-portal-page #refund-portal-dashboard {
        padding-top: 36px;
        padding-bottom: 56px;
    }

    .portal-workspace-header {
        padding: 20px;
        border-radius: 22px;
    }

    .portal-workspace-header h2 {
        font-size: clamp(28px, 10vw, 38px);
    }

    .portal-workspace-header .refund-lead {
        font-size: 16px;
    }

    .portal-workspace-layout {
        gap: 18px;
        margin-top: 18px;
    }

    .portal-workspace-main,
    .portal-main-row {
        gap: 18px;
    }

    .portal-summary-section + .portal-summary-section {
        margin-top: 18px;
    }

    .portal-detail-card {
        padding: 2px 14px;
    }

    .portal-detail-row {
        padding: 12px 0;
    }

    .portal-detail-row dt,
    .portal-detail-row dd {
        width: 100%;
    }

    .portal-panel-card h3,
    .portal-sticky-card h3 {
        font-size: clamp(22px, 8vw, 30px);
    }

    .refund-chatbox {
        max-height: none;
    }

    .refund-chat-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .refund-page #ecb-doc-header .headerHolder,
    .refund-page #ecb-doc-footer .ecb-serviceNavigation,
    .refund-page #ecb-doc-footer .ecb-footerBottom,
    .refund-page #ecb-doc-footer .footerBottomLinks {
        width: calc(100% - 24px);
    }

    .refund-page #ecb-doc-footer .ecb-serviceNavigationBox {
        min-width: 0;
    }

    .refund-page #ecb-doc-footer .ecb-serviceNavigationBoxLinks a {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 480px) {
    .refund-shell {
        width: calc(100% - 20px);
    }

    .refund-hero {
        padding: 40px 0 24px;
    }

    .refund-section {
        padding: 36px 0;
    }

    .refund-form,
    .refund-tracker-card,
    .refund-reference-card,
    .refund-card,
    .refund-panel,
    .refund-step {
        padding: 18px;
        border-radius: 18px;
    }

    .refund-card h3,
    .refund-panel h3,
    .refund-step h3,
    .refund-otp-copy h3,
    .portal-panel-card h3,
    .portal-sticky-card h3 {
        font-size: clamp(20px, 7.6vw, 28px);
    }

    .portal-workspace-header {
        padding: 18px;
        border-radius: 20px;
    }

    .portal-workspace-header h2 {
        font-size: clamp(24px, 9vw, 34px);
    }

    .portal-workspace-layout {
        gap: 16px;
    }

    .portal-main-row,
    .portal-workspace-main {
        gap: 16px;
    }

    .refund-inline-otp {
        padding: 14px;
    }

    .refund-upload-form input[type="file"] {
        padding: 12px;
        font-size: 15px;
    }

    .refund-message-form textarea {
        min-height: 110px;
    }

    .portal-admin-preview-banner {
        padding: 16px;
    }

    .refund-page #ecb-doc-header .headerHolder {
        padding-left: 10px;
        padding-right: 10px;
    }

    .refund-page #ecb-doc-footer .ecb-serviceNavigation,
    .refund-page #ecb-doc-footer .ecb-footerBottom,
    .refund-page #ecb-doc-footer .footerBottomLinks {
        width: calc(100% - 20px);
    }
}

.crm-admin-page {
    background: #f3f6fb;
}

body.crm-admin-page > :not(main):not(script):not(style),
.crm-admin-page #ecb-doc-header,
.crm-admin-page #ecb-doc-footer,
.crm-admin-page .ecb-headerNavigation,
.crm-admin-page .ecb-serviceNavigation,
.refund-admin-page #ecb-doc-header,
.refund-admin-page #ecb-doc-footer {
    display: none !important;
}

.crm-admin-page {
    color: #102d5c;
}

.crm-auth-shell {
    width: min(560px, calc(100% - 40px));
    margin: 56px auto 96px;
}

.crm-auth-card {
    padding: 34px 36px;
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(14, 36, 74, 0.1);
    box-shadow: 0 28px 60px rgba(7, 24, 53, 0.12);
}

.crm-auth-card h1 {
    margin: 0;
    color: #081a39;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.02;
}

.crm-auth-card > p {
    margin: 14px 0 0;
    color: #50627f;
    font-size: 16px;
    line-height: 1.65;
}

.crm-auth-form {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.crm-shell {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 84px;
}

.crm-topbar {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
    padding: 28px 32px;
    border-radius: 28px;
    background: linear-gradient(135deg, #0b1730 0%, #12254c 100%);
    color: #f8fbff;
    box-shadow: 0 24px 70px rgba(8, 20, 42, 0.18);
}

.crm-topbar h1 {
    margin: 0;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.02;
}

.crm-topbar p {
    margin: 12px 0 0;
    max-width: 720px;
    color: rgba(248, 251, 255, 0.82);
    font-size: 17px;
    line-height: 1.65;
}

.crm-eyebrow,
.crm-section-kicker {
    margin: 0 0 10px;
    color: #7fd1ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.crm-topbar-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.crm-topbar-actions .button {
    min-width: 200px;
    justify-content: center;
}

.crm-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.crm-stat-card {
    padding: 22px 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(14, 36, 74, 0.08);
    box-shadow: 0 18px 42px rgba(7, 24, 53, 0.06);
}

.crm-stat-card span {
    display: block;
    color: #5a6a86;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-stat-card strong {
    display: block;
    margin-top: 10px;
    color: #081a39;
    font-size: 34px;
    line-height: 1;
}

.crm-stat-card p {
    margin: 10px 0 0;
    color: #52627d;
    font-size: 14px;
    line-height: 1.55;
}

.crm-statusbar {
    margin: 18px 0 0;
    padding: 0 6px;
}

.crm-layout {
    display: grid;
    grid-template-columns: 370px minmax(0, 1fr);
    gap: 22px;
    margin-top: 18px;
    align-items: start;
}

.crm-sidebar,
.crm-workspace {
    background: #fff;
    border: 1px solid rgba(14, 36, 74, 0.08);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(7, 24, 53, 0.08);
}

.crm-sidebar {
    padding: 22px;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow: hidden;
}

.crm-workspace {
    padding: 24px;
}

.crm-sidebar-head h2,
.crm-case-header h2 {
    margin: 0;
    color: #081a39;
    font-size: 30px;
    line-height: 1.08;
}

.crm-filters {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.crm-input {
    display: grid;
    gap: 8px;
}

.crm-input span {
    color: #2c3c58;
    font-size: 13px;
    font-weight: 700;
}

.crm-input input,
.crm-input textarea,
.crm-input select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(14, 36, 74, 0.12);
    background: #f8fbff;
    color: #102d5c;
    font-size: 14px;
}

.crm-input textarea {
    min-height: 108px;
    resize: vertical;
}

.refund-chatbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
    padding: 16px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: #f1f5fa;
    border: 1px solid rgba(14, 36, 74, 0.08);
}

.crm-case-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    padding-right: 4px;
}

.crm-case-row {
    width: 100%;
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(14, 36, 74, 0.08);
    background: #fbfcff;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.crm-case-row:hover,
.crm-case-row.is-active {
    transform: translateY(-1px);
    border-color: rgba(18, 54, 111, 0.22);
    box-shadow: 0 14px 28px rgba(7, 24, 53, 0.08);
}

.crm-case-row-top,
.crm-case-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.crm-savebar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 18px 22px;
    margin-top: 18px;
    border-radius: 20px;
    border: 1px solid rgba(14, 36, 74, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 14px 40px rgba(18, 54, 111, 0.08);
}

.crm-savebar-copy {
    display: grid;
    gap: 6px;
}

.crm-savebar-copy strong {
    color: #081a39;
    font-size: 18px;
    line-height: 1.2;
}

.crm-savebar-copy span {
    color: #5c6c86;
    font-size: 14px;
    line-height: 1.5;
}

.crm-savebar-copy span.is-dirty {
    color: #b14600;
    font-weight: 700;
}

.crm-savebar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.crm-savebar-actions .button {
    min-width: 220px;
    margin-top: 0;
}

.crm-case-row-top strong {
    display: block;
    color: #081a39;
    font-size: 17px;
    line-height: 1.2;
}

.crm-case-row-top span,
.crm-case-row-meta span,
.crm-case-header p {
    color: #5a6a86;
    font-size: 13px;
    line-height: 1.5;
}

.crm-case-row-meta {
    display: grid;
    gap: 6px;
}

.crm-case-row-footer {
    display: grid;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(14, 36, 74, 0.08);
}

.crm-case-row-footer strong {
    color: #23395d;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-case-row-footer p {
    margin: 0;
    color: #2f4568;
    font-size: 14px;
    line-height: 1.6;
}

.crm-case-row-footer span {
    color: #71829d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.crm-empty-state {
    padding: 18px;
    border-radius: 18px;
    background: #fbfcff;
    border: 1px dashed rgba(14, 36, 74, 0.16);
    color: #60718d;
}

.crm-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(18, 54, 111, 0.08);
    color: #12366f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.crm-status-pill.-small {
    min-height: 30px;
    padding: 0 10px;
    font-size: 11px;
}

.crm-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.crm-meta-grid div {
    padding: 16px;
    border-radius: 18px;
    background: #f8fbff;
    border: 1px solid rgba(14, 36, 74, 0.08);
}

.crm-meta-grid dt {
    margin: 0 0 8px;
    color: #71829d;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.crm-meta-grid dd {
    margin: 0;
    color: #12254c;
    font-size: 15px;
    line-height: 1.55;
}

.crm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.crm-grid-advanced {
    align-items: start;
}

.crm-card-wide {
    grid-column: span 2;
}

.crm-card-half {
    min-height: 100%;
}

.crm-card {
    padding: 20px;
    border-radius: 22px;
    background: #fbfcff;
    border: 1px solid rgba(14, 36, 74, 0.08);
}

.crm-card-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.crm-card-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.crm-card-head-actions .button {
    margin-top: 0;
}

.crm-card-head h3 {
    margin: 0;
    color: #081a39;
    font-size: 24px;
    line-height: 1.1;
}

.crm-split-inputs {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 12px;
}

.crm-card .button {
    margin-top: 14px;
}

.crm-timeline-card {
    min-height: 100%;
}

.crm-workspace[hidden],
.crm-auth-shell[hidden],
#refund-admin-app[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .crm-overview,
    .crm-meta-grid,
    .crm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .crm-topbar,
    .crm-layout,
    .crm-overview,
    .crm-meta-grid,
    .crm-grid,
    .crm-split-inputs {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .crm-sidebar {
        position: static;
        max-height: none;
    }

    .crm-timeline-card {
        grid-column: auto;
    }
}

.portal-component-stack {
    display: grid;
    gap: 12px;
}

.portal-component-card {
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(18, 54, 111, 0.08);
    background: #f9fbff;
}

.portal-component-card strong,
.portal-component-label {
    display: block;
    margin: 0 0 8px;
    color: #102d5c;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.portal-component-value,
.portal-component-card p {
    margin: 0;
    color: #31445f;
    font-size: 15px;
    line-height: 1.65;
    word-break: break-word;
}

.portal-component-info {
    background: linear-gradient(180deg, #fffbe8 0%, #fff6cb 100%);
    border-color: rgba(237, 190, 38, 0.3);
}

.crm-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.crm-input-span-2 {
    grid-column: span 2;
}

.crm-help-text {
    margin: 14px 0 0;
    color: #5c6c86;
    font-size: 13px;
    line-height: 1.65;
}

.crm-global-panel {
    margin-top: 22px;
    border-style: dashed;
    border-color: rgba(18, 54, 111, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.98) 100%);
}

.crm-component-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.crm-component-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.crm-component-item {
    padding: 18px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(14, 36, 74, 0.08);
}

.crm-component-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.crm-component-type {
    display: inline-flex;
    margin-bottom: 6px;
    color: #7b8aa3;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.crm-component-head strong {
    color: #081a39;
    font-size: 18px;
    line-height: 1.2;
}

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

.crm-component-actions .button {
    margin-top: 0;
}

.crm-component-body {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

@media (max-width: 960px) {
    .crm-form-grid {
        grid-template-columns: 1fr;
    }

    .crm-savebar {
        flex-direction: column;
        align-items: stretch;
    }

    .crm-savebar-actions .button,
    .crm-topbar-actions .button {
        width: 100%;
        min-width: 0;
    }

    .crm-input-span-2 {
        grid-column: auto;
    }

    .crm-component-head {
        flex-direction: column;
    }
}

/* ── CRM Table ── */
.crm-table-section {
    margin-top: 18px;
    background: #fff;
    border: 1px solid rgba(14, 36, 74, 0.08);
    border-radius: 26px;
    box-shadow: 0 20px 50px rgba(7, 24, 53, 0.08);
    overflow: hidden;
}

.crm-table-toolbar {
    padding: 18px 24px;
    border-bottom: 1px solid rgba(14, 36, 74, 0.06);
}

.crm-table-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.crm-table-search {
    flex: 1;
    min-width: 220px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(14, 36, 74, 0.12);
    background: #f8fbff;
    color: #102d5c;
    font-size: 14px;
}

.crm-table-filter-select {
    min-width: 180px;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid rgba(14, 36, 74, 0.12);
    background: #f8fbff;
    color: #102d5c;
    font-size: 14px;
}

.crm-table-wrap {
    overflow-x: auto;
}

.crm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.crm-table thead th {
    padding: 14px 18px;
    background: #f5f8fd;
    color: #5a6a86;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    border-bottom: 1px solid rgba(14, 36, 74, 0.08);
    white-space: nowrap;
}

.crm-table-row {
    cursor: pointer;
    transition: background 0.15s ease;
}

.crm-table-row:hover {
    background: #f5f9ff;
}

.crm-table-row.is-active {
    background: #edf3ff;
    box-shadow: inset 3px 0 0 #12366f;
}

.crm-table-row td {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(14, 36, 74, 0.05);
    vertical-align: middle;
    color: #102d5c;
    line-height: 1.5;
}

.crm-table-cell-code strong {
    color: #12366f;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.crm-table-cell-name {
    font-weight: 600;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-table-cell-date {
    color: #5a6a86;
    font-size: 13px;
    white-space: nowrap;
}

.crm-table-cell-msg {
    color: #52627d;
    font-size: 13px;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crm-table-empty {
    text-align: center;
    padding: 40px 18px !important;
    color: #71829d;
    font-size: 15px;
}

.crm-inline-status {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 4px 12px;
    border-radius: 999px;
    border: 1px solid rgba(14, 36, 74, 0.12);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    background: rgba(18, 54, 111, 0.06);
    color: #12366f;
    text-transform: uppercase;
}

.crm-inline-status.is-received { background: rgba(59,130,246,0.10); color: #1e5fbb; border-color: rgba(59,130,246,0.2); }
.crm-inline-status.is-under-review { background: rgba(245,158,11,0.10); color: #92610a; border-color: rgba(245,158,11,0.2); }
.crm-inline-status.is-documents-requested { background: rgba(168,85,247,0.10); color: #6d28d9; border-color: rgba(168,85,247,0.2); }
.crm-inline-status.is-resolved { background: rgba(16,185,129,0.10); color: #047857; border-color: rgba(16,185,129,0.2); }

.crm-inline-specialist-input {
    width: 130px;
    padding: 6px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: #102d5c;
    font-size: 13px;
    transition: all 0.2s ease;
}

.crm-inline-specialist-input:hover {
    background: rgba(14, 36, 74, 0.04);
}

.crm-inline-specialist-input:focus {
    background: #fff;
    border-color: rgba(14, 36, 74, 0.2);
    box-shadow: 0 0 0 3px rgba(18, 54, 111, 0.1);
    outline: none;
}

/* ── CRM Detail Modal (Fullscreen) ── */
.crm-detail-panel {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #f3f6fb;
    overflow-y: auto;
    padding: 0;
    animation: crmModalIn 0.25s ease;
}

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

.crm-detail-panel[hidden] { display: none !important; }

.crm-detail-inner {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 80px;
}

.crm-detail-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
    padding: 24px 28px;
    background: linear-gradient(135deg, #0b1730 0%, #12254c 100%);
    border-radius: 22px;
    color: #f8fbff;
}

.crm-detail-header-left h2 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.1;
}

.crm-detail-header-left .crm-section-kicker {
    color: #7fd1ff;
}

.crm-detail-header-left p { margin: 6px 0 0; color: rgba(248, 251, 255, 0.7); font-size: 14px; }

.crm-detail-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.crm-detail-header-right .button.-small {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
}
.crm-detail-header-right .button.-small:hover {
    background: rgba(255,255,255,0.25);
}

.crm-detail-savebar {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 16px 20px;
    margin-top: 18px;
    border-radius: 18px;
    border: 1px solid rgba(14, 36, 74, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    box-shadow: 0 10px 28px rgba(18, 54, 111, 0.06);
}

.crm-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.crm-detail-col {
    display: grid;
    gap: 20px;
    align-content: start;
}

.button.-small {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 13px;
}

@media (max-width: 960px) {
    .crm-detail-grid {
        grid-template-columns: 1fr;
    }
    .crm-detail-header {
        flex-direction: column;
    }
    .crm-detail-savebar {
        flex-direction: column;
        align-items: stretch;
    }
    .crm-table-cell-msg { display: none; }
}

@media (max-width: 640px) {
    .crm-table-cell-date { display: none; }
    .crm-detail-panel { padding: 18px; }
}
/* Wizard Modal */
.refund-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.refund-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}
.refund-modal-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin: 20px;
}
.wizard-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
}
.wizard-details {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}
.wizard-detail-item {
    margin-bottom: 15px;
}
.wizard-detail-item:last-child {
    margin-bottom: 0;
}
.wizard-detail-item label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.wizard-footer {
    margin-top: 30px;
}
.wizard-step h3 {
    margin-bottom: 10px;
}
.wizard-step p {
    color: #666;
    line-height: 1.5;
}
