[v-cloak] {
    display: none !important;
}

.lb-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

html {
    overflow-x: clip;
}

body.legal-billing-page {
    --lb-demo-header-height: 70px;
    --lb-app-bar-height: 58px;
    width: 100%;
    max-width: 100vw;
    min-width: 320px;
    overflow-x: clip;
    color: #273142;
    background: #eef2f6;
    font-family: 'Open Sans', Arial, sans-serif;
}

.legal-billing-page .demo-header > .lb-demo-header-container {
    width: calc(100% - 48px);
    max-width: 1600px;
}

.legal-billing-page .demo-header-logo {
    flex: 1 1 auto;
}

.legal-billing-page button,
.legal-billing-page a {
    transition:
        background-color 0.18s ease,
        color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.lb-shell {
    min-height: calc(100vh - 93px);
    padding-top: var(--lb-demo-header-height);
}

.lb-app-bar {
    position: sticky;
    top: var(--lb-demo-header-height);
    z-index: 40;
    min-height: 58px;
    color: #fff;
    background: #0063b0;
    box-shadow: 0 3px 12px rgba(23, 47, 74, 0.18);
}

.lb-app-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1600px;
    min-height: 58px;
    margin: 0 auto;
    padding: 10px 24px;
}

.lb-app-bar__identity {
    min-width: 0;
}

.lb-app-bar__identity strong {
    display: block;
    overflow: hidden;
    font-size: 18px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-app-bar__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.lb-app-bar__user {
    margin-right: 12px;
    text-align: right;
}

.lb-app-bar__user strong {
    display: block;
    font-size: 14px;
}

.lb-app-bar__button {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 7px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 5px;
    font-size: 13px;
    text-decoration: none;
}

.lb-app-bar__button:hover,
.lb-app-bar__button:focus {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    outline: none;
    text-decoration: none;
}

.lb-app-bar__button .glyphicon {
    margin-right: 5px;
}

.lb-workspace {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    width: 100%;
    max-width: none;
    min-height: calc(100vh - 128px);
    margin: 0;
}

.lb-sidebar {
    position: relative;
    z-index: 20;
    background: #fff;
    border-right: 1px solid #d9e1e8;
}

.lb-sidebar__sticky {
    position: sticky;
    top: calc(var(--lb-demo-header-height) + var(--lb-app-bar-height));
    padding: 20px 14px;
}

.lb-sidebar__label {
    display: block;
    margin: 0 10px 9px;
    color: #778397;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.lb-sidebar__item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 43px;
    margin-bottom: 4px;
    padding: 9px 12px;
    color: #344256;
    background: transparent;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 4px;
    text-align: left;
}

.lb-sidebar__item:hover,
.lb-sidebar__item:focus {
    color: #0063b0;
    background: #f1f7fb;
    outline: none;
}

.lb-sidebar__item.is-active {
    color: #005594;
    background: #e8f3fb;
    border-left-color: #0063b0;
    font-weight: 600;
}

.lb-sidebar__item .glyphicon {
    width: 25px;
    color: #64758a;
    font-size: 15px;
}

.lb-sidebar__item.is-active .glyphicon {
    color: #0063b0;
}

.lb-main {
    min-width: 0;
    padding: 22px 28px 42px;
}

.lb-main:focus {
    outline: none;
}

.lb-section-heading {
    margin-bottom: 18px;
}

.lb-section-heading p {
    max-width: 760px;
    margin: 0;
    color: #6b7788;
    font-size: 13px;
    line-height: 1.55;
}

.lb-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.lb-metric {
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 7px;
    box-shadow: 0 3px 10px rgba(37, 57, 78, 0.05);
}

.lb-metric {
    min-height: 124px;
    padding: 17px;
}

.lb-metric span,
.lb-metric strong,
.lb-metric small {
    display: block;
}

.lb-metric span {
    color: #6c7889;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.lb-metric strong {
    margin-top: 9px;
    color: #263447;
    font-size: 23px;
    font-weight: 600;
    line-height: 1.2;
}

.lb-metric small {
    margin-top: 7px;
    color: #8490a0;
    font-size: 11px;
    line-height: 1.4;
}

.lb-kpi-panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dce3ea;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(28, 48, 66, 0.06);
}

.lb-kpi-panel .lb-metric-grid {
    gap: 0;
}

.lb-kpi-panel .lb-metric {
    min-height: 116px;
    background: transparent;
    border: 0;
    border-left: 1px solid #e4e9ee;
    border-radius: 0;
    box-shadow: none;
}

