/* =========================================================
   DISCLOSURE CLINIC COURT CALCULATOR — GUIDED DIALOG THEME (v2.3.0)
   Palette: Dark Cornflower 3 (#1c4587) & Dark Orange (#b45f06)
   Fonts: Astra Default System Stack
   ========================================================= */
:root {
    --dc-primary: #1c4587;
    --dc-primary-dark: #133163;
    --dc-primary-soft: #eef3fa;
    --dc-primary-border: #c5d6ee;
    --dc-accent: #b45f06;
    --dc-accent-dark: #8f4b04;
    --dc-accent-soft: #fdf4ea;
    --dc-accent-border: #f0cda6;
    --dc-bg: #f6f8fb;
    --dc-card: #ffffff;
    --dc-border: #dce3ee;
    --dc-text: #1f2937;
    --dc-muted: #5b667a;
    --dc-radius: 12px;
    --dc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.dc-app-shell {
    font-family: var(--dc-font);
    color: var(--dc-text);
    background: var(--dc-bg);
    border: 1px solid var(--dc-border);
    border-radius: 14px;
    max-width: 1240px;
    margin: 20px auto;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(28, 69, 135, 0.08);
    line-height: 1.5;
}
.dc-app-shell *, .dc-app-shell *::before, .dc-app-shell *::after {
    box-sizing: border-box;
}
.dc-app-shell a {
    color: var(--dc-primary);
    font-weight: 600;
    text-decoration: none;
}
.dc-app-shell a:hover {
    text-decoration: underline;
}

/* --- TOP BAR --- */
.dc-topbar {
    background: var(--dc-primary);
    color: #ffffff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dc-topbar-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dc-topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dc-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.dc-brand {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.dc-tier-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}
.dc-tier-badge.is-plus {
    background: var(--dc-accent);
    color: #fff;
}
.dc-top-court-bar {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}
.dc-pencil-btn {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 6px;
    padding: 2px 7px;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s ease;
}
.dc-pencil-btn:hover {
    background: var(--dc-accent);
    border-color: var(--dc-accent);
}
.dc-top-link-btn {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.dc-top-link-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* --- STAGE & FADE TRANSITION --- */
.dc-stage {
    padding: 28px 24px 32px;
    transition: opacity 0.22s ease;
    opacity: 1;
}
.dc-stage.dc-fading {
    opacity: 0;
}

/* --- WIZARD CARDS --- */
.dc-wizard-card {
    max-width: 720px;
    margin: 0 auto;
    background: var(--dc-card);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius);
    padding: 28px;
    box-shadow: 0 2px 12px rgba(28, 69, 135, 0.05);
}
.dc-wizard-card.is-wide {
    max-width: 920px;
}
.dc-step-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dc-accent);
    margin-bottom: 6px;
}
.dc-step-title {
    margin: 0 0 8px 0;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--dc-primary);
}
.dc-step-sub {
    margin: 0 0 22px 0;
    font-size: 0.94rem;
    color: var(--dc-muted);
}

/* --- BUTTONS (NO ARROWS) --- */
.dc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--dc-font);
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
    text-decoration: none !important;
}
.dc-btn-primary {
    background: var(--dc-primary);
    color: #ffffff !important;
}
.dc-btn-primary:hover {
    background: var(--dc-primary-dark);
}
.dc-btn-accent {
    background: var(--dc-accent);
    color: #ffffff !important;
}
.dc-btn-accent:hover {
    background: var(--dc-accent-dark);
}
.dc-btn-ghost {
    background: #ffffff;
    color: var(--dc-primary) !important;
    border-color: var(--dc-border);
}
.dc-btn-ghost:hover {
    background: var(--dc-primary-soft);
    border-color: var(--dc-primary-border);
}
.dc-btn-block {
    width: 100%;
}
.dc-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.dc-recent-searches {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--dc-border);
}
.dc-recent-searches-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--dc-muted);
    font-size: 0.84rem;
}
.dc-app-shell .dc-recent-clear {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dc-muted);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: inherit;
    box-shadow: none;
    cursor: pointer;
}
.dc-app-shell .dc-recent-clear:hover {
    text-decoration: underline;
}
.dc-recent-search-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dc-recent-search-btn {
    padding: 7px 11px;
    border: 1px solid var(--dc-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--dc-primary);
    font: inherit;
    font-size: 0.84rem;
    cursor: pointer;
}
.dc-app-shell .dc-recent-search-btn:hover,
.dc-app-shell .dc-recent-search-btn:focus,
.dc-app-shell .dc-recent-search-btn:active {
    border-color: var(--dc-primary);
    background: var(--dc-primary);
    color: #ffffff;
}
.dc-app-shell .dc-recent-search-btn:focus-visible {
    outline: 2px solid var(--dc-primary);
    outline-offset: 2px;
}

