/* Fleet Manager — app chrome on DevExpress Fluent shell */

html,
body.dx-viewport {
    height: 100%;
    overflow: hidden;
}

#app-side-nav-outer-toolbar {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

#layout-drawer,
#layout-drawer .dx-drawer-wrapper {
    height: 100%;
    min-height: 0;
}

#layout-drawer-scrollview {
    height: 100%;
}

#layout-drawer-scrollview .dx-scrollable-content,
#layout-drawer-scrollview .dx-scrollview-content {
    height: 100% !important;
    min-height: 0 !important;
}

.with-footer > .dx-scrollable-wrapper > .dx-scrollable-container > .dx-scrollable-content > .dx-scrollview-content {
    min-height: 0;
    overflow: hidden;
}

.layout-body .content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    margin: 8px 16px 0;
}

.layout-body .content-footer {
    flex: 0 0 auto;
    margin: 0 16px;
    padding: 4px 0 6px;
}

.layout-body .content-block {
    margin: 0;
}

.header-title {
    font-size: 15px;
    padding-inline: 8px;
}

.header-version {
    color: #c0392b;
    font-weight: 700;
    margin-inline-start: 6px;
}

.header-meta {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.2;
    padding-inline: 8px;
    min-width: 90px;
}

.header-meta .meta-label {
    opacity: 0.65;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fleet-auth-body {
    background: linear-gradient(135deg, #eef2f7 0%, #dfe7f0 100%);
    min-height: 100vh;
}

.fleet-auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr minmax(320px, 440px);
}

.fleet-auth-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: #1e2a3a;
    background: linear-gradient(160deg, #e8eef5, #cfd9e6);
}

.brand-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.brand-version {
    color: #c0392b;
    font-weight: 700;
    margin-top: 0.25rem;
}

.brand-online {
    margin-top: 1.5rem;
    opacity: 0.75;
    font-size: 0.9rem;
}

.fleet-auth-panel {
    margin: 2rem;
    padding: 2rem;
    align-self: center;
}

.fleet-auth-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.fleet-page-title,
.layout-body .content h2.fleet-page-title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.35rem;
    flex: 0 0 auto;
}

.fleet-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    align-content: start;
}

.fleet-hub-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.fleet-hub-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.fleet-hub-tile .dx-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.85;
}

.fleet-hub-tile.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.fleet-hub-tile-highlight {
    background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #ea580c;
    color: #9a3412;
    min-height: 130px;
}

.fleet-hub-tile-highlight:hover {
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.25);
    color: #7c2d12;
}

.fleet-hub-tile-highlight .dx-icon {
    color: #ea580c;
    opacity: 1;
}

