/* Devan list: normal table, every field visible, compact widths, wrapping text. */
.devan-table { table-layout: auto; min-width: max-content; }
.devan-table thead th { white-space: nowrap; font-size: 10.5px; letter-spacing: .03em; }
.devan-table td { white-space: nowrap; line-height: 1.3; }
.devan-table td input:not([type=checkbox]),
.devan-table td select,
.devan-table td textarea { min-width: 0 !important; width: 100%; height: 1.65rem; padding: 0 .35rem; font-size: 11.5px; border-radius: .3rem; }
.devan-table td textarea { height: auto; min-height: 1.65rem; padding: .2rem .35rem; }
.devan-table td input[type=datetime-local] { min-width: 10.5rem !important; }
.devan-table td input[type=date] { min-width: 7.6rem !important; }
/* column widths */
.devan-table [data-col=select] { width: 2rem; min-width: 2rem; max-width: 2rem; text-align: center; }
.devan-table [data-col=containerNo] { min-width: 8.5rem; }
.devan-table [data-col=fleetStatus], .devan-table [data-col=warehouseStatus] { min-width: 7.5rem; }
.devan-table [data-col=bay], .devan-table [data-col=people], .devan-table [data-col=doFile],
.devan-table [data-col=unloadingMinutes] { min-width: 4.25rem; }
.devan-table [data-col=devanTeam], .devan-table [data-col=trailerNumber], .devan-table [data-col=supplier],
.devan-table [data-col=businessType], .devan-table [data-col=shippingLine], .devan-table [data-col=mblNo],
.devan-table [data-col=eta] { min-width: 6rem; }
/* wrap addresses / notes / terminals / inspection */
.devan-table td[data-col=note], .devan-table td[data-col=fleetNote], .devan-table td[data-col=inspection],
.devan-table td[data-col=unloadingTerminal], .devan-table td[data-col=dropOffPlace],
.devan-table td[data-col=dropOffReference], .devan-table td[data-col=deliveryTime] {
  white-space: normal; overflow-wrap: anywhere; min-width: 9rem; max-width: 14rem;
}
.devan-table td[data-col=fleetNote] { min-width: 11rem; max-width: 16rem; }
.devan-table td[data-col=containerNo] > span { flex-wrap: wrap; gap: .25rem; }
/* compact top filters */
.devan-topfilters select, .devan-topfilters input:not([type=checkbox]) { padding-left: .5rem; padding-right: .5rem; }
.devan-topfilters button { padding-left: .6rem; padding-right: .6rem; }
.devan-table [data-col=containerNo] { max-width: 13.5rem; }
.devan-table td[data-col=containerNo] { white-space: normal; }
.devan-table th select, .devan-table th button[role=combobox] { max-width: 100%; }
/* compact date/sort bar and header actions */
[data-devan-compact=true] [data-testid=filter-devan-date-mode] { padding: .3rem .5rem; gap: .35rem; }
[data-devan-compact=true] [data-testid=filter-devan-date-mode] button, [data-devan-compact=true] [data-testid=filter-devan-date-mode] select,
[data-devan-compact=true] [data-testid=filter-devan-date-mode] input { padding-top: .15rem; padding-bottom: .15rem; font-size: 12px; }
[data-devan-compact=true] > div:first-of-type button { padding-top: .3rem; padding-bottom: .3rem; font-size: 12.5px; }

.devan-table th,.devan-table td{padding:.3rem .4rem!important;vertical-align:top}
.devan-table thead th{padding-top:.35rem!important;padding-bottom:.35rem!important}
.devan-table th select,.devan-table th button[role=combobox]{min-width:0!important;max-width:10rem;height:1.5rem;font-size:11px}
.devan-table [data-col=select]{position:sticky;left:0;background:hsl(var(--background));z-index:5}
.devan-table [data-col=containerNo]{position:sticky;left:0;background:hsl(var(--background));z-index:5;max-width:10rem;white-space:normal;border-right:1px solid #cbd5e1}
.devan-table[data-devan-table=warehouse] [data-col=containerNo]{left:2rem}
.devan-table thead [data-col=select],.devan-table thead [data-col=containerNo]{z-index:25;background:#f1f5f9}
.devan-table tbody tr.bg-amber-50 [data-col=containerNo]{background:#fffbeb}
.devan-table [data-col=containerNo]>div{flex-wrap:wrap;gap:.2rem}
.devan-table td textarea{height:1.8rem;min-height:1.8rem;resize:vertical}
.devan-topfilters{flex-shrink:0}
.devan-topfilters input:not([type=checkbox]),.devan-topfilters select{min-width:0;max-width:100%;font-size:12px}
.devan-topfilters>div{gap:.375rem!important;margin-bottom:.3rem!important}
.devan-topfilters [data-testid=input-devan-search]{padding-left:2rem!important}
.devan-topfilters label:has(>[data-testid=input-devan-search])>svg{top:.4rem!important}
.devan-topfilters div.rounded-md.border.bg-card{padding:.25rem .4rem!important}
.devan-topfilters div.rounded-md.border.bg-card strong{font-size:12px}
[data-devan-compact=true] [aria-label="Filter and sort containers"]{padding:.35rem .5rem;gap:.4rem;font-size:12px}
.fleet-table-compact>div:first-child{gap:.4rem;margin-bottom:.5rem}
.fleet-table-compact table th,.fleet-table-compact table td{padding:.35rem .45rem;font-size:12px}
.fleet-table-compact table tr>*:first-child{position:sticky;left:0;min-width:2rem;width:2rem;max-width:2rem;background:hsl(var(--background));z-index:5}
.fleet-table-compact table tr>*:nth-child(2){position:sticky;left:2rem;background:hsl(var(--background));z-index:5}
.fleet-table-compact table thead tr>*:nth-child(-n+2){z-index:25;background:#f1f5f9}
.fleet-table-compact table td:nth-child(4),.fleet-table-compact table td:nth-child(5){white-space:normal;overflow-wrap:anywhere;max-width:11rem}
