/*
=================================================
DC Case Workspace Fase 1
=================================================
*/

.dc-cw-page {
    padding: 38px 18px 60px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, .06), transparent 34%),
        #f3f6fb;
}

.dc-cw-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.dc-cw-side,
.dc-cw-card,
.dc-cw-empty {
    border: 1px solid #d8e4f5;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

.dc-cw-side {
    position: sticky;
    top: 88px;
    padding: 24px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, .14), transparent 34%),
        linear-gradient(145deg, #ffffff 0%, #f8fbff 58%, #eff6ff 100%);
}

.dc-cw-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .35px;
}

.dc-cw-side h1 {
    margin: 16px 0 10px;
    color: #071225;
    font-size: 34px;
    line-height: 1.02;
    letter-spacing: -1.2px;
    font-weight: 950;
}

.dc-cw-side p {
    color: #53657d;
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
}

.dc-cw-side-stats {
    display: grid;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 16px;
}

.dc-cw-side-stats div,
.dc-cw-flow {
    padding: 13px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    border: 1px solid #d9e6f7;
}

.dc-cw-side-stats strong {
    display: block;
    color: #071225;
    font-size: 17px;
    line-height: 1.15;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.dc-cw-side-stats span {
    display: block;
    margin-top: 5px;
    color: #53657d;
    font-size: 11px;
    font-weight: 800;
}

.dc-cw-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 16px 0;
}

.dc-cw-flow strong {
    display: block;
    width: 100%;
    color: #071225;
    font-size: 12px;
    font-weight: 950;
}

.dc-cw-flow span {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 10px;
    background: #071225;
    color: #ffffff;
    font-size: 10px;
    font-weight: 950;
}

.dc-cw-main {
    min-width: 0;
    display: grid;
    gap: 16px;
}

.dc-cw-card {
    padding: 22px;
}

.dc-cw-card-head {
    margin-bottom: 18px;
}

.dc-cw-card-head h2,
.dc-cw-case-hero h2 {
    margin: 12px 0 6px;
    color: #071225;
    font-size: 28px;
    line-height: 1.08;
    letter-spacing: -.8px;
    font-weight: 950;
}

.dc-cw-card-head p,
.dc-cw-case-hero p {
    margin: 0;
    color: #53657d;
    font-size: 13px;
    line-height: 1.55;
}

.dc-cw-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px auto;
    gap: 10px;
    margin-bottom: 16px;
}

.dc-cw-filters input,
.dc-cw-filters select,
.dc-cw-form input,
.dc-cw-form select,
.dc-cw-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd8ea;
    border-radius: 13px;
    background: #ffffff;
    color: #071225;
    font-size: 13px;
    outline: none;
    box-shadow: none;
}

.dc-cw-form textarea {
    resize: vertical;
}

.dc-cw-form {
    display: grid;
    gap: 13px;
}

.dc-cw-form label {
    display: grid;
    gap: 7px;
}

.dc-cw-form label span {
    color: #071225;
    font-size: 12px;
    font-weight: 950;
}

.dc-cw-primary,
.dc-cw-secondary {
    width: auto;
    min-width: 140px;
    max-width: 230px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 950;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
}

.dc-cw-primary {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff !important;
}

.dc-cw-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}

.dc-cw-secondary {
    border: 1px solid #cbd8ea;
    background: #ffffff;
    color: #0f172a !important;
}

.dc-cw-secondary:hover {
    background: #f8fafc;
    color: #1d4ed8 !important;
    border-color: #bfdbfe;
    transform: translateY(-1px);
}

.dc-cw-case-list {
    display: grid;
    gap: 12px;
}

.dc-cw-case-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    padding: 15px;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    border-radius: 18px;
}

.dc-cw-case-row h3 {
    margin: 8px 0 4px;
    color: #071225;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 950;
}

.dc-cw-case-row p {
    margin: 0;
    color: #53657d;
    font-size: 12px;
}