.fleet-nav-link-highlight {
    background: linear-gradient(90deg, #fff7ed 0%, transparent 100%);
    border-left: 3px solid #ea580c;
    color: #c2410c !important;
    font-weight: 600;
}

.fleet-nav-link-highlight .dx-icon {
    color: #ea580c;
}

.fleet-nav-link-highlight.active,
.fleet-nav-link-highlight:hover {
    background: linear-gradient(90deg, #ffedd5 0%, #fff7ed 100%);
    color: #9a3412 !important;
}

.fleet-select-intro {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.fleet-select-intro .dx-icon {
    font-size: 3rem;
}

.fleet-grid-wrap {
    background: #fff;
    border-radius: 4px;
    padding: 0.35rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Compact DevExtreme sizing (scoped to list grids only) */
    --dx-component-height: 24px;
    --dx-font-size: 12px;
    --dx-font-size-icon: 16px;
    --dx-line-height: 1.3333;
    --dx-list-item-padding-inline: 8px;
    --dx-list-item-padding-block: 4px;
    --dx-texteditor-color-text: rgb(36, 36, 36);
    --dx-texteditor-color-label: rgb(112, 112, 112);
    --dx-popup-toolbar-item-padding-inline: 8px;
    --dx-toolbar-height: 32px;
    --dx-button-padding-inline: 8px;
    --dx-datagrid-row-alternation-bg: rgb(245, 245, 245);
}

.fleet-grid-wrap .dx-datagrid {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    font-size: 12px;
    line-height: 1.3333;
}

.layout-body .content:has(.fleet-hub-grid) {
    overflow: auto;
}

.fleet-grid-wrap .dx-datagrid-headers .dx-row > td,
.fleet-grid-wrap .dx-datagrid-rowsview .dx-row > td,
.fleet-grid-wrap .dx-datagrid-total-footer .dx-row > td {
    padding-block: 3px;
    padding-inline: 6px;
    font-size: 12px;
    line-height: 1.25;
}

.fleet-grid-wrap .dx-datagrid-headers .dx-row > td {
    font-weight: 600;
    font-size: 11px;
    padding-block: 4px;
}

.fleet-grid-wrap .dx-datagrid-group-panel,
.fleet-grid-wrap .dx-datagrid-filter-panel,
.fleet-grid-wrap .dx-datagrid-header-panel {
    min-height: 28px;
    padding-block: 2px;
    font-size: 12px;
}

.fleet-grid-wrap .dx-datagrid-search-panel {
    margin-block: 2px;
}

.fleet-grid-wrap .dx-datagrid-search-panel .dx-texteditor,
.fleet-grid-wrap .dx-editor-cell .dx-texteditor,
.fleet-grid-wrap .dx-filter-menu .dx-texteditor {
    min-height: 24px;
}

.fleet-grid-wrap .dx-texteditor-input {
    min-height: 22px;
    padding-block: 2px;
    padding-inline: 6px;
    font-size: 12px;
    line-height: 1.25;
}

.fleet-grid-wrap .dx-datagrid-pager {
    padding-block: 2px;
    font-size: 12px;
}

.fleet-grid-wrap .dx-datagrid-pager .dx-page,
.fleet-grid-wrap .dx-datagrid-pager .dx-page-size,
.fleet-grid-wrap .dx-datagrid-pager .dx-info {
    font-size: 12px;
    min-height: 24px;
    line-height: 24px;
}

.fleet-grid-wrap .dx-checkbox-icon {
    width: 16px;
    height: 16px;
}

.fleet-grid-wrap .dx-datagrid .dx-command-select {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
}

.fleet-grid-wrap .dx-datagrid-rowsview .dx-selection.dx-row:not(.dx-row-lines) > td,
.fleet-grid-wrap .dx-datagrid-rowsview .dx-selection.dx-row:hover:not(.dx-row-lines) > td {
    border-bottom-width: 1px;
}

.fleet-grid-wrap .dx-datagrid-group-opened,
.fleet-grid-wrap .dx-datagrid-group-closed {
    font-size: 14px;
}

.fleet-grid-wrap .dx-command-adaptive,
.fleet-grid-wrap .dx-datagrid-adaptive-more {
    display: none !important;
}

.fleet-grid-wrap .dx-scrollable-scrollbar {
    visibility: visible;
}

.fleet-page-subtitle {
    margin: -0.5rem 0 1rem 0;
    font-size: 0.85rem;
}

.fleet-ordonn-wrap {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.5rem;
}

.fleet-ordonn-toolbar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex: 0 0 auto;
}

.fleet-ordonn-toolbar #ordonnTabSearch {
    flex: 1 1 auto;
    min-width: 0;
}

#ordonnTabs {
    flex: 0 0 auto;
    max-height: 42px;
}

#ordonnTabs .dx-tabpanel-tabs {
    min-height: 36px;
}

.fleet-ordonn-wrap .fleet-grid-wrap {
    flex: 1 1 auto;
    min-height: 280px;
}

.layout-body .content:has(.fleet-ordonn-wrap) .fleet-ordonn-wrap {
    min-height: 0;
}

/* Ordonnancement dashboard */
.layout-body .content:has(.fleet-ordonn-dash) {
    overflow: hidden;
    min-height: 0;
}

.fleet-ordonn-dash {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    gap: 0.45rem;
    overflow: hidden;
}

.fleet-ordonn-dash-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 0.75rem;
    flex: 0 0 auto;
}

.fleet-ordonn-dash-heading .fleet-page-title {
    margin-bottom: 0;
}

.fleet-ordonn-dash-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    margin-left: auto;
}

.fleet-ordonn-dash-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.fleet-ordonn-dash-favorites-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.fleet-ordonn-dash-favorites-toggle:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #334155;
}

.fleet-ordonn-dash-favorites-toggle.is-active {
    background: #fffbeb;
    border-color: #fbbf24;
    color: #b45309;
}

.fleet-ordonn-dash-favorites-toggle.is-active .dx-icon {
    color: #f59e0b;
}

.fleet-ordonn-dash-favorites-empty {
    grid-column: 1 / -1;
    padding: 2rem 1rem;
    text-align: center;
    color: #64748b;
}