/* --- CHOICE GRIDS --- */
.dc-choice-grid-2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.dc-choice-grid-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.dc-appeal-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.dc-choice-btn {
    position: relative;
    text-align: left;
    background: #ffffff;
    border: 1.5px solid var(--dc-border);
    border-radius: 10px;
    padding: 16px 18px;
    cursor: pointer;
    font-family: var(--dc-font);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.dc-choice-btn:hover {
    border-color: var(--dc-primary);
    background: var(--dc-primary-soft);
}
.dc-choice-btn.is-selected {
    border-color: var(--dc-primary);
    background: var(--dc-primary-soft);
    box-shadow: 0 0 0 2px rgba(28, 69, 135, 0.15);
}
.dc-choice-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--dc-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.dc-choice-desc {
    font-size: 0.84rem;
    color: var(--dc-muted);
    font-weight: 400;
}
.dc-choice-btn.is-locked {
    background: #f9fafc;
    border-style: dashed;
    border-color: #cfd7e6;
    opacity: 0.82;
}
.dc-choice-btn.is-locked .dc-choice-title {
    color: #5b667a;
}
.dc-choice-btn.is-locked:hover {
    border-color: var(--dc-accent);
    background: var(--dc-accent-soft);
    opacity: 1;
}
.dc-lock-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--dc-accent-soft);
    color: var(--dc-accent);
    border: 1px solid var(--dc-accent-border);
    white-space: nowrap;
}

/* --- FORM INPUTS & DEFAULT TOGGLE --- */
.dc-field {
    margin-bottom: 16px;
}
.dc-field label {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--dc-primary);
    margin-bottom: 6px;
}
.dc-field input[type="date"],
.dc-field input[type="text"],
.dc-field input[type="number"],
.dc-field select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #c5cfdf;
    border-radius: 8px;
    font-size: 0.98rem;
    font-family: var(--dc-font);
    color: var(--dc-text);
    background: #ffffff;
}
.dc-field input:focus,
.dc-field select:focus {
    outline: none;
    border-color: var(--dc-primary);
    box-shadow: 0 0 0 3px rgba(28, 69, 135, 0.14);
}
.dc-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--dc-primary-soft);
    border: 1px solid var(--dc-primary-border);
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 14px;
}
.dc-toggle-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dc-primary);
}
.dc-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.dc-switch input { opacity: 0; width: 0; height: 0; }
.dc-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #c5cfdf;
    border-radius: 999px;
    transition: background 0.2s;
}
.dc-switch-slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.dc-switch input:checked + .dc-switch-slider {
    background: var(--dc-accent);
}
.dc-switch input:checked + .dc-switch-slider::before {
    transform: translateX(20px);
}

/* TomSelect Styling (fixes visible search text on Astra) */
.dc-app-shell .ts-wrapper.single .ts-control {
    padding: 10px 12px;
    border: 1px solid #c5cfdf;
    border-radius: 8px;
    font-size: 0.98rem;
    background: #ffffff;
    color: var(--dc-text);
}
.dc-app-shell .ts-control input {
    color: var(--dc-text) !important;
    font-size: 0.98rem !important;
}
.dc-app-shell .ts-dropdown {
    border-radius: 8px;
    border-color: #c5cfdf;
    font-size: 0.94rem;
    z-index: 999;
}
.dc-app-shell .ts-dropdown .active {
    background: var(--dc-primary-soft);
    color: var(--dc-primary);
}