.dc-cw-row-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dc-cw-row-meta span {
    display: inline-flex;
    justify-content: center;
    padding: 7px 9px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe4ef;
    color: #071225;
    font-size: 11px;
    font-weight: 900;
}

.dc-cw-status {
    display: inline-flex;
    width: fit-content;
    padding: 6px 9px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 950;
    background: #dbeafe;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
}

.dc-status-closed {
    background: #dcfce7;
    color: #166534;
    border-color: #bbf7d0;
}

.dc-status-urgent,
.dc-status-documents {
    background: #ffedd5;
    color: #9a3412;
    border-color: #fed7aa;
}

.dc-cw-case-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.dc-cw-hero-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dc-cw-hero-meta span {
    display: inline-flex;
    padding: 8px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 950;
}

.dc-cw-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.dc-cw-client {
    display: grid;
    gap: 10px;
}

.dc-cw-client div,
.dc-cw-metric {
    padding: 13px 14px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
}

.dc-cw-client span,
.dc-cw-metric span {
    display: block;
    color: #53657d;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.dc-cw-client strong,
.dc-cw-metric strong {
    display: block;
    margin-top: 4px;
    color: #071225;
    font-size: 13px;
    font-weight: 950;
    overflow-wrap: anywhere;
}

.dc-cw-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dc-cw-metric strong {
    font-size: 24px;
}

.dc-cw-mini-list {
    display: grid;
    gap: 10px;
}

.dc-cw-mini-list div,
.dc-cw-empty-mini {
    padding: 13px 14px;
    border-radius: 15px;
    background: #f8fafc;
    border: 1px solid #dbe4ef;
}

.dc-cw-mini-list strong,
.dc-cw-empty-mini strong {
    display: block;
    color: #071225;
    font-size: 13px;
    font-weight: 950;
}

.dc-cw-mini-list span,
.dc-cw-empty-mini span {
    display: block;
    margin-top: 4px;
    color: #53657d;
    font-size: 12px;
}

.dc-cw-timeline {
    position: relative;
    display: grid;
    gap: 14px;
}

.dc-cw-time-item {
    position: relative;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
}

.dc-cw-time-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #2563eb;
    border: 3px solid #dbeafe;
    margin-top: 5px;
}

.dc-cw-time-item strong {
    display: block;
    color: #071225;
    font-size: 14px;
    font-weight: 950;
}

.dc-cw-time-item p {
    margin: 5px 0;
    color: #53657d;
    font-size: 13px;
    line-height: 1.55;
}

.dc-cw-time-item span {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.dc-cw-alert {
    padding: 13px 15px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 13px;
}

.dc-cw-alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #a7f3d0;
}

.dc-cw-alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.dc-cw-empty {
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 42px 22px;
    text-align: center;
}

.dc-cw-empty h2,
.dc-cw-empty h3 {
    margin: 14px 0 8px;
    color: #071225;
    font-size: 26px;
    font-weight: 950;
}

.dc-cw-empty p {
    color: #53657d;
    font-size: 13px;
    line-height: 1.6;
}


@media (max-width: 1080px) {
    .dc-cw-shell {
        grid-template-columns: 1fr;
    }

    .dc-cw-side {
        position: relative;
        top: auto;
    }
}

@media (max-width: 780px) {
    .dc-cw-page {
        padding: 22px 12px 42px;
    }

    .dc-cw-card,
    .dc-cw-side {
        padding: 18px;
        border-radius: 20px;
    }

    .dc-cw-filters,
    .dc-cw-case-row,
    .dc-cw-grid-2,
    .dc-cw-metrics {
        grid-template-columns: 1fr;
    }

    .dc-cw-case-hero {
        flex-direction: column;
    }

    .dc-cw-primary,
    .dc-cw-secondary {
        width: 100%;
        max-width: 100%;
    }
}