.fleet-ordonn-dash-favorites-empty__hint {
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.fleet-ordonn-dash-favorites-empty-grid {
    margin-top: 0.75rem;
}

.fleet-ordonn-dash-classic-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.fleet-ordonn-dash-classic-link:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.fleet-ordonn-dash-kpis {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex: 0 0 auto;
}

.fleet-ordonn-dash-kpi {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    border-radius: 6px;
    padding: 0.18rem 0.5rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    white-space: nowrap;
    font: inherit;
    color: inherit;
}

.fleet-ordonn-dash-kpi--filter {
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.fleet-ordonn-dash-kpi--filter:hover {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.fleet-ordonn-dash-kpi--filter.is-active {
    box-shadow: inset 0 0 0 2px currentColor;
    font-weight: 600;
}

.fleet-ordonn-dash-kpi--filter.is-active.fleet-ordonn-dash-kpi--critical {
    border-color: #dc2626;
    box-shadow: inset 0 0 0 2px #dc2626;
}

.fleet-ordonn-dash-kpi--filter.is-active.fleet-ordonn-dash-kpi--urgent {
    border-color: #ea580c;
    box-shadow: inset 0 0 0 2px #ea580c;
}

.fleet-ordonn-dash-kpi--filter.is-active.fleet-ordonn-dash-kpi--waiting {
    border-color: #b45309;
    box-shadow: inset 0 0 0 2px #b45309;
}

.fleet-ordonn-dash-card-wrap.is-filtered-out {
    opacity: 0.28;
    pointer-events: none;
}

.fleet-ordonn-dash-card-wrap.is-filter-match .fleet-ordonn-dash-card {
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.fleet-ordonn-dash-kpi--total {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.fleet-ordonn-dash-kpi--panels {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.fleet-ordonn-dash-kpi--critical {
    background: #fef2f2;
    border-color: #fecaca;
}

.fleet-ordonn-dash-kpi--critical .fleet-ordonn-dash-kpi__value {
    color: #dc2626;
}

.fleet-ordonn-dash-kpi--urgent {
    background: #fff7ed;
    border-color: #fed7aa;
}

.fleet-ordonn-dash-kpi--urgent .fleet-ordonn-dash-kpi__value {
    color: #ea580c;
}

.fleet-ordonn-dash-kpi--waiting {
    background: #fffbeb;
    border-color: #fde68a;
}

.fleet-ordonn-dash-kpi--waiting .fleet-ordonn-dash-kpi__value {
    color: #b45309;
}

.fleet-ordonn-dash-kpi__label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.75;
}

.fleet-ordonn-dash-kpi__value {
    font-size: 0.92rem;
    line-height: 1;
    color: #0f172a;
}

.fleet-ordonn-dash-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    gap: 0.45rem;
}

.fleet-ordonn-dash-cards {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.1rem 0.15rem 0.15rem 0;
}

.fleet-ordonn-dash-cards-main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6rem;
    align-items: stretch;
    flex: 0 0 auto;
}

.fleet-ordonn-dash-empty-fold {
    flex: 0 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}

.fleet-ordonn-dash-empty-fold__toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.82rem;
    color: #475569;
    text-align: left;
}

.fleet-ordonn-dash-empty-fold__toggle:hover {
    color: #0f172a;
    background: rgba(148, 163, 184, 0.12);
    border-radius: 10px;
}

.fleet-ordonn-dash-empty-fold__chevron {
    font-size: 14px;
    transition: transform 0.15s ease;
}

.fleet-ordonn-dash-empty-fold.is-open .fleet-ordonn-dash-empty-fold__chevron {
    transform: rotate(180deg);
}

.fleet-ordonn-dash-empty-fold__label {
    flex: 1 1 auto;
}

.fleet-ordonn-dash-empty-fold__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 700;
}

.fleet-ordonn-dash-empty-fold__panel {
    padding: 0 0.65rem 0.65rem;
}

.fleet-ordonn-dash-empty-fold__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.6rem;
    align-items: stretch;
}

.fleet-ordonn-dash-cards.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.fleet-ordonn-dash-card-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    min-width: 0;
    height: 142px;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.fleet-ordonn-dash-card-wrap.is-drag-source {
    opacity: 0.35;
    pointer-events: none;
}

.fleet-ordonn-dash-card-wrap:active {
    cursor: grabbing;
}

.fleet-ordonn-dash-drop-placeholder {
    min-width: 0;
    height: 142px;
    border: 2px dashed #2563eb;
    border-radius: 10px;
    background: rgba(37, 99, 235, 0.08);
    box-sizing: border-box;
    pointer-events: none;
}

.fleet-ordonn-dash-card-ghost {
    position: fixed;
    z-index: 10050;
    margin: 0;
    pointer-events: none;
    opacity: 0.96;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.24);
    transform: rotate(-1deg);
}

.fleet-ordonn-dash-card__drag-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    flex: 0 0 26px;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    background: #f8fafc;
    color: #94a3b8;
    pointer-events: none;
}

