#inner-page-wrapper {
    margin-bottom: 0;
    background-color: #fff;
}

#inner-page-wrapper > .container {
    width: 100%;
    padding: 0;
}

header.header {
    opacity: 0;
}

header.header.fh-show {
    opacity: 1;
}

.ip-banner {
    display: none;
}

.custom-banner {
    position: relative;
    display: block;
    width: 100%;
    background-color: #000;
    overflow: hidden;
}

.custom-banner canvas {
    display: block;
    position: relative;
    z-index: 0;
    width: 100%;
    min-height: 356px;
    background-color: var(--dark);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: .40;
}

.custom-banner__logo {
    position: absolute;
    top: 50%;
    transform: translate(-50%,-50%);
    left: 50%;
    max-width: 352px;
    width: 100%;
}

.custom-banner__logo img {
    max-width: 100%;
    height: auto;
}

.case-details {
    display: block;
    position: relative;
    padding: 45px 0;
    overflow: hidden;
}

.case-details__container {
    display: block;
    padding: 0 80px;
    max-width: 1440px;
    margin: 0 auto;
}

.case-details__tabs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
}

.case-details__back {
    display: flex;
    align-items: center;
    color: #512531;
    font-family: var(--font-family-default);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.6px;
    transition: 0.4s all ease-in-out;
}

.case-details__back svg {
    margin-right: 10px;
}

.case-details__back:hover {
    color: var(--primary);
}

.case-details__navs {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.case-details__nav-item {
    color: #512531!important;
    font-family: var(--font-family-default);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    letter-spacing: 0.6px;
    position: relative;
    transition: 0.4s all ease-in-out;
}

.case-details__nav-item:hover {
    color: var(--primary) !important;
}

.case-details__nav-item--logout {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
    text-align: center;
    font-family: var(--font-family-title);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2.38px;
    text-transform: uppercase;
    height: 52px;
    width: 142px;
    background-color: transparent;
    padding: 9px 10px 5px;
    transition: 0.3s all ease-in-out;
    margin-left: 40px;
}

.case-details__nav-item--logout:hover {
    background-color: var(--primary);
    color: #fff !important;
}

.case-details__nav-item--profile,
.case-details__nav-item--invoices,
.case-details__nav-item--dashboard {
    margin-right: 40px;
    padding-right: 40px;
}
.case-details__nav-item--profile:before,
.case-details__nav-item--invoices:before,
.case-details__nav-item--dashboard:before {
    position: absolute;
    content: '';
    top: 2px;
    right: 0;
    width: 1px;
    height: 21px;
    background: var(--primary);
    opacity: .50;
}

.case-details__title {
    color: #873E52;
    font-family: var(--font-family-title);
    font-size: 35px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.case-details__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
}

.case-details__status {
    color: #000;
    font-family: var(--font-family-default);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.6px;
}

.case-details__status span {
    color: #FF1616;
    font-weight: 600;
}

.case-details__status.available span{
    color: #57ab21;
}

.case-details__description {
    display: block;
    position: relative;
    margin-bottom: 40px;
}

.case-details__description-title {
    color: #000;
    font-family: var(--font-family-default);
    font-size: 30px;
    font-weight: 600;
    line-height: normal;
    display: block;
    margin-bottom: 24px;
}

.case-details__description-text {
    border: 6px solid #DEDEDE;
    padding: 26px 30px;
    display: block;
    position: relative;
    color: #000;
    font-family: var(--font-family-title);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.1;
}

.case-details__table {
    display: block;
    position: relative;
}

.case-details__table-item {
    display: block;
    position: relative;
}

.case-details__table-item:not(:last-child) {
    margin-bottom: 40px;
}

.case-details__table-title {
    color: #000;
    font-family: var(--font-family-default);
    font-size: 30px;
    font-weight: 600;
    line-height: normal;
    display: block;
    margin-bottom: 20px;
}

.case-details__table table {
    width: 100%;
}

.case-details__table td,.case-details__table th {
    padding: 15px 20px;
    text-align: left;
    vertical-align: middle;
}

.case-details__table th {
    color: #000;
    font-size: 20px;
    font-weight: 600;
    line-height: normal;
    padding: 15px 20px;
}

.case-details__table td {
    color: #000;
    font-size: 16px;
    font-weight: 500;
    line-height: normal;
    font-family: var(--font-family-title);
}

.case-details__table-filename {
    color: var(--primary) !important;
    text-decoration-line: underline !important;
    transition: 0.4s all ease-in-out;
}

.case-details__table-filename:hover {
    opacity: .75;
}

.case-details__table-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.case-details__table-controls a {
    font-size: 14px;
    color: #512531;
    transition: 0.4s all ease-in-out;
}

.case-details__table-controls a:hover {
    color: var(--primary);
}

.case-details__table-btn {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px 5px;
    width: max-content;
    height: 30px;
    font-family: var(--font-family-title);
    color: var(--primary);
    border: 1px solid var(--primary);
    background-color: transparent;
    margin-top: 20px;
    transition: 0.4s all ease-in-out;
}

.case-details__table-btn:hover {
    background-color: var(--primary);
    color: #fff;
}

.case-details__table-balance {
    color: #000;
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    display: block;
    margin-top: 20px;
}

.case-details__table-balance span {
    margin-left: 10px;
    color: var(--primary);
}

#case-documents-message{
    margin-top: 26px;
    font-size: 15px;
}