.lb-kpi-panel .lb-metric:nth-child(4n + 1) {
    border-left: 0;
}

.lb-kpi-panel .lb-metric:nth-child(n + 5) {
    border-top: 1px solid #e4e9ee;
}

.lb-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    max-width: 420px;
    padding: 13px 16px;
    color: #fff;
    background: #263447;
    border-radius: 5px;
    box-shadow: 0 8px 24px rgba(20, 33, 48, 0.28);
    font-size: 13px;
    line-height: 1.45;
}

.lb-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(24, 37, 51, 0.48);
}

.lb-dialog {
    width: 100%;
    max-width: 440px;
    padding: 22px;
    background: #fff;
    border-radius: 7px;
    box-shadow: 0 14px 40px rgba(15, 29, 45, 0.28);
}

.lb-dialog h2 {
    margin: 0 0 8px;
    color: #263447;
    font-size: 20px;
}

.lb-dialog p {
    margin: 0;
    color: #687589;
    font-size: 13px;
    line-height: 1.55;
}

.lb-dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.lb-button {
    min-height: 36px;
    padding: 7px 14px;
    border: 1px solid #cbd5df;
    border-radius: 4px;
    font-size: 13px;
}

.lb-button_default {
    color: #3a485a;
    background: #fff;
}

.lb-button_primary {
    color: #fff;
    background: #0063b0;
    border-color: #0063b0;
}

.lb-button:hover,
.lb-button:focus {
    box-shadow: 0 0 0 3px rgba(0, 99, 176, 0.12);
    outline: none;
}

.legal-billing-page :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid rgba(0, 99, 176, 0.48);
    outline-offset: 2px;
}

.lb-app-bar :where(a, button):focus-visible {
    outline-color: #fff;
}

.lb-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.lb-button_danger {
    color: #a72b2b;
    background: #fff;
    border-color: #e2a1a1;
}

.lb-overview-grid,
.lb-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.lb-panel,
.lb-toolbar {
    padding: 20px;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(28, 48, 66, 0.05);
}

.lb-panel + .lb-panel {
    margin-top: 18px;
}

.lb-overview-grid .lb-panel + .lb-panel,
.lb-detail-grid .lb-panel + .lb-panel {
    margin-top: 0;
}

.lb-panel__heading,
.lb-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.lb-panel__heading h3,
.lb-card-heading h3 {
    margin: 0;
    color: #213647;
    font-size: 18px;
}

.lb-panel__heading > span,
.lb-card-heading p {
    margin: 4px 0 0;
    color: #778895;
    font-size: 13px;
}

.lb-card-heading {
    margin-bottom: 20px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 10px;
}

.lb-card-heading > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.lb-card-heading .lb-action-row {
    margin-top: 0;
}

.lb-back-button,
.lb-link-button,
.lb-table-link {
    padding: 0;
    color: #1676a5;
    background: transparent;
    border: 0;
    font-weight: 600;
}

.lb-back-button:hover,
.lb-link-button:hover,
.lb-table-link:hover {
    color: #0f587c;
    text-decoration: underline;
}

.lb-progress-row + .lb-progress-row {
    margin-top: 16px;
}

.lb-progress-row > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    color: #5e7281;
    font-size: 12px;
}

.lb-progress {
    overflow: hidden;
    height: 8px;
    background: #e7edf2;
    border-radius: 6px;
}

.lb-progress span {
    display: block;
    height: 100%;
    background: #2e9d73;
    border-radius: inherit;
}

.lb-list-link,
.lb-data-row {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    color: #334b5d;
    text-align: left;
    background: transparent;
    border: 0;
    border-top: 1px solid #edf1f4;
}

.lb-list-link:first-of-type,
.lb-data-row:first-of-type {
    border-top: 0;
}

.lb-list-link > span {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lb-list-link > span:last-child {
    align-items: flex-end;
    text-align: right;
}

.lb-list-link strong,
.lb-data-row strong {
    color: #243d50;
}

.lb-list-link small,
.lb-data-row small,
.lb-table td small {
    display: block;
    margin-top: 3px;
    color: #7e8e99;
    font-weight: 400;
}

.lb-list-link {
    box-sizing: border-box;
    padding-right: 10px;
    padding-left: 10px;
    border-radius: 5px;
}

.lb-list-link:hover,
.lb-list-link:focus {
    color: #174f70;
    background: #eef6fb;
    outline: none;
    box-shadow: inset 3px 0 0 #1682bd;
}

.lb-toolbar {
    margin-bottom: 18px;
}

.lb-filter-grid,
.lb-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 14px;
}

