/*
==============================================================================
CIRCULATED JUDGMENTS - PUBLIC UI
PREMIUM BLUE - CONSOLIDATED CSS
Date: 17 September 2026

Purpose:
- Single clean replacement for historical V14/V15/V16/FINAL override layers.
- Preserves existing HTML / JS / API behaviour.
- Responsive from large AIO displays down to narrow phones.
- Year selector keeps the JS-driven connected snake layout.
- Mobile records become readable cards at <= 720px.
- Header, browser panel and footer use clean, texture-free blue surfaces.
==============================================================================
*/

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
    --cj-blue-950: #091e3d;
    --cj-blue-900: #102e58;
    --cj-blue-800: #17457e;
    --cj-blue-700: #1c5aa5;
    --cj-blue-600: #2473c8;
    --cj-blue-500: #6a9ed7;

    --cj-mist-300: #bed4eb;
    --cj-mist-200: #dce9f7;
    --cj-mist-100: #edf5fd;
    --cj-mist-050: #f6faff;

    --cj-header-surface: #f9fcff;
    --cj-page: #eef3fb;
    --cj-surface: #ffffff;
    --cj-surface-soft: #f7faff;

    --cj-ink: #1b2d47;
    --cj-ink-soft: #536681;
    --cj-muted: #72829a;

    --cj-line: #d4e1f0;
    --cj-line-soft: #e6edf6;
    --cj-line-strong: #b7cce4;

    --cj-steel: #4c75a6;
    --cj-steel-dark: #345d8c;

    --cj-danger: #934454;
    --cj-danger-bg: #fff5f6;
    --cj-danger-line: #e6c9d0;

    --cj-radius-sm: 9px;
    --cj-radius-md: 13px;
    --cj-radius-lg: 20px;

    --cj-shadow-xs: 0 3px 12px rgba(13, 44, 92, .04);
    --cj-shadow-sm: 0 8px 24px rgba(13, 44, 92, .065);
    --cj-shadow-md: 0 17px 42px rgba(13, 44, 92, .075);
    --cj-shadow-lg: 0 22px 50px rgba(13, 44, 92, .09);

    --cj-focus-ring: 0 0 0 4px rgba(32, 111, 205, .14);
}

/* ==========================================================================
   RESET / BASE
   ========================================================================== */

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

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

html {
    background: var(--cj-page);
    -webkit-text-size-adjust: 100%;
}

