:root {
    --border: #eae5e5;
}
.lite-field.form-field.table-wrapper{
    z-index: 100 !important;
}

.lite-field.form-field.table-wrapper.child-table-shell {
    --child-table-border: rgba(21, 16, 48, 0.08);
    --child-table-line: rgba(21, 16, 48, 0.06);
    --child-table-panel: rgba(255, 255, 255, 0.18);
    --child-table-panel-strong: rgba(255, 255, 255, 0.72);
    --child-table-muted: rgba(21, 16, 48, 0.52);
    --child-table-text: rgba(21, 16, 48, 0.74);
    --child-table-row: rgba(255, 255, 255, 0.32);
    --child-table-row-hover: rgba(255, 255, 255, 0.58);
    --child-table-icon-bg: rgba(255, 255, 255, 0.72);
    margin-top: 1rem !important;
    padding: 0;
    border: 0 !important;
    border-radius: 8px;
    background: transparent !important;
    box-shadow: none !important;
}

.child-table-topbar,
.child-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.child-table-topbar {
    min-height: 34px;
    margin-bottom: 0.45rem;
}

.child-table-title {
    max-width: 100%;
    overflow: hidden;
    color: var(--child-table-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.child-table-description {
    display: block;
    max-width: 100%;
    overflow: hidden;
    color: var(--child-table-muted);
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.child-table-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 0.4rem;
}

.child-table-x-scrollers {
    gap: 0.35rem;
    margin-bottom: 0;
}

.child-table-x-scroll-btn {
    width: 25px !important;
    height: 25px !important;
    min-width: 25px !important;
    padding: 0 !important;
    border: 1px solid var(--child-table-border) !important;
    border-radius: 999px !important;
    color: var(--default, #4f46e5) !important;
    background: var(--child-table-panel-strong) !important;
    box-shadow: none !important;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.child-table-x-scroll-btn:hover {
    color: var(--theme_text_color, #fff) !important;
    background: var(--default, #4f46e5) !important;
    transform: translateY(-1px);
}

.child-table-x-scroll-btn .material-symbols-outlined {
    width: 13px;
    font-size: 13px !important;
    line-height: 1;
}

.child-table-x-scroll-btn:first-child .material-symbols-outlined {
    transform: translateX(1px);
}

.child-table-x-scroll-btn:last-child .material-symbols-outlined {
    transform: translateX(0.5px);
}

.child-table-scroll-viewport {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 8px;
}

.table.child-table-grid {
    width: max-content !important;
    min-width: 100%;
    max-width: none !important;
    overflow: visible;
    border: 0 !important;
    border-radius: 8px !important;
    background: var(--child-table-panel);
    box-shadow: none !important;
}

.table.child-table-grid .child-table-head,
.table.child-table-grid .child-table-body,
.table.child-table-grid .child-table-row,
.table.child-table-grid .child-table-head > .tr {
    width: max-content !important;
    min-width: 100%;
}

.child-table-head {
    height: 32px !important;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 700;
}

.child-table-head > .tr {
    background: var(--default, #4f46e5);
}

.child-table-head .th,
.child-table-row .th,
.child-table-row .tc,
.child-table-row .table-row-actions {
    min-width: 0;
    padding: 0 0.45rem;
    border-right: 1px dashed var(--child-table-line);
}

.child-table-head .th:last-child,
.child-table-row .table-row-actions {
    border-right: 0;
}

.child-table-row {
    min-height: 36px;
    color: var(--child-table-text);
    background: var(--child-table-row);
    border-bottom: 1px dashed var(--child-table-line);
}

.child-table-row:last-child {
    border-bottom: 0;
}

.child-table-row:hover {
    background: var(--child-table-row-hover);
}

.lite-field.form-field.table-wrapper .form-check-input[type="checkbox"],
.lite-field.form-field.table-wrapper input[type="checkbox"].list-check {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 5px !important;
    border-color: var(--child-table-border) !important;
    background-color: transparent !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 12px 12px;
    box-shadow: none !important;
}

.lite-field.form-field.table-wrapper .form-check-input[type="checkbox"]:checked,
.lite-field.form-field.table-wrapper input[type="checkbox"].list-check:checked {
    border-color: var(--default, #4f46e5) !important;
    background-color: var(--default, #4f46e5) !important;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 8.2L6.6 11.2L12.8 4.8' stroke='white' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
}

.child-table-row .form-field,
.child-table-row .lite-field,
.child-table-row .form-control,
.child-table-row .ts-control {
    min-height: 30px !important;
    font-size: 12px !important;
}

.child-table-row input,
.child-table-row textarea {
    font-size: 12px !important;
}

.child-table-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0 !important;
    border-radius: 8px;
    color: var(--default, #4f46e5);
    background: var(--child-table-icon-bg);
}

.child-table-footer {
    min-height: 34px;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    border-top: 0;
    flex-wrap: wrap;
}

.child-table-actions-slot {
    flex: 0 0 auto;
}

.child-table-action-buttons {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
}

.child-table-action-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 30px !important;
    min-width: 70px !important;
    padding: 0 0.58rem !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    gap: 0.25rem;
}

.child-table-action-btn .material-symbols-outlined {
    font-size: 17px;
}

.child-table-action-text {
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.child-table-action-btn-remove {
    border: 0 !important;
    color: #c2410c !important;
    background: rgba(255, 247, 237, 0.82) !important;
}

.child-table-action-btn-add {
    border: 0 !important;
    color: var(--theme_text_color, #fff) !important;
    background: var(--default, #4f46e5) !important;
}

.child-table-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
}

.child-table-pagination .pagination_wrapper {
    width: auto !important;
    max-width: 100%;
    height: 32px !important;
    min-height: 32px;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    background: transparent !important;
    overflow: visible !important;
}

.child-table-pagination .pagination_wrapper > div {
    height: 32px !important;
}

.child-table-pagination .pagination_wrapper > div > div {
    width: auto !important;
    min-width: 0;
    height: 32px !important;
    min-height: 32px;
    gap: 0.35rem;
    padding: 0.18rem 0.25rem !important;
    border: 0;
    border-radius: 8px !important;
    background: var(--child-table-panel-strong) !important;
    box-shadow: none !important;
}

.child-table-pagination .pagination_wrapper > div > div > div {
    gap: 0.35rem !important;
}

.child-table-pagination .page-size-select {
    width: 92px !important;
    height: 26px !important;
    min-height: 26px !important;
    margin-top: 0 !important;
    padding: 0 1.65rem 0 0.55rem !important;
    border: 0 !important;
    border-radius: 7px !important;
    color: var(--child-table-text) !important;
    background-color: rgba(21, 16, 48, 0.05) !important;
    font-size: 11px !important;
    font-weight: 800;
    box-shadow: none !important;
    color-scheme: light;
}

.child-table-pagination .page-size-select option {
    color: rgba(21, 16, 48, 0.78);
    background: #f8fafc;
}

.child-table-pagination .page-size-select option:checked {
    color: var(--theme_text_color, #fff);
    background: var(--default, #4f46e5);
}

.child-table-pagination .pagination {
    display: flex;
    align-items: center;
    gap: 0.12rem;
    margin: 0;
}

.child-table-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 24px;
    padding: 0 0.35rem;
    border-radius: 7px;
    color: var(--child-table-muted);
    font-size: 11px;
    font-weight: 800;
}

.child-table-pagination .page-link.active,
.child-table-pagination .page-link:hover {
    color: var(--theme_text_color, #fff) !important;
    background: var(--default, #4f46e5) !important;
}

.child-table-pagination .material-symbols-outlined {
    font-size: 16px !important;
}

.child-table-pagination .pagination_wrapper > div > div > div > span.font-bold {
    margin-left: 0 !important;
    color: var(--child-table-muted);
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.child-table-pagination .pagination_wrapper > div > div > div > span.font-bold > span {
    padding: 0 0.4rem !important;
    border-radius: 7px !important;
    background: rgba(21, 16, 48, 0.05) !important;
}

html[data-lite-theme="dark"] .lite-field.form-field.table-wrapper.child-table-shell {
    --child-table-border: rgba(148, 163, 184, 0.16);
    --child-table-line: rgba(148, 163, 184, 0.08);
    --child-table-panel: rgba(15, 23, 42, 0.06);
    --child-table-panel-strong: rgba(226, 232, 240, 0.08);
    --child-table-muted: rgba(226, 232, 240, 0.52);
    --child-table-text: rgba(226, 232, 240, 0.78);
    --child-table-row: rgba(226, 232, 240, 0.025);
    --child-table-row-hover: rgba(226, 232, 240, 0.055);
    --child-table-icon-bg: rgba(226, 232, 240, 0.09);
}

html[data-lite-theme="dark"] .table.child-table-grid,
html[data-lite-theme="dark"] .table.child-table-grid .th,
html[data-lite-theme="dark"] .table.child-table-grid .tc,
html[data-lite-theme="dark"] .table.child-table-grid .td {
    background-color: transparent !important;
}

html[data-lite-theme="dark"] .child-table-head > .tr {
    background: color-mix(in srgb, var(--default, #151030) 56%, var(--secondary_color, #4f7cff)) !important;
}

html[data-lite-theme="dark"] .child-table-row {
    background: var(--child-table-row) !important;
    color: var(--child-table-text) !important;
}

html[data-lite-theme="dark"] .child-table-row:hover {
    background: var(--child-table-row-hover) !important;
}

html[data-lite-theme="dark"] .lite-field.form-field.table-wrapper .form-check-input[type="checkbox"],
html[data-lite-theme="dark"] .lite-field.form-field.table-wrapper input[type="checkbox"].list-check {
    border-color: rgba(226, 232, 240, 0.38) !important;
    background-color: rgba(15, 23, 42, 0.42) !important;
}

html[data-lite-theme="dark"] .lite-field.form-field.table-wrapper .form-check-input[type="checkbox"]:checked,
html[data-lite-theme="dark"] .lite-field.form-field.table-wrapper input[type="checkbox"].list-check:checked {
    border-color: var(--secondary_color, #4f7cff) !important;
    background-color: var(--secondary_color, #4f7cff) !important;
}

html[data-lite-theme="dark"] .child-table-icon-btn,
html[data-lite-theme="dark"] .child-table-x-scroll-btn,
html[data-lite-theme="dark"] .child-table-pagination .pagination_wrapper > div > div {
    color: var(--child-table-text) !important;
    background: var(--child-table-panel-strong) !important;
}

html[data-lite-theme="dark"] .child-table-x-scroll-btn {
    border-color: var(--child-table-border) !important;
}

html[data-lite-theme="dark"] .child-table-x-scroll-btn:hover {
    color: var(--theme_text_color, #fff) !important;
    border-color: color-mix(in srgb, var(--secondary_color, #4f7cff) 58%, rgba(148, 163, 184, 0.18)) !important;
    background: color-mix(in srgb, var(--default, #151030) 72%, var(--secondary_color, #4f7cff)) !important;
}

html[data-lite-theme="dark"] .child-table-pagination .page-size-select {
    color: var(--child-table-text) !important;
    background-color: rgba(226, 232, 240, 0.08) !important;
    color-scheme: dark;
}

html[data-lite-theme="dark"] select option,
html[data-lite-theme="dark"] .child-table-pagination .page-size-select option {
    color: rgba(226, 232, 240, 0.86);
    background: #111827;
}

html[data-lite-theme="dark"] select option:checked,
html[data-lite-theme="dark"] .child-table-pagination .page-size-select option:checked {
    color: var(--theme_text_color, #fff);
    background: color-mix(in srgb, var(--secondary_color, #4f7cff) 72%, #111827);
}

html[data-lite-theme="dark"] .child-table-action-btn-remove {
    color: #fed7aa !important;
    background: rgba(251, 146, 60, 0.14) !important;
}

html[data-lite-theme="dark"] .child-table-action-btn-add {
    color: var(--theme_text_color, #fff) !important;
    background: color-mix(in srgb, var(--default, #151030) 76%, var(--secondary_color, #4f7cff)) !important;
}

html[data-lite-theme="dark"] .child-table-pagination .page-link {
    color: var(--child-table-muted) !important;
}

html[data-lite-theme="dark"] .child-table-pagination .page-link.active,
html[data-lite-theme="dark"] .child-table-pagination .page-link:hover {
    color: var(--theme_text_color, #fff) !important;
    background: color-mix(in srgb, var(--secondary_color, #4f7cff) 72%, var(--default, #151030)) !important;
}

html[data-lite-theme="dark"] .child-table-pagination .pagination_wrapper > div > div > div > span.font-bold > span {
    background: rgba(226, 232, 240, 0.08) !important;
}

.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    height: 100%;
    white-space: nowrap;
    border-radius: 7px;
    border: 1px var(--border) solid !important;
}

.report-content-shell {
    min-height: 100%;
}

.report-theme-card,
.report-table-stage {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(21, 16, 48, 0.05) !important;
    border-radius: 8px;
    box-shadow: none;
}

.report-table-card {
    min-height: 520px;
}

.report-table-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.28rem 0.4rem !important;
    border: 1px solid rgba(21, 16, 48, 0.05) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.34) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 10px 28px rgba(21, 16, 48, 0.045) !important;
    backdrop-filter: blur(14px);
}

.report-title-chip {
    min-height: 38px;
    padding: 0 0.9rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(21, 16, 48, 0.08);
    box-shadow: 0 8px 20px rgba(21, 16, 48, 0.045);
}

.report-toolbar .ts-wrapper,
.report-toolbar .ts-control,
.report-toolbar .ts-control input {
    min-height: 47px;
}

.report-toolbar .ts-control {
    border-radius: 8px !important;
    border: 1px solid rgba(21, 16, 48, 0.08) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 8px 20px rgba(21, 16, 48, 0.045) !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
}

.report-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.report-wrapper {
    margin-top: 0.75rem !important;
}

.report-wrapper > .report-wrapper {
    margin-top: 0 !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(21, 16, 48, 0.05);
    box-shadow: none;
    overflow: hidden;
}

.report-wrapper > .report-wrapper > .w-full.grid {
    height: 100% !important;
    padding: 0.75rem;
}

.report-wrapper .col-span-4,
.report-wrapper .main-content-wrapper,
.report-wrapper .main-content-wrapper > div {
    height: 100%;
}

.report-wrapper .main-content-wrapper,
.report-wrapper .main-content-wrapper > div,
.report-wrapper .main-content-wrapper .skeleton {
    background: transparent !important;
    box-shadow: none !important;
}

.report-wrapper .main-content-wrapper .skeleton > div {
    padding: 0 !important;
}

.report-wrapper .filters-wrapper.report-filters-wrapper,
.report-wrapper .report-filters-wrapper {
    min-height: 44px;
    height: auto !important;
    margin-top: 0 !important;
    margin-bottom: 0.75rem !important;
    padding: 0.28rem 0.4rem !important;
    gap: 0.6rem !important;
    align-items: center;
    border: 1px solid rgba(21, 16, 48, 0.05) !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.34) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 10px 28px rgba(21, 16, 48, 0.045) !important;
    backdrop-filter: blur(14px);
    flex-wrap: wrap;
    align-content: flex-start;
}

.report-wrapper .report-filters-wrapper .field-wrapper {
    min-width: 190px;
    margin: 0 !important;
}

.report-wrapper .report-filters-wrapper .form-label,
.report-wrapper .report-filters-wrapper label {
    margin-bottom: 0.18rem !important;
    color: rgba(21, 16, 48, 0.58) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
}

.report-wrapper .report-filters-wrapper .lite-field,
.report-wrapper .report-filters-wrapper .form-control,
.report-wrapper .report-filters-wrapper .ts-control {
    min-height: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    border-color: rgba(21, 16, 48, 0.08) !important;
    background: rgba(255, 255, 255, 0.58) !important;
    box-shadow: 0 8px 20px rgba(21, 16, 48, 0.045) !important;
    color: rgba(21, 16, 48, 0.72) !important;
}

.report-wrapper .report-filters-wrapper .ts-wrapper,
.report-wrapper .report-filters-wrapper .lite-selector {
    min-height: 38px !important;
}

.report-wrapper .report-filters-wrapper.hidden {
    display: none !important;
}

.table-row {
    /* display: flex;
    flex-wrap: nowrap; */
    min-height: 50px;
    height: 45px;
    animation: fade 3s linear both;
    animation-timeline: view();
    transition: .5s;
}

.header-row {
    height: 45px;
}
.table-row.grid{
    min-height: 30px !important;
    display: grid !important;
}

.table-row.grid.header-row{
    min-height: 30px !important;
}
/* .header-row .table-cell {
    transition: .6s;
    cursor: pointer;
    position: relative;
    resize: horizontal;
    overflow: auto;
} */

/* .resizable::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: #ff0;
    cursor: no-resize;
} */

.header-row .table-cell:hover {
    color: #9c9b9b;
}

.material-symbols-outlined {
    font-size: 13px;
}

.table-body {
    width: 100%;
    height: 460px;
    overflow-x: hidden;
    overflow-y: auto;
}

.report-table-body {
    padding-bottom: 8px;
}

.table-cell {
    font-size: 13px;
    flex: 1;
    padding: 0 8px;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px var(--border) solid !important;
    border-right: 1px var(--border) solid !important;
}

.table-cell.empty-row{
    border: none !important;
    display: none !important;
}

.table-cell.flex {
    display: flex !important;
}

.table-cell:nth-child(1):not(.is-grid) {
    font-weight: 900 !important;
    min-width: 50px;
    max-width: 80px !important;
}

.table-cell.figure {
    text-align: right !important;
    font-weight: 600;
}

.table-row.table-row.total-row,
.table-cell.opening,
.table-cell.closing {
    font-weight: 800;
    background-color: #efefef !important;
    font-size: 13.5px;
}

.header-cell {
    font-weight: bold;
}

.report-wrapper .table-container {
    border: none !important;
    background: transparent;
    white-space: normal;
    overflow-y: hidden;
    border-radius: 8px;
}

.report-wrapper .report-header-row {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 55px;
    height: 55px;
    align-items: center;
    padding: 0 0.2rem;
    border-radius: 8px 8px 0 0;
    background: var(--default, #151030) !important;
    color: #fff !important;
    box-shadow: inset 0 -1px 0 rgba(21, 16, 48, 0.045);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.report-wrapper .report-header-row .table-cell {
    border-right: none !important;
    border-bottom: none !important;
    padding: 0 0.45rem;
}

.report-wrapper .report-header-row .table-cell:last-child {
    border-right: none !important;
}

.report-wrapper .report-header-row .report-head-cell {
    min-width: 0;
    height: 100%;
    display: flex !important;
    align-items: center;
    overflow: hidden;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

.report-wrapper .report-header-row .report-head-cell:first-child {
    justify-content: center;
}

.report-wrapper .report-header-row .report-head-content {
    min-width: 0;
    gap: 0.35rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.report-wrapper .report-header-row .material-symbols-outlined {
    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
}

.report-wrapper .report-header-row .sortable:hover,
.report-wrapper .report-header-row .sortable:hover .material-symbols-outlined {
    color: #fff;
}

.report-wrapper .report-data-row {
    min-height: 42px;
    height: 42px;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    color: rgba(21, 16, 48, 0.74);
    border: none;
    box-shadow: 0 1px 0 rgba(21, 16, 48, 0.035), 0 8px 18px rgba(21, 16, 48, 0.025);
    overflow: hidden;
    backdrop-filter: blur(8px);
}

.report-wrapper .report-data-row:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 12px 28px rgba(21, 16, 48, 0.08);
}

.report-wrapper .report-data-row .table-cell {
    border-bottom: none !important;
    border-right: none !important;
    padding: 0 14px;
}

.report-wrapper .report-data-row .table-cell:last-child {
    border-right: none !important;
}

.report-wrapper .report-data-row .table-cell:nth-child(1):not(.is-grid) {
    background: rgba(99, 102, 241, 0.05);
}

.report-wrapper .report-data-row .table-cell[data-value="-"],
.report-wrapper .report-data-row .table-cell .truncate:empty {
    color: #94a3b8;
}

@keyframes fade {
    0% {
        opacity: 0;
        transform: translateX(-4%);
    }

    15% {
        opacity: .7;
        transform: translateX(-0%);
    }

    20% {
        opacity: 1;

    }
}

.table-field,
.table-field:focus {
    font-size: 13px !important;
    border: none !important;
    outline: none !important;
}

.table-row .lite-selector,
.table-row input.form-control[type="number"],
.table-row input.form-control[type="text"]:focus,
.table-row input.form-control[type="number"]:focus {
    border-color: transparent !important;
    border: none !important;
    outline: none !important;

}

/* Report theme polish: keep report filters and rows synced with light/dark mode. */
.report-wrapper {
    --report-panel: rgba(255, 255, 255, 0.78);
    --report-panel-strong: rgba(255, 255, 255, 0.92);
    --report-row: rgba(255, 255, 255, 0.76);
    --report-row-hover: rgba(255, 255, 255, 0.94);
    --report-row-text: rgba(21, 16, 48, 0.76);
    --report-muted: rgba(21, 16, 48, 0.58);
    --report-border: rgba(21, 16, 48, 0.09);
    --report-shadow: rgba(21, 16, 48, 0.08);
}

.report-wrapper .filters-wrapper.report-filters-wrapper,
.report-wrapper .report-filters-wrapper {
    background: var(--report-panel) !important;
    border-color: var(--report-border) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62), 0 14px 34px var(--report-shadow) !important;
}

.report-wrapper .report-filters-wrapper .form-field:not([fieldtype="table"]):not([fieldtype="section-break"]):not([fieldtype="column-break"]),
.report-wrapper .report-filters-wrapper .field-wrapper {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.report-wrapper .report-filters-wrapper .form-label,
.report-wrapper .report-filters-wrapper label {
    color: var(--report-muted) !important;
}

.report-wrapper .report-filters-wrapper .lite-field,
.report-wrapper .report-filters-wrapper .form-control,
.report-wrapper .report-filters-wrapper .ts-control,
.report-wrapper .report-filters-wrapper .select-field-wrapper,
.report-wrapper .report-filters-wrapper .inner-select-field-wrapper .select-field {
    background: var(--report-panel-strong) !important;
    border-color: var(--report-border) !important;
    color: var(--report-row-text) !important;
    box-shadow: 0 10px 24px rgba(21, 16, 48, 0.06) !important;
}

.report-wrapper .report-filters-wrapper .lite-field::placeholder,
.report-wrapper .report-filters-wrapper .form-control::placeholder,
.report-wrapper .report-filters-wrapper .select-field::placeholder {
    color: var(--report-muted) !important;
}

.report-wrapper .report-table-head {
    margin-bottom: 0.55rem !important;
}

.report-wrapper .report-table-body {
    padding-right: 0.25rem;
}

.report-wrapper .report-data-row {
    animation: none !important;
    background: var(--report-row) !important;
    color: var(--report-row-text) !important;
    border: 1px solid var(--report-border) !important;
    box-shadow: 0 10px 24px var(--report-shadow) !important;
}

.report-wrapper .report-data-row:hover {
    background: var(--report-row-hover) !important;
    border-color: color-mix(in srgb, var(--secondary_color, #4f7cff) 26%, transparent) !important;
}

.report-wrapper .report-data-row .table-cell,
.report-wrapper .report-data-row .table-cell .truncate {
    color: inherit !important;
}

.report-wrapper .report-data-row .tbl-link-cell,
.report-wrapper .report-data-row .tbl-link-cell .truncate,
.report-wrapper .report-data-row .tbl-report-cell,
.report-wrapper .report-data-row .tbl-report-cell .truncate {
    color: var(--secondary_color, #4f7cff) !important;
}

html[data-lite-theme="dark"] .report-wrapper {
    --report-panel: rgba(15, 23, 42, 0.62);
    --report-panel-strong: rgba(15, 23, 42, 0.82);
    --report-row: rgba(30, 41, 59, 0.74);
    --report-row-hover: rgba(39, 52, 76, 0.9);
    --report-row-text: rgba(226, 232, 240, 0.86);
    --report-muted: rgba(226, 232, 240, 0.58);
    --report-border: rgba(148, 163, 184, 0.17);
    --report-shadow: rgba(0, 0, 0, 0.26);
}

html[data-lite-theme="dark"] .report-wrapper .filters-wrapper.report-filters-wrapper,
html[data-lite-theme="dark"] .report-wrapper .report-filters-wrapper {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.76), rgba(8, 13, 28, 0.72)) !important;
    border-color: var(--report-border) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04), 0 18px 38px var(--report-shadow) !important;
}

html[data-lite-theme="dark"] .report-wrapper .report-filters-wrapper .lite-field,
html[data-lite-theme="dark"] .report-wrapper .report-filters-wrapper .form-control,
html[data-lite-theme="dark"] .report-wrapper .report-filters-wrapper .ts-control,
html[data-lite-theme="dark"] .report-wrapper .report-filters-wrapper .select-field-wrapper,
html[data-lite-theme="dark"] .report-wrapper .report-filters-wrapper .inner-select-field-wrapper .select-field {
    background: rgba(15, 23, 42, 0.88) !important;
    border-color: var(--report-border) !important;
    color: var(--report-row-text) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035), 0 10px 24px rgba(0, 0, 0, 0.18) !important;
}

html[data-lite-theme="dark"] .report-wrapper .report-header-row {
    background: color-mix(in srgb, var(--secondary_color, #4f7cff) 42%, #07111f) !important;
    color: #fff !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
}

html[data-lite-theme="dark"] .report-wrapper .report-data-row .table-cell:nth-child(1):not(.is-grid) {
    background: rgba(255, 255, 255, 0.025) !important;
}

.audit-activity-form {
    --audit-panel: rgba(255, 255, 255, 0.9);
    --audit-panel-soft: rgba(248, 250, 252, 0.82);
    --audit-border: rgba(21, 16, 48, 0.08);
    --audit-line: rgba(100, 116, 139, 0.16);
    --audit-text: rgba(21, 16, 48, 0.82);
    --audit-muted: rgba(71, 85, 105, 0.68);
    --audit-shadow: rgba(15, 23, 42, 0.08);
    width: 100%;
    margin-top: 0.5rem;
    color: var(--audit-text);
}

.audit-activity-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
    padding: 1rem;
    border: 1px solid var(--audit-border);
    border-radius: 8px;
    background: linear-gradient(135deg, var(--audit-panel), rgba(255, 255, 255, 0.66));
    box-shadow: 0 14px 34px var(--audit-shadow);
}

.audit-activity-hero-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.85rem;
}

.audit-activity-hero-title > .material-symbols-outlined {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--theme_text_color, #fff);
    background: var(--default, #4f46e5);
}

.audit-activity-hero h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 850;
    line-height: 1.1;
}

.audit-activity-hero p {
    max-width: 100%;
    margin: 0.25rem 0 0;
    overflow: hidden;
    color: var(--audit-muted);
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-activity-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    height: 46px;
    padding: 0 0.8rem;
    border-radius: 8px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--default, #4f46e5);
    gap: 0.35rem;
}

.audit-activity-count strong {
    font-size: 20px;
    font-weight: 850;
}

.audit-activity-count span {
    color: var(--audit-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.audit-activity-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.75rem;
}

.audit-activity-meta-card {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 0.65rem;
    min-height: 64px;
    padding: 0.8rem;
    border: 1px solid var(--audit-border);
    border-radius: 8px;
    background: var(--audit-panel-soft);
}

.audit-activity-meta-card > .material-symbols-outlined {
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    border-radius: 8px;
    color: var(--default, #4f46e5);
    background: rgba(79, 70, 229, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.audit-activity-meta-card div {
    min-width: 0;
}

.audit-activity-meta-card small {
    display: block;
    color: var(--audit-muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.audit-activity-meta-card strong {
    display: block;
    margin-top: 0.2rem;
    overflow: hidden;
    color: var(--audit-text);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.audit-activity-feed {
    margin-top: 1rem;
    padding: 0.2rem 0 0.4rem;
}

.audit-activity-day {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 1rem;
}

.audit-activity-day + .audit-activity-day {
    margin-top: 0.9rem;
}

.audit-activity-date {
    position: sticky;
    top: 0.5rem;
    align-self: flex-start;
    width: max-content;
    max-width: 118px;
    padding: 0.42rem 0.62rem;
    border: 1px solid var(--audit-border);
    border-radius: 999px;
    background: var(--audit-panel);
    color: var(--audit-muted);
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
    box-shadow: 0 10px 22px var(--audit-shadow);
}

.audit-activity-list {
    position: relative;
    min-width: 0;
    padding-left: 1.15rem;
}

.audit-activity-list::before {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 14px;
    width: 1px;
    background: var(--audit-line);
}

.audit-activity-event {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0.8rem;
}

.audit-activity-event + .audit-activity-event,
.audit-activity-more .audit-activity-event {
    margin-top: 0.7rem;
}

.audit-activity-marker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 3px solid var(--audit-panel);
    border-radius: 999px;
    color: var(--default, #4f46e5);
    background: rgba(79, 70, 229, 0.12);
}

.audit-activity-marker .material-symbols-outlined {
    font-size: 16px;
}

.audit-activity-event.is-positive .audit-activity-marker {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
}

.audit-activity-event.is-danger .audit-activity-marker {
    color: #be123c;
    background: rgba(244, 63, 94, 0.14);
}

.audit-activity-card {
    min-width: 0;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--audit-border);
    border-radius: 8px;
    background: var(--audit-panel);
    box-shadow: 0 12px 28px var(--audit-shadow);
}

.audit-activity-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.audit-activity-message {
    min-width: 0;
    color: var(--audit-text);
    font-size: 13px;
    line-height: 1.45;
}

.audit-activity-message strong {
    font-weight: 850;
}

.audit-action-badge {
    flex: 0 0 auto;
    max-width: 110px;
    overflow: hidden;
    padding: 0.26rem 0.55rem;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.1);
    color: var(--audit-muted);
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.audit-activity-change {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.audit-activity-change .material-symbols-outlined {
    color: var(--audit-muted);
    font-size: 17px;
}

.audit-change-pill {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    max-width: 100%;
    overflow: hidden;
    padding: 0.28rem 0.62rem;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
}

.audit-change-before {
    color: #92400e;
    background: rgba(245, 158, 11, 0.14);
}

.audit-change-after {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
}

.audit-change-empty {
    color: var(--audit-muted);
    background: rgba(100, 116, 139, 0.1);
}

.audit-activity-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.65rem;
    color: var(--audit-muted);
    font-size: 11px;
    font-weight: 700;
}

.audit-activity-time .material-symbols-outlined {
    font-size: 15px;
}

.audit-activity-more {
    margin-top: 0.7rem;
}

.audit-activity-more summary {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 32px;
    padding: 0 0.75rem;
    border: 1px solid var(--audit-border);
    border-radius: 999px;
    background: var(--audit-panel);
    color: var(--audit-text);
    cursor: pointer;
    font-size: 12px;
    font-weight: 850;
    list-style: none;
    box-shadow: 0 10px 22px var(--audit-shadow);
}

.audit-activity-more summary::-webkit-details-marker {
    display: none;
}

.audit-activity-more summary .material-symbols-outlined {
    font-size: 17px;
}

.audit-activity-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 210px;
    margin-top: 1rem;
    padding: 1.5rem;
    border: 1px dashed var(--audit-border);
    border-radius: 8px;
    background: var(--audit-panel-soft);
    color: var(--audit-muted);
    text-align: center;
}

.audit-activity-empty .material-symbols-outlined {
    color: var(--default, #4f46e5);
    font-size: 34px;
}

.audit-activity-empty strong {
    margin-top: 0.45rem;
    color: var(--audit-text);
    font-size: 14px;
    font-weight: 850;
}

.audit-activity-empty p {
    max-width: 300px;
    margin: 0.35rem 0 0;
    font-size: 12px;
    line-height: 1.5;
}

.audit-activity-drawer {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.audit-activity-drawer-panel {
    width: min(620px, 94vw);
    height: 99%;
    padding: 0;
    overflow: hidden;
    border-left: 1px solid rgba(21, 16, 48, 0.08);
    border-radius: 8px 0 0 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: -20px 0 50px rgba(15, 23, 42, 0.16);
}

.audit-activity-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(21, 16, 48, 0.08);
}

.audit-activity-drawer-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(21, 16, 48, 0.86);
    font-size: 17px;
    font-weight: 850;
}

.audit-activity-drawer-title .material-symbols-outlined {
    color: var(--default, #4f46e5);
    font-size: 25px;
}

.audit-activity-drawer-head button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    color: rgba(71, 85, 105, 0.86);
    background: rgba(100, 116, 139, 0.08);
}

.audit-activity-drawer-body {
    height: calc(100% - 58px);
    overflow-y: auto;
    padding: 1rem;
}

.audit-activity-drawer-body .audit-activity-form {
    margin-top: 0;
}

html[data-lite-theme="dark"] .audit-activity-form,
html[data-lite-theme="dark"] .audit-activity-drawer-body .audit-activity-form {
    --audit-panel: rgba(15, 23, 42, 0.88);
    --audit-panel-soft: rgba(30, 41, 59, 0.68);
    --audit-border: rgba(148, 163, 184, 0.16);
    --audit-line: rgba(148, 163, 184, 0.16);
    --audit-text: rgba(226, 232, 240, 0.88);
    --audit-muted: rgba(226, 232, 240, 0.58);
    --audit-shadow: rgba(0, 0, 0, 0.24);
}

html[data-lite-theme="dark"] .audit-activity-drawer-panel {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.34);
}

html[data-lite-theme="dark"] .audit-activity-drawer-head {
    border-color: rgba(148, 163, 184, 0.16);
}

html[data-lite-theme="dark"] .audit-activity-drawer-title {
    color: rgba(226, 232, 240, 0.88);
}

html[data-lite-theme="dark"] .audit-activity-drawer-head button {
    color: rgba(226, 232, 240, 0.72);
    background: rgba(226, 232, 240, 0.08);
}

html[data-lite-theme="dark"] .audit-activity-marker {
    border-color: rgba(15, 23, 42, 0.94);
}

@media (max-width: 900px) {
    .audit-activity-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audit-activity-day {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .audit-activity-date {
        position: relative;
        top: auto;
        max-width: 100%;
    }

    .audit-activity-list {
        padding-left: 0;
    }
}

@media (max-width: 560px) {
    .audit-activity-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .audit-activity-count {
        justify-content: flex-start;
        width: 100%;
    }

    .audit-activity-meta-grid {
        grid-template-columns: 1fr;
    }

    .audit-activity-card-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Final audit drawer overrides. table.css loads after custom.css, so keep the reference panel rules last. */
.audit-activity-drawer {
    align-items: center !important;
    justify-content: flex-end !important;
    background: rgba(15, 23, 42, 0.28) !important;
}

.audit-activity-drawer .audit-activity-drawer-panel {
    width: min(430px, calc(100vw - 28px)) !important;
    height: calc(100vh - 28px) !important;
    margin: 14px !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    color: #111827 !important;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.28) !important;
}

.audit-activity-drawer .audit-activity-drawer-head {
    height: 64px !important;
    padding: 0 18px !important;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
    background: #ffffff !important;
}

.audit-activity-drawer .audit-activity-drawer-title {
    gap: 0.65rem !important;
    color: #111827 !important;
    font-size: 20px !important;
    font-weight: 850 !important;
}

.audit-activity-drawer .audit-activity-drawer-title .material-symbols-outlined {
    color: #111827 !important;
    font-size: 29px !important;
}

.audit-activity-drawer .close-trail-btn {
    width: 34px !important;
    height: 34px !important;
    color: #4b5563 !important;
    background: transparent !important;
}

.audit-activity-drawer .close-trail-btn .material-symbols-outlined {
    font-size: 30px !important;
}

.audit-activity-drawer .audit-activity-drawer-body {
    height: calc(100% - 64px) !important;
    padding: 16px 18px 22px !important;
    background: #ffffff !important;
}

.audit-activity-form-drawer {
    --audit-panel: #ffffff !important;
    --audit-panel-soft: #f8fafc !important;
    --audit-border: rgba(15, 23, 42, 0.09) !important;
    --audit-line: rgba(15, 23, 42, 0.1) !important;
    --audit-text: #111827 !important;
    --audit-muted: #6b7280 !important;
    --audit-shadow: rgba(15, 23, 42, 0.05) !important;
    margin: 0 !important;
    background: transparent !important;
    color: #111827 !important;
}

.audit-activity-form-drawer .audit-activity-drawer-summary {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 1rem !important;
    margin-bottom: 18px !important;
}

.audit-activity-form-drawer .audit-activity-drawer-summary strong,
.audit-activity-form-drawer .audit-activity-drawer-summary span {
    display: block !important;
}

.audit-activity-form-drawer .audit-activity-drawer-summary strong {
    color: #111827 !important;
    font-size: 14px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
}

.audit-activity-form-drawer .audit-activity-drawer-summary div > span {
    margin-top: 3px !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
}

.audit-activity-form-drawer .audit-activity-drawer-summary > span {
    flex: 0 0 auto !important;
    color: #111827 !important;
    font-size: 12px !important;
    font-weight: 850 !important;
    text-transform: capitalize !important;
}

.audit-activity-form-drawer .audit-activity-feed {
    margin-top: 0 !important;
}

.audit-activity-form-drawer .audit-activity-day {
    display: block !important;
}

.audit-activity-form-drawer .audit-activity-date {
    position: relative !important;
    top: auto !important;
    max-width: 100% !important;
    margin: 0 0 12px 45px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #6b7280 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.audit-activity-form-drawer .audit-activity-list {
    padding-left: 0 !important;
}

.audit-activity-form-drawer .audit-activity-list::before {
    left: 16px !important;
    top: 18px !important;
    bottom: 18px !important;
    background: rgba(15, 23, 42, 0.1) !important;
}

.audit-activity-form-drawer .audit-activity-event {
    display: grid !important;
    grid-template-columns: 32px minmax(0, 1fr) !important;
    gap: 13px !important;
}

.audit-activity-form-drawer .audit-activity-event + .audit-activity-event,
.audit-activity-form-drawer .audit-activity-more .audit-activity-event {
    margin-top: 18px !important;
}

.audit-activity-form-drawer .audit-activity-marker {
    width: 32px !important;
    height: 32px !important;
    border: 2px solid #f8fafc !important;
    color: #4b5563 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.08), 0 8px 18px rgba(15, 23, 42, 0.07) !important;
}

.audit-activity-form-drawer .audit-activity-event.is-positive .audit-activity-marker {
    color: #059669 !important;
    background: #ecfdf5 !important;
}

.audit-activity-form-drawer .audit-activity-event.is-danger .audit-activity-marker {
    color: #dc2626 !important;
    background: #fff1f2 !important;
}

.audit-activity-form-drawer .audit-activity-card {
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.audit-activity-form-drawer .audit-activity-card-head {
    align-items: flex-start !important;
    gap: 12px !important;
}

.audit-activity-form-drawer .audit-activity-message {
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
}

.audit-activity-form-drawer .audit-activity-message strong {
    color: #111827 !important;
    font-weight: 850 !important;
}

.audit-activity-form-drawer .audit-action-badge {
    max-width: 95px !important;
    color: #4b5563 !important;
    background: #f3f4f6 !important;
    font-size: 10px !important;
}

.audit-activity-form-drawer .audit-activity-time {
    margin-top: 9px !important;
    color: #6b7280 !important;
    font-size: 12px !important;
}

.audit-activity-form-drawer .audit-activity-time .material-symbols-outlined {
    font-size: 17px !important;
}

html[data-lite-theme="dark"] .audit-activity-drawer .audit-activity-drawer-panel,
html[data-lite-theme="dark"] .audit-activity-drawer .audit-activity-drawer-head,
html[data-lite-theme="dark"] .audit-activity-drawer .audit-activity-drawer-body {
    background: #ffffff !important;
    color: #111827 !important;
}

/* Varyon themed audit timeline */
.audit-activity-drawer.audit-trail-wrapper {
    background: rgba(2, 6, 23, 0.42) !important;
    backdrop-filter: blur(9px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(9px) saturate(120%) !important;
    cursor: pointer !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-panel {
    position: relative !important;
    width: min(460px, calc(100vw - 32px)) !important;
    height: calc(100vh - 34px) !important;
    margin: 17px 22px 17px 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(10, 17, 32, 0.98)) !important;
    color: rgba(226, 232, 240, 0.9) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        -26px 0 70px rgba(0, 0, 0, 0.38) !important;
    cursor: default !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-head {
    height: 68px !important;
    padding: 0 20px !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.13) !important;
    background: rgba(15, 23, 42, 0.86) !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-title {
    gap: 0.7rem !important;
    color: rgba(241, 245, 249, 0.96) !important;
    font-size: 18px !important;
    font-weight: 850 !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-title .material-symbols-outlined {
    width: 38px !important;
    height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 12px !important;
    color: #fb5a14 !important;
    background: rgba(251, 90, 20, 0.11) !important;
    font-size: 24px !important;
}

.audit-activity-drawer.audit-trail-wrapper .close-trail-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: absolute !important;
    top: 18px !important;
    right: 18px !important;
    z-index: 5 !important;
    width: auto !important;
    min-width: 82px !important;
    height: 38px !important;
    padding: 0 11px 0 9px !important;
    border: 1px solid rgba(148, 163, 184, 0.14) !important;
    border-radius: 999px !important;
    color: rgba(226, 232, 240, 0.78) !important;
    background: rgba(15, 23, 42, 0.72) !important;
    gap: 5px !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22) !important;
}

.audit-activity-drawer.audit-trail-wrapper .close-trail-btn:hover {
    color: #fff !important;
    background: rgba(251, 90, 20, 0.18) !important;
}

.audit-activity-drawer.audit-trail-wrapper .close-trail-btn .material-symbols-outlined {
    font-size: 20px !important;
}

.audit-activity-drawer.audit-trail-wrapper .close-trail-btn .audit-close-text {
    display: inline-flex !important;
    color: inherit !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-body {
    height: calc(100% - 68px) !important;
    padding: 18px 20px 96px !important;
    background:
        radial-gradient(circle at top right, rgba(38, 92, 74, 0.2), transparent 34%),
        rgba(10, 17, 32, 0.98) !important;
    scrollbar-gutter: stable !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-form-drawer {
    --audit-panel: rgba(15, 23, 42, 0.86) !important;
    --audit-panel-soft: rgba(30, 41, 59, 0.56) !important;
    --audit-border: rgba(148, 163, 184, 0.14) !important;
    --audit-line: rgba(45, 111, 88, 0.5) !important;
    --audit-text: rgba(241, 245, 249, 0.92) !important;
    --audit-muted: rgba(203, 213, 225, 0.62) !important;
    --audit-shadow: rgba(0, 0, 0, 0.24) !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-summary {
    padding: 14px !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(148, 163, 184, 0.13) !important;
    border-radius: 14px !important;
    background: rgba(15, 23, 42, 0.72) !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-summary strong {
    color: #f8fafc !important;
    font-size: 15px !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-summary div > span {
    color: rgba(203, 213, 225, 0.62) !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-summary > span {
    padding: 0.32rem 0.55rem !important;
    border-radius: 999px !important;
    color: #d1fae5 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    font-size: 10px !important;
    text-transform: uppercase !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-date {
    margin: 0 0 12px 48px !important;
    color: rgba(203, 213, 225, 0.56) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-list::before {
    left: 16px !important;
    background: linear-gradient(180deg, rgba(45, 111, 88, 0.7), rgba(251, 90, 20, 0.26)) !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-event {
    grid-template-columns: 34px minmax(0, 1fr) !important;
    gap: 14px !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-marker {
    width: 34px !important;
    height: 34px !important;
    border: 1px solid rgba(16, 185, 129, 0.34) !important;
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.05), 0 12px 24px rgba(0, 0, 0, 0.24) !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-marker .material-symbols-outlined {
    font-size: 18px !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-card {
    padding: 13px 14px !important;
    border: 1px solid rgba(148, 163, 184, 0.13) !important;
    border-radius: 14px !important;
    background: rgba(15, 23, 42, 0.72) !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18) !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-message {
    color: rgba(226, 232, 240, 0.76) !important;
    font-size: 13px !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-message strong {
    color: #f8fafc !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-action-badge {
    color: #fed7aa !important;
    background: rgba(251, 90, 20, 0.15) !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-time {
    color: rgba(203, 213, 225, 0.58) !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-time .material-symbols-outlined {
    color: rgba(45, 111, 88, 0.95) !important;
}

/* Keep audit drawer background synced with the active theme. */
html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper {
    background: rgba(15, 23, 42, 0.18) !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-panel {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)) !important;
    color: #111827 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.72),
        -26px 0 70px rgba(15, 23, 42, 0.18) !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-head {
    border-bottom-color: rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.88) !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-title {
    color: #111827 !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .close-trail-btn {
    border-color: rgba(15, 23, 42, 0.08) !important;
    color: #475569 !important;
    background: rgba(255, 255, 255, 0.92) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12) !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-body {
    background:
        radial-gradient(circle at top right, rgba(45, 111, 88, 0.08), transparent 34%),
        rgba(248, 250, 252, 0.96) !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-form-drawer {
    --audit-panel: rgba(255, 255, 255, 0.9) !important;
    --audit-panel-soft: rgba(241, 245, 249, 0.84) !important;
    --audit-border: rgba(15, 23, 42, 0.08) !important;
    --audit-line: rgba(45, 111, 88, 0.34) !important;
    --audit-text: #111827 !important;
    --audit-muted: #64748b !important;
    --audit-shadow: rgba(15, 23, 42, 0.08) !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-summary,
html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-card {
    border-color: rgba(15, 23, 42, 0.08) !important;
    background: rgba(255, 255, 255, 0.88) !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-summary strong,
html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-message strong {
    color: #111827 !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-summary div > span,
html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-date,
html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-time {
    color: #64748b !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-activity-message {
    color: #475569 !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-action-badge {
    color: #c2410c !important;
    background: rgba(251, 90, 20, 0.12) !important;
}

html[data-lite-theme="dark"] .audit-activity-drawer.audit-trail-wrapper {
    background: rgba(2, 6, 23, 0.42) !important;
}

html[data-lite-theme="dark"] .audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-panel {
    border-color: rgba(148, 163, 184, 0.14) !important;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(10, 17, 32, 0.98)) !important;
    color: rgba(226, 232, 240, 0.9) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        -26px 0 70px rgba(0, 0, 0, 0.38) !important;
}

html[data-lite-theme="dark"] .audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-head {
    border-bottom-color: rgba(148, 163, 184, 0.13) !important;
    background: rgba(15, 23, 42, 0.86) !important;
}

html[data-lite-theme="dark"] .audit-activity-drawer.audit-trail-wrapper .audit-activity-drawer-body {
    background:
        radial-gradient(circle at top right, rgba(38, 92, 74, 0.2), transparent 34%),
        rgba(10, 17, 32, 0.98) !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-list {
    position: relative !important;
    overflow: visible !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-list::before {
    left: 16px !important;
    width: 2px !important;
    transform: translateX(-1px) !important;
    z-index: 0 !important;
}

.audit-activity-drawer.audit-trail-wrapper .audit-activity-marker {
    z-index: 2 !important;
}

.audit-snapshot-accordion {
    min-width: 0 !important;
    border: 1px solid var(--audit-border) !important;
    background: var(--audit-panel) !important;
    box-shadow: 0 16px 34px var(--audit-shadow) !important;
    overflow: hidden !important;
    transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease !important;
}

.audit-snapshot-accordion summary {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.85rem !important;
    min-height: 70px !important;
    padding: 13px 14px !important;
    cursor: pointer !important;
    list-style: none !important;
    transition: background 0.22s ease !important;
}

.audit-snapshot-accordion summary::-webkit-details-marker {
    display: none !important;
}

.audit-snapshot-accordion:hover {
    border-color: rgba(45, 111, 88, 0.32) !important;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22) !important;
    transform: translateY(-1px) !important;
}

.audit-snapshot-accordion:hover summary {
    background: rgba(45, 111, 88, 0.07) !important;
}

.audit-snapshot-summary-main {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.25rem !important;
}

.audit-snapshot-summary-main strong {
    color: var(--audit-text) !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    line-height: 1.35 !important;
}

.audit-snapshot-summary-main span {
    max-width: 100% !important;
    overflow: hidden !important;
    color: var(--audit-muted) !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.audit-snapshot-summary-meta {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.45rem !important;
}

.audit-snapshot-count {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 25px !important;
    padding: 0 0.58rem !important;
    border-radius: 999px !important;
    color: #d1fae5 !important;
    background: rgba(16, 185, 129, 0.12) !important;
    font-size: 10px !important;
    font-weight: 850 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
}

.audit-snapshot-summary-meta .audit-activity-time {
    margin-top: 0 !important;
    white-space: nowrap !important;
}

.audit-snapshot-chevron {
    color: var(--audit-muted) !important;
    font-size: 20px !important;
    transition: color 0.2s ease, transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.audit-snapshot-accordion[open] .audit-snapshot-chevron {
    transform: rotate(180deg) !important;
}

.audit-snapshot-body {
    display: grid !important;
    gap: 0.7rem !important;
    padding: 0 14px 14px !important;
    animation: audit-snapshot-open 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
    transform-origin: top !important;
}

.audit-snapshot-row {
    padding: 11px 12px !important;
    border: 1px solid var(--audit-border) !important;
    border-radius: 12px !important;
    background: var(--audit-panel-soft) !important;
    animation: audit-snapshot-row-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1) both !important;
}

.audit-snapshot-row-head {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 0.75rem !important;
}

html:not([data-lite-theme="dark"]) .audit-activity-drawer.audit-trail-wrapper .audit-snapshot-count {
    color: #047857 !important;
    background: rgba(16, 185, 129, 0.12) !important;
}

@keyframes audit-snapshot-open {
    from {
        opacity: 0;
        transform: translateY(-8px) scaleY(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes audit-snapshot-row-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