.lb-filter-grid {
    grid-template-columns: repeat(5, minmax(130px, 1fr));
}

.lb-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    color: #536978;
    font-size: 12px;
    font-weight: 600;
}

.lb-field_wide,
.lb-field_span2 {
    grid-column: span 2;
}

.lb-field input,
.lb-field select,
.lb-field textarea {
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    color: #263e50;
    background: #fff;
    border: 1px solid #cbd5dd;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 400;
}

.lb-field textarea {
    resize: vertical;
}

.lb-table-wrap {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 10px;
}

.lb-table {
    width: 100%;
    min-width: 820px;
    margin: 0;
    border-collapse: collapse;
}

.lb-table th,
.lb-table td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e8edf1;
}

.lb-table th {
    color: #667b8a;
    background: #f7f9fb;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.lb-table tbody tr[tabindex] {
    cursor: pointer;
}

.lb-table tbody tr[tabindex]:hover {
    background: #f8fbfd;
}

.lb-table tbody tr[tabindex]:focus-visible {
    position: relative;
    background: #eef7fc;
    outline: 3px solid rgba(0, 99, 176, 0.42);
    outline-offset: -3px;
}

.lb-table tbody tr:last-child td {
    border-bottom: 0;
}

.lb-empty-cell {
    padding: 30px !important;
    color: #7b8c98;
    text-align: center !important;
}

.lb-table__long {
    min-width: 240px;
    max-width: 380px;
    overflow-wrap: anywhere;
}

.lb-status {
    display: inline-block;
    padding: 4px 8px;
    white-space: nowrap;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
}

.lb-status.is-success {
    color: #176b4d;
    background: #dff4eb;
}
.lb-status.is-warning {
    color: #8a5b00;
    background: #fff0c7;
}
.lb-status.is-danger {
    color: #a12b2b;
    background: #fde4e4;
}
.lb-status.is-neutral {
    color: #4d6576;
    background: #e9eff3;
}

.lb-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 14px;
    color: #617583;
}

.lb-pagination > span {
    margin-right: auto;
}

.lb-pagination button {
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #cbd5dd;
    border-radius: 4px;
}

.lb-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.lb-card-view {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 18px;
}

.lb-card-view > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.lb-summary-panel {
    padding: 14px;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 10px;
    box-shadow: 0 3px 14px rgba(28, 48, 66, 0.05);
}

.lb-summary-panel .lb-summary-grid {
    gap: 10px;
    margin: 0;
}

.lb-summary-grid article {
    padding: 15px;
    background: #f4f8fa;
    border: 1px solid #e5edf1;
    border-radius: 8px;
}

.lb-summary-grid span,
.lb-summary-grid strong {
    display: block;
}

.lb-summary-grid span {
    color: #637988;
    font-size: 12px;
}

.lb-summary-grid strong {
    margin-top: 6px;
    color: #244154;
    font-size: 17px;
}

.lb-definition {
    margin: 0;
}

.lb-definition > div {
    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid #edf1f4;
}

.lb-definition > div:first-child {
    border-top: 0;
}

.lb-definition dt {
    color: #788995;
    font-weight: 500;
}
.lb-definition dd {
    margin: 0;
    color: #2f4759;
    overflow-wrap: anywhere;
}

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

.lb-split-list h4 {
    margin: 0 0 10px;
    color: #526978;
    font-size: 13px;
    text-transform: uppercase;
}

.lb-related-column {
    min-width: 0;
    padding: 14px;
    background: #f7f9fb;
    border: 1px solid #e6ebef;
    border-radius: 7px;
}

.lb-related-column .lb-empty-note {
    padding-bottom: 8px;
}

.lb-tabs {
    position: sticky;
    top: calc(var(--lb-demo-header-height) + var(--lb-app-bar-height) + 12px);
    z-index: 30;
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    background: #e7edf2;
    border-radius: 7px;
    box-shadow: 0 4px 10px rgba(28, 48, 66, 0.08);
}

.lb-tabs button {
    padding: 9px 14px;
    color: #506878;
    background: transparent;
    border: 0;
    border-radius: 5px;
    font-weight: 600;
}

.lb-tabs button.is-active {
    color: #165f83;
    background: #fff;
    box-shadow: 0 2px 6px rgba(25, 55, 76, 0.1);
}

.lb-subheading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 26px 0 12px;
}