body {
    position: relative;
    min-width: 0;
    color: var(--cj-ink);
    background:
        radial-gradient(ellipse at 8% 0%, rgba(155, 198, 246, .18), transparent 30%),
        radial-gradient(ellipse at 92% 11%, rgba(220, 235, 255, .62), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #f0f5fc 48%, #edf2f9 100%);
    font-family: "Noto Sans", "Segoe UI", "Liberation Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

img,
svg {
    max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--cj-blue-700);
    outline-offset: 2px;
}

.cj-app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cj-shell {
    width: calc(100% - 44px);
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   HEADER - PREMIUM BLUE / TEXTURE-FREE
   ========================================================================== */

.cj-header {
    position: relative;
    z-index: 20;
    overflow: hidden;
    flex: 0 0 auto;
    border-bottom: 1px solid #cfdeef;
    background: linear-gradient(112deg, #ffffff 0%, #f7fbff 51%, #eaf3fe 100%);
    box-shadow: 0 10px 34px rgba(12, 41, 85, .09);
}

.cj-header:before {
    /* Remove the old leaf / petal image entirely. */
    content: none;
    display: none;
}

.cj-header:after {
    /* No textures or pseudo-element overlays in the institutional header. */
    content: none;
    display: none;
}

.cj-header-topline,
.cj-header-bar {
    position: relative;
    z-index: 2;
    height: 4px;
    background: linear-gradient(90deg, #091f42 0%, #145ca8 42%, #4aa1e8 52%, #145ca8 68%, #091f42 100%);
}

.cj-header-inner {
    position: relative;
    z-index: 2;
    min-height: 126px;
    display: flex;
    align-items: center;
}

.cj-brand,
.cj-brand-wrap {
    width: 100%;
}

.cj-brand-wrap {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr) 132px;
    align-items: center;
    min-height: 104px;
    gap: 0;
}

.cj-brand-mark,
.cj-brand-icon,
.cj-brand-badge,
.cj-brand-accent,
.cj-brand-balance,
.cj-brand-rule,
.cj-brand-line {
    display: none;
}

/* Disable construction from historical pseudo-element versions. */
.cj-brand:before,
.cj-brand:after,
.cj-brand-wrap:before,
.cj-brand-wrap:after,
.cj-brand-copy:before,
.cj-brand-copy:after {
    content: none;
    display: none;
}

.cj-brand-logo,
.cj-brand-emblem {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 92px;
}

.cj-brand-logo {
    width: 122px;
    justify-self: start;
    justify-content: flex-start;
}

.cj-brand-emblem {
    width: 92px;
    justify-self: end;
    justify-content: flex-end;
}

.cj-brand-logo img,
.cj-brand-emblem img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.cj-brand-logo img {
    width: 118px;
    max-height: 84px;
    filter: drop-shadow(0 4px 7px rgba(11, 43, 89, .10));
}

.cj-brand-emblem img {
    width: 76px;
    max-height: 88px;
    filter: drop-shadow(0 4px 7px rgba(11, 43, 89, .08));
}

.cj-brand-copy {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0 14px;
    text-align: center;
}

.cj-court-title {
    margin: 0;
    color: #102c53;
    font-size: 29px;
    line-height: 1.16;
    font-weight: 800;
    letter-spacing: .22px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .9);
    overflow-wrap: normal;
    word-break: normal;
}

.cj-brand h1,
.cj-brand-copy h1 {
    margin: 8px 0 0;
    color: #31649c;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: 1.45px;
    text-align: center;
    text-transform: uppercase;
}

/* ==========================================================================
   MAIN
   ========================================================================== */

.cj-main {
    flex: 1 0 auto;
    padding-top: 26px;
    padding-bottom: 34px;
}

/* ==========================================================================
   BROWSE PANEL - YEARS / CIVIL / CRIMINAL
   ========================================================================== */

.cj-year-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-bottom: 26px;
    border: 1px solid #cfdff0;
    border-radius: var(--cj-radius-lg);
    background: linear-gradient(150deg, #ffffff 0%, #f8fbff 52%, #f0f6ff 100%);
    box-shadow: var(--cj-shadow-md), inset 0 1px 0 rgba(255, 255, 255, .98);
}

.cj-year-panel:before {
    content: "";
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #102f60, #3185d5 48%, #a2c9f4 50%, #3185d5 52%, #102f60);
}

.cj-year-panel-head,
.cj-year-head {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
    padding: 21px 27px 17px;
    border-bottom: 1px solid #e1eaf6;
    background: transparent;
}

.cj-year-head-left {
    min-width: 0;
}

.cj-section-label,
.cj-section-kicker {
    display: inline-block;
    color: #3978b5;
    font-size: 9px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.cj-panel-title {
    margin: 5px 0 0;
    color: #102f59;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.4px;
    text-shadow: 0 1px 0 #ffffff;
}

.cj-generated {
    display: none;
}

/* Tabs retain their markup and keyboard behavior in the existing browse panel. */
.cj-category-tabs {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
    padding: 17px 27px 0;
}

.cj-category-tab {
    min-width: 0;
    min-height: 46px;
    padding: 10px 15px;
    border: 1px solid #d4e2f2;
    border-radius: 11px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f6fd 100%);
    color: #244b79;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .15px;
    box-shadow: 0 3px 10px rgba(11, 48, 105, .035);
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cj-category-tab:hover,
.cj-category-tab:focus-visible {
    border-color: #80acdf;
    background: #e9f3ff;
    box-shadow: 0 5px 13px rgba(22, 84, 159, .09);
}

.cj-category-tab.is-active {
    border-color: #1b5ca8;
    background: linear-gradient(135deg, #1d68b9 0%, #123b77 100%);
    color: #ffffff;
    box-shadow: 0 6px 17px rgba(17, 69, 137, .19);
}

.cj-prefix-note {
    padding: 0 26px 22px;
    color: #627895;
    font-size: 11px;
    text-align: center;
}

/* ==========================================================================
   CONNECTED YEAR / CASE PREFIX CAPSULES
   ========================================================================== */

.cj-year-grid {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    padding: 22px 26px 25px;
    background: transparent;
    overflow: visible;
}

.cj-year-snake-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 50px;
    gap: 12px;
    margin: 0 0 17px;
}

.cj-year-snake-row:last-child {
    margin-bottom: 0;
}

.cj-year-snake-row.is-full {
    justify-content: space-between;
}

.cj-year-snake-row-forward {
    flex-direction: row;
}

.cj-year-snake-row-reverse {
    flex-direction: row-reverse;
}

/* Partial forward rows anchor left; reverse rows anchor right via row-reverse. */
.cj-year-snake-row-forward.is-partial,
.cj-year-snake-row-reverse.is-partial {
    justify-content: flex-start;
}

.cj-year-shape {
    display: none;
}

.cj-year-connectors {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.cj-year-connector-line {
    display: block;
    fill: none;
    stroke: #93b5dc;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    opacity: .88;
}

.cj-year-connector-wrap {
    stroke: #7fa9d7;
    stroke-width: 1.7;
    stroke-dasharray: none;
    opacity: .9;
}

.cj-year-card,
.cj-year-card-up,
.cj-year-card-down {
    position: relative;
    z-index: 2;
    flex: 0 0 116px;
    width: 116px;
    min-width: 116px;
    max-width: 116px;
    height: 48px;
    min-height: 48px;
    margin: 0;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #cbdcf0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f7ff 100%);
    color: #1b467a;
    box-shadow: 0 4px 10px rgba(12, 54, 116, .06), inset 0 1px 0 #ffffff;
    cursor: pointer;
    overflow: hidden;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.cj-year-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 999px 0 0 999px;
    background: #70a7e0;
    opacity: .95;
}

.cj-year-card:after {
    display: none;
}

.cj-year-card:hover,
.cj-year-card:focus-visible {
    transform: translateY(-1px);
    border-color: #77a5db;
    background: linear-gradient(180deg, #ffffff 0%, #e8f2ff 100%);
    box-shadow: 0 7px 16px rgba(22, 77, 146, .12), inset 0 1px 0 #ffffff;
}

.cj-year-number,
.cj-year-card-up .cj-year-number,
.cj-year-card-down .cj-year-number,
.cj-year-card-all .cj-year-number {
    position: static;
    width: auto;
    margin: 0;
    color: #1b4576;
    font-size: 13px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.15px;
    text-align: center;
    pointer-events: none;
}

.cj-year-count,
.cj-year-card-up .cj-year-count,
.cj-year-card-down .cj-year-count,
.cj-year-card-all .cj-year-count {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 25px;
    max-width: none;
    height: 23px;
    margin: 0;
    padding: 0 7px;
    border: 1px solid #d7e4f3;
    border-radius: 999px;
    background: rgba(255, 255, 255, .84);
    color: #4774a4;
    font-size: 9.5px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 0;
    white-space: nowrap;
    box-shadow: none;
    pointer-events: none;
}

.cj-year-card-all {
    border-color: #1b5eac;
    background: linear-gradient(180deg, #2475ca 0%, #15539b 100%);
    box-shadow: 0 6px 15px rgba(20, 83, 160, .21);
}

.cj-year-card-all:before {
    background: #c4def9;
    opacity: .95;
}

.cj-year-card-all .cj-year-number {
    color: #ffffff;
}

.cj-year-card-all .cj-year-count {
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .14);
    color: #f5f7f9;
}

.cj-year-card-all:hover,
.cj-year-card-all:focus-visible {
    border-color: #124782;
    background: linear-gradient(180deg, #1d65b4 0%, #0e417f 100%);
}

.cj-year-card.is-active:not(.cj-year-card-all) {
    border-color: #5a95d6;
    background: linear-gradient(180deg, #e0efff 0%, #cee4fc 100%);
    box-shadow: 0 7px 17px rgba(18, 79, 150, .15), inset 0 0 0 1px rgba(30, 102, 188, .05);
}

.cj-year-card.is-active:not(.cj-year-card-all):before {
    background: #2069b6;
    opacity: 1;
}

.cj-year-card.is-active:not(.cj-year-card-all) .cj-year-number {
    color: #112742;
}

.cj-year-card.is-active:not(.cj-year-card-all) .cj-year-count {
    border-color: rgba(38, 95, 166, .18);
    background: rgba(255, 255, 255, .62);
    color: #223c5c;
}

.cj-year-card-all.is-active {
    border-color: #0c3974;
    background: linear-gradient(180deg, #1c64b3 0%, #103c77 100%);
    box-shadow: 0 7px 18px rgba(13, 59, 128, .23), 0 0 0 2px rgba(65, 132, 208, .13);
}

/* Civil / Criminal share the Year capsule styling and connector geometry.
   Extra width and smaller typography keep long case prefixes readable. */
.cj-prefix-grid {
    padding-top: 22px;
    padding-bottom: 25px;
}

.cj-year-card.cj-prefix-card {
    flex: 0 0 214px;
    width: 214px;
    min-width: 214px;
    max-width: 214px;
    height: auto;
    min-height: 48px;
    padding: 7px 10px;
    gap: 7px;
}

.cj-prefix-card .cj-year-number.cj-prefix-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 10.2px;
    line-height: 1.22;
    font-weight: 800;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.cj-prefix-card .cj-year-count.cj-prefix-count {
    flex: 0 0 auto;
    min-width: 23px;
    height: 21px;
    padding: 0 6px;
    font-size: 9px;
}

/* Tone classes remain harmless if JS still assigns them. */
.cj-year-tone-1,
.cj-year-tone-2,
.cj-year-tone-3,
.cj-year-tone-4 {
    color: inherit;
}

/* ==========================================================================
   RESULTS CARD / HEADER
   ========================================================================== */

.cj-results-card {
    display: none;
    overflow: hidden;
    border: 1px solid #d3e0ef;
    border-radius: var(--cj-radius-lg);
    background: var(--cj-surface);
    box-shadow: var(--cj-shadow-lg);
}

.cj-results-card.is-visible {
    display: block;
}

.cj-results-topbar,
.cj-results-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 21px 26px;
    border-bottom: 1px solid #e0eaf5;
    background: linear-gradient(110deg, #ffffff 0%, #f0f6fe 100%);
}

.cj-results-topbar:before,
.cj-results-head:before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: #2474c7;
}

.cj-results-heading,
.cj-results-title-wrap {
    min-width: 0;
}

.cj-results-heading h2,
.cj-results-title {
    margin: 3px 0 0;
    color: #12345d;
    font-size: 25px;
    line-height: 1.2;
    font-weight: 750;
    letter-spacing: -.35px;
}

.cj-results-meta,
.cj-results-count {
    flex: 0 0 auto;
    min-width: 86px;
    padding: 7px 11px;
    border: 1px solid #c9d1db;
    border-radius: 999px;
    background: #f3f5f8;
    color: var(--cj-blue-700);
    font-size: 9px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
    white-space: nowrap;
}

/* ==========================================================================
   FILTER ACCORDION
   ========================================================================== */

.cj-filter-accordion {
    margin: 0;
    border-bottom: 1px solid #dee3e9;
    background: var(--cj-surface-soft);
}

.cj-filter-toggle {
    width: 100%;
    min-height: 60px;
    padding: 13px 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 0;
    border-bottom: 1px solid transparent;
    background:
        linear-gradient(180deg, #fbfcfd 0%, #f1f3f6 100%);
    color: #183d6c;
    cursor: pointer;
    text-align: left;
    transition: background .16s ease, border-color .16s ease;
}

.cj-filter-toggle:hover,
.cj-filter-toggle:focus-visible,
.cj-filter-toggle.is-open {
    background: #ebeef1;
}

.cj-filter-toggle.is-open {
    border-bottom-color: #d5dbe3;
}

.cj-filter-toggle-left,
.cj-filter-toggle-right {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.cj-filter-toggle-icon {
    position: relative;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border: 1px solid #879bb1;
    border-radius: 5px;
    background: #ffffff;
}

.cj-filter-toggle-icon:before,
.cj-filter-toggle-icon:after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    height: 1px;
    background: var(--cj-blue-700);
}

.cj-filter-toggle-icon:before {
    top: 6px;
}

.cj-filter-toggle-icon:after {
    top: 11px;
}

.cj-filter-toggle-arrow {
    width: 9px;
    height: 9px;
    margin-left: 3px;
    border-right: 2px solid var(--cj-blue-600);
    border-bottom: 2px solid var(--cj-blue-600);
    transform: rotate(45deg);
    transition: transform .18s ease;
}

.cj-filter-toggle.is-open .cj-filter-toggle-arrow {
    transform: rotate(-135deg);
}

.cj-filter-toggle-text {
    color: #183d6c;
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .05px;
}

.cj-filter-summary {
    color: #5c7fa3;
    font-size: 10px;
    font-weight: 700;
}

.cj-filter-panel {
    background: #ffffff;
}

/* ==========================================================================
   FILTER TOOLBAR
   ========================================================================== */

.cj-toolbar {
    padding: 20px 22px 18px;
    border-bottom: 1px solid #e0e5eb;
    background: #ffffff;
}

.cj-filter-primary {
    display: grid;
    grid-template-columns:
    minmax(240px, 1.6fr)
    repeat(4, minmax(130px, 1fr));
    gap: 13px;
    align-items: end;
}

.cj-filter-primary.is-category-mode {
    grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(130px, 1fr));
}

.cj-field {
    min-width: 0;
}

.cj-field label {
    display: block;
    margin: 0 0 7px;
    color: #4b6886;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.cj-search-wrap,
.cj-date-input-wrap {
    position: relative;
    min-width: 0;
}

.cj-search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -9px;
    border: 2px solid #6687a9;
    border-radius: 50%;
    pointer-events: none;
}

.cj-search-icon:after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -2px;
    width: 6px;
    height: 2px;
    background: #6687a9;
    transform: rotate(45deg);
    transform-origin: left center;
}

.cj-control {
    width: 100%;
    height: 47px;
    min-width: 0;
    padding: 9px 13px;
    border: 1px solid #c9d1db;
    border-radius: 9px;
    background: #ffffff;
    color: var(--cj-ink);
    outline: none;
    box-shadow:
        0 2px 5px rgba(11, 43, 89, .025),
        inset 0 1px 0 rgba(255, 255, 255, .8);
    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

.cj-search-control {
    padding-left: 41px;
}

.cj-control:hover {
    border-color: #a7b6c6;
}

.cj-control:focus {
    border-color: var(--cj-blue-600);
    box-shadow: var(--cj-focus-ring);
}

.cj-control:disabled {
    color: #8a9eb3;
    background: #eff1f4;
    cursor: not-allowed;
}

/* ==========================================================================
   DATE FILTERS
   ========================================================================== */

.cj-date-filter-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.cj-date-filter-card {
    position: relative;
    min-width: 0;
    padding: 15px;
    border: 1px solid #d3d9e1;
    border-radius: var(--cj-radius-md);
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
    box-shadow: var(--cj-shadow-xs);
    overflow: hidden;
}

.cj-date-filter-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--cj-blue-600);
}

.cj-date-filter-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    color: var(--cj-blue-900);
    font-size: 11px;
    font-weight: 800;
}

.cj-date-filter-icon {
    position: relative;
    width: 17px;
    height: 16px;
    border: 1px solid var(--cj-blue-600);
    border-radius: 3px;
}

.cj-date-filter-icon:before {
    content: "";
    position: absolute;
    left: -1px;
    right: -1px;
    top: 4px;
    height: 1px;
    background: var(--cj-blue-600);
}

.cj-date-filter-icon:after {
    content: "";
    position: absolute;
    left: 3px;
    top: -3px;
    width: 9px;
    height: 4px;
    border-left: 1px solid var(--cj-blue-600);
    border-right: 1px solid var(--cj-blue-600);
}

.cj-date-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cj-date-control {
    padding-right: 46px;
    color: #263d5a;
    cursor: pointer;
}

.cj-calendar-btn {
    position: absolute;
    right: 6px;
    top: 6px;
    width: 35px;
    height: 35px;
    border: 0;
    border-radius: 7px;
    background: #eef0f3;
    cursor: pointer;
    transition: background .14s ease, transform .14s ease;
}

.cj-calendar-btn:hover,
.cj-calendar-btn:focus-visible {
    background: #e1e5eb;
    transform: translateY(-1px);
}

.cj-calendar-btn:before {
    content: "";
    position: absolute;
    left: 10px;
    top: 10px;
    width: 14px;
    height: 13px;
    border: 1px solid var(--cj-blue-600);
    border-radius: 2px;
}

.cj-calendar-btn:after {
    content: "";
    position: absolute;
    left: 10px;
    top: 14px;
    width: 14px;
    height: 1px;
    background: var(--cj-blue-600);
}

/* ==========================================================================
   TOOLBAR ACTIONS
   ========================================================================== */

.cj-toolbar-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 15px;
}

.cj-btn {
    min-height: 44px;
    padding: 0 19px;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .35px;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        background .15s ease,
        border-color .15s ease;
}

.cj-btn:hover,
.cj-btn:focus-visible {
    transform: translateY(-1px);
}

.cj-btn-primary {
    border-color: #1c5ba5;
    background: linear-gradient(135deg, #2678c9 0%, #174a8c 100%);
    color: #ffffff;
    box-shadow: 0 7px 17px rgba(15, 66, 139, .18);
}

.cj-btn-primary:hover,
.cj-btn-primary:focus-visible {
    background: linear-gradient(135deg, #1e66b4 0%, #103a73 100%);
}

.cj-btn-secondary {
    border-color: #c7d1db;
    background: #f5f6f8;
    color: #496581;
}

.cj-btn-secondary:hover,
.cj-btn-secondary:focus-visible {
    border-color: #a8b7c7;
    background: #edf0f3;
}

/* ==========================================================================
   ACTIVE FILTERS
   ========================================================================== */

.cj-active-filters {
    display: none;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 22px;
    border-bottom: 1px solid #d6dce4;
    background: #f8f9fb;
}

.cj-active-filters-label {
    color: var(--cj-blue-700);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}

.cj-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.cj-filter-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    max-width: 100%;
    padding: 4px 9px;
    border: 1px solid #c8d1db;
    border-radius: 999px;
    background: #eef1f4;
    color: #36567d;
    font-size: 9px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.cj-filter-chip strong {
    color: var(--cj-blue-800);
}

.cj-filter-chip-all {
    border-color: var(--cj-blue-600);
    background: #dde2e9;
    color: var(--cj-blue-900);
}

.cj-clear-filters {
    margin-left: auto;
    padding: 4px;
    border: 0;
    background: transparent;
    color: var(--cj-blue-700);
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ==========================================================================
   TABLE / RECORDS
   ========================================================================== */

.cj-table-wrap {
    max-width: 100%;
    padding: 18px 18px 9px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #eef1f4;
    scrollbar-width: thin;
    scrollbar-color: #739bc6 #eef4fb;
}

.cj-table {
    width: 100%;
    min-width: 1110px;
    border: 1px solid #c9d1db;
    border-radius: 11px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    overflow: hidden;
    box-shadow: var(--cj-shadow-sm);
}

.cj-table thead,
.cj-table tbody {
    display: block;
    width: 100%;
}

.cj-table thead tr,
.cj-record-meta-grid {
    display: grid;
    grid-template-columns:
        58px
        minmax(180px, 1.05fr)
        minmax(280px, 1.65fr)
        minmax(150px, .88fr)
        118px
        126px
        88px;
    align-items: stretch;
    width: 100%;
}

.cj-table thead tr {
    min-height: 46px;
    background: var(--cj-blue-800);
}

.cj-table thead th {
    display: flex;
    align-items: center;
    min-width: 0;
    width: auto;
    margin: 0;
    padding: 13px 12px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, .11);
    background: linear-gradient(180deg, #194f8e 0%, #102f5a 100%);
    color: #ffffff;
    font-size: 9.8px;
    line-height: 1.2;
    font-weight: 850;
    letter-spacing: .75px;
    text-transform: uppercase;
    white-space: nowrap;
}

.cj-table thead th:first-child {
    justify-content: center;
    border-radius: 10px 0 0 0;
}

.cj-table thead th:last-child {
    justify-content: center;
    border-right: 0;
    border-radius: 0 10px 0 0;
}

.cj-table tbody tr {
    display: block;
    width: 100%;
}

.cj-record-main.cj-record-single > .cj-record-cell {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

.cj-record-main.cj-record-odd .cj-record-box {
    background: #ffffff;
}

.cj-record-main.cj-record-even .cj-record-box {
    background: #f8fbff;
}

.cj-record-box {
    position: relative;
    border-bottom: 8px solid #e4e8ed;
    transition: background .16s ease, box-shadow .16s ease;
}

.cj-record-box:before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    bottom: 8px;
    width: 3px;
    background: transparent;
    transition: background .16s ease;
}

.cj-record-main:hover .cj-record-box:before {
    background: var(--cj-blue-600);
}

.cj-record-meta {
    min-width: 0;
    width: auto;
    padding: 15px 12px 12px;
    border-right: 1px solid #dce1e7;
    color: #243953;
    font-size: 12.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.cj-record-meta:last-child {
    border-right: 0;
}

.cj-col-sno {
    width: 58px;
    text-align: center;
    color: #51708f;
    font-weight: 800;
}

.cj-col-date {
    width: 118px;
    white-space: nowrap;
}

.cj-col-action {
    width: 88px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.cj-court {
    min-width: 180px;
}

.cj-case {
    min-width: 280px;
}

.cj-letter {
    min-width: 150px;
    color: #2c4768;
    font-weight: 700;
}

.cj-court-name {
    display: block;
    margin-bottom: 7px;
    color: #21354e;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.42;
}

.cj-case-number {
    display: block;
    margin-bottom: 8px;
    color: #102744;
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.42;
}

.cj-case-type-line {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.cj-mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 21px;
    margin: 0;
    padding: 3px 7px;
    border: 1px solid #ced6df;
    border-radius: 4px;
    background: #f1f3f6;
    color: #4b6885;
    font-size: 8.5px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .15px;
}

/* ==========================================================================
   SUBJECT - SAME RECORD, FULL WIDTH
   ========================================================================== */

.cj-record-subject-inline {
    position: relative;
    display: grid;
    grid-template-columns: 106px minmax(0, 1fr);
    align-items: stretch;
    margin: 0 13px 14px;
    border: 1px solid #ced5de;
    border-radius: 7px;
    background:
        linear-gradient(
            100deg,
            #f3f8ff 0%,
            #f8fbff 38%,
            #f8fbff 100%
        );
    box-shadow:
        0 4px 12px rgba(11, 43, 89, .04),
        inset 0 1px 0 rgba(255, 255, 255, .90);
    overflow: hidden;
}

.cj-record-subject-inline:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background:
        linear-gradient(
            180deg,
            #708fae,
            #213f64
        );
}

.cj-record-subject-inline .cj-subject-label-text {
    display: flex;
    align-items: center;
    padding: 13px 14px 13px 17px;
    border-right: 1px solid #d3d9e1;
    background: rgba(39, 102, 175, .075);
    color: #35557d;
    font-size: 8.5px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}

.cj-record-subject-inline .cj-subject-text {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 12px 17px;
    color: #263c58;
    font-size: 12.5px;
    line-height: 1.58;
    font-weight: 550;
    word-break: normal;
    overflow-wrap: break-word;
}

/* Historical subject containers are not part of the current renderer. */
.cj-record-subject,
.cj-subject-cell,
.cj-subject-card,
.cj-case-subject-card,
.cj-case-subject-label,
.cj-case-subject-text {
    display: none;
}

/* ==========================================================================
   PDF BUTTON
   ========================================================================== */

.cj-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 62px;
    min-height: 32px;
    padding: 7px 10px;
    border: 1px solid #1b5a9a;
    border-radius: 6px;
    background: linear-gradient(180deg, #3486cf 0%, #1b5ca8 100%);
    color: #ffffff;
    text-decoration: none;
    font-size: 9px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: .55px;
    box-shadow: 0 5px 12px rgba(20, 82, 155, .19);
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}

.cj-view-btn:hover,
.cj-view-btn:focus-visible {
    border-color: #164c8c;
    background: linear-gradient(180deg, #2677c3 0%, #164a90 100%);
    color: #ffffff;
    box-shadow: 0 8px 17px rgba(20, 82, 155, .24);
    transform: translateY(-1px);
}

/* ==========================================================================
   LOADING / EMPTY / ERROR STATES
   ========================================================================== */

.cj-state {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 18px;
    padding: 16px;
    border: 1px dashed #d3dae2;
    border-radius: 11px;
    background: #f7f8fa;
    color: #517090;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}

.cj-state-error {
    border-color: var(--cj-danger-line);
    background: var(--cj-danger-bg);
    color: var(--cj-danger);
}

.cj-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    border: 2px solid #d3dae2;
    border-top-color: var(--cj-blue-700);
    border-radius: 50%;
    animation: cj-spin .7s linear infinite;
}

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

.cj-empty,
.cj-empty-initial {
    padding: 46px 20px;
    text-align: center;
    background: #ffffff;
    color: #517090;
    font-size: 11px;
    font-weight: 700;
}

.cj-empty-initial {
    margin: 18px 20px 20px;
    border: 1px dashed #d3dae2;
    border-radius: 11px;
    background: #f7f8fa;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.cj-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 72px;
    padding: 16px 20px 19px;
    border-top: 1px solid #dce1e7;
    background: #fbfbfc;
}

.cj-page-btn {
    min-width: 38px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #c8d1db;
    border-radius: 7px;
    background: #f6f7f9;
    color: #45607c;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
    transition:
        background .14s ease,
        border-color .14s ease,
        color .14s ease,
        box-shadow .14s ease;
}

.cj-page-btn:hover:not([disabled]),
.cj-page-btn:focus-visible:not([disabled]) {
    border-color: #96a8bb;
    background: #eaedf1;
    color: var(--cj-blue-900);
}

.cj-page-btn.is-active {
    border-color: var(--cj-blue-800);
    background: var(--cj-blue-800);
    color: #ffffff;
    box-shadow: 0 5px 12px rgba(18, 65, 128, .18);
}

.cj-page-btn[disabled] {
    opacity: .42;
    cursor: default;
}

.cj-page-gap {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 3px;
    color: #869ab0;
    font-weight: 800;
}

/* ==========================================================================
   OFFLINE DATE PICKER
   ========================================================================== */

.cj-datepicker-popover {
    position: absolute;
    z-index: 99999;
    width: 310px;
    max-width: calc(100vw - 24px);
    padding: 13px;
    border: 1px solid #c8d1db;
    border-radius: var(--cj-radius-md);
    background: #ffffff;
    box-shadow:
        0 22px 52px rgba(13, 36, 72, .17),
        inset 0 1px 0 #ffffff;
}

.cj-datepicker-head {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.cj-datepicker-nav {
    width: 34px;
    height: 34px;
    border: 1px solid #d1d8e0;
    border-radius: 7px;
    background: #f2f4f7;
    color: var(--cj-blue-800);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.cj-datepicker-nav:hover,
.cj-datepicker-nav:focus-visible {
    background: #e7ebef;
}

.cj-datepicker-selects {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 6px;
    min-width: 0;
}

.cj-datepicker-select {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 4px 7px;
    border: 1px solid #d0d7df;
    border-radius: 7px;
    background: #ffffff;
    color: #29415f;
    font-size: 10px;
    font-weight: 700;
}

.cj-datepicker-week,
.cj-datepicker-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.cj-datepicker-week {
    margin-bottom: 4px;
}

.cj-datepicker-week span {
    padding: 5px 0;
    text-align: center;
    color: var(--cj-blue-600);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.cj-datepicker-blank,
.cj-datepicker-day {
    height: 34px;
}

.cj-datepicker-day {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #273e5b;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.cj-datepicker-day:hover,
.cj-datepicker-day:focus-visible {
    background: #e8ebef;
    color: var(--cj-blue-900);
}

.cj-datepicker-day.is-today {
    box-shadow: inset 0 0 0 1px #6284a7;
}

.cj-datepicker-day.is-selected {
    background: var(--cj-blue-800);
    color: #ffffff;
}

.cj-datepicker-day.is-disabled,
.cj-datepicker-day[disabled] {
    color: #b7c3d0;
    background: #f2f4f7;
    cursor: not-allowed;
    opacity: .58;
}

.cj-datepicker-nav[disabled] {
    color: #adbbc9;
    background: #f0f2f5;
    cursor: not-allowed;
    opacity: .55;
}

.cj-datepicker-foot {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e2e6eb;
}

.cj-datepicker-foot button {
    height: 32px;
    padding: 0 11px;
    border: 1px solid #ced5de;
    border-radius: 7px;
    background: #f3f5f7;
    color: #51627a;
    cursor: pointer;
    font-size: 9px;
    font-weight: 800;
}

.cj-datepicker-foot button:hover,
.cj-datepicker-foot button:focus-visible {
    background: #e9ecf0;
}

/* ==========================================================================
   FOOTER - PREMIUM NAVY / TEXTURE-FREE
   ========================================================================== */

.cj-footer {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border-top: 3px solid #4a95df;
    background: linear-gradient(110deg, #091d3b 0%, #12335c 50%, #0b2547 100%);
    box-shadow: 0 -6px 20px rgba(13, 42, 82, .07);
}

.cj-footer:before {
    /* Remove the repeated petal / leaf texture. */
    content: none;
    display: none;
}

.cj-footer:after {
    /* No image or gradient overlay above footer text. */
    content: none;
    display: none;
}

.cj-footer-inner {
    position: relative;
    z-index: 2;
    min-height: 40px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    color: #d6e5f7;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.cj-footer-inner strong {
    color: #ffffff;
    font-weight: 700;
}

.cj-footer-separator {
    margin: 0 6px;
    color: #74a9e1;
}

/* Legacy rule element, if still present, is intentionally suppressed. */
.cj-footer-rule {
    display: none;
}

/* ==========================================================================
   RESPONSIVE - LARGE AIO
   ========================================================================== */

@media (min-width: 1500px) {
    .cj-shell {
        width: calc(100% - 64px);
        max-width: 1720px;
    }

    .cj-header-inner {
        min-height: 132px;
    }

    .cj-brand-wrap {
        grid-template-columns: 146px minmax(0, 1fr) 146px;
        min-height: 110px;
    }

    .cj-brand-logo {
        width: 136px;
    }

    .cj-brand-emblem {
        width: 102px;
    }

    .cj-brand-logo img {
        width: 132px;
        max-height: 92px;
    }

    .cj-brand-emblem img {
        width: 82px;
        max-height: 96px;
    }

    .cj-court-title {
        font-size: 31px;
        line-height: 1.14;
    }

    .cj-brand-copy h1 {
        font-size: 15px;
    }

    .cj-year-panel-head,
    .cj-year-head {
        padding-left: 32px;
        padding-right: 32px;
    }

    .cj-year-grid {
        padding: 24px 34px 27px;
    }
}

/* ==========================================================================
   RESPONSIVE - LAPTOP / TABLET
   ========================================================================== */

@media (max-width: 1180px) {
    .cj-shell {
        width: calc(100% - 34px);
    }

    .cj-brand-wrap {
        grid-template-columns: 106px minmax(0, 1fr) 106px;
        min-height: 92px;
    }

    .cj-brand-logo,
    .cj-brand-emblem {
        height: 78px;
    }

    .cj-brand-logo {
        width: 98px;
    }

    .cj-brand-emblem {
        width: 78px;
    }

    .cj-brand-logo img {
        width: 94px;
        max-height: 68px;
    }

    .cj-brand-emblem img {
        width: 62px;
        max-height: 72px;
    }

    .cj-court-title {
        font-size: 24px;
        line-height: 1.17;
    }

    .cj-brand-copy h1 {
        font-size: 12.5px;
    }

    .cj-year-grid {
        padding-left: 20px;
        padding-right: 20px;
    }

    .cj-year-card.cj-prefix-card {
        flex-basis: 198px;
        width: 198px;
        min-width: 198px;
        max-width: 198px;
    }

    .cj-year-snake-row {
        gap: 10px;
    }

    .cj-year-card,
    .cj-year-card-up,
    .cj-year-card-down {
        flex-basis: 112px;
        width: 112px;
        min-width: 112px;
        max-width: 112px;
    }

    .cj-filter-primary,
    .cj-filter-primary.is-category-mode {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cj-field-search {
        grid-column: span 2;
    }
}

/* Tablet table remains horizontally scrollable. */
@media (max-width: 1100px) and (min-width: 721px) {
    .cj-table {
        min-width: 980px;
    }

    .cj-table thead tr,
    .cj-record-meta-grid {
        grid-template-columns:
            54px
            minmax(160px, 1fr)
            minmax(235px, 1.45fr)
            minmax(135px, .82fr)
            105px
            112px
            76px;
    }

    .cj-table thead th {
        padding-left: 10px;
        padding-right: 10px;
        font-size: 9.2px;
    }

    .cj-record-meta {
        padding: 13px 10px 11px;
        font-size: 11.6px;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET / LARGE PHONE
   ========================================================================== */

@media (max-width: 860px) {
    .cj-year-panel-head,
    .cj-year-head,
    .cj-results-topbar,
    .cj-results-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .cj-results-meta,
    .cj-results-count {
        align-self: flex-start;
    }

    .cj-filter-primary,
    .cj-filter-primary.is-category-mode,
    .cj-date-filter-row {
        grid-template-columns: 1fr;
    }

    .cj-field-search {
        grid-column: auto;
    }

    .cj-filter-toggle {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cj-filter-toggle-right {
        width: 100%;
        justify-content: space-between;
    }

    .cj-toolbar-actions {
        justify-content: stretch;
    }

    .cj-toolbar-actions .cj-btn {
        flex: 1 1 0;
    }
}

@media (max-width: 760px) {
    .cj-shell {
        width: calc(100% - 22px);
    }

    .cj-header-inner {
        min-height: 104px;
    }

    .cj-brand-wrap {
        grid-template-columns: 66px minmax(0, 1fr) 66px;
        min-height: 82px;
    }

    .cj-brand-logo,
    .cj-brand-emblem {
        height: 62px;
    }

    .cj-brand-logo {
        width: 60px;
    }

    .cj-brand-emblem {
        width: 52px;
    }

    .cj-brand-logo img {
        width: 58px;
        max-height: 46px;
    }

    .cj-brand-emblem img {
        width: 40px;
        max-height: 50px;
    }

    .cj-brand-copy {
        padding: 0 5px;
    }

    .cj-court-title {
        font-size: 17px;
        line-height: 1.20;
        letter-spacing: .02px;
    }

    .cj-brand-copy h1 {
        margin-top: 5px;
        font-size: 10.5px;
        line-height: 1.2;
        letter-spacing: .72px;
    }

    .cj-main {
        padding-top: 18px;
        padding-bottom: 24px;
    }

    .cj-year-panel-head,
    .cj-year-head {
        padding: 17px 16px 14px;
    }

    .cj-category-tabs {
        padding: 12px 14px 0;
        gap: 5px;
    }

    .cj-category-tab {
        min-height: 42px;
        padding: 9px 5px;
        font-size: 10px;
    }

    .cj-panel-title {
        font-size: 20px;
    }

    .cj-year-grid {
        padding: 18px 14px 21px;
    }

    .cj-year-card.cj-prefix-card {
        flex-basis: 180px;
        width: 180px;
        min-width: 180px;
        max-width: 180px;
        min-height: 46px;
    }

    .cj-year-snake-row {
        min-height: 46px;
        gap: 8px;
        margin-bottom: 14px;
    }

    .cj-year-card,
    .cj-year-card-up,
    .cj-year-card-down {
        flex-basis: 108px;
        width: 108px;
        min-width: 108px;
        max-width: 108px;
        height: 45px;
        min-height: 45px;
        padding-left: 10px;
        padding-right: 9px;
        gap: 6px;
    }

    .cj-year-number {
        font-size: 13px;
    }

    .cj-year-count {
        min-width: 23px;
        height: 21px;
        padding: 0 6px;
        font-size: 9px;
    }

    .cj-results-topbar,
    .cj-results-head {
        padding-left: 18px;
        padding-right: 18px;
    }

    .cj-toolbar {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cj-active-filters {
        padding-left: 16px;
        padding-right: 16px;
    }

    .cj-clear-filters {
        margin-left: 0;
    }
}

/* ==========================================================================
   RESPONSIVE - MOBILE RECORD CARDS
   ========================================================================== */

@media (max-width: 720px) {
    .cj-table-wrap {
        padding: 10px;
        overflow-x: visible;
        background: #eef4fb;
    }

    .cj-table {
        min-width: 0;
        width: 100%;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .cj-table thead {
        display: none;
    }

    .cj-table tbody,
    .cj-table tbody tr {
        display: block;
        width: 100%;
    }

    .cj-record-main {
        margin-bottom: 11px;
    }

    .cj-record-box {
        border: 1px solid #ced5de;
        border-radius: var(--cj-radius-md);
        background: #ffffff;
        box-shadow: 0 7px 18px rgba(11, 43, 89, .055);
        overflow: hidden;
    }

    .cj-record-box:before {
        bottom: 0;
    }

    .cj-record-meta-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .cj-record-meta {
        position: relative;
        width: auto;
        min-width: 0;
        padding: 27px 13px 11px;
        border-right: 1px solid #e2e7ec;
        border-bottom: 1px solid #e2e7ec;
        font-size: 11.5px;
        line-height: 1.48;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .cj-record-meta:before {
        position: absolute;
        left: 13px;
        top: 9px;
        color: #537393;
        font-size: 7.8px;
        line-height: 1;
        font-weight: 850;
        letter-spacing: .85px;
        text-transform: uppercase;
    }

    .cj-record-meta:nth-child(1):before { content: "S.No."; }
    .cj-record-meta:nth-child(2):before { content: "Court"; }
    .cj-record-meta:nth-child(3):before { content: "Case Details"; }
    .cj-record-meta:nth-child(4):before { content: "Letter No."; }
    .cj-record-meta:nth-child(5):before { content: "Letter Date"; }
    .cj-record-meta:nth-child(6):before { content: "Judgment Date"; }
    .cj-record-meta:nth-child(7):before { content: "View"; }

    .cj-record-meta:nth-child(1) {
        grid-column: 1 / 2;
        text-align: left;
    }

    .cj-record-meta:nth-child(2) {
        grid-column: 2 / 3;
        border-right: 0;
    }

    .cj-record-meta:nth-child(3),
    .cj-record-meta:nth-child(4),
    .cj-record-meta:nth-child(7) {
        grid-column: 1 / -1;
        border-right: 0;
    }

    .cj-record-meta:nth-child(6) {
        border-right: 0;
    }

    .cj-record-meta:nth-child(7) {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        border-bottom: 0;
    }

    .cj-court,
    .cj-case,
    .cj-letter,
    .cj-col-date,
    .cj-col-action,
    .cj-col-sno {
        min-width: 0;
        width: auto;
    }

    .cj-record-subject-inline {
        grid-template-columns: 1fr;
        margin: 10px 10px 11px;
        border-radius: 8px;
    }

    .cj-record-subject-inline .cj-subject-label-text {
        padding: 9px 12px 8px 15px;
        border-right: 0;
        border-bottom: 1px solid #dce1e7;
    }

    .cj-record-subject-inline .cj-subject-text {
        padding: 11px 13px 13px 15px;
        font-size: 11.5px;
        line-height: 1.55;
    }

    .cj-pagination {
        min-height: 64px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .cj-page-btn {
        min-width: 36px;
        height: 35px;
    }

    .cj-footer-inner {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 10px;
    }

    .cj-footer-separator {
        display: none;
    }
}

/* ==========================================================================
   RESPONSIVE - ORDINARY PHONES
   ========================================================================== */

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

    .cj-header-inner {
        min-height: 100px;
    }

    .cj-brand-wrap {
        grid-template-columns: 50px minmax(0, 1fr) 50px;
        min-height: 78px;
    }

    .cj-brand-logo,
    .cj-brand-emblem {
        height: 52px;
    }

    .cj-brand-logo {
        width: 46px;
    }

    .cj-brand-emblem {
        width: 42px;
    }

    .cj-brand-logo img {
        width: 44px;
        max-height: 36px;
    }

    .cj-brand-emblem img {
        width: 32px;
        max-height: 40px;
    }

    .cj-brand-copy {
        padding: 0 2px;
    }

    .cj-court-title {
        font-size: 14.5px;
        line-height: 1.19;
        letter-spacing: 0;
    }

    .cj-brand-copy h1 {
        font-size: 9.5px;
        letter-spacing: .52px;
    }

    .cj-year-panel {
        background-size: auto, 260px auto;
    }

    .cj-year-grid {
        padding: 16px 9px 19px;
    }

    .cj-year-card.cj-prefix-card {
        flex-basis: 174px;
        width: 174px;
        min-width: 174px;
        max-width: 174px;
        min-height: 43px;
    }

    .cj-category-tabs {
        padding-left: 10px;
        padding-right: 10px;
    }

    .cj-year-snake-row {
        gap: 7px;
        margin-bottom: 13px;
    }

    .cj-year-card,
    .cj-year-card-up,
    .cj-year-card-down {
        flex-basis: 104px;
        width: 104px;
        min-width: 104px;
        max-width: 104px;
        height: 43px;
        min-height: 43px;
        padding-left: 8px;
        padding-right: 7px;
        gap: 5px;
    }

    .cj-year-number {
        font-size: 12px;
    }

    .cj-year-count {
        min-width: 21px;
        height: 20px;
        padding-left: 5px;
        padding-right: 5px;
        font-size: 8.7px;
    }

    .cj-filter-toggle {
        padding-left: 15px;
        padding-right: 15px;
    }

    .cj-toolbar {
        padding: 16px 12px 14px;
    }

    .cj-date-filter-card {
        padding: 13px 11px;
    }

    .cj-date-range-grid {
        grid-template-columns: 1fr;
    }

    .cj-toolbar-actions {
        flex-direction: column;
    }

    .cj-toolbar-actions .cj-btn {
        width: 100%;
    }

    .cj-active-filters {
        padding: 10px 12px;
    }

    .cj-record-meta-grid {
        grid-template-columns: 1fr;
    }

    .cj-record-meta:nth-child(n) {
        grid-column: 1 / -1;
        border-right: 0;
    }

    .cj-results-heading h2,
    .cj-results-title {
        font-size: 20px;
    }
}

/* ==========================================================================
   RESPONSIVE - VERY NARROW PHONES
   ========================================================================== */

@media (max-width: 360px) {
    .cj-shell {
        width: calc(100% - 10px);
    }

    .cj-brand-wrap {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
    }

    .cj-brand-logo {
        width: 39px;
    }

    .cj-brand-emblem {
        width: 36px;
    }

    .cj-brand-logo img {
        width: 38px;
        max-height: 31px;
    }

    .cj-brand-emblem img {
        width: 28px;
        max-height: 34px;
    }

    .cj-court-title {
        font-size: 13px;
        line-height: 1.18;
    }

    .cj-brand-copy h1 {
        font-size: 8.8px;
        letter-spacing: .42px;
    }

    .cj-year-grid {
        padding-left: 6px;
        padding-right: 6px;
    }

    .cj-year-card.cj-prefix-card {
        flex-basis: 166px;
        width: 166px;
        min-width: 166px;
        max-width: 166px;
    }

    .cj-year-snake-row {
        gap: 5px;
    }

    .cj-year-card,
    .cj-year-card-up,
    .cj-year-card-down {
        flex-basis: 99px;
        width: 99px;
        min-width: 99px;
        max-width: 99px;
        padding-left: 6px;
        padding-right: 5px;
    }

    .cj-year-number {
        font-size: 11.5px;
    }

    .cj-year-count {
        min-width: 20px;
        padding-left: 4px;
        padding-right: 4px;
        font-size: 8.4px;
    }

    .cj-datepicker-popover {
        width: calc(100vw - 12px);
        max-width: calc(100vw - 12px);
        padding: 10px;
    }
}

/* ==========================================================================
   ACCESSIBILITY / MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
    body {
        background: #ffffff;
    }

    .cj-header,
    .cj-footer,
    .cj-filter-accordion,
    .cj-pagination,
    .cj-year-panel {
        box-shadow: none;
    }

    .cj-table-wrap {
        overflow: visible;
        background: #ffffff;
    }

    .cj-table {
        min-width: 0;
        box-shadow: none;
    }
}
