/* trailers.css - compact trailer list UI */

:root {
    --fs-xxs: 11px;
    --fs-xs: 12px;
    --row-pad: 4px;
    --col-pad: 6px;
    --header-h: 120px; /* vertical header height for rotated buttons */
    --header-w: 28px;
}

body {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: var(--fs-xs);
    margin: 10px;
    color: #111;
}

.topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.status { font-size: var(--fs-xxs); color: #333; }

.controls { margin-left: auto; display: flex; gap: 6px; align-items: center; }

table { border-collapse: collapse; width: 100%; table-layout: fixed; }
th, td {
    border: 1px solid #ddd;
    padding: var(--row-pad) var(--col-pad);
    vertical-align: middle;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
th { background: #f7f7f7; text-align: center; position: sticky; top: 0; z-index: 2; }

.th-rot { height: var(--header-h); width: var(--header-w); min-width: var(--header-w); max-width: var(--header-w); padding: 0; text-align: left; padding-left: 2px; }
.th-rot-wide { padding: 0; text-align: left; }
.rotate-btn { display: inline-block; transform: rotate(90deg); transform-origin: center; font-size: var(--fs-xxs); padding: 0; border: none; background: transparent; border-radius: 0; width: auto; text-align: left; }

.btn-mini { font-size: var(--fs-xxs); padding: 3px 6px; border: 1px solid #bbb; background: #fff; color: #111; text-decoration: none; border-radius: 4px; display: inline-block; line-height: 1.2; }
.btn-mini:focus, .btn-mini:hover { outline: none; border-color: #888; }
.td-actions { text-align: center; }
.td-actions a { margin: 1px 0; display: inline-block; }
.link-ico { font-size: 14px; line-height: 1; text-decoration: none; display: inline-block; padding: 2px; }
.link-ico:hover { filter: brightness(0.2); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.dim { color: #666; }
.ok { color: #0a7b20; }
.bad { color: #a30000; }

.toast { position: fixed; left: 10px; bottom: 10px; background: #333; color: #fff; padding: 6px 10px; border-radius: 4px; font-size: var(--fs-xxs); opacity: 0.95; display: none; }

/* Column hide control */
.th-tools { position: absolute; top: 2px; right: 2px; display: flex; gap: 2px; }
.hide-col-btn { background: #eee; border: 1px solid #ccc; color: #333; cursor: pointer; font-size: 10px; padding: 2px 4px; border-radius: 3px; }
.hide-col-btn:hover { background: #e0e0e0; }

.toolbar-btn { font-size: var(--fs-xxs); padding: 4px 8px; border: 1px solid #bbb; border-radius: 4px; background: #fff; cursor: pointer; }
.toolbar-btn:hover { border-color: #888; }