.lb-subheading h4,
.lb-subheading p {
    margin: 0;
}

.lb-subheading h4 {
    color: #2d4556;
    font-size: 16px;
}

.lb-subheading p {
    margin-top: 4px;
    color: #7b8b96;
    font-size: 12px;
}

.lb-subheading .lb-action-row {
    margin: 0;
}

.lb-table_invoice-lines {
    min-width: 1180px;
}

.lb-table select,
.lb-table input {
    width: 100%;
    min-width: 90px;
    margin: 2px 0;
    padding: 6px 7px;
    border: 1px solid #cad4dc;
    border-radius: 4px;
}

.lb-icon-button {
    width: 30px;
    height: 30px;
    color: #9a3434;
    background: #fff;
    border: 1px solid #e0b0b0;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.lb-alert {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 6px;
}

.lb-alert_danger {
    color: #8e2525;
    background: #fff0f0;
    border: 1px solid #efc2c2;
}

.lb-alert ul {
    margin: 7px 0 0;
    padding-left: 20px;
}

.lb-totals {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    margin-top: 18px;
    text-align: right;
}

.lb-totals span,
.lb-totals strong {
    display: block;
}

.lb-totals span {
    color: #71828e;
    font-size: 12px;
}
.lb-totals strong {
    margin-top: 3px;
    color: #2a4254;
    font-size: 17px;
}
.lb-totals .is-total strong {
    color: #14618a;
    font-size: 21px;
}

.lb-empty-note {
    margin: 0;
    padding: 18px 0;
    color: #7b8c98;
}

.lb-timeline > div {
    position: relative;
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 9px;
    padding: 8px 0;
    color: #40596a;
}

.lb-timeline > div > span {
    width: 9px;
    height: 9px;
    margin-top: 4px;
    background: #31946e;
    border-radius: 50%;
}

.lb-timeline small {
    color: #7a8b96;
}

.lb-print-document {
    position: fixed;
    z-index: 1300;
    inset: 0;
    overflow: auto;
    padding: 24px;
    background: rgba(28, 43, 54, 0.76);
}

.lb-print-document:focus,
.lb-dialog:focus {
    outline: none;
}

.lb-print-actions {
    display: flex;
    max-width: 1040px;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 auto 12px;
}

.lb-paper {
    width: 100%;
    max-width: 1040px;
    min-height: 720px;
    margin: 0 auto;
    padding: 46px;
    color: #1f2e38;
    background: #fff;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.25);
}

.lb-paper header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 8px 24px;
    padding-bottom: 22px;
    border-bottom: 2px solid #284c63;
}

.lb-paper header > div {
    grid-row: span 2;
}
.lb-paper header strong,
.lb-paper header span {
    display: block;
}
.lb-paper header span {
    margin-top: 5px;
    color: #76838c;
    font-size: 11px;
}
.lb-paper header h2,
.lb-paper header p {
    margin: 0;
    text-align: right;
}
.lb-paper header h2 {
    font-size: 23px;
}

.lb-paper__parties {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
    margin: 24px 0;
}

.lb-paper__parties span,
.lb-paper__parties strong {
    display: block;
}
.lb-paper__parties span {
    color: #7a8790;
    font-size: 11px;
    text-transform: uppercase;
}
.lb-paper__parties strong {
    margin-top: 4px;
}

.lb-paper table {
    width: 100%;
    margin-top: 24px;
    border-collapse: collapse;
}

.lb-paper th,
.lb-paper td {
    padding: 9px 7px;
    border: 1px solid #bfc9cf;
    text-align: left;
    vertical-align: top;
}

.lb-paper th {
    background: #edf2f5;
    font-size: 11px;
}
.lb-paper td small {
    display: block;
    color: #74838d;
}

.lb-paper td,
.lb-paper__parties strong,
.lb-card-heading h3,
.lb-card-heading p {
    overflow-wrap: anywhere;
}

.lb-paper__totals {
    margin: 20px 0 28px auto;
    max-width: 360px;
    text-align: right;
}

.lb-paper__totals p {
    margin: 6px 0;
}
.lb-paper__totals p:last-child {
    font-size: 17px;
}

.lb-paper footer {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 70px;
}

.lb-field-note {
    margin: 3px 0 0;
    color: #728490;
    font-size: 13px;
    font-weight: 400;
}

.lb-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-height: 310px;
    margin-top: 22px;
    padding: 14px;
    overflow: auto;
    border: 1px solid #d8e0e6;
    border-radius: 7px;
}