/* --- MODE TABS (Standard vs Advanced) & TRI-STATE TOGGLES --- */
.dc-seg-tabs {
    display: flex;
    gap: 8px;
    background: var(--dc-primary-soft);
    padding: 5px;
    border-radius: 10px;
    margin-bottom: 16px;
}
.dc-seg-tab {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--dc-primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.dc-seg-tab.active {
    background: var(--dc-primary);
    color: #fff;
}
.dc-rule-box {
    background: var(--dc-accent-soft);
    border: 1px solid var(--dc-accent-border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}
.dc-rule-box.is-fwd {
    background: var(--dc-primary-soft);
    border-color: var(--dc-primary-border);
}
.dc-radio-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.dc-radio-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #cfd7e6;
    border-radius: 8px;
    padding: 6px 11px;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
}
.dc-radio-question {
    min-width: 0;
}
.dc-radio-question legend {
    padding: 0 6px;
    font-size: 0.84rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #8f4b04;
}
.dc-radio-question.is-fwd legend {
    color: var(--dc-primary);
}

/* --- RESULTS SUMMARY BAR & PROMINENT TOP TABS --- */
.dc-summary-bar {
    background: var(--dc-card);
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.dc-summary-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dc-primary);
}
.dc-result-tabs {
    background: var(--dc-primary-soft);
    border: 1.5px solid var(--dc-primary-border);
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 22px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.dc-result-tab {
    background: #ffffff;
    border: 1px solid var(--dc-primary-border);
    color: var(--dc-primary);
    font-family: var(--dc-font);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(28, 69, 135, 0.06);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.dc-result-tab:hover {
    background: var(--dc-primary-soft);
    border-color: var(--dc-primary);
}
.dc-result-tab.active {
    background: var(--dc-primary);
    border-color: var(--dc-primary);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(28, 69, 135, 0.22);
}
.dc-result-tab.is-locked {
    color: var(--dc-muted);
    border-style: dashed;
}

/* --- RESULTS LAYOUT: MAIN + RIGHT SIDEBAR --- */
.dc-results-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    align-items: start;
}
.dc-results-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.dc-results-sidebar .dc-panel {
    margin-bottom: 0;
    font-size: 0.88rem;
}
.dc-timelines-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
    gap: 20px;
    align-items: start;
}

/* --- INFO PANELS --- */
.dc-panel {
    background: var(--dc-card);
    border: 1px solid var(--dc-border);
    border-left: 5px solid var(--dc-primary);
    border-radius: var(--dc-radius);
    padding: 20px;
    margin-bottom: 18px;
}
.dc-panel h3 {
    margin: 0 0 12px 0;
    font-size: 1.02rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dc-primary);
}
.dc-panel-accent {
    border-left-color: var(--dc-accent);
}
.dc-panel-accent h3 {
    color: var(--dc-accent);
}
.dc-court-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 12px;
    border: 1px solid var(--dc-border);
    border-radius: 8px;
}
.dc-panel ul, .dc-panel ol {
    margin: 0;
    padding-left: 20px;
}
.dc-panel li {
    margin-bottom: 8px;
}
.dc-panel li:last-child {
    margin-bottom: 0;
}