.fleet-ordonn-dash-card__drag-handle .dx-icon {
    font-size: 16px;
}

.fleet-ordonn-dash-card {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.35rem;
    text-align: left;
    padding: 0.65rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0 10px 10px 0;
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.fleet-ordonn-dash-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-right: 1.5rem;
}

.fleet-ordonn-dash-card__favorite {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #cbd5e1;
    cursor: pointer;
    touch-action: manipulation;
    transition: color 0.15s ease, background 0.15s ease;
}

.fleet-ordonn-dash-card__favorite:hover {
    color: #f59e0b;
    background: rgba(251, 191, 36, 0.12);
}

.fleet-ordonn-dash-card__favorite.is-favorite {
    color: #f59e0b;
}

.fleet-ordonn-dash-card__favorite.is-favorite:hover {
    background: rgba(251, 191, 36, 0.12);
}

.fleet-ordonn-dash-card__favorite .dx-icon {
    font-size: 15px;
    pointer-events: none;
}

.fleet-ordonn-dash-card__favorite.is-favorite .dx-icon {
    visibility: hidden;
}

.fleet-ordonn-dash-card__favorite.is-favorite::after {
    content: "★";
    position: absolute;
    font-size: 15px;
    line-height: 1;
    color: #f59e0b;
    pointer-events: none;
}