.lb-checkbox-grid legend {
    width: auto;
    margin: 0 0 4px;
    padding: 0 6px;
    color: #516979;
    border: 0;
    font-size: 13px;
}

.lb-checkbox-grid label {
    display: flex;
    gap: 9px;
    margin: 0;
    padding: 10px;
    background: #f7f9fb;
    border-radius: 5px;
    font-weight: 400;
}

.lb-checkbox-grid input {
    margin-top: 3px;
}
.lb-checkbox-grid strong,
.lb-checkbox-grid small {
    display: block;
}
.lb-checkbox-grid strong {
    color: #314a5c;
}
.lb-checkbox-grid small {
    margin-top: 3px;
    color: #778893;
}

.lb-summary-grid_compact {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    max-width: 760px;
    margin-top: 24px;
}

.lb-alert_success {
    color: #176849;
    background: #e7f7f0;
    border: 1px solid #b9e5d2;
}

.lb-file-card {
    display: flex;
    grid-column: span 2;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: #2e5269;
    background: #edf6fa;
    border: 1px solid #cce1eb;
    border-radius: 6px;
}

.lb-file-card .glyphicon {
    font-size: 23px;
}
.lb-file-card strong,
.lb-file-card small {
    display: block;
}
.lb-file-card small {
    margin-top: 3px;
    color: #70828e;
}

.lb-check-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.lb-check-list > div {
    display: flex;
    gap: 11px;
    padding: 13px;
    background: #f7f9fb;
    border-radius: 6px;
}

.lb-check-list .glyphicon {
    color: #278362;
}
.lb-check-list p {
    margin: 0;
}
.lb-check-list strong,
.lb-check-list small {
    display: block;
}
.lb-check-list small {
    margin-top: 4px;
    color: #748691;
    line-height: 1.4;
}

.lb-export-preview {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
    padding: 18px;
    color: #315064;
    background: #eef6f9;
    border: 1px solid #cfe1e8;
    border-radius: 7px;
}

.lb-export-preview > .glyphicon {
    font-size: 28px;
}
.lb-export-preview p,
.lb-export-preview small {
    margin: 3px 0 0;
    color: #667d8b;
}
.lb-export-preview strong {
    font-size: 16px;
}

.lb-stages {
    display: flex;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.lb-stages li {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    gap: 8px;
    color: #758792;
}

.lb-stages li::after {
    content: '';
    height: 2px;
    flex: 1;
    background: #d7e0e6;
}

.lb-stages li:last-child::after {
    display: none;
}
.lb-stages li > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    background: #e8edf1;
    border-radius: 50%;
}
.lb-stages li.is-done {
    color: #226f54;
}
.lb-stages li.is-done > span {
    color: #fff;
    background: #2d926d;
}

@media (max-width: 1199px) {
    .lb-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lb-kpi-panel .lb-metric {
        border-top: 0;
        border-left: 1px solid #e4e9ee;
    }

    .lb-kpi-panel .lb-metric:nth-child(odd) {
        border-left: 0;
    }

    .lb-kpi-panel .lb-metric:nth-child(n + 3) {
        border-top: 1px solid #e4e9ee;
    }
}

@media (max-width: 991px) {
    body.legal-billing-page {
        --lb-demo-header-height: 0px;
    }

    .demo-header {
        position: static;
    }

    .lb-shell {
        padding-top: 0;
    }

    .lb-app-bar {
        top: 0;
    }

    .lb-app-bar__inner {
        padding-right: 16px;
        padding-left: 16px;
    }

    .lb-app-bar__user {
        display: none;
    }

    .lb-workspace {
        display: block;
    }

    .lb-sidebar {
        position: static;
        top: auto;
        z-index: 35;
        overflow-x: auto;
        border-right: 0;
        border-bottom: 1px solid #d9e1e8;
        white-space: nowrap;
    }

    .lb-sidebar__sticky {
        position: static;
        display: flex;
        width: max-content;
        min-width: 100%;
        padding: 8px 12px;
    }

    .lb-sidebar__label {
        display: none;
    }

    .lb-sidebar__item {
        width: auto;
        margin: 0 4px 0 0;
        border-left: 0;
        border-bottom: 2px solid transparent;
    }

    .lb-sidebar__item.is-active {
        border-bottom-color: #0063b0;
    }

    .lb-main {
        padding: 22px 20px 36px;
    }

    .lb-tabs {
        top: calc(var(--lb-app-bar-height) + 8px);
    }
}

