/* INGEST by Tango - styles follow the STEP app and QUOTE by Tango (shared base, Ingestor additions at the end). */

:root {
	--step-white: #FFFFFF;
	--step-red: #FF0000;
	--step-green: #00B707;
	--step-blue: #33A0F2;
	--step-orange-1: #FF5100;
	--step-dark-blue-1: #33647E;
	--step-dark-blue-2: #1E3C4D;
	--step-grey-1: #CED2D5;
	--step-dark-1: #333132;
	--step-light-grey-1: #F9F9F9;
	--step-light-grey-2: #F4F7F8;
	--step-light-grey-3: #F0F0F0;
	--step-light-blue-1: #e5eef1;
	--step-light-green-1: rgba(0,183,7,0.11);
	--step-light-orange-1: rgba(240,84,35,0.11);
	--step-light-red-1: rgba(253,109,65,0.257);

	--bs-body-font-family: 'Hind', sans-serif;
	--bs-body-font-weight: 300;
	--bs-body-color: var(--step-dark-blue-2);
	--bs-primary: var(--step-orange-1);
	--bs-primary-rgb: 255,81,0;
	--bs-secondary: var(--step-dark-blue-1);
	--bs-secondary-rgb: 51,100,126;
	--bs-border-radius: .75rem;
	--bs-border-radius-lg: .9rem;
	--bs-link-color: var(--step-dark-blue-1);
	--bs-link-color-rgb: 51,100,126;
	--bs-link-hover-color: var(--step-orange-1);
}

html, body { height: 100%; }
body { background: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: 'Hind', sans-serif; font-weight: 600; color: var(--step-dark-blue-2); }
b, strong { font-weight: 600; }

