:root {
    --app-ink: #10233f;
    --app-muted: #5b6b84;
    --app-surface: rgba(255, 255, 255, 0.9);
    --app-surface-strong: rgba(255, 255, 255, 0.97);
    --app-border: rgba(148, 163, 184, 0.22);
    --app-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
    --app-shadow-strong: 0 26px 60px rgba(15, 23, 42, 0.12);
}

body {
    font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    background-color: #edf4ff;
    color: var(--app-ink);
}

.app-body {
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.18), transparent 30%),
        radial-gradient(circle at bottom left, rgba(99, 102, 241, 0.1), transparent 24%),
        linear-gradient(180deg, #eef6ff 0%, #f9fbff 45%, #f2f7ff 100%);
}

a {
    text-decoration: none;
}

.app-auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.16), transparent 32%),
        linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}

.auth-card {
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.auth-eyebrow {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background-color: #d1fae5;
    color: #065f46;
}

.auth-showcase {
    min-height: 32rem;
    border-radius: 2rem;
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 26%),
        linear-gradient(145deg, rgba(18, 52, 86, 0.9) 0%, rgba(20, 105, 108, 0.84) 52%, rgba(56, 139, 197, 0.72) 100%);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.14);
}

.auth-showcase-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-showcase-logo-wrap,
.auth-showcase-mark,
.auth-card-logo-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.auth-showcase-logo-wrap,
.auth-showcase-mark {
    width: 4.25rem;
    height: 4.25rem;
    padding: 0.45rem;
    flex-shrink: 0;
}

.auth-showcase-logo,
.auth-card-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.auth-showcase-mark {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.auth-showcase-title {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.auth-showcase-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.72);
}

.auth-showcase-heading {
    font-size: 1.95rem;
    line-height: 1.14;
    font-weight: 800;
    margin: 0 0 1rem;
    max-width: 14ch;
}

.auth-showcase-text {
    max-width: 30rem;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.84);
    margin: 0;
}

.auth-card-logo-wrap {
    width: 4rem;
    height: 4rem;
    margin-inline: auto;
    padding: 0.45rem;
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.16);
}

.auth-form .form-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: #274160;
    margin-bottom: 0.55rem;
}

.auth-input {
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(248, 250, 252, 0.95);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.auth-input:focus {
    border-color: rgba(14, 165, 233, 0.55);
    background: #fff;
    box-shadow: 0 0 0 0.25rem rgba(14, 165, 233, 0.12);
}

.auth-submit-button {
    font-weight: 700;
    border-radius: 1rem;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.auth-status-icon {
    width: 4.4rem;
    height: 4.4rem;
    margin-inline: auto;
    border-radius: 1.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}

.auth-status-icon.danger {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.92);
}

.auth-status-icon.warning {
    color: #b45309;
    background: rgba(254, 243, 199, 0.94);
}

.auth-hint {
    font-size: 0.95rem;
    color: #475569;
}

.app-shell {
    min-height: 100vh;
    position: relative;
}

.app-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding-top: 0.95rem;
    padding-bottom: 0.95rem;
    background:
        linear-gradient(135deg, rgba(11, 38, 78, 0.96) 0%, rgba(15, 118, 110, 0.92) 48%, rgba(14, 165, 233, 0.88) 100%);
    backdrop-filter: blur(18px);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.16);
}

.app-navbar::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08));
}

.app-navbar .container {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    color: #fff;
}