@media (max-width: 767px) {
    .legal-billing-page .demo-header > .lb-demo-header-container {
        width: 100%;
        max-width: none;
        padding-right: 12px;
        padding-left: 12px;
    }

    .demo-header-inner {
        flex-wrap: wrap;
        gap: 9px;
    }

    .demo-header-logo {
        display: block;
        align-items: flex-start;
        width: 100%;
    }

    .demo-header-logo img {
        display: block;
        width: 122px;
        height: auto;
        margin: 0 0 8px;
    }

    .demo-header-text {
        display: block;
        width: 100%;
        max-width: 100%;
    }

    .demo-header-title,
    .demo-header-note {
        display: block;
        width: 100%;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .demo-header-back {
        margin-left: 0;
    }

    .lb-app-bar__inner {
        position: relative;
        display: flex;
        gap: 8px;
        min-height: 58px;
        padding: 8px 12px;
    }

    .lb-app-bar__identity strong {
        font-size: 15px;
        white-space: normal;
    }

    .lb-app-bar__actions {
        display: flex;
    }

    .lb-app-bar__exit {
        min-height: 34px;
        padding: 6px 10px;
    }

    .lb-sidebar {
        top: 58px;
        max-width: 100vw;
    }

    .lb-workspace,
    .lb-main {
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .lb-workspace {
        overflow-x: clip;
    }

    .lb-sidebar__item {
        min-height: 39px;
        padding: 7px 10px;
        font-size: 12px;
    }

    .lb-sidebar__item .glyphicon {
        width: 21px;
        font-size: 13px;
    }

    .lb-main {
        padding: 18px 12px 28px;
    }

    .lb-section-heading {
        display: block;
    }

    .lb-metric-grid {
        grid-template-columns: 1fr;
    }

    .lb-metric {
        min-height: 104px;
    }

    .lb-kpi-panel .lb-metric {
        border-top: 1px solid #e4e9ee;
        border-left: 0;
    }

    .lb-kpi-panel .lb-metric:first-child {
        border-top: 0;
    }

    .lb-toast {
        right: 12px;
        bottom: 12px;
        left: 12px;
        max-width: none;
    }
}

@media (max-width: 420px) {
    .lb-app-bar__exit span:last-child {
        display: none;
    }

    .lb-app-bar__button .glyphicon {
        margin-right: 0;
    }
}

@media (max-width: 991px) {
    .lb-filter-grid,
    .lb-form-grid,
    .lb-checkbox-grid,
    .lb-check-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lb-summary-grid {
        grid-template-columns: repeat(3, minmax(120px, 1fr));
    }
}

@media (max-width: 767px) {
    .lb-overview-grid,
    .lb-detail-grid,
    .lb-split-list,
    .lb-filter-grid,
    .lb-form-grid,
    .lb-checkbox-grid,
    .lb-check-list,
    .lb-summary-grid,
    .lb-summary-grid_compact,
    .lb-paper__parties {
        grid-template-columns: 1fr;
    }

    .lb-field_wide,
    .lb-field_span2,
    .lb-file-card {
        grid-column: span 1;
    }

    .lb-card-heading,
    .lb-panel__heading,
    .lb-subheading {
        display: block;
    }

    .lb-card-heading .lb-action-row,
    .lb-subheading .lb-action-row {
        justify-content: flex-start;
        margin-top: 14px;
    }

    .lb-tabs {
        top: calc(var(--lb-app-bar-height) + 4px);
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .lb-tabs button {
        flex: 0 0 auto;
    }

    .lb-totals {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lb-definition > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .lb-pagination {
        flex-wrap: wrap;
    }

    .lb-pagination > span {
        width: 100%;
    }

    .lb-print-document {
        padding: 8px;
    }

    .lb-paper {
        padding: 22px 16px;
    }

    .lb-paper header {
        display: block;
    }

    .lb-paper header h2,
    .lb-paper header p {
        margin-top: 12px;
        text-align: left;
    }
}

@media print {
    .demo-header,
    .lb-app-bar,
    .lb-sidebar,
    .lb-toast,
    .lb-dialog-backdrop,
    .lb-workspace,
    .lb-print-actions {
        display: none !important;
    }

    body.legal-billing-page,
    .lb-shell,
    .lb-main,
    .lb-print-document {
        color: #000;
        background: #fff;
    }

    .lb-print-document {
        position: static;
        overflow: visible;
        padding: 0;
    }
    .lb-paper {
        max-width: none;
        min-height: 0;
        padding: 0;
        box-shadow: none;
    }
}
