/* RENGANURA_CLIENT_MATTER_HUB_V1 */

body.rg-ic-v2-page .rg-hero.rg-client-matter-hub {
    display: block !important;
    width: 100% !important;
    margin: 0 0 22px !important;
    padding: 24px 26px !important;
    overflow: visible !important;
    border: 1px solid #bfd5ec !important;
    border-radius: 18px !important;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #eef6ff
        ) !important;
    color: #17324d !important;
    box-shadow:
        0 13px 34px rgba(18, 72, 125, 0.11) !important;
}

.rg-client-identity-frame {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin: 0 0 18px;
    padding: 14px 18px;
    border: 2px solid #11864f;
    border-radius: 14px;
    background: #ffffff;
    box-sizing: border-box;
}

.rg-client-identity-frame strong {
    color: #11864f;
    font-size: clamp(1.05rem, 2vw, 1.34rem);
    font-weight: 850;
    line-height: 1.25;
}

.rg-client-identity-frame span {
    color: #587083;
    font-size: 0.88rem;
    font-weight: 650;
}

.rg-matter-hub-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.rg-matter-hub-heading h1 {
    margin: 0 0 7px !important;
    color: #12395c !important;
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.2;
}

.rg-matter-hub-heading p {
    max-width: 800px !important;
    margin: 0 !important;
    color: #587083 !important;
    line-height: 1.55 !important;
}

.rg-matter-source-badge {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #b7d1eb;
    border-radius: 999px;
    background: #e8f3ff;
    color: #154e80;
    font-size: 0.79rem;
    font-weight: 750;
    white-space: nowrap;
}

.rg-current-matter-card {
    padding: 20px;
    border: 1px solid #c9dbed;
    border-radius: 15px;
    background: #ffffff;
    box-shadow:
        0 8px 22px rgba(16, 69, 119, 0.07);
}

.rg-current-matter-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.rg-current-matter-card-header h2 {
    margin: 0 0 5px;
    color: #17324d;
    font-size: 1.16rem;
}

.rg-current-matter-card-header p {
    margin: 0 !important;
    color: #657889 !important;
    font-size: 0.88rem;
}

.rg-matter-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid #acd6bb;
    border-radius: 999px;
    background: #eaf8ef;
    color: #17623a;
    font-size: 0.82rem;
    font-weight: 800;
    white-space: nowrap;
}

.rg-matter-status::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #188b50;
}

.rg-matter-information-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.rg-matter-information-item {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid #d5e2ef;
    border-radius: 11px;
    background: #f8fbff;
}

.rg-matter-information-item span {
    display: block;
    margin-bottom: 4px;
    color: #6b7d8c;
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.rg-matter-information-item strong {
    display: block;
    overflow: hidden;
    color: #17324d;
    font-size: 0.94rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rg-matter-hub-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rg-matter-hub-button {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid #1769aa;
    border-radius: 9px;
    background: #1769aa;
    color: #ffffff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.rg-matter-hub-button:hover {
    background: #0e548e;
    border-color: #0e548e;
}

.rg-matter-hub-button-secondary {
    background: #ffffff;
    color: #1769aa;
}

.rg-matter-hub-button-secondary:hover {
    background: #edf5ff;
    color: #104e83;
}

.rg-stored-matters-frame {
    margin-top: 16px;
    padding: 17px 18px;
    border: 1px dashed #b7cce0;
    border-radius: 13px;
    background: #f8fbfe;
}

.rg-stored-matters-frame h2 {
    margin: 0 0 7px;
    color: #17324d;
    font-size: 1.02rem;
}

.rg-stored-matters-frame p {
    margin: 0 !important;
    color: #607486 !important;
    font-size: 0.9rem;
    line-height: 1.5 !important;
}

.rg-stored-matters-list {
    display: grid;
    gap: 10px;
    margin-top: 13px;
}

.rg-stored-matter-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 14px;
    border: 1px solid #d4e1ed;
    border-radius: 10px;
    background: #ffffff;
}

.rg-stored-matter-item strong {
    color: #17324d;
}

.rg-stored-matter-item small {
    display: block;
    margin-top: 3px;
    color: #687c8d;
}

.rg-stored-matter-item button {
    flex: 0 0 auto;
}

@media (max-width: 1050px) {
    .rg-matter-information-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body.rg-ic-v2-page .rg-hero.rg-client-matter-hub {
        padding: 18px 16px !important;
    }

    .rg-client-identity-frame,
    .rg-matter-hub-heading,
    .rg-current-matter-card-header {
        align-items: flex-start;
        flex-direction: column;
    }

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

@media (max-width: 470px) {
    .rg-matter-information-grid {
        grid-template-columns: 1fr;
    }

    .rg-matter-information-item strong {
        white-space: normal;
    }
}