@media only screen and (min-width: 992px) {
    .case-details__table tr:nth-child(odd) {
        background-color: #fff
    }

    .case-details__table tr:nth-child(odd) {
        background-color: #ededed;
    }

    .case-details__table table td:before {
        display: none;
    }

    .case-details__table table th, .case-details__table table td {
        display: table-cell;
    }

    .case-details__table table tbody tr th:first-child {
        width: 210px;
    }

    .case-details__table table tbody tr th:nth-child(2) {
        width: 290px;
    }

    .case-details__table table tbody tr th:nth-child(3) {
        width: 190px;
    }

    .case-details__table table tbody tr th:nth-child(4) {
        width: 190px;
    }

    .case-details__table table tbody tr th:nth-child(5) {
        width: 400px;
    }

    .case-details__table #table-documents tbody tr th:last-child {
        width: 780px;
    }

    .case-details__table #table-payments tbody tr th:last-child {
        width: 590px;
    }
}

@media only screen and (max-width: 1280px) {
    .case-details__container {
        max-width: 1280px;
        padding: 0 30px;
    }

    .case-details__table td {
        font-size: 14px;
    }

    .case-details__table th {
        font-size: 18px;
        padding: 15px;
    }

    .case-details__table table tbody tr th:first-child {
        width: 190px;
    }

    .case-details__table table tbody tr th:nth-child(2) {
        width: 200px;
    }

    .case-details__table table tbody tr th:nth-child(3) {
        width: 142px;
    }

    .case-details__table table tbody tr th:nth-child(4) {
        width: 154px;
    }

    .case-details__table table tbody tr th:nth-child(5) {
        width: 281px;
    }

    .case-details__table #table-documents tbody tr th:last-child {
        width: 540px;
    }

    .case-details__table #table-payments tbody tr th:last-child {
        width: 392px;
    }

    .case-details__table-title, .case-details__description-title {
        font-size: 28px;
    }

    .case-details__description-text {
        padding: 20px;
        font-size: 14px;
    }

    .case-details__title {
        font-size: 30px;
    }

    .case-details__status {
        font-size: 18px;
    }

    .case-details__table td, .case-details__table th {
        padding: 15px;
    }
}

@media only screen and (max-width: 991px) {
    header.header {
        display: none;
    }

    .custom-banner {
        margin-top: 52px;
    }

    .custom-banner__logo {
        max-width: 250px;
    }

    .case-details__nav-item--dashboard {
        margin-right: 15px;
        padding-right: 15px;
    }

    .case-details__nav-item--dashboard:before {
        top: 2px;
        height: 16px;
    }

    .case-details__nav-item {
        font-size: 15px;
        letter-spacing: 0.03px;
    }

    .case-details__nav-item--logout {
        height: 50px;
        width: 120px;
        background-color: transparent;
        padding: 9px 10px 5px;
        transition: 0.3s all ease-in-out;
        margin-left: 20px;
        font-size: 13px;
    }

    .case-details__back {
        font-size: 17px;
        letter-spacing: 0.3px;
        margin-bottom: 20px;
    }

    .case-details__tabs {
        display: block;
    }

    .case-details__container {
        padding: 0 15px;
        max-width: 768px;
    }

    .case-details {
        padding: 30px 0 45px;
    }

    .case-details__form:not(:last-child) {
        margin-bottom: 40px;
    }

    .case-details__form-save {
        height: 50px;
    }

    .case-details__table th {
        font-size: 16px;
    }

    .case-details__table td {
        font-size: 12px;
    }

    .case-details__table-controls {
        gap: 10px;
    }

    .case-details__table-controls a {
        font-size: 12px;
    }

    .case-details__top {
        display: block;
    }

    .case-details__title {
        margin-bottom: 20px;
        font-size: 25px;
        text-align: center;
    }

    .case-details__status {
        text-align: center;
    }

    .case-details__description-text p br {
        display: none;
    }

    .case-details__description-text {
        line-height: 1.4;
        text-align: center;
    }

    .case-details__table-title, .case-details__description-title {
        font-size: 25px;
        margin-bottom: 20px;
        text-align: center;
    }

    .case-details__table table {
        border-collapse: collapse;
    }

    .case-details__table table th {
        display: none;
    }

    .case-details__table table td {
        display: block;
    }

    .case-details__table table td:before {
        content: attr(data-th) ": ";
        display: block;
        color: #000;
        margin-bottom: 13px;
        font-weight: 600;
        font-size: 15px;
    }

    .case-details__table table tbody tr th {
        width: 100%!important;
    }

    .case-details__table table {
        width: 500px;
        max-width: 100%;
        margin: 0 auto;
        border: 1px solid #000;
    }

    .case-details__table #table-documents td:last-child:before {
        display: none;
    }

    .case-details__table-btn {
        margin: 20px auto 0;
    }

    .case-details__table table tbody tr:nth-child(4) td:nth-child(odd), .case-details__table table tbody tr:nth-child(3) td:nth-child(even), .case-details__table table tbody tr:nth-child(2) td:nth-child(odd) {
        background-color: #ededed;
    }

    .case-details__table-balance {
        text-align: center;
    }
}

@media only screen and (max-width: 767px) {
    .case-details__navs {
        justify-content: center;
    }
}