/* CBS CRM theme — match the legacy CRM look: light, Arial-ish, plain bordered
   tables with a grey header row and zebra striping, brand-blue accents. */

body {
    font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
}

/* Tables like the old list.php: light grey header, zebra rows, hover highlight */
.fi-ta-header-cell {
    background-color: #f6f6f6;
}

.fi-ta-row:nth-child(even of .fi-ta-row) {
    background-color: #fafafa;
}

.fi-ta-row:hover {
    background-color: #eef6fb !important;
}

/* Squarer corners, like the legacy 3px borderBox */
.fi-section,
.fi-ta-ctn,
.fi-wi-stats-overview-stat {
    border-radius: 5px;
}

/* Top menu bar: white with a clean bottom border, like the old header */
.fi-topbar nav {
    border-bottom: 1px solid #e5e7eb;
}

/* Credit control: a colleague's live claim dims the row so eyes slide past it */
tr.cc-claimed, .fi-ta-record.cc-claimed {
    opacity: 0.55;
}

/* Credit control: already contacted today — visibly done wherever it appears
   (bug #88: inside a search there's nowhere to sink to, so grey it instead) */
tr.cc-contacted, .fi-ta-record.cc-contacted {
    opacity: 0.45;
}

/* Order page: plenty of header tools — wrap them under the title rather than
   crushing the heading into a one-word-per-line column */
.fi-header {
    flex-wrap: wrap;
    row-gap: 0.75rem;
}
.fi-header > div:first-child {
    min-width: 16rem;
}
