/* Application composition. Tabler supplies Bootstrap's reset, components and utilities. */
:root { --fleet-sidebar-width: 232px; --tblr-font-sans-serif: "Segoe UI", Arial, sans-serif; }
body { font-family: var(--tblr-font-sans-serif); }
[hidden] { display: none !important; }
.fleet-workspace { min-width: 0; }
.fleet-has-shell .fleet-workspace { margin-left: var(--fleet-sidebar-width); }
.fleet-sidebar.navbar { position: fixed; inset: 0 auto 0 0; width: var(--fleet-sidebar-width); display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; padding: 20px 12px; background: var(--fleet-surface); border-right: 1px solid var(--fleet-line); z-index: 1030; overflow-y: auto; }
.fleet-sidebar-heading { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 30px; padding: 0 4px; }
.fleet-sidebar-brand { display: flex; justify-content: flex-start; margin: 0; padding: 0 8px; color: var(--fleet-ink); font: 400 36px/1.05 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.fleet-brand-initial { display: none; }
.fleet-sidebar-collapse { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 36px; padding: 6px; border: 0; border-radius: 6px; color: var(--fleet-secondary); background: transparent; }
.fleet-sidebar-collapse:hover { background: var(--fleet-soft); color: var(--fleet-ink); }
.fleet-sidebar-collapse:focus-visible { outline: 2px solid var(--fleet-accent); outline-offset: 2px; }
.fleet-sidebar .navbar-nav { gap: 6px; }
.fleet-sidebar.navbar .navbar-nav .nav-link { display: flex; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px; min-height: 44px; border: 0; border-radius: 6px; color: var(--fleet-secondary); background: transparent; text-align: left; font-size: 13px; white-space: nowrap; }
.fleet-sidebar.navbar .navbar-nav .nav-link.active, .fleet-sidebar.navbar .navbar-nav .nav-link:hover { background: var(--fleet-soft); color: var(--fleet-ink); }
.fleet-sidebar.navbar .navbar-nav .nav-link.active { box-shadow: inset 3px 0 var(--fleet-accent); font-weight: 600; }
.fleet-sidebar .fleet-icon { width: 20px; height: 20px; }
.fleet-sidebar-support { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--fleet-line); }
.fleet-sidebar-support .support-ticket-link { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--fleet-line); border-radius:7px; background:var(--fleet-soft); color:var(--fleet-ink); font-size:12px; font-weight:600; line-height:1.4; text-decoration:none; white-space:nowrap; box-sizing:border-box; }
.fleet-sidebar-support .support-ticket-link>.fleet-icon { flex:0 0 20px; width:20px; height:20px; color:var(--fleet-secondary); }
.fleet-sidebar-support .support-ticket-link>span { min-width:0; }
.fleet-sidebar-support .fleet-support-arrow { flex:0 0 14px; width:14px; height:14px; margin-left:auto; color:var(--fleet-secondary); }
.fleet-sidebar-support .support-ticket-link:hover { background:var(--fleet-hover); border-color:var(--fleet-line-strong); }
.fleet-sidebar-support .support-ticket-link:focus-visible { outline:2px solid var(--fleet-accent); outline-offset:3px; }
.fleet-topbar.navbar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; padding: 14px 24px; min-height: 76px; background: var(--fleet-surface); border-bottom: 1px solid var(--fleet-line); }
.fleet-topbar .fleet-brand { grid-column: 2; grid-row: 1; justify-self: center; }
.fleet-topbar .fleet-brand img { width: 180px; max-width: 100%; }
.fleet-topbar .fleet-mobile-nav-toggle { display: none; grid-column: 1; grid-row: 1; justify-self: start; }
.fleet-account { display: flex; align-items: center; justify-content: flex-end; gap: 6px; grid-column: 3; grid-row: 1; justify-self: end; font-size: 12px; }
.fleet-topbar .fleet-account .btn-icon { width: 36px; min-width: 36px; height: 36px; padding: 7px; border-color: transparent; box-shadow: none; }
.fleet-account .fleet-icon { width: 20px; height: 20px; }
.fleet-header-control { position: relative; }
.fleet-header-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1040; width: 240px; max-width: calc(100vw - 100px); padding: 16px; border: 1px solid var(--fleet-line); border-radius: 8px; background: var(--fleet-surface); color: var(--fleet-ink); box-shadow: 0 8px 24px #0002; }
.fleet-header-panel-title { display: block; margin-bottom: 6px; font-weight: 600; }
.fleet-header-panel .fleet-theme-control { flex-direction: column; align-items: stretch; margin: 0; font-size: 12px; font-weight: 600; }
.fleet-header-panel .fleet-theme-control select { width: 100%; height: 36px; font-weight: 400; }
.fleet-header-control [aria-expanded=true] { background: var(--fleet-soft); }
.fleet-account .btn:focus-visible, .fleet-mobile-nav-toggle:focus-visible { outline: 2px solid var(--fleet-accent); outline-offset: 3px; }
.fleet-theme-control { display: flex; align-items: center; gap: 8px; }
.fleet-user { display: block; overflow-wrap: anywhere; color: var(--fleet-secondary); }
.fleet-skip { position: fixed; top: -60px; left: 12px; z-index: 2000; background: var(--fleet-surface); padding: 12px; }
.fleet-skip:focus { top: 8px; }
.fleet-nav-backdrop { display: none; }
#ribbon.fleet-search-toolbar { display: block; padding: 16px 24px; border-bottom: 1px solid var(--fleet-line); background: var(--fleet-surface); }
#ribbon.fleet-search-toolbar:not(:has(form)) { display: none; }
#ribbon.fleet-search-toolbar .ribbon-section { padding: 0; margin: 0; border: 0; }
#ribbon .ribbon-item { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 9px 16px; border: 0; border-radius: 6px; background: var(--fleet-strong); color: var(--fleet-on-strong); }
#ribbon .ribbon-item p { margin: 0; }
#ribbon input, #ribbon select { min-height: 36px; }
#main-area { min-width: 0; width: 100%; }
.section-title { font-size: 24px; }
.fleet-data-section { padding: 24px; }
.fleet-table { overflow: visible; }
.fleet-table-scroll { container-type: inline-size; }
.fleet-table-scroll table.dataTable { table-layout: fixed; width: 100% !important; }
.fleet-table table.dataTable > tbody > tr > td { box-shadow: none; background: inherit; color: inherit; }
.fleet-table table.dataTable > thead > tr > th { vertical-align: middle; }
.fleet-table .dt-column-order { display: none; }
.fleet-table .dt-column-title { display: block; }
.fleet-table-tools { gap: 10px; border-radius: 8px 8px 0 0; }
.fleet-table-tools label { display: flex; gap: 6px; align-items: center; }
.fleet-table-tools .form-select { width: auto; max-width: 180px; }
.fleet-table-tools .form-control { width: 180px; }
.fleet-table-tools .form-select, .fleet-table-tools .form-control { height: 34px; padding-top: 6px; padding-bottom: 6px; line-height: 20px; }
.fleet-topbar .btn, .fleet-table-tools .btn { background: var(--fleet-surface); color: var(--fleet-ink); border: 1px solid var(--fleet-line); }
.fleet-topbar .btn:hover, .fleet-table-tools .btn:hover { background: var(--fleet-soft); }
.fleet-table-tools .btn { font-size: 12px; padding: 7px 10px; }
.fleet-export-scope { display: block; width: 100%; color: var(--fleet-secondary); font-size: 11px; }
.fleet-table-pager { border-radius: 0 0 8px 8px; }
.fleet-table .dt-button-collection { background: var(--fleet-surface); z-index: 1050; }
.fleet-tabs [role=tab] { font-size: 13px; }
.fleet-form { max-width: 720px; }
.fleet-form input, .fleet-form select, .fleet-form textarea { border: 1px solid var(--fleet-line); border-radius: 6px; padding: 8px 12px; }
.fleet-form button[type=submit] { border: 0; border-radius: 6px; padding: 10px 16px; background: var(--fleet-strong); color: var(--fleet-on-strong); }
.claim-details-container .claim-item-row { flex-wrap: wrap; gap: 16px; }
.claim-details-container .claim-item-column { flex: 1 1 280px; min-width: 0; }
.claim-details-container textarea { background: var(--fleet-surface); color: var(--fleet-ink); border-color: var(--fleet-line); box-shadow: none; resize: vertical; }
.claim-details-container .section-header, .claim-details-container h2, .claim-details-container label { color: var(--fleet-ink); }
.claim-details-container .claim-details-title, .claim-details-container .legal-text { background: var(--fleet-soft); color: var(--fleet-ink); border-color: var(--fleet-line); }
.claim-details-container .form-check-input { width: 20px; height: 20px; margin-right: 8px; }
.claim-details-container .custom-submit { background: var(--fleet-strong); color: var(--fleet-on-strong); }
.fleet-status-modal { position: relative; display: block; }
#claimsModal.modal-overlay { z-index: 1060; }
.error-container { width: min(720px, calc(100% - 32px)); margin: 10vh auto; padding: 32px; border: 1px solid var(--fleet-line); border-radius: 12px; background: var(--fleet-surface); color: var(--fleet-ink); }
.error-container .error-title, .error-container .error-message { color: var(--fleet-ink); }
#training-area { max-width: 1100px; width: calc(100% - 48px); margin: 0 auto 32px; color: var(--fleet-ink); }
#training-area img { max-width: 100%; height: auto; }
.fleet-workspace .footer { margin-top: auto; padding: 0; }
html[data-bs-theme=dark] .fleet-topbar .fleet-brand img { filter: invert(1) brightness(1.65); mix-blend-mode: screen; }
@media (min-width: 768px) {
    html.fleet-sidebar-collapsed { --fleet-sidebar-width: 72px; }
    .fleet-sidebar-collapsed .fleet-sidebar-heading { flex-direction: column; gap: 12px; }
    .fleet-sidebar-collapsed .fleet-sidebar .fleet-nav-label,
    .fleet-sidebar-collapsed .fleet-sidebar-support .support-ticket-link > span,
    .fleet-sidebar-collapsed .fleet-sidebar-support .fleet-support-arrow { display: none; }
    .fleet-sidebar-collapsed .fleet-brand-initial { display: inline; }
    .fleet-sidebar-collapsed .fleet-sidebar-collapse .fleet-icon { transform: rotate(180deg); }
    .fleet-sidebar-collapsed .fleet-sidebar-support .support-ticket-link { justify-content:center; gap:0; width:44px; min-height:44px; margin:0 auto; padding:0; }
}
@media (max-width: 767px) {
    .fleet-has-shell .fleet-workspace { margin-left: 0; }
    .fleet-sidebar.navbar { width: 232px; transform: translateX(-100%); }
    .fleet-sidebar-collapse { display: none; }
    .fleet-nav-open .fleet-sidebar { transform: none; }
    .fleet-nav-open .fleet-nav-backdrop { display: block; position: fixed; inset: 0; z-index: 1020; background: #0007; border: 0; }
    .fleet-topbar.navbar { padding: 12px; }
    .fleet-topbar .fleet-mobile-nav-toggle { display: inline-flex; }
    .fleet-topbar .fleet-brand img { width: clamp(84px, calc(100vw - 232px), 145px); }
    .fleet-account { gap: 2px; }
    .fleet-topbar .fleet-account .btn-icon { width: 32px; min-width: 32px; padding: 6px; }
    .fleet-theme-control { font-size: 11px; }
    .fleet-data-section, #ribbon.fleet-search-toolbar { padding: 16px 12px; }
    .fleet-table-tools label { flex-wrap: wrap; }
    .fleet-table-tools .form-control { min-width: 0; flex: 1; }
    .fleet-table-tools label:has([aria-label="Column filter"]) { display: grid; grid-template-columns: auto minmax(0, 1fr); }
    .fleet-table-tools [aria-label="Column filter"] { grid-column: 1 / -1; width: 100%; }
    .claim-details-container { width: calc(100% - 24px); padding: 16px; }
}

/* Grids use the available width. Extra columns share space instead of forcing a wide canvas. */
.fleet-table-scroll table.dataTable { min-width: 0 !important; font-size: 14px; }
.fleet-table-scroll > .dt-container > .row { margin-left: 0; margin-right: 0; }
.fleet-table-scroll > .dt-container > .row > .dt-layout-full { padding-left: 0; padding-right: 0; }
.fleet-table-scroll table.dataTable > thead > tr > th,
.fleet-table-scroll table.dataTable > tbody > tr > td { white-space: normal; overflow-wrap: anywhere; padding: 15px 12px; }
.fleet-table-scroll table.dataTable > thead > tr > th { font-size: 13px; }
.fleet-table [data-table-expand] { min-width: 0; max-width: 100%; white-space: normal; flex-wrap: wrap; }
.fleet-table-scroll table.dataTable > tbody > tr > .fleet-column-bold,
.fleet-table-scroll table.dataTable > thead > tr > .fleet-column-bold,
.fleet-column-bold .fleet-link { font-weight: 750; }
.fleet-table[data-density="compact"] > .fleet-table-scroll table.dataTable > tbody > tr > td { padding-top: 8px; padding-bottom: 8px; }
.fleet-table-scroll table.fleet-striped > tbody > [data-table-row]:nth-of-type(even):not(.is-complete):not(.is-selected) { background: var(--fleet-soft); }
.fleet-view-notice { font-size: 12px; color: var(--fleet-secondary); }
.fleet-view-dialog { width: min(800px, calc(100% - 32px)); max-height: 85vh; padding: 24px; border: 1px solid var(--fleet-line); border-radius: 12px; background: var(--fleet-surface); color: var(--fleet-ink); }
.fleet-view-dialog::backdrop { background: #0008; }
.fleet-view-dialog h2 { font-size: 24px; margin: 0 0 12px; }
.fleet-view-dialog p { color: var(--fleet-secondary); }
.fleet-view-options, .fleet-view-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 16px 0; }
.fleet-view-column { display: grid; grid-template-columns: minmax(130px, 1fr) auto 100px 36px 36px; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--fleet-line); }
.fleet-view-dialog label { display: flex; align-items: center; gap: 8px; margin: 0; }
.fleet-view-dialog input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--fleet-accent); }
.fleet-view-dialog button, .fleet-view-dialog select { min-height: 36px; padding: 6px 10px; border: 1px solid var(--fleet-line); border-radius: 6px; background: var(--fleet-surface); color: var(--fleet-ink); }
.fleet-view-dialog select { width: auto; min-width: 0; max-width: 100%; margin: 0; height: auto; }
.fleet-view-column > select { width: 100%; }
.fleet-view-column > * { min-width: 0; }
.fleet-view-actions { justify-content: flex-end; }
.fleet-view-actions [data-apply] { background: var(--fleet-strong); color: var(--fleet-on-strong); }
.fleet-view-actions [data-reset] { margin-right: auto; }
@media (max-width: 700px) {
    .fleet-table .dt-button-collection { position: fixed !important; left: 16px !important; right: 16px !important; top: 20vh !important; width: auto !important; max-height: 65vh; overflow: auto; }
    .fleet-table-scroll table.dataTable, .fleet-table-scroll table.dataTable > tbody { display: block; width: 100%; }
    .fleet-table-scroll table.dataTable > colgroup, .fleet-table-scroll table.dataTable > thead { display: none; }
    .fleet-table-scroll table.dataTable > tbody > [data-table-row] { display: block; margin: 12px; border: 1px solid var(--fleet-line); border-radius: 8px; overflow: hidden; }
    .fleet-table-scroll table.dataTable > tbody > [data-table-row][hidden] { display: none; }
    .fleet-table-scroll table.dataTable > tbody > [data-table-row] > td { display: flex; align-items: baseline; gap: 12px; width: 100%; padding: 10px 12px; }
    .fleet-table-scroll table.dataTable > tbody > [data-table-row] > td::before { content: attr(data-column-label); flex: 0 0 35%; font-size: 12px; font-weight: 600; color: var(--fleet-secondary); }
    .fleet-table-scroll table.dataTable > tbody > .fleet-detail, .fleet-table-scroll table.dataTable > tbody > .fleet-detail > td,
    .fleet-table-scroll table.dataTable > tbody > .fleet-group, .fleet-table-scroll table.dataTable > tbody > .fleet-group > td { display: block; width: 100%; }
    .fleet-view-column { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
    .fleet-view-column > label:first-child { grid-column: 1 / -1; }
    .fleet-view-column > select { grid-column: 2 / -1; }
}