/* --- MOTIONS: MOVING / RESPONDING PARTY ACCORDIONS --- */
.dc-party-accordion {
    background: #ffffff;
    border: 1.5px solid var(--dc-primary-border);
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
}
.dc-party-accordion > summary {
    background: var(--dc-primary-soft);
    color: var(--dc-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 13px 16px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.dc-party-accordion > summary::-webkit-details-marker { display: none; }
.dc-party-accordion > summary::after {
    content: "+";
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dc-accent);
}
.dc-party-accordion[open] > summary::after {
    content: "−";
}
.dc-party-accordion-body {
    padding: 16px;
}
.dc-stage-heading {
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--dc-accent-border);
    color: var(--dc-accent-dark);
    font-size: 0.92rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.dc-stage-block {
    margin-bottom: 18px;
}
.dc-stage-block:last-child {
    margin-bottom: 0;
}

/* --- DEADLINE ITEMS & BATCH EXPORT --- */
.dc-service-alert {
    padding: 10px 14px;
    background: var(--dc-accent-soft);
    border: 1px solid var(--dc-accent-border);
    border-radius: 8px;
    color: var(--dc-accent-dark);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 12px;
}
.party-block {
    padding: 13px 4px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.party-block:last-child { border-bottom: none; }
.party-check {
    margin-top: 4px;
    width: 17px;
    height: 17px;
    accent-color: var(--dc-primary);
    cursor: pointer;
    flex-shrink: 0;
}
.party-content { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.party-label { font-weight: 700; color: var(--dc-primary); font-size: 1rem; }
.party-label.party-text-app { color: #1c4587; }
.party-label.party-text-resp { color: #2e7d32; }
.party-label.party-text-other { color: #b45f06; }
.party-label.party-text-both { color: #5b2c6f; }
.party-sublabel { font-style: italic; color: var(--dc-muted); font-size: 0.83rem; }
.party-holiday-alert { font-size: 0.83rem; font-weight: 600; color: var(--dc-accent-dark); line-height: 1.4; }
.party-date { font-size: 1.08rem; font-weight: 700; color: #111827; }

.save-all-container {
    padding-top: 16px;
    margin-top: 14px;
    border-top: 1px dashed var(--dc-border);
    display: flex;
    gap: 7px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}
.save-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid var(--dc-border);
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    background: #ffffff;
    color: var(--dc-text);
    transition: background 0.15s;
}
.save-all-btn:hover { background: var(--dc-primary-soft); border-color: var(--dc-primary); }
.save-all-btn.batch-p-chart {
    flex: 1 1 100%;
    justify-content: center;
    margin-top: 4px;
    border-color: var(--dc-primary);
    color: var(--dc-primary);
}
.batch-btn-icon { width: 14px; height: 14px; display: block; }

/* --- FIXED VISUAL CALENDAR (TOP-LEFT ON TIMELINES TAB) --- */
.visual-calendar-container {
    background: #ffffff;
    border: 1px solid var(--dc-border);
    border-top: 4px solid var(--dc-primary);
    border-radius: var(--dc-radius);
    padding: 16px;
    width: 100%;
}
.visual-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--dc-border);
    padding-bottom: 10px;
    margin-bottom: 12px;
}
.visual-calendar-header h3 {
    margin: 0;
    font-size: 0.96rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--dc-primary);
}
.dc-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 0.78rem;
    color: var(--dc-muted);
    margin-bottom: 12px;
}
.dc-cal-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}
.calendar-months-wrapper {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
}
.calendar-month {
    background: #fbfcfe;
    border: 1px solid var(--dc-border);
    border-radius: 10px;
    padding: 12px;
    width: 100%;
}
.calendar-month h4 {
    text-align: center;
    margin: 0 0 10px 0;
    color: var(--dc-primary);
    font-size: 0.98rem;
    font-weight: 700;
}
.calendar-month table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 0.84rem;
    table-layout: fixed;
}
.calendar-month th {
    padding-bottom: 6px;
    color: var(--dc-muted);
    font-weight: 700;
    font-size: 0.78rem;
}
.cal-day { padding: 4px 0; color: #4b5563; position: relative; }
.cal-day.has-event { z-index: 2; }
.cal-day.has-event:hover { z-index: 20; }
.day-circle {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.party-border-app { border-left-color: #1c4587 !important; }
.party-bg-app { background-color: #1c4587 !important; }
.party-border-resp { border-left-color: #2e7d32 !important; }
.party-bg-resp { background-color: #2e7d32 !important; }
.party-border-other { border-left-color: #b45f06 !important; }
.party-bg-other { background-color: #b45f06 !important; }
.party-border-both { border-left-color: #5b2c6f !important; }
.party-bg-both { background-color: #5b2c6f !important; }
.party-bg-app-resp { background: linear-gradient(135deg, #1c4587 50%, #2e7d32 50%) !important; }
.party-bg-app-other { background: linear-gradient(135deg, #1c4587 50%, #b45f06 50%) !important; }
.party-bg-resp-other { background: linear-gradient(135deg, #2e7d32 50%, #b45f06 50%) !important; }
.party-bg-app-resp-other { background: linear-gradient(135deg, #1c4587 33.33%, #2e7d32 33.33%, #2e7d32 66.66%, #b45f06 66.66%) !important; }

.cal-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 215px;
    background: #ffffff;
    border: 1px solid var(--dc-primary-border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.16);
    border-radius: 8px;
    padding: 10px;
    z-index: 100;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.16s ease;
    text-align: left;
    font-size: 12px;
    margin-bottom: 6px;
    pointer-events: none;
}
.cal-day.has-event:hover .cal-tooltip {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.cal-tooltip-event { margin-bottom: 8px; border-bottom: 1px solid #eef2f7; padding-bottom: 6px; }
.cal-tooltip-event:last-child { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
.cal-tooltip-event strong { display: block; margin-bottom: 4px; color: var(--dc-text); }
.cal-tooltip-event a { display: inline-block; padding: 3px; border-radius: 4px; background: #f6f8fb; border: 1px solid #e5eaf2; margin-right: 4px; }

/* --- FORMS & CHECKLISTS --- */
.forms-bubble-container { display: flex; flex-direction: column; gap: 10px; }
.form-bubble-row { display: flex; align-items: flex-start; gap: 12px; background: #fbfcfe; border: 1px solid var(--dc-border); padding: 12px 14px; border-radius: 8px; }
.form-bubble-row::before { content: attr(data-step) "."; font-weight: 700; color: var(--dc-primary); font-size: 0.98rem; margin-top: 3px; min-width: 24px; flex-shrink: 0; }
.form-bubble-main { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-header-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-title-pill { color: #fff !important; padding: 4px 11px; border-radius: 999px; font-weight: 700; font-size: 0.82rem; display: inline-flex; }
.form-download-btn { color: #fff !important; text-decoration: none !important; padding: 5px 13px; border-radius: 6px; font-weight: 700; font-size: 0.8rem; display: inline-flex; align-items: center; }
.form-doc-desc { font-size: 0.88rem; color: #374151; }
.btn-fin { background: #1c4587; } .btn-nfp { background: #0d9488; } .btn-brief { background: #b45f06; }
.btn-service { background: #a16207; } .btn-confirm { background: #c62828; } .btn-parent { background: #2e7d32; }
.btn-sdo { background: #c2410c; } .btn-order { background: #3730a3; } .btn-app { background: #be123c; } .btn-cert { background: #0369a1; }

.filing-checklist-box { background: #fbfcfe; border: 1px dashed var(--dc-primary-border); border-radius: 8px; padding: 12px 14px; margin: 10px 0; list-style: none; }
.regular-service-disclosure { background: #fff1f2; }
.filing-checklist-title { font-weight: 700; font-size: 0.86rem; color: var(--dc-primary); text-transform: uppercase; cursor: pointer; }
.filing-checklist-items { list-style: none !important; padding-left: 0 !important; margin: 8px 0 0 0 !important; display: flex; flex-direction: column; gap: 6px; }
.filing-checklist-items li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 0 !important; font-size: 0.88rem; }
.filing-checklist-items input[type="checkbox"] { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--dc-primary); flex-shrink: 0; }
.filing-checklist-note { margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--dc-border); font-size: 0.85rem; }

/* --- DRAG & DROP / CUSTOM BUILDER --- */
.dnd-wrapper { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.dnd-container { display: flex; gap: 12px; max-height: 480px; }
.dnd-bank, .dnd-buckets { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.dnd-bank { background: #fff; border: 2px dashed #c5cfdf; padding: 10px; border-radius: 8px; }
.dnd-bucket { background: var(--dc-primary-soft); border: 1px solid var(--dc-primary-border); padding: 10px; border-radius: 8px; display: flex; flex-direction: column; gap: 6px; }
.dnd-bucket h4, .dnd-bank h4, .dnd-trash h4 { margin: 0; font-size: 0.8rem; color: var(--dc-primary); text-transform: uppercase; border-bottom: 1px solid var(--dc-border); padding-bottom: 4px; }
.bucket-items-container { min-height: 28px; display: flex; flex-direction: column; gap: 5px; }
.dnd-item { background: #fff; border: 1px solid var(--dc-primary-border); padding: 6px 8px; border-radius: 5px; cursor: grab; font-size: 0.78rem; font-weight: 600; color: var(--dc-primary); display: flex; justify-content: space-between; gap: 6px; }
.dnd-trash { background: #fff8f8; border: 2px dashed #f5c2c7; padding: 10px; border-radius: 8px; }
.dnd-trash h4 { color: #b91c1c; }
.dnd-remove-btn, .delete-bucket-btn { cursor: pointer; font-weight: 700; color: #9ca3af; }
.delete-bucket-btn { float: right; }

.custom-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; flex-wrap: wrap; }
.custom-row input[type="text"] { flex: 2; min-width: 150px; }
.custom-row select.custom-party { flex: 1.1; min-width: 110px; }
.custom-row input[type="number"],
.custom-row input[type="date"] { flex: 1.2; min-width: 120px; }
.custom-row input,
.custom-row select {
    height: 42px;
    line-height: normal;
    vertical-align: middle;
}
.custom-row select.custom-party {
    padding: 10px 12px;
    border: 1px solid #c5cfdf;
    border-radius: 8px;
    background: #ffffff;
    color: var(--dc-text);
    font: inherit;
    font-size: 0.98rem;
    appearance: auto;
}
#customRowsContainer {
    padding: 10px;
    border: 1px solid var(--dc-border);
    border-radius: 10px;
    background: #fbfcfe;
}
.dc-remove-row-btn {
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    font-weight: 700;
    cursor: pointer;
}
.dc-builder-controls {
    background: #fff;
    border: 1px dashed var(--dc-border);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dc-builder-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.dc-builder-row input,
.dc-builder-row select {
    padding: 7px 9px !important;
    font-size: 0.85rem !important;
    flex: 1;
    min-width: 110px;
}

/* --- FOOTER (SIZED LOGO FIX) --- */
.dc-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--dc-border);
    background: #ffffff;
    text-align: center;
    font-size: 0.82rem;
    color: var(--dc-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.dc-footer-logo {
    height: 18px !important;
    width: 18px !important;
    max-width: 18px !important;
    object-fit: contain;
    vertical-align: middle;
}

/* --- UPGRADE MODAL --- */
.dc-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.dc-modal-card {
    position: relative;
    background: #ffffff;
    border-radius: 14px;
    max-width: 460px;
    width: 100%;
    padding: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    text-align: center;
}
.dc-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dc-muted);
    cursor: pointer;
}
.dc-modal-badge {
    display: inline-block;
    background: var(--dc-accent-soft);
    color: var(--dc-accent);
    border: 1px solid var(--dc-accent-border);
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
}
.dc-modal-card h1,
.dc-modal-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: var(--dc-primary);
}
.dc-modal-card p {
    margin: 0 0 20px 0;
    font-size: 0.94rem;
    color: var(--dc-muted);
}
.dc-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* --- RESPONSIVE (MOBILE & TABLET) --- */
@media (max-width: 960px) {
    .dc-results-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 820px) {
    .dc-timelines-grid,
    .dc-choice-grid-2,
    .dc-choice-grid-list {
        grid-template-columns: 1fr;
    }
    .dc-stage { padding: 18px 14px 24px; }
    .dc-wizard-card { padding: 20px 16px; }
    .dnd-container { flex-direction: column; max-height: none; }
}

/* =========================================================
   v2.4.0 ENHANCEMENTS
   ========================================================= */

.dc-choice-grid-list.dc-vertical-flow {
    grid-auto-flow: column;
    grid-template-rows: repeat(5, auto);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dc-choice-grid-list.dc-primary-filings-flow {
    grid-auto-flow: column;
    grid-template-rows: repeat(6, auto);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dc-sub-heading,
.dc-panel .result-heading {
    margin: 0 0 8px 0;
    font-size: 1.02rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dc-primary);
}
.dc-sub-heading:not(:first-child) {
    margin-top: 18px;
}

.dc-panel ol.dc-service-ol {
    margin: 0;
    padding-left: 0;
    list-style: none !important;
    counter-reset: dc-service-step;
}

.dc-panel ol.dc-service-ol > li:not(.filing-checklist-box) {
    counter-increment: dc-service-step;
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.dc-panel ol.dc-service-ol > li:not(.filing-checklist-box)::before {
    content: counter(dc-service-step) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--dc-primary);
}

.dc-panel ol.dc-service-ol > li.filing-checklist-box {
    list-style: none !important;
    margin-left: 0 !important;
}

.dc-two-col-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

@media (max-width: 820px) {
    .dc-choice-grid-list.dc-vertical-flow,
    .dc-choice-grid-list.dc-primary-filings-flow,
    .dc-two-col-grid {
        grid-auto-flow: row;
        grid-template-rows: none;
        grid-template-columns: 1fr;
    }
}

.dc-bracket-sub {
    display: inline-block;
    font-size: 0.86em;
    font-weight: 500;
    color: var(--dc-muted);
    margin-top: 2px;
}
/* --- SCHEDULING INNER PANEL BUFFER --- */
.dc-app-shell .info-panel {
    padding: 16px 20px;
    border-left: 4px solid var(--dc-primary);
    border-radius: 8px;
    margin-top: 10px;
}

/* --- MAIN HEADING VS. SUBHEADING HIERARCHY --- */
.dc-panel h3,
.dc-app-shell .info-panel h3 {
    margin: 0 0 14px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--dc-primary-soft);
    font-size: 1.14rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dc-primary);
}

.dc-panel-accent h3 {
    color: var(--dc-accent);
    border-bottom-color: var(--dc-accent-soft);
}

.dc-sub-heading,
.dc-panel .result-heading {
    margin: 0 0 6px 0;
    font-size: 0.98rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--dc-accent-dark);
}

.dc-sub-heading:not(:first-child) {
    margin-top: 20px;
}

/* --- SCHEDULING INNER PANEL & SECTIONS --- */
.dc-app-shell .info-panel {
    padding: 18px 20px;
    border-left: 4px solid var(--dc-primary);
    border-radius: 8px;
    margin-top: 10px;
    background-color: #f8f9fa;
}

.dc-sched-section {
    line-height: 1.6;
}

.dc-sched-section + .dc-sched-section {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px dashed #ccc;
}

.dc-sched-section p {
    margin: 0;
}

a.dc-top-link-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}
/* --- TOPBAR STACKED CONTROLS --- */
.dc-app-shell .dc-topbar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.dc-app-shell .dc-topbar-account-row,
.dc-app-shell .dc-topbar-nav-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.dc-app-shell .dc-account-btn,
.dc-app-shell a.dc-account-btn,
.dc-app-shell button.dc-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff !important;
    background-color: #2684FF !important;
    border: 1px solid #1f6ed4;
    border-radius: 5px;
    text-decoration: none !important;
    cursor: pointer;
}

.dc-app-shell .dc-account-btn:hover,
.dc-app-shell a.dc-account-btn:hover,
.dc-app-shell button.dc-account-btn:hover {
    background-color: #1f6ed4 !important;
    border-color: #195bb2;
    color: #ffffff !important;
}

.dc-app-shell button.dc-register-btn {
    background-color: #F5C542 !important;
    border-color: #d4a92a;
    color: #1f2937 !important;
}
.dc-app-shell button.dc-register-btn:hover {
    background-color: #d4a92a !important;
    border-color: #b89120;
    color: #1f2937 !important;
}

.dc-app-shell .dc-nav-action-btn {
    padding: 8px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
}

/* --- DISTINCT VISUAL CODING FOR FORM 14 VS. FORM 14A --- */
#dc-app-root .dc-form-14,
#dc-app-root .form-14,
#dc-app-root [data-form="14"],
#dc-app-root [data-form="Form 14"],
#chartPrintArea .dc-form-14,
#chartPrintArea .form-14 {
    background-color: #991b1b;
    color: #ffffff;
    border: 1.5px solid #7f1d1d;
}

#dc-app-root .dc-form-14a,
#dc-app-root .form-14a,
#dc-app-root [data-form="14A"],
#dc-app-root [data-form="Form 14A"],
#chartPrintArea .dc-form-14a,
#chartPrintArea .form-14a {
    background-color: #0f766e;
    color: #ffffff;
    border: 1.5px solid #115e59;
}

#dc-app-root .dc-form-14:hover,
#dc-app-root .form-14:hover {
    background-color: #7f1d1d;
}

#dc-app-root .dc-form-14a:hover,
#dc-app-root .form-14a:hover {
    background-color: #115e59;
}

/* --- MOBILE TOPBAR & BUTTON COMPACT LAYOUT --- */
@media (max-width: 820px) {
    .dc-app-shell .dc-topbar {
        padding: 12px 14px;
        gap: 10px;
        align-items: flex-start;
    }

    .dc-app-shell .dc-topbar-left {
        gap: 4px;
        min-width: 0;
        flex: 1 1 100%;
    }

    .dc-app-shell .dc-brand {
        font-size: 1rem;
        line-height: 1.25;
    }

    .dc-app-shell .dc-top-court-bar {
        font-size: 0.8rem;
        line-height: 1.3;
        flex-wrap: wrap;
    }

    .dc-app-shell .dc-topbar-right {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 8px;
    }

    .dc-app-shell .dc-topbar-account-row,
    .dc-app-shell .dc-topbar-nav-row {
        justify-content: flex-start;
        gap: 6px;
        flex-wrap: nowrap;
    }

    .dc-app-shell .dc-account-btn,
    .dc-app-shell a.dc-account-btn,
    .dc-app-shell button.dc-account-btn {
        padding: 6px 10px;
        font-size: 0.78rem;
        white-space: nowrap;
    }

    .dc-app-shell .dc-top-link-btn,
    .dc-app-shell .dc-nav-action-btn {
        padding: 6px 11px;
        font-size: 0.82rem;
        line-height: 1.2;
        white-space: nowrap;
    }
}

/* Final topbar account colors - keep these after theme/media overrides */
#dc-app-root .dc-account-btn,
#dc-app-root a.dc-account-btn,
#dc-app-root button.dc-account-btn {
    background-color: #2684FF !important;
    border-color: #1f6ed4 !important;
    color: #ffffff !important;
}

#dc-app-root .dc-account-btn:hover,
#dc-app-root a.dc-account-btn:hover,
#dc-app-root button.dc-account-btn:hover {
    background-color: #1f6ed4 !important;
    border-color: #195bb2 !important;
    color: #ffffff !important;
}

#dc-app-root button.dc-register-btn,
#dc-app-root button.dc-register-btn.dc-account-btn {
    background-color: #F5C542 !important;
    border-color: #d4a92a !important;
    color: #1f2937 !important;
}

#dc-app-root button.dc-register-btn:hover,
#dc-app-root button.dc-register-btn.dc-account-btn:hover {
    background-color: #d4a92a !important;
    border-color: #b89120 !important;
    color: #1f2937 !important;
}

.dc-app-shell .dc-topbar-account-row .dc-updates-nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    background-color: #16803c !important;
    color: #ffffff !important;
    border-color: #126a32 !important;
}
.dc-app-shell .dc-topbar-account-row .dc-updates-nav-btn.is-active {
    background-color: #126a32 !important;
    color: #ffffff !important;
    border-color: #0f5a2a !important;
}
.dc-app-shell .dc-topbar-account-row .dc-updates-nav-btn:hover {
    background-color: #126a32 !important;
    color: #ffffff !important;
    border-color: #0f5a2a !important;
}

.dc-court-updates .dc-updates-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.dc-court-updates .dc-pill-btn {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}
.dc-court-updates .dc-pill-btn:hover {
    border-color: #1c4587;
    color: #1c4587;
}
.dc-court-updates .dc-pill-btn.active {
    background: #1c4587;
    border-color: #1c4587;
    color: #ffffff;
}
.dc-court-updates .dc-updates-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.dc-court-updates .dc-updates-filters .dc-field {
    margin-bottom: 0;
}
.dc-court-updates .dc-updates-filters select {
    height: 42px;
    line-height: normal;
    padding: 8px 12px;
}
.dc-court-updates .dc-updates-filters select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}
.dc-court-updates .dc-updates-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #5b667a;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 14px;
}
.dc-court-updates .dc-updates-reset {
    background: none;
    border: none;
    color: #1c4587;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
}
.dc-court-updates .dc-updates-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dc-court-updates .dc-update-card {
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dc-court-updates .dc-update-card-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.dc-court-updates .dc-update-date {
    font-size: 0.78rem;
    font-weight: 700;
    color: #8f4b04;
    background: #fef3e6;
    border: 1px solid #f0cda6;
    padding: 2px 8px;
    border-radius: 999px;
}
.dc-court-updates .dc-update-badge {
    font-size: 0.76rem;
    font-weight: 600;
    color: #1c4587;
    background: #eef3fa;
    padding: 2px 8px;
    border-radius: 999px;
}
.dc-court-updates .dc-update-badge.is-ocj {
    color: #2e7d32;
    background: #e8f5e9;
}
.dc-court-updates .dc-update-badge.is-court {
    color: #475569;
    background: #f1f5f9;
}
.dc-court-updates .dc-update-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1c4587;
    text-decoration: none;
    line-height: 1.4;
}
.dc-court-updates .dc-update-title:hover {
    text-decoration: underline;
}
.dc-court-updates .dc-updates-empty {
    color: #5b667a;
    font-size: 0.92rem;
}
@media (max-width: 720px) {
    .dc-court-updates .dc-updates-filters {
        grid-template-columns: 1fr;
    }
}