.step-text-primary { color: var(--step-orange-1) !important; }
.step-text-secondary { color: var(--step-dark-blue-1) !important; }
.step-text-success { color: var(--step-green) !important; }
.step-text-danger { color: var(--step-red) !important; }
.step-text-muted { color: #7b8a93 !important; }
.step-bg-secondary { background-color: var(--step-dark-blue-1) !important; }
.step-bg-warning-light { background-color: var(--step-light-orange-1) !important; }
.step-bg-success-light { background-color: var(--step-light-green-1) !important; }
.step-bg-info-light { background-color: var(--step-light-blue-1) !important; }
.step-bg-danger-light { background-color: var(--step-light-red-1) !important; }

/* Buttons */
.btn { --bs-btn-padding-y: .55rem; --bs-btn-font-weight: 500; }
.btn-primary { --bs-btn-bg: var(--step-orange-1); --bs-btn-border-color: var(--step-orange-1); --bs-btn-hover-bg: #e04700; --bs-btn-hover-border-color: #e04700; --bs-btn-active-bg: #cc4100; --bs-btn-active-border-color: #cc4100; --bs-btn-disabled-bg: var(--step-orange-1); --bs-btn-disabled-border-color: var(--step-orange-1); }
.btn-secondary { --bs-btn-bg: var(--step-dark-blue-1); --bs-btn-border-color: var(--step-dark-blue-1); --bs-btn-hover-bg: var(--step-dark-blue-2); --bs-btn-hover-border-color: var(--step-dark-blue-2); --bs-btn-active-bg: var(--step-dark-blue-2); }
.btn-outline-secondary { --bs-btn-color: var(--step-dark-blue-1); --bs-btn-border-color: var(--step-grey-1); --bs-btn-hover-bg: var(--step-light-blue-1); --bs-btn-hover-color: var(--step-dark-blue-2); --bs-btn-hover-border-color: var(--step-dark-blue-1); --bs-btn-active-bg: var(--step-light-blue-1); --bs-btn-active-color: var(--step-dark-blue-2); }
.btn-light { --bs-btn-bg: var(--step-light-grey-3); --bs-btn-border-color: var(--step-light-grey-3); }
.btn.rounded-pill.btn-primary, .btn.rounded-pill.btn-secondary {
	color: #fff; text-transform: uppercase; font-weight: 600; font-size: .9em;
	box-shadow: 0 1px 0 0 rgba(0,0,0,.11);
}
.btn-icon { border: 0; background: none; color: var(--step-dark-blue-1); padding: .15rem .35rem; border-radius: .5rem; }
.btn-icon:hover { background: var(--step-light-blue-1); color: var(--step-orange-1); }
.btn-icon.danger:hover { background: var(--step-light-red-1); color: var(--step-red); }

.form-control, .form-select { border-color: var(--step-grey-1); font-weight: 400; }
.form-control:focus, .form-select:focus { border-color: var(--step-dark-blue-1); box-shadow: 0 0 0 .2rem rgba(51,100,126,.15); }
.form-check-input:checked { background-color: var(--step-dark-blue-1); border-color: var(--step-dark-blue-1); }
.form-label, .field-label {
	font-size: .7em; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: var(--step-dark-blue-1); margin-bottom: .2rem;
}
input[type=number] { -moz-appearance: textfield; }
/* Error messages: red, and they stay up longer (see toast in app.js) */
.toast.toast-error { background-color: #b42318 !important; }
/* Number fields: no up and down arrows anywhere; the number is typed in */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Header (STEP app header) */
.app header { z-index: 1020; }
.logo-sm { height: 52px; }
@media (min-width: 992px) {
	.app-header-row { display: grid !important; grid-template-columns: 1fr auto 1fr; column-gap: 1rem; }
	.app-header-logo { justify-self: start; }
	.app-header-nav { justify-self: center; }
	/* The same width on every page (New quote / New ingestion differ), so the menu between sits in the same place. */
	.app-header-profile { justify-self: end; min-width: 25rem; justify-content: flex-end; }
}
.top-nav { font-size: 1.1em; font-weight: 600; }
.top-nav a { color: var(--step-dark-1); }
.top-nav a:hover { color: var(--step-dark-blue-1); }
.top-nav a.active { color: var(--step-orange-1); }
.app-project-nav { border-top: 1px solid var(--step-light-grey-3); margin-top: 1rem; padding-top: .5rem; padding-bottom: .5rem; }
.app-project-nav .top-nav { font-size: 1em; }
.app-project-nav .crumb { font-weight: 600; color: var(--step-dark-blue-1); }

/* Main layout */
.sidebar h4, .right h4 { color: var(--step-dark-blue-1); font-size: .9em; font-weight: normal; text-transform: uppercase; letter-spacing: .03em; }
.sidebar-sticky { position: sticky; top: 150px; }
/* View as, in the user menu: a long list scrolls */
.tq-viewas-list { max-height: 260px; overflow-y: auto; }
/* Users: the column headings stay in view while the list scrolls, in a box of its own that also scrolls sideways */
.users-scroll { max-height: calc(100vh - 7rem); overflow: auto; }
.users-scroll thead th { position: sticky; top: 0; z-index: 2; background: var(--step-light-grey-1); box-shadow: inset 0 -1px 0 var(--step-light-grey-3); }
.users-table td { padding-top: .5rem; }
.users-table thead th { white-space: normal; vertical-align: bottom; }
/* Checkboxes and short text sit level with the first row of fields (a small field's height) */
.users-table .u-line { display: flex; align-items: center; gap: .5rem; min-height: calc(1.3125rem + .5rem + 2px); }
.users-table .u-line > .form-check-input { margin: 0; flex: none; }
.form-box { border-radius: 28px; padding: 18px 20px; background-color: var(--step-light-grey-1); border: 1px solid var(--step-light-grey-3); }
.search-box { box-shadow: 0 1px 0 0 rgba(0,0,0,.11); }
.side-list a { display: block; padding: .35rem .75rem; border-radius: .6rem; color: var(--step-dark-1); text-decoration: none; }
.side-list a:hover { background: var(--step-light-grey-2); }
.side-list a.active { color: var(--step-orange-1); font-weight: 600; background: var(--step-light-orange-1); }
.side-list .group-title { font-size: .7em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--step-dark-blue-1); margin: .9rem .75rem .25rem; }

/* List rows (STEP project-row) */
.list-row { display: flex; margin-bottom: 6px; cursor: pointer; text-decoration: none; color: inherit; }
.list-row .col-a { flex: 1; padding: 18px 20px; background: var(--step-light-grey-3); box-shadow: 0 1px 0 0 rgba(0,0,0,.11); border-radius: .75rem 0 0 .75rem; }
.list-row .col-b { padding: 18px 20px; text-align: right; background: #fafafa; box-shadow: 0 1px 0 0 rgba(0,0,0,.05); border-radius: 0 .75rem .75rem 0; min-width: 220px; }
.list-row:hover .col-a, .list-row:hover .col-b { background: var(--step-light-grey-2); }
.list-row .ref { font-size: .75em; font-weight: 500; letter-spacing: .03em; color: var(--step-dark-blue-1); text-transform: uppercase; }
.list-row .big { font-size: 1.15em; font-weight: 600; }

/* Milestones (one per service title) */
.milestone { display: flex; flex-wrap: wrap; align-items: center; margin: 1.4rem 0 .5rem; border-radius: .75rem; background: var(--step-light-blue-1); box-shadow: 0 1px 0 0 rgba(0,0,0,.08); }
.milestone.collapsed { margin: 0 0 6px; }
.milestone .ms-a { flex: 1 1 340px; display: flex; align-items: center; gap: .75rem; padding: 12px 18px; cursor: pointer; min-width: 0; }
.milestone .ms-a .chev { font-size: 1.1em; color: var(--step-dark-blue-1); }
.milestone .ms-a:hover .chev { color: var(--step-orange-1); }
.milestone .group { font-size: .7em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--step-orange-1); }
.milestone .title { font-weight: 600; font-size: 1.12em; }
.milestone .ms-b { flex: 0 1 620px; display: grid; grid-template-columns: .7fr 1fr 1.15fr 1fr 1fr; gap: .6rem; padding: 10px 18px; }
.milestone .out { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.milestone .out small { display: block; font-weight: 400; font-size: .72em; color: #6a7c86; }
.milestone .out.price { color: var(--step-dark-blue-2); font-size: 1.05em; }
.milestone.total { background: var(--step-dark-blue-1); color: #fff; margin-top: 1.2rem; }
.milestone.total .ms-a { cursor: default; }
.milestone.total .title, .milestone.total .out, .milestone.total .out.price { color: #fff; }
.milestone.total .out small, .milestone.total .step-text-muted { color: rgba(255,255,255,.75) !important; }
.view-toggle .btn { --bs-btn-padding-y: .3rem; border-radius: 2rem; }
.view-toggle .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.view-toggle .btn:last-child { border-top-left-radius: 0; border-bottom-left-radius: 0; }

/* Task rows */
.service-head { display: flex; align-items: baseline; gap: .75rem; margin: 1.6rem 0 .5rem; padding: 0 .25rem; }
.service-head .title { font-weight: 600; font-size: 1.15em; }
.service-head .group { font-size: .7em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--step-orange-1); }
.service-head .sub { margin-left: auto; font-size: .9em; color: var(--step-dark-blue-1); }

.task-row { display: flex; flex-wrap: wrap; margin-bottom: 6px; border-radius: .75rem; }
.task-row > .col-a { flex: 1 1 380px; min-width: 0; padding: 14px 18px; background: var(--step-light-grey-3); box-shadow: 0 1px 0 0 rgba(0,0,0,.11); border-radius: .75rem 0 0 .75rem; }
.task-row > .col-b { flex: 0 1 760px; padding: 12px 16px; background: #fafafa; box-shadow: 0 1px 0 0 rgba(0,0,0,.05); border-radius: 0 .75rem .75rem 0; }
@media (max-width: 1199px) {
	.task-row > .col-a { border-radius: .75rem .75rem 0 0; flex-basis: 100%; }
	.task-row > .col-b { border-radius: 0 0 .75rem .75rem; flex-basis: 100%; }
}
.task-row:hover > .col-a, .task-row:hover > .col-b { background: var(--step-light-grey-2); }
.task-row.not-charged > .col-a { background-image: repeating-linear-gradient(135deg, transparent 0 10px, rgba(51,100,126,.04) 10px 20px); }
.task-row .svc { font-size: .7em; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; color: var(--step-dark-blue-1); }
.task-row .heading-input {
	border: 0; background: transparent; padding: 0; width: 100%; font-weight: 600; font-size: 1.08em; color: var(--step-dark-blue-2); outline: none;
	border-bottom: 1px dashed transparent;
}
.task-row .heading-input:hover { border-bottom-color: var(--step-grey-1); }
.task-row .heading-input:focus { border-bottom-color: var(--step-dark-blue-1); }
.task-row .heading-input::placeholder { color: var(--step-grey-1); font-weight: 400; }
.desc { position: relative; margin-top: .2rem; font-size: .95em; }
.desc .desc-text { white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; color: #3d5562; min-height: 1.4em; }
.desc .desc-text.empty { color: #9aa7ae; font-style: italic; }
.desc textarea { font-size: .95em; }
.desc-toggle { font-size: .8em; color: var(--step-dark-blue-1); cursor: pointer; text-decoration: none; }
.desc-toggle:hover { color: var(--step-orange-1); }

.badge-soft { font-weight: 500; font-size: .72em; letter-spacing: .03em; text-transform: uppercase; padding: .35em .6em; border-radius: .5rem; }
.badge-custom { background: var(--step-light-blue-1); color: var(--step-dark-blue-1); }
.badge-nocharge { background: var(--step-light-orange-1); color: var(--step-orange-1); }
.badge-internal { background: var(--step-light-grey-3); color: var(--step-dark-1); border: 1px solid var(--step-grey-1); }
.badge-discount { background: var(--step-light-red-1); color: #b33a10; }

.staff-chips { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: .55rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; background: #fff; border: 1px solid var(--step-grey-1); border-radius: 2rem; padding: .05rem .25rem .05rem .65rem; font-size: .85em; font-weight: 500; }
.chip .bi { cursor: pointer; color: #8a9aa3; }
.chip .bi:hover { color: var(--step-red); }
.chip-input { border: 1px dashed var(--step-grey-1); border-radius: 2rem; padding: .1rem .7rem; font-size: .85em; width: 150px; background: transparent; outline: none; }
.chip-input:focus { border-color: var(--step-dark-blue-1); background: #fff; }

.nums { display: grid; grid-template-columns: .85fr .85fr 1.35fr .85fr 1.05fr 1fr 1.1fr; gap: .35rem .6rem; align-items: end; }
.nums.cost { margin-top: .5rem; padding-top: .5rem; border-top: 1px dashed var(--step-grey-1); align-items: start; }
.nums.cost .out { padding-top: .9rem; }
.nums .span-3 { grid-column: span 3; }
.nums .staff-chips { margin-top: 0; min-height: 31px; }
.nav-totals { display: flex; gap: 1.1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.nav-totals small { font-weight: 400; color: #7b8a93; }
.quote-top .form-box { padding: 16px 20px; }
.nums .form-control, .nums .form-select { padding: .25rem .45rem; font-size: .9em; border-radius: .5rem; }
.nums .out { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.2; padding: .25rem 0; }
.nums .out small { display: block; font-weight: 400; font-size: .75em; color: #7b8a93; }
.nums .field-label { display: block; font-size: .62em; white-space: nowrap; }
.nums .span-2 { grid-column: span 2; }
.row-actions { display: inline-flex; gap: .1rem; margin-left: .25rem; }
.neg { color: var(--step-red) !important; }

/* Totals */
.totals { font-variant-numeric: tabular-nums; }
.totals .line { display: flex; justify-content: space-between; padding: .18rem 0; }
.totals .line.sub { color: #5c707b; font-size: .92em; }
.totals .line.strong { font-weight: 600; border-top: 1px solid var(--step-grey-1); margin-top: .3rem; padding-top: .45rem; }
.totals .line.grand { font-weight: 700; font-size: 1.15em; color: var(--step-dark-blue-2); }
.totals .line.margin { font-weight: 700; font-size: 1.1em; }
.totals .section { font-size: .7em; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--step-orange-1); margin-top: .8rem; }
.margin-bar { height: 10px; border-radius: 6px; background: var(--step-light-grey-3); overflow: hidden; display: flex; margin: .4rem 0 .2rem; }
.margin-bar > div { height: 100%; }

/* Staff view */
.staff-card { border-radius: 28px; background: var(--step-light-grey-1); border: 1px solid var(--step-light-grey-3); padding: 18px 22px; margin-bottom: 1rem; }
.staff-card h3 { font-size: 1.35em; margin: 0; }
.staff-card table { font-size: .93em; }
.staff-card th { font-size: .72em; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--step-dark-blue-1); }
.staff-card td.num, .staff-card th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.staff-card .table { --bs-table-bg: transparent; }

/* Catalogue picker */
#pickerBody .pick-services { border-right: 1px solid var(--step-light-grey-3); max-height: 65vh; overflow: auto; padding: .5rem; }
#pickerBody .pick-tasks { max-height: 65vh; overflow: auto; padding: 1rem 1.25rem; }
.pick-task { display: flex; gap: .75rem; padding: .5rem .6rem; border-radius: .6rem; }
.pick-task:hover { background: var(--step-light-grey-2); }
.pick-task .meta { margin-left: auto; white-space: nowrap; font-size: .85em; color: var(--step-dark-blue-1); }
.pick-task .d { font-size: .85em; color: #6a7c86; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Catalogue editor */
.cat-table td { vertical-align: top; }
.cat-table .form-control, .cat-table .form-select { padding: .25rem .45rem; font-size: .9em; border-radius: .5rem; }
.cat-table th { font-size: .7em; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--step-dark-blue-1); }

.empty-state { text-align: center; padding: 3rem 1rem; color: #6a7c86; border: 2px dashed var(--step-light-grey-3); border-radius: 28px; }
.empty-state .bi { font-size: 2.5rem; color: var(--step-grey-1); }

footer { background: var(--step-light-grey-3); font-size: .9em; border-radius: 1rem 1rem 0 0; }

@media print {
	header, footer, .sidebar .no-print, .row-actions, .no-print { display: none !important; }
}
/* The page keeps room for the scrollbar, so switching between short and long pages (e.g. Rules: Style and Content
   rules) does not shift everything sideways. */
html { scrollbar-gutter: stable; }
.rule-suggestion { background: var(--step-light-blue-1, #eef5f8); border-radius: .6rem; }
/* LSL page */
/* The year headings stay in view when scrolling down the table, and each person's name when scrolling across. */
.lsl-scroll { overflow-x: auto; border-radius: .6rem; }
.lsl-table { margin-bottom: 0; }
.lsl-table thead th { position: relative; z-index: 2; background: #fff; white-space: nowrap; box-shadow: inset 0 -1px 0 #dee2e6; }
.lsl-table thead.stuck th { box-shadow: inset 0 -1px 0 #dee2e6, 0 4px 6px -4px rgba(0,0,0,.15); }
.lsl-table .lsl-person { position: sticky; left: 0; z-index: 1; background: #fff; min-width: 17.5rem; max-width: 17.5rem; }
.lsl-table thead th.lsl-person { position: sticky; z-index: 3; }
.lsl-table .lsl-cell input { min-width: 7.5rem; }
.lsl-table .lsl-note { resize: vertical; }
.lsl-table td, .lsl-table th { vertical-align: middle; }
.lsl-table .lsl-what { white-space: nowrap; font-size: .8rem; color: var(--step-dark-grey-1, #5d6b75); padding-right: .75rem; }
.lsl-table tr.lsl-sal td { border-bottom: 0; padding-bottom: .1rem; }
.lsl-table tr.lsl-owed td { padding-top: .1rem; }
.lsl-table tr.lsl-owed td.lsl-what, .lsl-table tr.lsl-owed td.num { background: #f6fafc; }
.lsl-table td.num { white-space: nowrap; min-width: 7.5rem; }
/* Figures line up with the figures typed in boxes: the same right edge as the text inside an input. */
.lsl-table td.num, .lsl-table th.num { padding-right: calc(.75rem + 1px); }
.lsl-table td.lsl-cell { padding-right: .25rem; }
.lsl-table tr.lsl-sal td, .lsl-table tr.lsl-owed td { height: 2.4rem; }
.lsl-table .lsl-person .form-select { font-size: .78rem; padding-top: .15rem; padding-bottom: .15rem; }
.lsl-move { display: flex; align-items: center; gap: .3rem; padding-left: 2.2em; flex: 0 0 auto; }
.lsl-move .form-check-label { font-size: .75rem; cursor: pointer; }
.lsl-table tr.lsl-note-row td { border-top: 0; padding-top: 0; }
.lsl-note-btn { font-size: .85rem; color: #b8c2c9; }
.lsl-note-btn.has-note { color: var(--step-orange-1, #FF5100); }
.lsl-table tr.lsl-total td { border-top: 2px solid #dee2e6; }
.lsl-paid .lsl-note { resize: vertical; min-width: 14rem; }
/* Reports board (kanban) and progress bars */
.rep-board { display: flex; gap: 1rem; align-items: flex-start; overflow-x: auto; padding-bottom: .5rem; }
.rep-col { flex: 0 0 22rem; background: var(--step-light-grey-3, #f3f5f6); border-radius: .9rem; padding: .75rem; }
.rep-col-title { font-weight: 600; font-size: .8em; text-transform: uppercase; letter-spacing: .05em; margin: 0 .25rem .6rem; }
.rep-card { display: block; background: #fff; border-radius: .7rem; padding: .9rem 1rem; margin-bottom: .6rem; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.rep-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.14); color: inherit; }
.rep-bar { position: relative; height: .8rem; background: var(--step-light-grey-2, #e7ebee); border-radius: .4rem; margin: .9rem 0 .3rem; }
.rep-bar > span { position: absolute; top: 0; bottom: 0; }
.rep-bar > span:first-child { border-radius: .4rem 0 0 .4rem; }
.rep-bar .paid, .rep-key.paid { background: var(--step-orange-1, #FF5100); }
.rep-bar .planned, .rep-key.planned { background: #ffb38a; }
.rep-bar .pipeline, .rep-key.pipeline { background: repeating-linear-gradient(45deg, #c9d3d8 0 4px, #e7ebee 4px 8px); }
.rep-mark { position: absolute; top: -.35rem; bottom: -.35rem; width: 2px; background: var(--step-dark-1, #22313a); font-style: normal; }
.rep-mark b { position: absolute; top: -1.05rem; left: 50%; transform: translateX(-50%); font-size: .65rem; font-weight: 600; white-space: nowrap; }
.rep-key { display: inline-block; width: .7rem; height: .7rem; border-radius: .2rem; vertical-align: middle; margin: 0 .2rem 0 .4rem; }
.earn-table td input:not([type="checkbox"]) { min-width: 6rem; }
/* Team earnings: the column headings stay at the top of the page while it scrolls (on narrow screens the table scrolls sideways instead) */
.earn-wrap { overflow-x: clip; }
.earn-table thead th { position: sticky; top: var(--head-h, 0); z-index: 2; background: #fff; box-shadow: inset 0 -1px 0 var(--step-light-grey-3); }
@media (max-width: 991.98px) { .earn-wrap { overflow-x: auto; } }
.earn-span summary { cursor: pointer; }
.earn-span input { max-width: 10rem; }
.lsl-key { background: #eef5f8; border-left: 3px solid var(--step-orange-1, #FF5100); }
/* Rules: proposals waiting for Management, and read-only rules for everyone else */
.rule-proposals { background: #fff8ec; border: 1px dashed #f0b45e; border-radius: .9rem; padding: .75rem; }
.rule-card.rule-proposed { border-left: 3px solid #f0b45e; }
.rule-card.rule-readonly textarea, .rule-card.rule-readonly .title-input { background: transparent; border-color: transparent; resize: none; }
.view-only-note { background: #eef5f8; border-left: 3px solid var(--step-orange-1, #FF5100); border-radius: .4rem; padding: .5rem .75rem; }
/* Ingestions: filters across the top, ingestions in columns (as on the Quotes page) */
.lf-bar { padding: .45rem .75rem; }
.lf-bar .btn-sm { padding: .15rem .6rem; font-size: .8rem; }
.lf-bar .gap-2 { gap: .35rem !important; }
.lf-bar .lf-search { width: 14rem; max-width: 14rem; padding-top: .2rem; padding-bottom: .2rem; font-size: .85rem; }
.lf-bar .form-select-sm { font-size: .8rem; padding-top: .15rem; padding-bottom: .15rem; }
.ing-ms-menu { min-width: 20rem; max-height: 60vh; overflow: auto; }
.q-board { display: flex; gap: .5rem; align-items: stretch; padding-bottom: .5rem; }
.q-col { flex: 1 1 0; min-width: 0; background: var(--step-light-grey-3, #f3f5f6); border-radius: .9rem; padding: .6rem; }
.q-col-head { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; font-weight: 600; font-size: .8em; text-transform: uppercase; letter-spacing: .04em; margin: -.6rem -.6rem .5rem; padding: .7rem .85rem .45rem; position: sticky; top: var(--top-bar-h, 0px); z-index: 5; background: var(--step-light-grey-3, #f3f5f6); border-radius: .9rem .9rem 0 0; }
.q-card { display: block; background: #fff; border-radius: .7rem; padding: .5rem .6rem; overflow-wrap: anywhere; margin-bottom: .5rem; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.q-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,.14); color: inherit; }
.q-card .ref { font-size: .75em; color: var(--step-dark-blue-1, #4a6170); }
@media (max-width: 767px) { .q-board { flex-direction: column; } }
.badge-noquote { background: #fff1e6; color: #b34700; }
/* Where an iteration was saved (Teams or SharePoint): saving, saved, or not saved */
.save-box { display: flex; align-items: flex-start; padding: .6rem .85rem; border-radius: .7rem; margin-bottom: .75rem; }
.save-box > i:first-child, .save-box > .spinner-border { font-size: 1.25rem; margin-top: .1rem; }
.save-box.saved { background: #e9f7ec; color: #155d2b; border: 1px solid #b7e2c2; }
.save-box.saved a { color: #155d2b; font-weight: 600; }
.save-box.saving { background: #eef4f8; color: #23415a; border: 1px solid #cfdfe9; align-items: center; }
.save-box.failed { background: #fdecea; color: #8a1c13; border: 1px solid #f3c2bd; }
/* Team workload report */
.wl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .6rem; margin-bottom: 1rem; }
.wl-tile { background: #fff; border-radius: .7rem; padding: .7rem .9rem; box-shadow: 0 1px 2px rgba(0,0,0,.08); border-top: 3px solid #c9d3d8; }
.wl-tile.over { border-top-color: #d64545; }
.wl-tile.under { border-top-color: #e0a800; }
.wl-tile-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #5d6b75; }
.wl-tile-value { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wl-person { border-bottom: 1px solid #e7ebee; }
.wl-person:last-child { border-bottom: 0; }
.wl-row { display: grid; grid-template-columns: minmax(9rem, 1.1fr) minmax(12rem, 2fr) minmax(12rem, 2.2fr) 6.5rem; gap: .5rem 1rem; align-items: center; padding: .6rem .25rem; cursor: pointer; }
.wl-row:hover { background: #f6f8f9; }
.wl-name { font-weight: 600; }
.wl-counts { font-size: .9rem; min-width: 0; }
.wl-st { display: inline-block; font-size: .72rem; padding: .05rem .45rem; border-radius: 1rem; margin: 0 .15rem .15rem 0; white-space: nowrap; }
.wl-st.ns { background: #eef1f3; color: #4a5a64; }
.wl-st.ip { background: #e3f0fb; color: #1d5f99; }
.wl-st.oh { background: #fff4e0; color: #9a4b00; }
.wl-st.cp { background: #e5f4ea; color: #2f7d4f; }
.wl-st.pp { background: #f2ecfb; color: #6b47a8; }
.wl-ubar { position: relative; height: .7rem; background: #e7ebee; border-radius: .35rem; margin-bottom: .25rem; }
.wl-ubar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: .35rem; }
.wl-ubar span.ok { background: #3a9d68; } .wl-ubar span.over { background: #d64545; } .wl-ubar span.under { background: #e0a800; } .wl-ubar span.none { background: #c9d3d8; }
.wl-ubar i { position: absolute; top: -.2rem; bottom: -.2rem; width: 2px; background: #23415a; }
.wl-load.ok { color: #2f7d4f; } .wl-load.over { color: #c43c3c; } .wl-load.under { color: #9a6b00; }
.wl-late-text { color: #c43c3c; }
.wl-cap input { width: 4.5rem; display: inline-block; margin-left: .25rem; }
.wl-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .25rem .25rem 1rem 1.5rem; }
.wl-detail > div { min-width: 0; }
.wl-tasks tr.late td { color: #c43c3c; }
.wl-chip { display: inline-block; font-size: .7rem; padding: .05rem .4rem; border-radius: 1rem; }
.wl-chip.over, .wl-chip.late { background: #fdecea; color: #c43c3c; }
.wl-chip.under { background: #fff4e0; color: #9a6b00; }
.wl-heat td.wl-cell { text-align: center; font-variant-numeric: tabular-nums; min-width: 3.2rem; }
.wl-cell.z { color: #c9d3d8; }
.wl-cell.under { background: #fff7e0; }
.wl-cell.ok { background: #dff1e6; }
.wl-cell.over { background: #f9d4d2; font-weight: 600; }
.wl-key { display: inline-block; width: .8rem; height: .8rem; border-radius: .2rem; vertical-align: -1px; }
.wl-key.under { background: #fff7e0; border: 1px solid #e0c060; } .wl-key.ok { background: #dff1e6; border: 1px solid #8fc9a5; } .wl-key.over { background: #f9d4d2; border: 1px solid #e08a85; }
@media (max-width: 767px) { .wl-row { grid-template-columns: 1fr; } .wl-detail { grid-template-columns: 1fr; padding-left: .25rem; } }
.wl-target { font-size: .72rem; color: #5d6b75; margin-top: .2rem; white-space: nowrap; }
.wl-row { grid-template-columns: minmax(9rem, 1.1fr) minmax(12rem, 2fr) minmax(12rem, 2.2fr) 7.5rem; }
/* Ingestion: where the process is (Inputs, Generate, Review and edit, Finalise in Word), and where the document is kept */
.steps-box { padding-top: .9rem; padding-bottom: .9rem; }
.steps { display: flex; flex-wrap: wrap; gap: .25rem 0; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.steps li { display: flex; align-items: center; }
.steps li + li::before { content: ''; display: inline-block; width: 2.2rem; height: 2px; background: var(--step-light-grey-3); margin: 0 .5rem; }
.steps li.sel + li.sel::before { background: var(--step-orange-1); }
.steps a { display: inline-flex; align-items: center; gap: .45rem; color: inherit; text-decoration: none; font-weight: 600; font-size: .9rem; opacity: .55; }
.steps li.sel a, .steps a:hover { opacity: 1; }
.steps .num { display: inline-flex; align-items: center; justify-content: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 2px solid var(--step-light-grey-3); font-size: .8rem; }
.steps li.sel .num { border-color: var(--step-orange-1); background: var(--step-orange-1); color: #fff; }
.saved-line { display: flex; gap: .5rem; align-items: baseline; font-size: .875rem; margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--step-light-grey-2, #e9ecef); }
.saved-line > i { flex: none; }
.saved-line.saved > i { color: var(--step-green); }
.saved-line.failed > i { color: var(--step-red); }
/* Outputs box: where they are saved. The folder shows; hovering shows the whole path with the folder highlighted. */
.out-place { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .875rem; padding: .45rem .65rem; margin-bottom: .75rem; border-radius: .5rem; background: var(--step-light-grey-1, #f6f7f9); }
.out-place > i { font-size: 1.05rem; }
.place-teams { color: #5059c9; }
.place-sp { color: #038387; }
.out-place-loc { color: inherit; text-decoration: none; font-weight: 600; min-width: 0; }
.out-place-pre { display: none; font-weight: 400; color: var(--step-text-muted, #6c757d); }
.out-place:hover .out-place-pre, .out-place-loc:focus .out-place-pre { display: inline; }
.out-place-end { padding: 0 .3rem; border-radius: .25rem; transition: background-color .15s; }
.out-place:hover .out-place-end { background: rgba(255, 81, 0, .14); color: var(--step-orange-1); }
a.out-place-loc:hover .out-place-end { text-decoration: underline; }
.out-place-edit { margin: -.4rem 0 .75rem; padding: .65rem; border: 1px solid var(--step-light-grey-2, #e9ecef); border-radius: .5rem; }