.brand-copy {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-logo-wrap {
    min-width: 3rem;
    height: 3rem;
    max-width: 11rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.55rem;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-logo-image {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.brand-title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-subtitle {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.brand-mark {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.navbar-nav {
    gap: 0.25rem;
}

.navbar-dark .navbar-nav .nav-link {
    position: relative;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #0b2545;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(224, 242, 254, 0.92));
    box-shadow: 0 10px 24px rgba(8, 47, 73, 0.14);
}

.app-navbar-user-wrap {
    margin-left: 1rem;
}

.app-user-chip {
    padding: 0.5rem 0.8rem;
    border-radius: 0.95rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    line-height: 1.1;
}

.app-user-role {
    color: rgba(255, 255, 255, 0.72);
}

.app-user-name {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.app-user-role {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.app-logout-button {
    border: 0;
    border-radius: 999px;
    padding-inline: 1rem;
    font-weight: 700;
    color: #0b2545;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.app-main {
    position: relative;
}

.app-main::before {
    content: "";
    position: absolute;
    top: 1rem;
    right: 2.5rem;
    width: 14rem;
    height: 14rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12), transparent 68%);
    pointer-events: none;
}

.app-main .container {
    position: relative;
    z-index: 1;
}

.surface-card {
    border: 1px solid var(--app-border);
    border-radius: 1.4rem;
    background: var(--app-surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--app-shadow);
}

.surface-card:hover {
    box-shadow: var(--app-shadow-strong);
}

.metric-card {
    border: 0;
    border-radius: 1.25rem;
    color: #fff;
    overflow: hidden;
}

.metric-card.teal {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.metric-card.orange {
    background: linear-gradient(135deg, #c2410c, #fb923c);
}

.metric-card.blue {
    background: linear-gradient(135deg, #1d4ed8, #60a5fa);
}

.metric-card.slate {
    background: linear-gradient(135deg, #334155, #64748b);
}

.renewal-stat-card {
    border: 0;
    border-radius: 1.1rem;
    color: #fff;
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
}

.renewal-stat-card.blue {
    background: linear-gradient(135deg, #243b8f 0%, #4c6fd6 100%);
}

.renewal-stat-card.purple {
    background: linear-gradient(135deg, #8b4cc7 0%, #ba68db 100%);
}

.renewal-stat-card.orange {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.renewal-stat-card.amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.renewal-stat-card.green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.renewal-stat-value {
    font-size: clamp(1.75rem, 2.2vw, 2.5rem);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.renewal-stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.renewal-stat-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.88);
}

.renewal-row-link {
    text-decoration: none;
    font-weight: 700;
    transition: color 0.18s ease;
}

.renewal-row-link-customer {
    color: #0f766e;
}

.renewal-row-link-customer:hover {
    color: #0d9488;
}

.renewal-row-link-policy {
    color: #2563eb;
}

.renewal-row-link-policy:hover {
    color: #1d4ed8;
}

@media (min-width: 1200px) {
    .renewal-stat-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.section-heading h1,
.section-heading h2,
.section-heading h3,
.section-heading .h3,
.section-heading .h5 {
    color: #0d2340;
    font-weight: 800;
}

.text-muted {
    color: var(--app-muted) !important;
}

.table thead th {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
}

.profile-hero {
    background: linear-gradient(135deg, #ffffff 0%, #ecfeff 100%);
}

.mobile-stack-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.btn {
    border-radius: 0.95rem;
    font-weight: 700;
}

.btn-primary {
    border-color: #0f766e;
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%);
    box-shadow: 0 14px 28px rgba(8, 145, 178, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: #0d9488;
    background: linear-gradient(135deg, #0d9488 0%, #0284c7 100%);
}

.btn-outline-secondary,
.btn-light.border {
    border-color: #d7e2f0;
    color: #29415f;
    background-color: rgba(255, 255, 255, 0.82);
}

.btn-outline-secondary:hover,
.btn-light.border:hover {
    border-color: #c4d4e8;
    background-color: #fff;
    color: #10233f;
}

.table,
.card {
    overflow: hidden;
}

.table-responsive,
.table {
    border-radius: 1.1rem;
}

.dashboard-widget-section {
    margin-bottom: 2rem;
}

.dashboard-section-list {
    display: grid;
    gap: 1.75rem;
}

.dashboard-section-shell {
    position: relative;
}

.dashboard-section-heading {
    margin-bottom: 1rem;
}

.dashboard-toolbar {
    background:
        radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dashboard-toolbar-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.dashboard-manage-card {
    border: 1px solid #dbe7f3;
    border-radius: 1rem;
    background-color: rgba(255, 255, 255, 0.94);
    padding: 1rem;
    height: 100%;
}

.dashboard-manage-list {
    display: grid;
    gap: 0.65rem;
}

.dashboard-manage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-radius: 0.85rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 0.92rem;
    color: #334155;
}

.dashboard-manage-item i {
    color: #0f766e;
}

.dashboard-drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.8rem;
    background-color: #fff;
    color: #64748b;
    cursor: grab;
}

.dashboard-section-drag-handle,
.dashboard-widget-drag-handle {
    display: none;
}

.dashboard-widget-frame {
    position: relative;
    height: 100%;
}

.dashboard-widget-hide-button {
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    z-index: 3;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 999px;
    background-color: #fff;
    color: #b91c1c;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.dashboard-widget-card,
.dashboard-policy-card {
    display: block;
    height: 100%;
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    padding: 1.25rem;
    color: #0f172a;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-widget-card:hover,
.dashboard-policy-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
}

.dashboard-widget-card {
    --widget-bg: #ecfeff;
    --widget-bg-deep: #c9f2eb;
    --widget-color: #0f766e;
    --widget-border: #99f6e4;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.85), transparent 34%),
        linear-gradient(135deg, var(--widget-bg) 0%, var(--widget-bg-deep) 100%);
    border-color: var(--widget-border);
}

.dashboard-widget-card.compact {
    min-height: 13.5rem;
}

.dashboard-widget-card.tone-teal {
    --widget-bg: #dff8f1;
    --widget-bg-deep: #bff1e4;
    --widget-color: #0f766e;
    --widget-border: #99f6e4;
}

.dashboard-widget-card.tone-green {
    --widget-bg: #e4f8eb;
    --widget-bg-deep: #c8f0d4;
    --widget-color: #15803d;
    --widget-border: #bbf7d0;
}

.dashboard-widget-card.tone-orange {
    --widget-bg: #fff1dc;
    --widget-bg-deep: #ffd8ad;
    --widget-color: #ea580c;
    --widget-border: #fed7aa;
}

.dashboard-widget-card.tone-blue {
    --widget-bg: #e0f1ff;
    --widget-bg-deep: #bedfff;
    --widget-color: #0284c7;
    --widget-border: #bae6fd;
}

.dashboard-widget-card.tone-purple {
    --widget-bg: #efe8ff;
    --widget-bg-deep: #d9c8ff;
    --widget-color: #7c3aed;
    --widget-border: #ddd6fe;
}

.dashboard-widget-card.tone-slate {
    --widget-bg: #eef2f7;
    --widget-bg-deep: #dde5ef;
    --widget-color: #475569;
    --widget-border: #cbd5e1;
}

.dashboard-widget-card.tone-cyan {
    --widget-bg: #dff6fb;
    --widget-bg-deep: #bcecf6;
    --widget-color: #0f766e;
    --widget-border: #a5f3fc;
}

.dashboard-widget-card.tone-pink {
    --widget-bg: #fde7f3;
    --widget-bg-deep: #fac6e1;
    --widget-color: #db2777;
    --widget-border: #fbcfe8;
}

.dashboard-widget-card.tone-gold {
    --widget-bg: #fff6d8;
    --widget-bg-deep: #fde68a;
    --widget-color: #ca8a04;
    --widget-border: #fde68a;
}

.dashboard-widget-card.tone-amber {
    --widget-bg: #fff6de;
    --widget-bg-deep: #fde4b0;
    --widget-color: #d97706;
    --widget-border: #fed7aa;
}

.dashboard-widget-card.tone-red {
    --widget-bg: #ffe4e6;
    --widget-bg-deep: #fecdd3;
    --widget-color: #dc2626;
    --widget-border: #fda4af;
}

.dashboard-widget-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.dashboard-widget-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--widget-bg);
    color: var(--widget-color);
    font-size: 1.2rem;
    border: 1px solid var(--widget-border);
}

.dashboard-widget-arrow {
    color: rgba(15, 23, 42, 0.62);
    font-size: 1.1rem;
    line-height: 1;
}

.dashboard-widget-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.dashboard-widget-value,
.dashboard-policy-value {
    font-size: clamp(2rem, 2.6vw, 3rem);
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.65rem;
}

.dashboard-widget-meta,
.dashboard-policy-meta {
    font-size: 0.98rem;
    color: #64748b;
    line-height: 1.5;
}

.dashboard-policy-card {
    min-height: 12.5rem;
    --policy-pill-bg: #ffedd5;
    --policy-pill-color: #ea580c;
    --policy-bg: #fff7ed;
    --policy-bg-deep: #ffedd5;
    --policy-border: #fed7aa;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.86), transparent 34%),
        linear-gradient(135deg, var(--policy-bg) 0%, var(--policy-bg-deep) 100%);
    border-color: var(--policy-border);
}

.dashboard-policy-card.tone-orange {
    --policy-pill-bg: #ffedd5;
    --policy-pill-color: #ea580c;
    --policy-bg: #fff7ed;
    --policy-bg-deep: #ffedd5;
    --policy-border: #fed7aa;
}

.dashboard-policy-card.tone-green {
    --policy-pill-bg: #dcfce7;
    --policy-pill-color: #16a34a;
    --policy-bg: #f0fdf4;
    --policy-bg-deep: #dcfce7;
    --policy-border: #bbf7d0;
}

.dashboard-policy-card.tone-amber {
    --policy-pill-bg: #fef3c7;
    --policy-pill-color: #d97706;
    --policy-bg: #fffbeb;
    --policy-bg-deep: #fef3c7;
    --policy-border: #fde68a;
}

.dashboard-policy-card.tone-red {
    --policy-pill-bg: #fee2e2;
    --policy-pill-color: #ef4444;
    --policy-bg: #fff1f2;
    --policy-bg-deep: #ffe4e6;
    --policy-border: #fecdd3;
}

.dashboard-policy-card.tone-slate {
    --policy-pill-bg: #e2e8f0;
    --policy-pill-color: #475569;
    --policy-bg: #f8fafc;
    --policy-bg-deep: #e2e8f0;
    --policy-border: #cbd5e1;
}

.dashboard-policy-card.tone-blue {
    --policy-pill-bg: #dbeafe;
    --policy-pill-color: #0ea5e9;
    --policy-bg: #eff6ff;
    --policy-bg-deep: #dbeafe;
    --policy-border: #bfdbfe;
}

.dashboard-policy-card.tone-purple {
    --policy-pill-bg: #ede9fe;
    --policy-pill-color: #7c3aed;
    --policy-bg: #f5f3ff;
    --policy-bg-deep: #ede9fe;
    --policy-border: #ddd6fe;
}

.dashboard-policy-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background-color: var(--policy-pill-bg);
    color: var(--policy-pill-color);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.lead-board-pill-blue {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.lead-board-pill-orange {
    background-color: #ffedd5;
    color: #ea580c;
}

.lead-board-pill-purple {
    background-color: #ede9fe;
    color: #7c3aed;
}

.lead-board-pill-amber {
    background-color: #fef3c7;
    color: #b45309;
}

.lead-board-pill-green {
    background-color: #dcfce7;
    color: #15803d;
}

.lead-board-pill-slate {
    background-color: #e2e8f0;
    color: #475569;
}

.lead-board-column {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.lead-board-column-active {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
    border: 1px dashed #0ea5e9;
}

body.lead-board-pointer-dragging {
    user-select: none;
    cursor: grabbing;
}

.lead-board-card-draggable {
    cursor: default;
}

.lead-board-drag-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background-color: #eff6ff;
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 700;
}

.lead-board-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.lead-board-drag-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    white-space: nowrap;
}

.lead-board-drag-handle {
    width: 2rem;
    height: 2rem;
    border: 1px dashed #93c5fd;
    border-radius: 999px;
    background-color: #fff;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
}

.lead-board-drag-handle:active {
    cursor: grabbing;
}

.lead-board-card-dragging {
    opacity: 0.55;
    transform: rotate(-1deg);
}

.lead-board-card-moving {
    outline: 2px solid #38bdf8;
    box-shadow: 0 0 0 0.3rem rgba(56, 189, 248, 0.18);
}

.lead-board-drag-ghost {
    position: fixed;
    z-index: 1085;
    width: min(320px, calc(100vw - 2rem));
    max-height: 12rem;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.92;
    transform: rotate(-2deg);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.2);
}

.lead-quick-activity summary {
    list-style: none;
}

.lead-quick-activity summary::-webkit-details-marker {
    display: none;
}

.lead-quick-activity[open] summary {
    margin-bottom: 0.65rem;
}

.dashboard-policy-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-policy-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.05);
    color: var(--policy-pill-color);
    font-size: 1.1rem;
}

.dashboard-sortable-section.dashboard-dragging,
.dashboard-widget-item.dashboard-dragging {
    opacity: 0.55;
}

body.dashboard-edit-mode .dashboard-section-shell {
    padding: 1rem;
    border: 1px dashed #94a3b8;
    border-radius: 1.5rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.96) 100%);
    cursor: grab;
}

body.dashboard-edit-mode .dashboard-section-drag-handle,
body.dashboard-edit-mode .dashboard-widget-drag-handle {
    display: inline-flex;
}

body.dashboard-edit-mode .dashboard-widget-drag-handle {
    position: absolute;
    top: 0.95rem;
    left: 0.95rem;
    z-index: 3;
}

body.dashboard-edit-mode .dashboard-widget-item {
    cursor: grab;
}

body.dashboard-edit-mode .dashboard-sortable-section.dashboard-dragging,
body.dashboard-edit-mode .dashboard-widget-item.dashboard-dragging {
    cursor: grabbing;
}

body.dashboard-edit-mode .dashboard-widget-card,
body.dashboard-edit-mode .dashboard-policy-card {
    pointer-events: none;
}

body.dashboard-edit-mode .dashboard-widget-card,
body.dashboard-edit-mode .dashboard-policy-card {
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1);
}

.customer-search-results {
    position: absolute;
    top: calc(100% - 0.25rem);
    left: 0.75rem;
    right: 0.75rem;
    z-index: 20;
    max-height: 18rem;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 0.85rem;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.customer-search-option {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 0;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    text-align: left;
    font-size: 0.94rem;
    color: #1f2937;
}

.customer-search-option:last-child {
    border-bottom: 0;
}

.customer-search-option:hover,
.customer-search-option:focus {
    background-color: #ecfeff;
    color: #155e75;
    outline: none;
}

.reminder-badge-birthday {
    background-color: #fde68a;
    color: #92400e;
}

.reminder-badge-anniversary {
    background-color: #fbcfe8;
    color: #9d174d;
}

.reminder-priority-high {
    background-color: #fee2e2;
    color: #b91c1c;
}

.reminder-priority-medium {
    background-color: #fef3c7;
    color: #b45309;
}

.reminder-priority-low {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.reminder-row-birthday td:first-child {
    border-left: 4px solid #f59e0b;
}

.reminder-row-anniversary td:first-child {
    border-left: 4px solid #ec4899;
}

.reminder-row-birthday td {
    background-color: #fff7d6;
}

.reminder-row-birthday:hover td {
    background-color: #fde68a;
}

.reminder-row-anniversary td {
    background-color: #fdf2f8;
}

.reminder-row-anniversary:hover td {
    background-color: #fbcfe8;
}

input#password:not([name]) {
    display: none;
}

@media (max-width: 767.98px) {
    .auth-showcase {
        min-height: auto;
        padding: 1.5rem;
    }

    .auth-showcase-heading {
        font-size: 1.75rem;
        max-width: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .app-navbar {
        padding-top: 0.8rem;
        padding-bottom: 0.8rem;
    }

    .brand-subtitle {
        display: none;
    }

    .brand-logo-wrap {
        min-width: 2.7rem;
        height: 2.7rem;
        max-width: 8.5rem;
        padding: 0.3rem 0.45rem;
    }

    .app-user-chip {
        display: none;
    }
}