/* =========================================================
   DC Case Workspace 2.2.0 · Mis expedientes abogado
   Cierre de escritorio: vista operativa compacta y profesional.
   Admin/Super Admin conservan la interfaz existente.
========================================================= */
@media (min-width: 781px) {
    body .dc-cw-lawyer-list-page {
        padding: 18px 0 42px !important;
        background: transparent !important;
    }

    body .dc-cw-lawyer-shell {
        width: min(1240px, 100%) !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 0 !important;
    }

    body .dc-cw-lawyer-shell .dc-cw-main {
        width: 100% !important;
        min-width: 0 !important;
    }

    body .dc-cw-lawyer-list-card {
        padding: 20px !important;
        border: 1px solid #dbe4ef !important;
        border-radius: 18px !important;
        background: #fff !important;
        box-shadow: 0 10px 28px rgba(15, 23, 42, .045) !important;
    }

    body .dc-cw-lawyer-list-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 20px !important;
        margin-bottom: 14px !important;
    }

    body .dc-cw-lawyer-list-head h2 {
        margin: 7px 0 4px !important;
        color: #0f172a !important;
        font-size: 24px !important;
        line-height: 1.08 !important;
        letter-spacing: -.55px !important;
        font-weight: 750 !important;
    }

    body .dc-cw-lawyer-list-head p {
        margin: 0 !important;
        color: #64748b !important;
        font-size: 12.5px !important;
        line-height: 1.45 !important;
    }

    body .dc-cw-lawyer-result-count {
        display: grid !important;
        place-items: center !important;
        flex: 0 0 42px !important;
        width: 42px !important;
        height: 42px !important;
        border: 1px solid #dbe6fb !important;
        border-radius: 13px !important;
        background: #f4f7ff !important;
        color: #1d4ed8 !important;
        font-size: 16px !important;
        font-weight: 750 !important;
    }

    body .dc-cw-lawyer-filters {
        display: grid !important;
        grid-template-columns: minmax(260px, 1fr) 210px auto auto !important;
        align-items: center !important;
        gap: 9px !important;
        margin: 0 0 14px !important;
        padding: 9px !important;
        border: 1px solid #dfe6ef !important;
        border-radius: 14px !important;
        background: #fbfcfe !important;
    }

    body .dc-cw-search-field {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
    }

    body .dc-cw-search-field > svg {
        position: absolute !important;
        left: 12px !important;
        width: 15px !important;
        height: 15px !important;
        fill: none !important;
        stroke: #718198 !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
        pointer-events: none !important;
    }

    body .dc-cw-lawyer-filters input,
    body .dc-cw-lawyer-filters select {
        width: 100% !important;
        min-width: 0 !important;
        height: 38px !important;
        min-height: 38px !important;
        margin: 0 !important;
        border: 1px solid #d7e0eb !important;
        border-radius: 10px !important;
        background: #fff !important;
        color: #172033 !important;
        font-size: 11.5px !important;
        font-weight: 400 !important;
        box-sizing: border-box !important;
    }

    body .dc-cw-lawyer-filters input {
        padding: 0 12px 0 35px !important;
    }

    body .dc-cw-lawyer-filters select {
        padding: 0 32px 0 11px !important;
    }

    body .dc-cw-lawyer-filters .dc-cw-filter-submit {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: auto !important;
        min-width: 92px !important;
        max-width: none !important;
        height: 38px !important;
        min-height: 38px !important;
        padding: 0 12px !important;
        border-radius: 10px !important;
        font-size: 11px !important;
        font-weight: 650 !important;
    }

    body .dc-cw-filter-submit svg,
    body .dc-cw-filter-reset svg,
    body .dc-cw-eye-action svg {
        width: 15px !important;
        height: 15px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    body .dc-cw-filter-reset {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 9px !important;
        background: transparent !important;
        color: #64748b !important;
        text-decoration: none !important;
    }

    body .dc-cw-lawyer-table {
        overflow: hidden !important;
        border: 1px solid #dfe6ef !important;
        border-radius: 14px !important;
        background: #fff !important;
    }

    body .dc-cw-lawyer-table-head,
    body .dc-cw-lawyer-case-row {
        display: grid !important;
        grid-template-columns: minmax(190px, 1.55fr) minmax(190px, 1.35fr) 110px 105px 90px 46px !important;
        align-items: center !important;
        gap: 12px !important;
    }

    body .dc-cw-lawyer-table-head {
        min-height: 42px !important;
        padding: 0 14px !important;
        border-bottom: 1px solid #e3e9f1 !important;
        background: #f7f9fc !important;
        color: #64748b !important;
        font-size: 9.8px !important;
        font-weight: 750 !important;
        letter-spacing: .045em !important;
        text-transform: uppercase !important;
    }

    body .dc-cw-lawyer-case-row {
        min-height: 68px !important;
        padding: 9px 14px !important;
        border-bottom: 1px solid #e7ecf2 !important;
        background: #fff !important;
        transition: background-color .15s ease !important;
    }

    body .dc-cw-lawyer-case-row:last-child {
        border-bottom: 0 !important;
    }

    body .dc-cw-lawyer-case-row:hover {
        background: #fbfdff !important;
    }

    body .dc-cw-lawyer-case-main,
    body .dc-cw-lawyer-client {
        min-width: 0 !important;
    }

    body .dc-cw-lawyer-case-main strong,
    body .dc-cw-lawyer-client strong {
        display: block !important;
        overflow: hidden !important;
        color: #0f172a !important;
        font-size: 11.8px !important;
        font-weight: 650 !important;
        line-height: 1.3 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body .dc-cw-lawyer-case-main span,
    body .dc-cw-lawyer-client small {
        display: block !important;
        margin-top: 3px !important;
        overflow: hidden !important;
        color: #7b899b !important;
        font-size: 9.7px !important;
        line-height: 1.25 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body .dc-cw-lawyer-case-row time {
        color: #52647a !important;
        font-size: 10.5px !important;
        white-space: nowrap !important;
    }

    body .dc-cw-lawyer-case-row .dc-cw-status,
    body .dc-cw-lawyer-case-row .dc-cw-priority {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: fit-content !important;
        min-height: 24px !important;
        padding: 0 8px !important;
        border: 1px solid #dce4ee !important;
        border-radius: 999px !important;
        background: #f3f6f9 !important;
        color: #405269 !important;
        font-size: 9.3px !important;
        font-weight: 650 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body .dc-cw-lawyer-case-row .dc-status-open {
        background: #f1f5f9 !important;
        color: #41536a !important;
    }

    body .dc-cw-lawyer-case-row .dc-status-review {
        border-color: #cdddf8 !important;
        background: #eef4ff !important;
        color: #2455c6 !important;
    }

    body .dc-cw-lawyer-case-row .dc-status-closed {
        border-color: #c7ead5 !important;
        background: #edf9f2 !important;
        color: #167347 !important;
    }

    body .dc-cw-lawyer-case-row .dc-priority-normal {
        border-color: #c9e5f7 !important;
        background: #eef8ff !important;
        color: #0875ad !important;
    }

    body .dc-cw-lawyer-case-row .dc-priority-high,
    body .dc-cw-lawyer-case-row .dc-priority-urgent {
        border-color: #f7d7ba !important;
        background: #fff6e8 !important;
        color: #a55a09 !important;
    }

    body .dc-cw-lawyer-action {
        display: flex !important;
        justify-content: center !important;
    }

    body .dc-cw-eye-action {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 8px !important;
        background: transparent !important;
        color: #315fae !important;
        text-decoration: none !important;
    }

    body .dc-cw-eye-action:hover {
        background: #f2f6fd !important;
        color: #1d4ed8 !important;
    }

    body:has(.dc-cw-lawyer-list-page) article.dc-content.dc-card {
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body:has(.dc-cw-lawyer-list-page) article.dc-content.dc-card > .dc-page-header {
        display: none !important;
    }

    body:has(.dc-cw-lawyer-list-page) article.dc-content.dc-card > .dc-entry-content {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Mantiene la nueva estructura legible hasta que se cierre el ajuste móvil. */
@media (max-width: 780px) {
    .dc-cw-lawyer-list-page {
        padding: 10px 8px 30px !important;
        background: transparent !important;
    }

    .dc-cw-lawyer-shell {
        grid-template-columns: 1fr !important;
    }

    .dc-cw-lawyer-list-card {
        padding: 12px !important;
    }

    .dc-cw-lawyer-list-head {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
    }

    .dc-cw-lawyer-result-count {
        display: grid !important;
        place-items: center !important;
        width: 38px !important;
        height: 38px !important;
        flex: 0 0 38px !important;
        border-radius: 11px !important;
        background: #eef4ff !important;
        color: #1d4ed8 !important;
    }

    .dc-cw-lawyer-table-head {
        display: none !important;
    }

    .dc-cw-lawyer-table-body {
        display: grid !important;
        gap: 8px !important;
    }

    .dc-cw-lawyer-case-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        gap: 8px !important;
        padding: 12px !important;
        border: 1px solid #dfe6ef !important;
        border-radius: 13px !important;
        background: #fff !important;
    }

    .dc-cw-lawyer-case-row > div,
    .dc-cw-lawyer-case-row > time {
        min-width: 0 !important;
    }

    .dc-cw-lawyer-client,
    .dc-cw-lawyer-case-row time {
        grid-column: 1 / 2 !important;
    }

    .dc-cw-lawyer-action {
        grid-column: 2 !important;
        grid-row: 1 / 5 !important;
        align-self: end !important;
    }
}

/* =========================================================
   DC Case Workspace 2.2.1 · Mis expedientes responsive abogado
   Tablet/móvil: buscador + icono de filtro + popover flotante.
   Escritorio 2.2.0 permanece visualmente intacto.
========================================================= */

/* La nueva envoltura no altera la barra aprobada de escritorio. */
@media (min-width: 901px) {
    body .dc-cw-lawyer-filters .dc-cw-mobile-filter-toggle {
        display: none !important;
    }

    body .dc-cw-lawyer-filters .dc-cw-mobile-filter-popover {
        display: contents !important;
    }

    body .dc-cw-lawyer-filters .dc-cw-mobile-filter-label {
        display: none !important;
    }

    body .dc-cw-lawyer-filters .dc-cw-mobile-filter-actions {
        display: contents !important;
    }
}

@media (max-width: 900px) {
    body:has(.dc-cw-lawyer-list-page) article.dc-content.dc-card {
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body:has(.dc-cw-lawyer-list-page) article.dc-content.dc-card > .dc-page-header {
        display: none !important;
    }

    body:has(.dc-cw-lawyer-list-page) article.dc-content.dc-card > .dc-entry-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    body .dc-cw-lawyer-list-page {
        width: 100% !important;
        padding: 10px 10px 30px !important;
        background: transparent !important;
    }

    body .dc-cw-lawyer-shell,
    body .dc-cw-lawyer-shell .dc-cw-main {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    body .dc-cw-lawyer-list-card {
        position: relative !important;
        width: 100% !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    body .dc-cw-lawyer-list-head {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 12px !important;
        margin: 0 2px 10px !important;
    }

    body .dc-cw-lawyer-list-head h2 {
        margin: 5px 0 3px !important;
        color: #0f172a !important;
        font-size: 21px !important;
        line-height: 1.08 !important;
        letter-spacing: -.4px !important;
    }

    body .dc-cw-lawyer-list-head p {
        max-width: 620px !important;
        margin: 0 !important;
        color: #64748b !important;
        font-size: 10.5px !important;
        line-height: 1.4 !important;
    }

    body .dc-cw-lawyer-result-count {
        display: grid !important;
        place-items: center !important;
        flex: 0 0 36px !important;
        width: 36px !important;
        height: 36px !important;
        border: 1px solid #dbe6fb !important;
        border-radius: 11px !important;
        background: #f4f7ff !important;
        color: #1d4ed8 !important;
        font-size: 14px !important;
        font-weight: 750 !important;
    }

    body .dc-cw-lawyer-filters {
        position: relative !important;
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 42px !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        margin: 0 0 12px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        overflow: visible !important;
    }

    body .dc-cw-lawyer-filters .dc-cw-search-field {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
    }

    body .dc-cw-lawyer-filters .dc-cw-search-field > svg {
        position: absolute !important;
        left: 12px !important;
        width: 15px !important;
        height: 15px !important;
        fill: none !important;
        stroke: #718198 !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
        pointer-events: none !important;
    }

    body .dc-cw-lawyer-filters .dc-cw-search-field input {
        width: 100% !important;
        min-width: 0 !important;
        height: 40px !important;
        min-height: 40px !important;
        margin: 0 !important;
        padding: 0 12px 0 35px !important;
        border: 1px solid #d7e0eb !important;
        border-radius: 12px !important;
        background: #fff !important;
        color: #172033 !important;
        font-size: 11px !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
    }

    body .dc-cw-mobile-filter-toggle {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 42px !important;
        min-width: 42px !important;
        max-width: 42px !important;
        height: 40px !important;
        min-height: 40px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid #d7e0eb !important;
        border-radius: 12px !important;
        background: #fff !important;
        color: #315fae !important;
        box-shadow: none !important;
        cursor: pointer !important;
    }

    body .dc-cw-mobile-filter-toggle svg {
        width: 16px !important;
        height: 16px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    body .dc-cw-mobile-filter-toggle.has-active-filter::after {
        content: "" !important;
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        width: 6px !important;
        height: 6px !important;
        border: 2px solid #fff !important;
        border-radius: 999px !important;
        background: #2563eb !important;
    }

    body .dc-cw-mobile-filter-popover {
        position: absolute !important;
        z-index: 120 !important;
        top: 48px !important;
        right: 0 !important;
        display: none !important;
        width: min(250px, calc(100vw - 42px)) !important;
        padding: 11px !important;
        border: 1px solid #dbe4f0 !important;
        border-radius: 15px !important;
        background: #fff !important;
        box-shadow: 0 18px 40px rgba(15, 23, 42, .15) !important;
        box-sizing: border-box !important;
    }

    body .dc-cw-lawyer-filters.is-filter-popover-open .dc-cw-mobile-filter-popover {
        display: grid !important;
        gap: 8px !important;
    }

    body .dc-cw-mobile-filter-label {
        display: block !important;
        color: #64748b !important;
        font-size: 9.5px !important;
        font-weight: 700 !important;
        letter-spacing: .04em !important;
        text-transform: uppercase !important;
    }

    body .dc-cw-mobile-filter-popover select {
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        margin: 0 !important;
        padding: 0 32px 0 11px !important;
        border: 1px solid #d7e0eb !important;
        border-radius: 11px !important;
        background: #fff !important;
        color: #172033 !important;
        font-size: 10.5px !important;
        box-sizing: border-box !important;
    }

    body .dc-cw-mobile-filter-actions {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 34px !important;
        align-items: center !important;
        gap: 7px !important;
    }

    body .dc-cw-mobile-filter-actions .dc-cw-filter-submit {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        width: 100% !important;
        min-width: 0 !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 11px !important;
        border-radius: 10px !important;
        font-size: 10.5px !important;
    }

    body .dc-cw-mobile-filter-actions .dc-cw-filter-submit svg,
    body .dc-cw-mobile-filter-actions .dc-cw-filter-reset svg {
        width: 14px !important;
        height: 14px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }

    body .dc-cw-mobile-filter-actions .dc-cw-filter-reset {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 34px !important;
        min-width: 34px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid #e0e7f1 !important;
        border-radius: 10px !important;
        background: #f8fafc !important;
        color: #64748b !important;
        text-decoration: none !important;
    }

    body .dc-cw-lawyer-table {
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
    }

    body .dc-cw-lawyer-table-head {
        display: none !important;
    }

    body .dc-cw-lawyer-table-body {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    body .dc-cw-lawyer-case-row {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        grid-template-areas:
            "main status"
            "client client"
            "priority date"
            "action action" !important;
        align-items: center !important;
        gap: 8px 10px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 12px !important;
        border: 1px solid #dbe4ef !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: 0 2px 9px rgba(15,23,42,.025) !important;
    }

    body .dc-cw-lawyer-case-main {
        grid-area: main !important;
        min-width: 0 !important;
    }

    body .dc-cw-lawyer-client {
        grid-area: client !important;
        min-width: 0 !important;
    }

    body .dc-cw-lawyer-case-row > div:nth-child(3) {
        grid-area: status !important;
        justify-self: end !important;
    }

    body .dc-cw-lawyer-case-row > div:nth-child(4) {
        grid-area: priority !important;
        justify-self: start !important;
    }

    body .dc-cw-lawyer-case-row > time {
        grid-area: date !important;
        justify-self: end !important;
        color: #64748b !important;
        font-size: 9.6px !important;
        white-space: nowrap !important;
    }

    body .dc-cw-lawyer-action {
        grid-area: action !important;
        display: flex !important;
        justify-content: flex-end !important;
        align-items: center !important;
        padding-top: 6px !important;
        border-top: 1px solid #edf1f6 !important;
    }

    body .dc-cw-lawyer-case-main strong,
    body .dc-cw-lawyer-client strong {
        display: block !important;
        overflow: hidden !important;
        color: #0f172a !important;
        font-size: 11.5px !important;
        font-weight: 650 !important;
        line-height: 1.32 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body .dc-cw-lawyer-case-main span,
    body .dc-cw-lawyer-client small {
        display: block !important;
        margin-top: 2px !important;
        overflow: hidden !important;
        color: #7b899b !important;
        font-size: 9.3px !important;
        line-height: 1.3 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    body .dc-cw-lawyer-case-row .dc-cw-status,
    body .dc-cw-lawyer-case-row .dc-cw-priority {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: fit-content !important;
        min-height: 22px !important;
        padding: 0 7px !important;
        border-radius: 999px !important;
        font-size: 8.8px !important;
        font-weight: 650 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body .dc-cw-eye-action {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 30px !important;
        min-width: 30px !important;
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 !important;
        border: 0 !important;
        background: transparent !important;
        color: #315fae !important;
        text-decoration: none !important;
    }

    body .dc-cw-eye-action svg {
        width: 17px !important;
        height: 17px !important;
        fill: none !important;
        stroke: currentColor !important;
        stroke-width: 1.8 !important;
        stroke-linecap: round !important;
        stroke-linejoin: round !important;
    }
}

@media (max-width: 700px) {
    body .dc-cw-lawyer-list-page {
        padding: 8px 8px 28px !important;
    }

    body .dc-cw-lawyer-list-head {
        margin-bottom: 9px !important;
    }

    body .dc-cw-lawyer-list-head h2 {
        font-size: 19px !important;
    }

    body .dc-cw-lawyer-list-head p {
        display: -webkit-box !important;
        overflow: hidden !important;
        font-size: 9.8px !important;
        -webkit-box-orient: vertical !important;
        -webkit-line-clamp: 2 !important;
    }

    body .dc-cw-lawyer-result-count {
        flex-basis: 34px !important;
        width: 34px !important;
        height: 34px !important;
        font-size: 13px !important;
    }

    body .dc-cw-lawyer-table-body {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    body .dc-cw-lawyer-case-row {
        padding: 11px !important;
        border-radius: 13px !important;
    }

    body .dc-cw-mobile-filter-popover {
        width: min(238px, calc(100vw - 32px)) !important;
    }
}
