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

:root {
  --djudicial-command: #182433;
  --djudicial-command-muted: #a9b8ca;
  --djudicial-sidebar: #111b29;
}

body { background: var(--tblr-bg-surface-secondary); }
.djudicial-page-body { padding: 0; }
.djudicial-root-card { min-height: calc(100vh - 57px); border: 0; border-radius: 0; box-shadow: none; }
.djudicial-sidebar { background: var(--djudicial-sidebar); }
.djudicial-brand { min-height: 4.25rem; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.djudicial-brand__mark { width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; background: var(--tblr-primary); color: #fff; }
.djudicial-brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.djudicial-brand__text small { margin-top: .28rem; color: rgba(255, 255, 255, .48); font-size: .62rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.djudicial-sidebar .navbar-nav { gap: .15rem; }
.djudicial-sidebar .nav-link { margin-inline: .45rem; padding: .62rem .75rem; border-left: 2px solid transparent; }
.djudicial-sidebar .nav-link.active { border-left-color: var(--tblr-primary); background: rgba(255, 255, 255, .08); }
.djudicial-nav-section { padding: 1.25rem 1.25rem .4rem; color: rgba(255, 255, 255, .4); font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.djudicial-topbar { position: sticky; top: 0; z-index: 1025; min-height: 57px; border-bottom: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface); }
.djudicial-user { display: flex; align-items: center; gap: .65rem; }
.djudicial-user__copy { display: flex; flex-direction: column; line-height: 1.15; text-align: right; }
.djudicial-user__copy small { margin-top: .18rem; color: var(--tblr-secondary-color); }

.ereg-command-bar { min-height: 3.5rem; padding: .55rem 1rem; background: var(--djudicial-command); color: var(--tblr-light); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ereg-command-bar h1 { margin: 0; font-size: 1rem; font-weight: 650; }
.ereg-command-bar__title-icon { width: 2rem; height: 2rem; flex: 0 0 2rem; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.15rem; margin-right: .6rem; }
.djudicial-command-context { color: var(--djudicial-command-muted); font-size: .72rem; }
.djudicial-command-status { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .55rem; background: rgba(255, 255, 255, .08); color: #fff; font-size: .72rem; font-weight: 600; }
.djudicial-command-status::before { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; content: ""; }

.djudicial-toolbar { padding: .8rem 1rem; background: var(--tblr-bg-surface-secondary); border-bottom: 1px solid var(--tblr-border-color); }
.djudicial-toolbar .form-label { margin-bottom: .28rem; font-size: .68rem; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.djudicial-metric-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface); }
.djudicial-metric { min-height: 7rem; padding: 1rem 1.15rem; border-right: 1px solid var(--tblr-border-color); display: flex; flex-direction: column; justify-content: space-between; }
.djudicial-metric:last-child { border-right: 0; }
.djudicial-metric__top { display: flex; align-items: center; justify-content: space-between; color: var(--tblr-secondary-color); font-size: .73rem; font-weight: 650; letter-spacing: .025em; text-transform: uppercase; }
.djudicial-metric__icon { width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; background: var(--tblr-bg-surface-secondary); color: var(--tblr-primary); font-size: 1rem; }
.djudicial-metric__value { font-size: 1.8rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.djudicial-metric__hint { margin-left: .45rem; color: var(--tblr-secondary-color); font-size: .72rem; font-weight: 400; }

.djudicial-section-heading { min-height: 2.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1rem; border-bottom: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface-secondary); }
.djudicial-section-heading h2 { margin: 0; font-size: .78rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.djudicial-section-heading__meta { color: var(--tblr-secondary-color); font-size: .75rem; }
.djudicial-table { margin: 0; }
.djudicial-table thead th { padding-top: .62rem; padding-bottom: .62rem; background: var(--tblr-bg-surface-secondary); color: var(--tblr-secondary-color); font-size: .66rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.djudicial-table tbody td { padding-top: .72rem; padding-bottom: .72rem; vertical-align: middle; }
.djudicial-table tbody tr:hover { background: rgba(var(--tblr-primary-rgb), .035); }
.djudicial-record-link { font-weight: 650; text-decoration: none; }
.djudicial-vehicle { display: flex; flex-direction: column; line-height: 1.25; }
.djudicial-vehicle strong { font-weight: 600; }
.djudicial-vehicle small { margin-top: .12rem; color: var(--tblr-secondary-color); }
.djudicial-days { font-variant-numeric: tabular-nums; font-weight: 650; }
.djudicial-status { display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .48rem; border: 1px solid currentColor; font-size: .7rem; font-weight: 650; white-space: nowrap; }
.djudicial-status::before { width: .38rem; height: .38rem; border-radius: 50%; background: currentColor; content: ""; }
.djudicial-status--draft { color: var(--tblr-secondary); }
.djudicial-status--active { color: var(--tblr-blue); }
.djudicial-status--warning { color: var(--tblr-orange); }
.djudicial-status--success { color: var(--tblr-green); }
.djudicial-status--danger { color: var(--tblr-red); }

.djudicial-case-summary { display: grid; grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface); }
.djudicial-case-summary__item { min-height: 4.2rem; padding: .72rem 1rem; border-right: 1px solid var(--tblr-border-color); }
.djudicial-case-summary__item:last-child { border-right: 0; }
.djudicial-case-summary__label { display: block; margin-bottom: .28rem; color: var(--tblr-secondary-color); font-size: .65rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.djudicial-case-summary__value { font-size: .88rem; font-weight: 600; }
.djudicial-tabs-header { padding-top: .45rem; background: var(--tblr-bg-surface-secondary); }
.djudicial-tabs-header .nav-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; }
.djudicial-tab-content { min-height: 25rem; }
.djudicial-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.djudicial-panel-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .55rem; padding-bottom: .55rem; border-bottom: 1px solid var(--tblr-border-color); font-size: .8rem; font-weight: 700; letter-spacing: .025em; text-transform: uppercase; }
.djudicial-panel-title i { color: var(--tblr-primary); font-size: 1rem; }
.djudicial-data-list { margin: 0; }
.djudicial-data-list > div { display: grid; grid-template-columns: minmax(9rem, 35%) 1fr; min-height: 2.5rem; padding: .52rem 0; border-bottom: 1px solid var(--tblr-border-color); }
.djudicial-data-list > div:last-child { border-bottom: 0; }
.djudicial-data-list dt { color: var(--tblr-secondary-color); font-size: .75rem; font-weight: 500; }
.djudicial-data-list dd { margin: 0; font-size: .8rem; font-weight: 550; }
.djudicial-empty { padding: 2.5rem 1rem; border: 1px dashed var(--tblr-border-color); background: var(--tblr-bg-surface-secondary); text-align: center; }
.djudicial-empty__icon { width: 2.75rem; height: 2.75rem; margin: 0 auto .8rem; display: inline-flex; align-items: center; justify-content: center; background: var(--tblr-bg-surface); color: var(--tblr-secondary-color); font-size: 1.35rem; }
.djudicial-empty h3 { margin: 0 0 .25rem; font-size: .9rem; }
.djudicial-empty p { margin: 0; color: var(--tblr-secondary-color); font-size: .78rem; }

body.djudicial-has-editor { overflow: hidden; }
body.djudicial-has-editor .page { height: 100dvh; min-height: 0; overflow: hidden; }
body.djudicial-has-editor .page-wrapper { flex: 1 1 auto; min-height: 0; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
body.djudicial-has-editor .djudicial-topbar { flex: 0 0 57px; }
body.djudicial-has-editor .djudicial-page-body { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.djudicial-messages { flex: 0 0 auto; }
.djudicial-editor { flex: 1 1 auto; min-height: 0; height: auto; display: flex; flex-direction: column; overflow: hidden; }
.djudicial-editor > .ereg-command-bar, .djudicial-editor > .djudicial-editor-intro, .djudicial-editor > .djudicial-tabs-header, .djudicial-editor > .alert { flex: 0 0 auto; }
.djudicial-editor-body { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; background: var(--tblr-bg-surface); }
.djudicial-editor .card-footer { position: relative; z-index: 2; flex: 0 0 auto; border-top: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface); box-shadow: 0 -.25rem .75rem rgba(24, 36, 51, .06); }
.djudicial-editor-intro { display: flex; align-items: flex-start; gap: .7rem; padding: .75rem 1rem; border-bottom: 1px solid var(--tblr-border-color); background: var(--tblr-bg-surface-secondary); color: var(--tblr-secondary-color); font-size: .78rem; }
.djudicial-editor-intro i { color: var(--tblr-primary); font-size: 1.1rem; }
.djudicial-form-section { max-width: 72rem; }
.djudicial-form-section__title { margin: 0 0 .9rem; font-size: .82rem; font-weight: 700; }
.djudicial-action-separator { width: 1rem; }
.djudicial-dropzone { border: 1px dashed var(--tblr-primary); border-radius: 0; background: rgba(var(--tblr-primary-rgb), .025); }
.djudicial-dropzone .dz-message { margin: 1.25rem 0 .5rem; color: var(--tblr-secondary-color); font-size: .8rem; }
.djudicial-dropzone__icon { display: block; margin-bottom: .4rem; color: var(--tblr-primary); font-size: 1.6rem; }
.djudicial-billing-total { font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.djudicial-alert { border-radius: 0; border-left-width: 3px; }
.collection-review-photos { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; }
.collection-review-photos figure { border: 1px solid var(--tblr-border-color); margin: 0; }
.collection-review-photos img { aspect-ratio: 4 / 3; display: block; object-fit: cover; width: 100%; }
.collection-review-photos figcaption { font-size: .8rem; font-weight: 600; padding: .45rem; }
.collection-review-signature { border: 1px solid var(--tblr-border-color); max-height: 4rem; object-fit: contain; width: 10rem; }

@media (max-width: 991.98px) {
  .djudicial-metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .djudicial-metric:nth-child(2) { border-right: 0; }
  .djudicial-metric:nth-child(-n+2) { border-bottom: 1px solid var(--tblr-border-color); }
  .djudicial-case-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .djudicial-case-summary__item:nth-child(2) { border-right: 0; }
  .djudicial-case-summary__item:nth-child(-n+2) { border-bottom: 1px solid var(--tblr-border-color); }
}
@media (max-width: 767.98px) {
  .ereg-command-bar { align-items: stretch; flex-direction: column; }
  .ereg-command-bar > .d-flex:last-child { flex-wrap: wrap; }
  .djudicial-user__copy { display: none; }
  .djudicial-panel-grid { grid-template-columns: 1fr; }
  .djudicial-data-list > div { grid-template-columns: 1fr; gap: .15rem; }
  .djudicial-tabs-header { overflow-x: auto; }
  .djudicial-tabs-header .nav { flex-wrap: nowrap; }
  .djudicial-tabs-header .nav-link { white-space: nowrap; }
  .djudicial-case-list .djudicial-table th:nth-child(3), .djudicial-case-list .djudicial-table td:nth-child(3),
  .djudicial-case-list .djudicial-table th:nth-child(4), .djudicial-case-list .djudicial-table td:nth-child(4),
  .djudicial-case-list .djudicial-table th:nth-child(5), .djudicial-case-list .djudicial-table td:nth-child(5),
  .djudicial-case-list .djudicial-table th:nth-child(6), .djudicial-case-list .djudicial-table td:nth-child(6) { display: none; }
  .djudicial-dashboard .djudicial-table th:nth-child(3), .djudicial-dashboard .djudicial-table td:nth-child(3),
  .djudicial-dashboard .djudicial-table th:nth-child(4), .djudicial-dashboard .djudicial-table td:nth-child(4),
  .djudicial-dashboard .djudicial-table th:nth-child(6), .djudicial-dashboard .djudicial-table td:nth-child(6) { display: none; }
}
@media (max-width: 575.98px) {
  .djudicial-metric-strip, .djudicial-case-summary { grid-template-columns: 1fr; }
  .djudicial-metric, .djudicial-case-summary__item { border-right: 0; border-bottom: 1px solid var(--tblr-border-color); }
  .djudicial-metric:last-child, .djudicial-case-summary__item:last-child { border-bottom: 0; }
}