.fleet-ordonn-dash-card:hover {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.fleet-ordonn-dash-card-wrap:hover .fleet-ordonn-dash-card__drag-handle {
    color: #475569;
    background: #f1f5f9;
}

.fleet-ordonn-dash-card.is-active {
    border-width: 2px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.fleet-ordonn-dash-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.fleet-ordonn-dash-card__icon .dx-icon {
    font-size: 18px;
}

.fleet-ordonn-dash-card--danger .fleet-ordonn-dash-card__icon {
    background: linear-gradient(145deg, #ef4444, #f97316);
}

.fleet-ordonn-dash-card--danger.is-active {
    border-color: #ef4444;
}

.fleet-ordonn-dash-card--primary .fleet-ordonn-dash-card__icon {
    background: linear-gradient(145deg, #2563eb, #6366f1);
}

.fleet-ordonn-dash-card--primary.is-active {
    border-color: #2563eb;
}

.fleet-ordonn-dash-card--success .fleet-ordonn-dash-card__icon {
    background: linear-gradient(145deg, #059669, #10b981);
}

.fleet-ordonn-dash-card--success.is-active {
    border-color: #059669;
}

.fleet-ordonn-dash-card--warning .fleet-ordonn-dash-card__icon {
    background: linear-gradient(145deg, #f59e0b, #f97316);
}

.fleet-ordonn-dash-card--warning.is-active {
    border-color: #f59e0b;
}

.fleet-ordonn-dash-card--muted {
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: none;
}

.fleet-ordonn-dash-card--muted:hover {
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.fleet-ordonn-dash-card--muted .fleet-ordonn-dash-card__icon {
    background: linear-gradient(145deg, #94a3b8, #cbd5e1) !important;
}

.fleet-ordonn-dash-card--muted .fleet-ordonn-dash-card__count strong {
    color: #64748b;
}

.fleet-ordonn-dash-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fleet-ordonn-dash-card__title {
    font-weight: 700;
    font-size: 0.84rem;
    color: #0f172a;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    flex: 1 1 auto;
}

.fleet-ordonn-dash-card__subtitle {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    flex: 0 0 auto;
}

.fleet-ordonn-dash-card__count {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.fleet-ordonn-dash-card__count strong {
    font-size: 1.2rem;
    line-height: 1;
    color: #0f172a;
}

.fleet-ordonn-dash-panel {
    display: none;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.fleet-ordonn-dash-panel.is-open {
    display: flex;
}

.fleet-ordonn-dash-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    flex: 0 0 auto;
}

.fleet-ordonn-dash-panel__title {
    margin: 0;
    font-size: 1rem;
    color: #0f172a;
}

.fleet-ordonn-dash-panel__subtitle {
    margin: 0.15rem 0 0;
    font-size: 0.78rem;
    color: #64748b;
}

.fleet-ordonn-dash-panel__close {
    border: none;
    background: #f1f5f9;
    color: #334155;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fleet-ordonn-dash-panel__close:hover {
    background: #e2e8f0;
}

.fleet-ordonn-dash-panel__grid {
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.25rem 0.45rem 0.45rem;
}

.fleet-ordonn-dash:has(.fleet-ordonn-dash-panel.is-open) .fleet-ordonn-dash-cards {
    flex: 0 1 auto;
    max-height: 38%;
}

.fleet-ordonn-dash:has(.fleet-ordonn-dash-panel.is-open) .fleet-ordonn-dash-panel {
    flex: 1 1 auto;
    min-height: 0;
}

.layout-body .content:has(.fleet-ordonn-dash) .fleet-ordonn-dash {
    min-height: 0;
}

.fleet-ordonn-eval {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 118px;
}

.fleet-ordonn-eval__bar {
    flex: 1 1 auto;
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.fleet-ordonn-eval__fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.15s ease;
}

.fleet-ordonn-eval__label {
    flex: 0 0 auto;
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    min-width: 2.5rem;
    text-align: right;
}

.fleet-ordonn-urgent-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.12rem 0.4rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.fleet-ordonn-cell--danger {
    color: #dc2626 !important;
    font-weight: 700;
}

.fleet-ordonn-row--urgent > td {
    background: #fef2f2 !important;
    box-shadow: inset 4px 0 0 #dc2626;
}

.fleet-ordonn-row--critical > td {
    background: #fff7ed !important;
}

.fleet-ordonn-row--waiting > td {
    background: #fffbeb !important;
}

.fleet-ordonn-row--started > td {
    color: #166534;
}

.fleet-ordonn-row--started > td .fleet-ordonn-cell--danger {
    color: #dc2626 !important;
}

/* DevExtreme trial banner fallback (primary suppression is fleet-devexpress-license.js) */
dx-license,
dx-license-trigger {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Auth / plain forms (no Bootstrap) */
.fleet-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fleet-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fleet-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dx-color-text, #242424);
}

.fleet-input {
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--dx-color-border, #e0e0e0);
    border-radius: var(--dx-border-radius, 4px);
    font: inherit;
    background: #fff;
    color: var(--dx-color-text, #242424);
    width: 100%;
    box-sizing: border-box;
}

.fleet-input:focus {
    outline: 2px solid rgba(15, 108, 189, 0.35);
    border-color: var(--dx-color-primary, #0f6cbd);
}

.fleet-btn-primary {
    height: 40px;
    border: none;
    border-radius: var(--dx-border-radius, 4px);
    background: var(--dx-color-primary, #0f6cbd);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    width: 100%;
    margin-top: 0.25rem;
}

.fleet-btn-primary:hover {
    filter: brightness(0.95);
}

.fleet-field-error {
    color: var(--dx-color-danger, #d13438);
    font-size: 12px;
}

.mb-1 { margin-bottom: 0.25rem; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 1rem; }

.fleet-auth-panel.dx-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.fleet-auth-panel .dx-selectbox,
.fleet-auth-panel .dx-button {
    width: 100%;
}

.menu-container {
    width: 280px;
    max-width: min(280px, 88vw);
    height: 100%;
    overflow: hidden;
}

#layout-drawer .dx-drawer-panel-content {
    height: 100%;
}

.menu-container .dx-scrollable-content,
.menu-container .dx-scrollview-content {
    min-height: 100%;
}

#layout-drawer.dx-drawer .dx-drawer-panel-content,
#layout-drawer.dx-drawer .dx-drawer-content {
    transition: none !important;
}

.fleet-nav-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0 1rem;
}

.fleet-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1rem;
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
    word-break: break-word;
}

.fleet-nav-link .dx-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex: 0 0 20px;
    font-size: 20px;
    line-height: 20px;
    opacity: 0.85;
}

.fleet-nav-link:hover {
    background: rgba(0, 0, 0, 0.04);
    color: inherit;
}

.fleet-nav-link.active {
    background: rgba(0, 120, 212, 0.12);
}

#fleet-main-content.fleet-content-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

#fleet-main-content {
    min-height: 0;
}

.fleet-nav-group-title {
    padding: 0.75rem 1rem 0.35rem;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.6;
    font-weight: 700;
}

.fleet-nav-group-items .fleet-nav-link {
    padding-inline-start: 2.25rem;
    font-weight: 500;
}

@media (max-width: 1279.98px) {
    .header-meta {
        display: none;
    }

    .menu-container {
        width: min(280px, 88vw);
    }
}

@media (max-width: 768px) {
    .fleet-auth-shell {
        grid-template-columns: 1fr;
    }

    .fleet-auth-brand {
        min-height: 180px;
    }

    .fleet-auth-panel {
        margin: 0 1rem 1rem;
    }

    .layout-body .content {
        margin: 8px 8px 0;
    }

    .fleet-nav-link {
        padding: 0.75rem 0.85rem;
    }

    .fleet-nav-group-items .fleet-nav-link {
        padding-inline-start: 1.75rem;
    }
}
