/* G operations pages: quotations, bookings, expenses, profile, registration, inventory admin lists and editors,
   agents, staff, suppliers (list, detail + markup, payables, agreement, registration link) and the supplier portal.
   Loaded only on those pages (inc/g-ops.php adds body.g-ops). Every rule is scoped `.g-ops #dtt-main` so it outranks
   the older class-only layers (app.css, refinement.css, supplier.css...) without !important. Tokens: g-tokens.css. */

/* ---------- Page rhythm + heading ---------- */
.g-ops #dtt-main { color: var(--ink); font-family: var(--font-text); font-size: var(--fs-md); }
.g-ops #dtt-main .dtt-app-page, .g-ops #dtt-main .dtt-entry-content { background: none; border: 0; box-shadow: none; padding: 0; margin: 0; max-width: none; }
.g-ops #dtt-main :is(div.dtt-screen, div.dtt-supplier-portal, main.dtt-reference-profile) { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.g-ops #dtt-main :is(.dtt-entry-content, div.dtt-screen, div.dtt-supplier-portal, main.dtt-reference-profile) > * { margin: 0; min-width: 0; }
.g-ops #dtt-main .dtt-entry-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }

.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero, .dtt-quote-detail-header) {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap;
	margin: 0; padding: 0; background: none; border: 0; box-shadow: none; min-height: 0; color: var(--ink);
}
.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero)::before, .g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero)::after { display: none; }
/* Title block left, actions right (some headings wrap the title in a div, some put h1 + p straight in). */
.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; align-items: end; }
.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero) > * { grid-column: 1; min-width: 0; margin: 0; }
.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero) > :is(a.dtt-button, button, .dtt-reference-editor-actions, .dtt-reference-user-editor-actions, div:not(:first-child)) { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
/* The top bar already names the section; the caps eyebrow above each heading is dropped (G has none). */
.g-ops #dtt-main :is(.dtt-eyebrow, .dtt-index-eyebrow, .dtt-index-section-head > div > span) { display: none; }
/* Bookings / expenses index (templates/booking/*): filter row + list card with a G card head */
.g-ops #dtt-main form.dtt-management-list-filters.dtt-dashboard-card { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 12px; align-items: end; padding: 14px 16px; }
.g-ops #dtt-main form.dtt-management-list-filters > label { display: grid; gap: 6px; margin: 0; min-width: 0; }
.g-ops #dtt-main form.dtt-management-list-filters > label > span { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.g-ops #dtt-main .dtt-index-filter-actions { display: flex; gap: 8px; }
.g-ops #dtt-main .dtt-index-section-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 0; background: none; border: 0; }
.g-ops #dtt-main .dtt-index-section-head h2 { margin: 0; font: 700 var(--fs-lg)/1.25 var(--font-display); color: var(--ink); }
.g-ops #dtt-main .dtt-index-section-head p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.g-ops #dtt-main .dtt-booking-section-icon { width: 40px; height: 40px; flex: none; border-radius: var(--r-md); display: grid; place-items: center; background: var(--mint-100); color: var(--emerald-700); border: 0; }
.g-ops #dtt-main .dtt-index-empty { display: grid; justify-items: center; gap: 4px; padding: 36px 16px; text-align: center; color: var(--muted); }
.g-ops #dtt-main .dtt-index-empty strong { color: var(--ink); font-size: var(--fs-md); }
.g-ops #dtt-main .dtt-table tbody tr:only-child > [colspan]:hover, .g-ops #dtt-main .dtt-table tbody tr:only-child:hover > [colspan] { background: none; }
.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero, .dtt-quote-detail-header) h1 {
	margin: 0; font: 700 var(--fs-2xl)/1.2 var(--font-display); letter-spacing: -0.015em; color: var(--ink); text-wrap: balance;
}
.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero, .dtt-quote-detail-header) h1 + p,
.g-ops #dtt-main .dtt-page-heading > div > p:not(.dtt-eyebrow),
.g-ops #dtt-main .dtt-quote-title-block > p { margin: 4px 0 0; font-size: var(--fs-md); color: var(--muted); max-width: 72ch; }
.g-ops #dtt-main :is(.dtt-reference-editor-back, .dtt-quote-back) {
	display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--emerald-700); text-decoration: none;
}
.g-ops #dtt-main :is(.dtt-reference-editor-back, .dtt-quote-back) .dtt-ui-icon { width: 14px; height: 14px; }
.g-ops #dtt-main :is(.dtt-reference-editor-actions, .dtt-reference-user-editor-actions, .dtt-quote-actions) { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Buttons (G .btn) ---------- */
.g-ops #dtt-main .dtt-button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; min-height: 0; padding: 0 16px;
	border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink);
	font: 600 var(--fs-md)/1 var(--font-text); letter-spacing: 0; text-transform: none; text-decoration: none; white-space: nowrap;
	box-shadow: none; transform: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.g-ops #dtt-main .dtt-button:hover { background: var(--mint-50); border-color: var(--mint-400); color: var(--ink); transform: none; box-shadow: none; }
.g-ops #dtt-main .dtt-button .dtt-ui-icon { width: 17px; height: 17px; color: var(--emerald-700); flex: none; }
.g-ops #dtt-main .dtt-button-primary { background: var(--emerald-700); border-color: var(--emerald-700); color: #fff; }
.g-ops #dtt-main .dtt-button-primary:hover { background: var(--emerald-800); border-color: var(--emerald-800); color: #fff; }
.g-ops #dtt-main .dtt-button-primary .dtt-ui-icon { color: currentColor; }
.g-ops #dtt-main .dtt-button-ghost { background: transparent; border-color: transparent; color: var(--emerald-700); }
.g-ops #dtt-main .dtt-button-ghost:hover { background: var(--mint-50); border-color: var(--mint-200); color: var(--emerald-800); }
.g-ops #dtt-main .dtt-button-danger { background: var(--surface); border-color: #efc9c5; color: var(--bad-fg); }
.g-ops #dtt-main .dtt-button-danger:hover { background: var(--bad-bg); border-color: #e6aaa4; color: var(--bad-fg); }
.g-ops #dtt-main .dtt-button-danger .dtt-ui-icon { color: currentColor; }
.g-ops #dtt-main .dtt-button-small { height: 34px; padding: 0 12px; font-size: var(--fs-sm); gap: 6px; }
.g-ops #dtt-main .dtt-button-small .dtt-ui-icon { width: 15px; height: 15px; }
.g-ops #dtt-main .dtt-button:disabled, .g-ops #dtt-main .dtt-button[aria-disabled="true"] { opacity: 1; color: var(--muted); background: var(--canvas); border-color: var(--border); cursor: not-allowed; }
.g-ops #dtt-main .dtt-button:disabled .dtt-ui-icon { color: currentColor; }
.g-ops #dtt-main :is(a, button):focus-visible, .g-ops #dtt-main :is(input, select, textarea):focus-visible { outline: 2px solid var(--emerald-600); outline-offset: 2px; }

/* ---------- KPI cards (old .dtt-stat-card drawn as G .kpi) ---------- */
.g-ops #dtt-main :is(.dtt-quote-kpis, .dtt-management-list-summary, .dtt-user-kpis, .dtt-supplier-kpis, .dtt-booking-kpis, .dtt-kpi-grid, .dtt-destination-kpis) {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin: 0;
}
.g-ops #dtt-main .dtt-stat-card {
	position: relative; display: grid; grid-template-columns: 50px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 16px; align-content: start;
	min-height: 0; padding: 16px 20px; margin: 0; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface);
	box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none; transform: none; overflow: visible;
}
.g-ops #dtt-main .dtt-stat-card::before, .g-ops #dtt-main .dtt-stat-card::after { display: none; }
.g-ops #dtt-main a.dtt-stat-card:hover { border-color: var(--mint-300); background: var(--surface); transform: none; box-shadow: var(--shadow-card); }
.g-ops #dtt-main .dtt-stat-card .dtt-stat-icon {
	grid-column: 1; grid-row: 1 / span 3; position: static; width: 50px; height: 50px; border-radius: var(--r-md);
	display: grid; place-items: center; background: var(--mint-100); color: var(--emerald-700); box-shadow: none; transform: none;
}
.g-ops #dtt-main .dtt-stat-card .dtt-stat-icon .dtt-ui-icon { width: 24px; height: 24px; color: var(--emerald-700); }
.g-ops #dtt-main .dtt-stat-card .dtt-stat-label { grid-column: 2; font: 500 var(--fs-md)/1.3 var(--font-text); color: var(--ink-2); text-transform: none; letter-spacing: 0; margin: 0; }
.g-ops #dtt-main .dtt-stat-card strong { grid-column: 2; font: 700 var(--fs-kpi)/1.15 var(--font-display); letter-spacing: -0.02em; color: var(--ink); margin: 2px 0 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.g-ops #dtt-main .dtt-stat-card small { grid-column: 2; font-size: var(--fs-sm); color: var(--muted); font-weight: 400; margin: 0; }
/* Five cards (destinations) keep the icon-left card in one row; six (payables) go 3 + 3 so PHP amounts stay on one line. */
.g-ops #dtt-main :has(> .dtt-stat-card:nth-child(5)) { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.g-ops #dtt-main :has(> .dtt-stat-card:nth-child(5)) > .dtt-stat-card { grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; padding: 16px 18px; }
.g-ops #dtt-main :has(> .dtt-stat-card:nth-child(5)) > .dtt-stat-card .dtt-stat-icon { width: 44px; height: 44px; }
.g-ops #dtt-main :has(> .dtt-stat-card:nth-child(5)) > .dtt-stat-card .dtt-stat-icon .dtt-ui-icon { width: 22px; height: 22px; }
.g-ops #dtt-main :has(> .dtt-stat-card:nth-child(6)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-ops #dtt-main .dtt-stat-card strong { font-size: clamp(21px, 1.9vw, var(--fs-kpi)); white-space: nowrap; overflow-wrap: normal; }
.g-ops #dtt-main a.dtt-stat-card:focus-visible { outline: 2px solid var(--emerald-700); outline-offset: 2px; }
.g-ops #dtt-main .dtt-stat-card-red .dtt-stat-icon { background: var(--bad-bg); color: var(--bad-fg); }
.g-ops #dtt-main .dtt-stat-card-red .dtt-stat-icon .dtt-ui-icon { color: var(--bad-fg); }
.g-ops #dtt-main :is(.dtt-stat-card-yellow, .dtt-stat-card-amber) .dtt-stat-icon { background: var(--warn-bg); }
.g-ops #dtt-main :is(.dtt-stat-card-yellow, .dtt-stat-card-amber) .dtt-stat-icon .dtt-ui-icon { color: var(--warn-fg); }

/* ---------- Cards / sections ---------- */
.g-ops #dtt-main :is(.dtt-form-section, .dtt-dashboard-card, .dtt-profile-card, .dtt-quote-detail-card, .dtt-reference-summary-card, .dtt-registration-guidance) {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
	padding: 18px 22px; margin: 0; color: var(--ink);
}
.g-ops #dtt-main :is(.dtt-form-section, .dtt-dashboard-card, .dtt-profile-card, .dtt-quote-detail-card, .dtt-reference-summary-card)::before { display: none; }
.g-ops #dtt-main :is(.dtt-form-section, .dtt-dashboard-card, .dtt-profile-card, .dtt-quote-detail-card, .dtt-reference-summary-card) > h2,
.g-ops #dtt-main :is(.dtt-section-header, .dtt-supplier-card-head, .dtt-profile-card-heading) h2 {
	display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 0; border: 0;
	font: 700 var(--fs-lg)/1.25 var(--font-display); color: var(--ink); letter-spacing: -0.01em; text-transform: none;
}
.g-ops #dtt-main :is(.dtt-form-section, .dtt-dashboard-card, .dtt-profile-card, .dtt-quote-detail-card, .dtt-reference-summary-card) h2 .dtt-ui-icon { width: 22px; height: 22px; color: var(--emerald-700); flex: none; }
.g-ops #dtt-main :is(.dtt-form-section, .dtt-dashboard-card) h3 { font: 650 15px/1.3 var(--font-display); color: var(--ink); margin: 14px 0 8px; }
.g-ops #dtt-main :is(.dtt-section-header, .dtt-supplier-card-head) { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 12px; padding: 0; border: 0; }
.g-ops #dtt-main :is(.dtt-section-header, .dtt-supplier-card-head) h2 { margin: 0; }
.g-ops #dtt-main .dtt-section-header p, .g-ops #dtt-main .dtt-profile-card-heading p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.g-ops #dtt-main :is(.dtt-supplier-note, .dtt-field-help, .dtt-registration-section-copy) { font-size: var(--fs-sm); color: var(--muted); line-height: 1.5; }
.g-ops #dtt-main .dtt-notice { border-radius: var(--r-md); font-size: var(--fs-md); }

/* ---------- Status pills (G .pill) ---------- */
.g-ops #dtt-main :is(.dtt-status, .dtt-role-pill) {
	display: inline-flex; align-items: center; gap: 6px; height: 24px; min-height: 0; padding: 0 10px; border: 0; border-radius: var(--r-pill);
	font: 600 12.5px/1 var(--font-text); letter-spacing: 0; text-transform: none; white-space: nowrap; box-shadow: none;
	background: var(--neutral-bg); color: var(--neutral-fg);
}
.g-ops #dtt-main .dtt-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.g-ops #dtt-main .dtt-role-pill { background: var(--mint-100); color: var(--emerald-800); }
.g-ops #dtt-main .dtt-status:is([class*="-active"], [class*="-approved"], [class*="-booked"], [class*="-current"], [class*="-completed"], [class*="-publish"], [class*="-paid"], [class*="-recorded"], [class*="-confirmed"], [class*="-accepted"], [class*="-live"]) { background: var(--ok-bg); color: var(--ok-fg); }
.g-ops #dtt-main .dtt-status:is([class*="-draft_quote"], [class*="-submitted"], [class*="-open"]) { background: var(--open-bg); color: var(--open-fg); box-shadow: inset 0 0 0 1px var(--mint-300); }
.g-ops #dtt-main .dtt-status:is([class*="-pending"], [class*="-partial"], [class*="_review"], [class*="-review"], [class*="-changed"], [class*="-noproof"], [class*="-processing"], [class*="-expiring"]) { background: var(--warn-bg); color: var(--warn-fg); }
.g-ops #dtt-main .dtt-status:is([class*="-declined"], [class*="-unpaid"], [class*="-rejected"], [class*="-suspended"], [class*="-inactive"], [class*="-void"], [class*="-returned"], [class*="-expired"]) { background: var(--bad-bg); color: var(--bad-fg); }
.g-ops #dtt-main .dtt-status:is([class*="-new"], [class*="-updated"], [class*="-sent"], [class*="-scheduled"]) { background: var(--info-bg); color: var(--info-fg); }
.g-ops #dtt-main .dtt-status:is([class*="-draft"]:not([class*="-draft_quote"]), [class*="-paused"], [class*="-cancelled"], [class*="-private"]) { background: var(--neutral-bg); color: var(--neutral-fg); box-shadow: none; }
.g-ops #dtt-main .dtt-catalog-card-media .dtt-status { position: absolute; top: 10px; left: 10px; right: auto; box-shadow: 0 1px 4px rgb(0 0 0 / 0.12); }

/* ---------- Filter toolbar ---------- */
.g-ops #dtt-main :is(.dtt-filter-form, .dtt-list-filters, .dtt-management-list-filters) {
	margin: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.g-ops #dtt-main .dtt-list-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.g-ops #dtt-main .dtt-list-filters > * { flex: 1 1 150px; min-width: 0; margin: 0; }
.g-ops #dtt-main .dtt-list-filters > .dtt-filter-search { flex: 2 1 260px; }
.g-ops #dtt-main .dtt-list-filters > button { flex: 0 0 auto; }
.g-ops #dtt-main .dtt-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 12px; align-items: end; margin: 0; }
.g-ops #dtt-main .dtt-filter-grid .dtt-management-list-search { grid-column: span 2; }
.g-ops #dtt-main .dtt-filter-field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.g-ops #dtt-main .dtt-filter-label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.g-ops #dtt-main .dtt-filter-actions { display: flex; gap: 8px; align-items: end; flex-wrap: nowrap; }
.g-ops #dtt-main .dtt-filter-control-search { position: relative; display: block; }
.g-ops #dtt-main .dtt-filter-input-icon { position: absolute; left: 12px; top: 0; bottom: 0; height: auto; translate: none; transform: none; margin: 0; color: var(--muted); display: flex; align-items: center; pointer-events: none; }
.g-ops #dtt-main .dtt-filter-input-icon .dtt-ui-icon { width: 16px; height: 16px; }
.g-ops #dtt-main :is(.dtt-filter-control-search, .dtt-filter-search) input { padding-left: 36px; }
.g-ops #dtt-main .dtt-filter-search { position: relative; }
.g-ops #dtt-main .select2-container { width: 100% !important; } /* select2 writes an inline px width */

/* ---------- Fields (G .input / .select) ---------- */
.g-ops #dtt-main :where(input:is([type=text], [type=email], [type=tel], [type=number], [type=date], [type=search], [type=password], [type=url], :not([type])), select, textarea) {
	width: 100%; min-height: 40px; height: 40px; padding: 0 12px; margin: 0; border-radius: var(--r-md); border: 1px solid var(--border-input);
	background-color: var(--surface); color: var(--ink); font: 400 var(--fs-md)/1.3 var(--font-text); box-shadow: none;
}
.g-ops #dtt-main textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.g-ops #dtt-main select { appearance: none; padding-right: 34px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333443a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; }
.g-ops #dtt-main select[multiple] { height: auto; background-image: none; padding: 6px; }
.g-ops #dtt-main :is(input, select, textarea):focus { outline: none; border-color: var(--emerald-600); box-shadow: var(--focus); }
.g-ops #dtt-main :is(input, select, textarea):disabled { background-color: var(--canvas); color: var(--muted); border-color: var(--border-strong); }
.g-ops #dtt-main input[type=file] { height: auto; min-height: 40px; padding: 6px; border: 1px dashed var(--border-input); border-radius: var(--r-md); background: var(--mint-50); font-size: var(--fs-sm); width: 100%; }
.g-ops #dtt-main input[type=file]::file-selector-button { height: 30px; padding: 0 12px; margin-right: 10px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--emerald-700); font: 600 var(--fs-sm) var(--font-text); cursor: pointer; }
.g-ops #dtt-main input:is([type=checkbox], [type=radio]) { accent-color: var(--emerald-700); width: 17px; height: 17px; }
.g-ops #dtt-main .dtt-form label, .g-ops #dtt-main .dtt-management-form label { display: grid; gap: 6px; align-content: start; min-width: 0; }
.g-ops #dtt-main :is(.dtt-form, .dtt-management-form) label > span:first-child,
.g-ops #dtt-main :is(.dtt-form, .dtt-management-form) .dtt-field-label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.g-ops #dtt-main :is(.dtt-form, .dtt-management-form) label > small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.g-ops #dtt-main :is(.dtt-form, .dtt-management-form) label:has(> input:is([type=checkbox], [type=radio])) { display: flex; align-items: center; gap: 10px; }
.g-ops #dtt-main .dtt-grid { gap: 14px 16px; }
/* Select2 (searchable selects) drawn as G fields */
.g-ops #dtt-main .select2-container .select2-selection {
	height: 40px; min-height: 40px; display: flex; align-items: center; padding: 0 34px 0 12px; border-radius: var(--r-md);
	border: 1px solid var(--border-input); background: var(--surface); box-shadow: none; font-weight: 400; color: var(--ink);
}
.g-ops #dtt-main .select2-selection__rendered { font: 400 var(--fs-md)/1.3 var(--font-text); color: var(--ink); padding: 0; }
.g-ops #dtt-main .select2-container--open .select2-selection, .g-ops #dtt-main .select2-selection:focus-visible { border-color: var(--emerald-600); box-shadow: var(--focus); outline: none; }

/* ---------- Tables (G .table) ---------- */
.g-ops #dtt-main .dtt-table-wrap {
	margin: 0; padding: 8px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
	overflow-x: auto; max-width: 100%;
}
/* Tables inside a card sit flush in it (no second card). */
.g-ops #dtt-main :is(.dtt-form-section, .dtt-dashboard-card, .dtt-quote-detail-card, .dtt-profile-card) .dtt-table-wrap { padding: 0; border: 0; box-shadow: none; border-radius: 0; background: none; }
.g-ops #dtt-main .dtt-table { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; border: 0; font-size: var(--fs-sm); color: var(--ink); background: none; box-shadow: none; }
.g-ops #dtt-main .dtt-table thead th {
	background: var(--surface-sunk); color: var(--ink); font: 650 var(--fs-sm)/1.3 var(--font-text); text-transform: none; letter-spacing: 0;
	text-align: left; padding: 10px 10px; border: 0; white-space: nowrap; position: static;
}
.g-ops #dtt-main .dtt-table thead th:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.g-ops #dtt-main .dtt-table thead th:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.g-ops #dtt-main .dtt-table :is(tbody td, tbody th) {
	padding: 10px 10px; border: 0; border-bottom: 1px solid var(--border); vertical-align: middle; text-align: left; background: none; color: var(--ink); line-height: 1.4;
}
.g-ops #dtt-main .dtt-table tbody tr { background: none; box-shadow: none; }
.g-ops #dtt-main .dtt-table tbody tr:last-child > * { border-bottom: 0; }
.g-ops #dtt-main .dtt-table tbody tr:hover > * { background: #fafcf8; }
.g-ops #dtt-main .dtt-table td strong { font-weight: 650; color: var(--ink); }
.g-ops #dtt-main .dtt-table td small { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.g-ops #dtt-main .dtt-table td a:not(.dtt-button) { color: var(--emerald-700); font-weight: 600; text-decoration: none; }
.g-ops #dtt-main .dtt-table td a:not(.dtt-button):hover { text-decoration: underline; }
/* Row actions: one line of compact buttons */
.g-ops #dtt-main .dtt-inline-actions { white-space: nowrap; }
.g-ops #dtt-main td.dtt-inline-actions, .g-ops #dtt-main td.dtt-management-list-actions { width: 1%; display: table-cell; flex-direction: row; }
.g-ops #dtt-main .dtt-inline-actions, .g-ops #dtt-main .dtt-management-list-actions { text-align: left; }
.g-ops #dtt-main td:is(.dtt-inline-actions, .dtt-management-list-actions) > * { display: inline-flex; vertical-align: middle; margin: 0 4px 0 0; }
.g-ops #dtt-main td:is(.dtt-inline-actions, .dtt-management-list-actions) form { display: inline-flex; margin: 0; }
.g-ops #dtt-main .dtt-table .dtt-button-small { height: 32px; padding: 0 10px; }
.g-ops #dtt-main .dtt-table .dtt-button-ghost { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.g-ops #dtt-main .dtt-table .dtt-button-ghost:hover { background: var(--mint-50); border-color: var(--mint-400); }
.g-ops #dtt-main .dtt-management-list-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.g-ops #dtt-main .dtt-management-list-identity span { display: grid; gap: 1px; min-width: 0; }
.g-ops #dtt-main .dtt-management-list-thumb { width: 64px; height: 40px; flex: none; object-fit: cover; border-radius: 8px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08), inset 0 0 0 1px rgb(0 0 0 / 0.04); }

/* Pagination (G .pager) */
.g-ops #dtt-main .dtt-pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0; padding: 2px 4px 0; font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
.g-ops #dtt-main .dtt-pagination :is(a, span[aria-current], .current) { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); font-weight: 600; text-decoration: none; }
.g-ops #dtt-main .dtt-pagination :is(span[aria-current], .current, a[aria-current]) { background: var(--emerald-700); border-color: var(--emerald-700); color: #fff; }
.g-ops #dtt-main .dtt-pagination > span:first-child { border: 0; background: none; min-width: 0; padding: 0; height: auto; display: inline; font-weight: 400; color: var(--muted); }
.g-ops #dtt-main .dtt-empty-state { padding: 40px 24px; text-align: center; color: var(--muted); background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-lg); }

/* ---------- Inventory card lists (hotels, tours, offers...): G rate-card look ---------- */
.g-ops #dtt-main .dtt-catalog-card-grid { gap: 16px; }
.g-ops #dtt-main .dtt-catalog-card { border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); background: var(--surface); overflow: hidden; transform: none; }
.g-ops #dtt-main .dtt-catalog-card:hover { transform: none; box-shadow: var(--shadow-card); border-color: var(--mint-300); }
.g-ops #dtt-main .dtt-catalog-card-media { border-radius: 0; }
.g-ops #dtt-main .dtt-catalog-card-body { padding: 14px 16px 12px; gap: 4px; }
.g-ops #dtt-main .dtt-catalog-card-kicker { font: 600 12.5px/1.3 var(--font-text); color: var(--emerald-700); text-transform: none; letter-spacing: 0; margin: 0; }
.g-ops #dtt-main .dtt-catalog-card-body h3 { font: 650 15.5px/1.3 var(--font-display); color: var(--ink); margin: 2px 0; }
.g-ops #dtt-main .dtt-catalog-card-body p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.g-ops #dtt-main .dtt-catalog-card-supplier strong { font-weight: 600; color: var(--muted); }
.g-ops #dtt-main .dtt-catalog-card-facts { font-size: 12.5px; color: var(--muted); gap: 6px 12px; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 8px; }
.g-ops #dtt-main .dtt-catalog-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 16px 16px; margin-top: auto; border: 0; background: none; }
.g-ops #dtt-main .dtt-catalog-card-actions > * { margin: 0; min-width: 0; }
.g-ops #dtt-main .dtt-catalog-card-actions > :not(a, form) { grid-column: 1 / -1; order: 9; }
.g-ops #dtt-main .dtt-catalog-card-actions .dtt-button-ghost { border-color: var(--border-strong); background: var(--surface); }
.g-ops #dtt-main .dtt-catalog-card-actions form { display: flex; }
.g-ops #dtt-main .dtt-catalog-card-actions .dtt-button { width: 100%; height: 34px; }

/* ---------- Editors (add/edit forms): sections as cards, sticky publish card, sticky bottom save ---------- */
.g-ops #dtt-main .dtt-reference-editor-shell, .g-ops #dtt-main .dtt-management-editor-layout { gap: 16px; }
.g-ops #dtt-main .dtt-reference-editor-sidebar { position: sticky; top: calc(var(--topbar-h) + 16px); align-self: start; }
.g-ops #dtt-main .dtt-reference-summary-card dl { margin: 0 0 14px; display: grid; gap: 0; }
.g-ops #dtt-main .dtt-reference-summary-card dl > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.g-ops #dtt-main .dtt-reference-summary-card dt { color: var(--muted); font-weight: 400; }
.g-ops #dtt-main .dtt-reference-summary-card dd { margin: 0; font-weight: 650; color: var(--ink); text-align: right; }
.g-ops #dtt-main .dtt-reference-summary-card .dtt-button { width: 100%; }
.g-ops #dtt-main :is(.dtt-repeater-row, .dtt-peak-season-range, .dtt-hotel-room-card) { background: var(--mint-50); border: 1px solid var(--mint-200); border-radius: var(--r-md); box-shadow: none; }
.g-ops #dtt-main .dtt-peak-season-range strong { color: var(--emerald-800); font-weight: 650; }
.g-ops #dtt-main .dtt-row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.g-ops #dtt-main .dtt-form-actions {
	position: sticky; bottom: 0; z-index: 5; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin: 0; padding: 12px 16px;
	background: rgb(250 251 247 / 0.94); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: 0 -4px 16px rgb(21 38 27 / 0.06);
}
/* The editor bar stays sticky on phones too (app.css forced every editor child static under 1000px), and beside a
   sidebar it only spans the main column, so it never covers the sidebar's last links (Return to supplier). */
.g-ops #dtt-main :is(.dtt-management-editor-layout, .dtt-reference-editor-shell) > .dtt-form-actions { position: sticky !important; }
@media (min-width: 1101px) {
	/* Staff editor: the sidebar spans both rows so the bar sits right under the short form, not under the sidebar. */
	.g-ops #dtt-main #dtt-staff-editor { grid-template-rows: auto 1fr; }
	.g-ops #dtt-main #dtt-staff-editor > aside { grid-column: 2; grid-row: 1 / span 2; }
	.g-ops #dtt-main #dtt-staff-editor > .dtt-form-actions { grid-column: 1; grid-row: 2; align-self: start; }
}
@media (min-width: 1001px) {
	.g-ops #dtt-main .dtt-reference-editor-shell:has(> .dtt-reference-editor-sidebar) > .dtt-form-actions { grid-column: 1; }
}
/* One column: the form starts at the top, the publish/review card follows it and the bar stays last (a bar placed
   before the card stopped being sticky once the card scrolled in). */
@media (max-width: 1000px) {
	.g-ops #dtt-main :is(.dtt-management-editor-layout, .dtt-reference-editor-shell) > aside { order: 2; }
	.g-ops #dtt-main :is(.dtt-management-editor-layout, .dtt-reference-editor-shell) > .dtt-form-actions { order: 3; align-items: stretch; }
	.g-ops #dtt-main #dtt-staff-editor > .dtt-form-actions { align-items: stretch; }
}
/* Phone editor header: "View Hotels" repeats the Back link (same URL), so only Back and a compact PDF remain, on one row. */
@media (max-width: 720px) {
	.g-ops #dtt-main .dtt-reference-editor-heading:has(.dtt-reference-editor-back) { position: relative; }
	.g-ops #dtt-main .dtt-reference-editor-heading:has(.dtt-reference-editor-back) .dtt-reference-editor-actions > a.dtt-button:not(.dtt-catalog-pdf-action),
	.g-ops #dtt-main .dtt-tour-editor-heading:has(.dtt-back-link) .dtt-tour-editor-heading-actions > a.dtt-button:not(.dtt-catalog-pdf-action) { display: none; }
	.g-ops #dtt-main .dtt-reference-editor-heading:has(.dtt-reference-editor-back) .dtt-reference-editor-actions { position: absolute; top: 0; right: 0; width: auto; margin: 0; }
	.g-ops #dtt-main .dtt-reference-editor-heading:has(.dtt-reference-editor-back) .dtt-reference-editor-actions .dtt-catalog-pdf-action { width: auto; min-height: 32px; height: 32px; padding-inline: 10px; }
}
/* Short in-card forms keep a plain action row (not sticky). */
.g-ops #dtt-main :is(.dtt-form-section, .dtt-dashboard-card, .dtt-quote-detail-card, .dtt-profile-card) .dtt-form-actions { position: static; padding: 12px 0 0; background: none; backdrop-filter: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; justify-content: flex-start; margin-top: 12px; }

/* ---------- Quotation detail: main column + one 340px side column (G grid-split) ---------- */
.g-ops #dtt-main .dtt-quote-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0; background: none; border: 0; box-shadow: none; }
.g-ops #dtt-main .dtt-quote-title-block { flex: 1 1 420px; min-width: 0; }
.g-ops #dtt-main .dtt-quote-section .dtt-table { min-width: 0; }
@media (min-width: 721px) { .g-ops #dtt-main .dtt-quote-section .dtt-table :is(th, td) { padding-inline: 6px; } }
.g-ops #dtt-main .dtt-quote-title-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g-ops #dtt-main .dtt-quote-title-line h1 { font-size: var(--fs-xl); }
.g-ops #dtt-main .dtt-quote-actions .dtt-inline-form { margin: 0; display: inline-flex; }
.g-ops #dtt-main .dtt-quote-detail-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; grid-auto-flow: row dense; padding: 0; background: none; border: 0; }
.g-ops #dtt-main .dtt-quote-detail-workspace > aside { display: contents; }
.g-ops #dtt-main .dtt-quote-detail-main { grid-column: 1; grid-row: 1 / span 6; display: grid; gap: 16px; min-width: 0; }
.g-ops #dtt-main .dtt-quote-detail-workspace > aside > section { grid-column: 2; min-width: 0; }
.g-ops #dtt-main .dtt-quote-pricing-card { order: -2; position: static; } /* app.css made it sticky: it slid over the cards below */
/* Services tables: day, counts and money never break; text columns keep a readable minimum and the wrap scrolls. */
@media (min-width: 721px) {
	.g-ops #dtt-main .dtt-quote-section .dtt-table :is(th, td) { white-space: nowrap; }
	.g-ops #dtt-main .dtt-quote-table-transport :is(td, th):is(:nth-child(2), :nth-child(6), :nth-child(7)) { white-space: normal; }
	.g-ops #dtt-main .dtt-quote-table-transport :is(td, th):is(:nth-child(3), :nth-child(4)),
	.g-ops #dtt-main .dtt-quote-table-hotels :is(td, th):is(:nth-child(2), :nth-child(3), :nth-child(4), :last-child) { white-space: normal; min-width: 96px; }
}
@media (min-width: 1101px) and (max-width: 1500px) { .g-ops #dtt-main .dtt-quote-detail-workspace { grid-template-columns: minmax(0, 1fr) 320px; } }
.g-ops #dtt-main .dtt-quote-client-card { order: -1; }
.g-ops #dtt-main .dtt-quote-detail-card { padding: 18px 20px; }
.g-ops #dtt-main .dtt-quote-detail-card h2 { font-size: var(--fs-lg); justify-content: flex-start; }
.g-ops #dtt-main .dtt-quote-detail-card h2 > span:last-child:not(:first-child) { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.g-ops #dtt-main .dtt-quote-client-card dl { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px 12px; margin: 0 0 14px; font-size: var(--fs-sm); }
.g-ops #dtt-main .dtt-quote-client-card dt { color: var(--muted); font-weight: 400; margin: 0; }
.g-ops #dtt-main .dtt-quote-client-card dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: break-word; min-width: 0; }
.g-ops #dtt-main .dtt-quote-status-card p { font-size: var(--fs-sm); color: var(--ink-2); margin: 12px 0 0; display: flex; justify-content: space-between; gap: 12px; }
.g-ops #dtt-main .dtt-quote-status-card p strong { color: var(--muted); font-weight: 400; }
.g-ops #dtt-main .dtt-button-wide { width: 100%; }
.g-ops #dtt-main .dtt-quote-trip-image { width: 100%; aspect-ratio: 16 / 5; object-fit: cover; border-radius: var(--r-md); display: block; }
.g-ops #dtt-main .dtt-quote-trip-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 16px; margin-top: 14px; }
.g-ops #dtt-main .dtt-quote-trip-facts > div { display: grid; gap: 2px; padding: 0; border: 0; }
.g-ops #dtt-main .dtt-quote-trip-facts span { font-size: 12.5px; color: var(--muted); }
.g-ops #dtt-main .dtt-quote-trip-facts strong { font-size: var(--fs-md); font-weight: 650; color: var(--ink); }
.g-ops #dtt-main .dtt-quote-section + .dtt-quote-section { margin-top: 16px; }
.g-ops #dtt-main .dtt-quote-section > h2 { font: 650 var(--fs-md)/1.3 var(--font-text); color: var(--ink-2); margin: 0 0 8px; }
.g-ops #dtt-main .dtt-quote-price-lines { display: grid; }
.g-ops #dtt-main .dtt-quote-price-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: var(--fs-md); border: 0; }
.g-ops #dtt-main .dtt-quote-price-lines > div span { color: var(--ink-2); }
.g-ops #dtt-main .dtt-quote-price-lines > div strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.g-ops #dtt-main .dtt-quote-price-lines .dtt-price-subtotal { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 10px; }
.g-ops #dtt-main .dtt-quote-price-lines .dtt-price-grand { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; align-items: baseline; }
.g-ops #dtt-main .dtt-quote-price-lines .dtt-price-grand span { color: var(--ink); font-weight: 650; }
.g-ops #dtt-main .dtt-quote-price-lines .dtt-price-grand strong { font: 700 22px/1 var(--font-display); letter-spacing: -0.02em; }
.g-ops #dtt-main .dtt-quote-validity { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--mint-50); border: 1px solid var(--mint-200); color: var(--emerald-800); font-size: var(--fs-sm); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.g-ops #dtt-main .dtt-quote-activity-card ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.g-ops #dtt-main .dtt-quote-activity-card li { display: grid; gap: 1px; padding-left: 18px; position: relative; font-size: var(--fs-sm); }
.g-ops #dtt-main .dtt-quote-activity-card li::before { content: ""; position: absolute; left: 0; top: 5px; width: 8px; height: 8px; border-radius: 50%; border: 1.6px solid var(--emerald-600); background: var(--surface); }
.g-ops #dtt-main .dtt-quote-activity-card li.is-current::before { background: var(--emerald-600); }
.g-ops #dtt-main .dtt-quote-activity-card li span { color: var(--muted); font-size: 12.5px; }
.g-ops #dtt-main .dtt-itinerary-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.g-ops #dtt-main .dtt-itinerary-item { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); display: grid; gap: 4px; align-content: start; }
.g-ops #dtt-main .dtt-itinerary-item > strong { font-size: 12.5px; font-weight: 650; color: var(--emerald-700); }
.g-ops #dtt-main .dtt-itinerary-entry h3 { font: 650 var(--fs-md)/1.3 var(--font-display); margin: 0 0 4px; }
.g-ops #dtt-main .dtt-itinerary-entry p, .g-ops #dtt-main .dtt-itinerary-entry small { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; }
.g-ops #dtt-main .dtt-itinerary-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; margin: 6px 0 8px; font-size: var(--fs-sm); }
.g-ops #dtt-main .dtt-itinerary-meta > * { margin: 0; }
.g-ops #dtt-main .dtt-itinerary-meta dt { color: var(--muted); font-weight: 400; }
.g-ops #dtt-main .dtt-itinerary-meta dd { font-weight: 600; }
.g-ops #dtt-main .dtt-itinerary-meta div { display: contents; }

/* ---------- Supplier detail (admin) + supplier profile ---------- */
.g-ops #dtt-main .dtt-supplier-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.g-ops #dtt-main .dtt-supplier-rail { list-style: none; margin: 0; padding: 16px 22px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.g-ops #dtt-main .dtt-supplier-card .dtt-supplier-rail { border: 0; box-shadow: none; padding: 4px 0 0; }
.g-ops #dtt-main .dtt-supplier-rail-step { display: flex; align-items: center; gap: 10px; position: relative; font-size: var(--fs-sm); color: var(--ink-2); }
.g-ops #dtt-main .dtt-supplier-rail-step:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin-right: 12px; border-radius: 2px; background: var(--border-strong); position: static; }
.g-ops #dtt-main .dtt-supplier-rail-step.is-done:not(:last-child)::after { background: var(--emerald-600); }
.g-ops #dtt-main .dtt-supplier-rail-step::before { display: none; }
.g-ops #dtt-main .dtt-supplier-rail-dot { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-strong); background: var(--surface); color: var(--muted); position: static; }
.g-ops #dtt-main .dtt-supplier-rail-step.is-done .dtt-supplier-rail-dot { background: var(--emerald-700); border-color: var(--emerald-700); color: #fff; }
.g-ops #dtt-main .dtt-supplier-rail-step.is-current .dtt-supplier-rail-dot { border-color: var(--emerald-600); box-shadow: 0 0 0 4px var(--mint-100); }
.g-ops #dtt-main .dtt-supplier-rail-dot .dtt-ui-icon { width: 14px; height: 14px; }
.g-ops #dtt-main .dtt-supplier-rail-label { font-weight: 600; color: var(--ink); white-space: nowrap; }
/* Compact rail in the suppliers table: four small progress dots under the status pill (labels stay for screen readers). */
.g-ops #dtt-main .dtt-supplier-status-cell { display: grid; gap: 6px; justify-items: start; }
.g-ops #dtt-main td .dtt-supplier-rail { display: flex; gap: 0; padding: 0 0 0 4px; margin: 0; border: 0; box-shadow: none; background: none; border-radius: 0; }
.g-ops #dtt-main td .dtt-supplier-rail-step { gap: 0; }
.g-ops #dtt-main td .dtt-supplier-rail-step:not(:last-child)::after { width: 12px; flex: none; height: 2px; margin: 0 2px; }
.g-ops #dtt-main td .dtt-supplier-rail-dot { width: 9px; height: 9px; border-width: 1.5px; }
.g-ops #dtt-main td .dtt-supplier-rail-dot .dtt-ui-icon { display: none; }
.g-ops #dtt-main td .dtt-supplier-rail-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.g-ops #dtt-main :is(.dtt-supplier-shell, .dtt-reference-user-editor-shell) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.g-ops #dtt-main :is(.dtt-supplier-main, .dtt-supplier-side, .dtt-supplier-aside, .dtt-reference-user-editor-sidebar) { display: grid; gap: 16px; min-width: 0; align-content: start; }
.g-ops #dtt-main .dtt-reference-user-editor-sidebar > * { margin: 0; }
/* Supplier detail: the payables and ledger tables need the full width below 1700px, so the summary cards move into a
   row above them. */
@media (max-width: 1700px) {
	.g-ops #dtt-main .dtt-supplier-shell { grid-template-columns: minmax(0, 1fr); }
	.g-ops #dtt-main .dtt-supplier-shell > .dtt-reference-user-editor-sidebar { order: -1; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; position: static; }
}
.g-ops #dtt-main .dtt-supplier-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.g-ops #dtt-main .dtt-supplier-facts > div { display: grid; gap: 2px; min-width: 0; }
.g-ops #dtt-main .dtt-supplier-facts-wide { grid-column: 1 / -1; }
.g-ops #dtt-main .dtt-supplier-facts dt { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.g-ops #dtt-main .dtt-supplier-facts dd { margin: 0; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.g-ops #dtt-main .dtt-document-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.g-ops #dtt-main .dtt-document-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); box-shadow: none; min-width: 0; flex-wrap: wrap; }
.g-ops #dtt-main .dtt-document-item-icon { width: 36px; height: 36px; flex: none; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--mint-100); color: var(--emerald-700); }
.g-ops #dtt-main .dtt-document-item-icon .dtt-ui-icon { width: 18px; height: 18px; }
.g-ops #dtt-main .dtt-document-item-copy { flex: 1 1 120px; min-width: 0; display: grid; gap: 1px; }
.g-ops #dtt-main .dtt-document-item strong { font-weight: 650; font-size: var(--fs-md); color: var(--ink); }
.g-ops #dtt-main .dtt-document-item small { font-size: 12.5px; color: var(--muted); }
.g-ops #dtt-main .dtt-document-item .dtt-document-missing { color: var(--warn-fg); }
.g-ops #dtt-main .dtt-document-actions { display: flex; gap: 6px; margin-left: auto; }

/* Supplier detail (G suppliers-markup): profile head card with underline tabs, tab panels + summary side column. */
.g-ops #dtt-main .dtt-supplier-breadcrumb { margin: 0; }
.g-ops #dtt-main .dtt-supplier-breadcrumb a { text-decoration: none; }
.g-ops #dtt-main .dtt-supplier-head-card { padding: 20px 22px 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.g-ops #dtt-main .dtt-supplier-profile-head { display: flex; align-items: center; gap: 18px; }
.g-ops #dtt-main .dtt-supplier-head-avatar { width: 64px; height: 64px; flex: none; border-radius: var(--r-md); display: grid; place-items: center; background: var(--forest-700); color: var(--on-forest); font: 650 22px/1 var(--font-display); letter-spacing: 0.02em; }
.g-ops #dtt-main .dtt-supplier-head-copy { flex: 1 1 0; min-width: 0; }
.g-ops #dtt-main .dtt-supplier-head-copy h1 { margin: 0; font: 700 23px/1.2 var(--font-display); letter-spacing: -0.015em; color: var(--ink); }
.g-ops #dtt-main .dtt-supplier-head-meta { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.g-ops #dtt-main .dtt-supplier-head-meta .meta { white-space: normal; align-items: flex-start; }
.g-ops #dtt-main .dtt-supplier-head-meta .meta .i { margin-top: 1px; flex: none; }
.g-ops #dtt-main .dtt-supplier-profile-head > .dtt-reference-user-editor-actions { flex: none; }
.g-ops #dtt-main .dtt-supplier-tabs { margin-top: 18px; border-bottom: 0; }
.g-ops #dtt-main .dtt-supplier-tabs a { text-decoration: none; padding: 12px 0 11px; border-bottom-width: 3px; margin-bottom: 0; }
.g-ops #dtt-main .dtt-supplier-tabs a:hover { color: var(--ink); }
.g-ops #dtt-main .dtt-supplier-tabs a:focus-visible { outline-offset: -2px; border-radius: 4px; }
.g-ops #dtt-main .dtt-supplier-tabs-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.g-ops #dtt-main :is(.dtt-supplier-tabpanels, .dtt-supplier-tabpanel, .dtt-supplier-side) { display: grid; gap: 16px; min-width: 0; align-content: start; }
.g-ops #dtt-main .dtt-supplier-tabpanel[hidden] { display: none; }
.g-ops #dtt-main :is(.dtt-supplier-tabpanel, .dtt-supplier-side) > * { margin: 0; }
/* Payables and ledger tables need the full width: the summary moves below as a row of cards. */
.g-ops #dtt-main .dtt-supplier-tabs-shell[data-tab="payments"] { grid-template-columns: minmax(0, 1fr); }
.g-ops #dtt-main .dtt-supplier-tabs-shell[data-tab="payments"] > .dtt-supplier-side { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g-ops #dtt-main .dtt-supplier-next-copy { margin: -4px 0 12px; }
.g-ops #dtt-main .dtt-supplier-actions { display: grid; gap: 8px; }
.g-ops #dtt-main .dtt-supplier-actions :is(form, .dtt-button) { width: 100%; margin: 0; }
.g-ops #dtt-main .dtt-supplier-markup-sample { color: var(--emerald-700); }
.g-ops #dtt-main .dtt-supplier-history-table { table-layout: auto; }
.g-ops #dtt-main .dtt-supplier-history-table th:nth-child(2) { width: 1%; }
.g-ops #dtt-main .dtt-supplier-tabpanel > .dtt-supplier-rail .dtt-supplier-rail-label { white-space: normal; line-height: 1.25; }
.g-ops #dtt-main .dtt-supplier-tabpanel > .dtt-supplier-rail .dtt-supplier-rail-step:not(:last-child)::after { min-width: 16px; margin-left: 2px; }
.g-ops #dtt-main .dtt-supplier-payment-reveal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (max-width: 1100px) {
	.g-ops #dtt-main .dtt-supplier-tabs-shell { grid-template-columns: minmax(0, 1fr); }
	.g-ops #dtt-main .dtt-supplier-side { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
@media (max-width: 720px) {
	.g-ops #dtt-main .dtt-supplier-head-card { padding: 16px 16px 0; }
	.g-ops #dtt-main .dtt-supplier-profile-head { flex-wrap: wrap; gap: 12px 14px; }
	.g-ops #dtt-main .dtt-supplier-head-avatar { width: 48px; height: 48px; font-size: 17px; }
	.g-ops #dtt-main .dtt-supplier-head-copy { flex-basis: calc(100% - 64px); }
	.g-ops #dtt-main .dtt-supplier-head-copy h1 { font-size: var(--fs-xl); }
	.g-ops #dtt-main .dtt-supplier-profile-head > .dtt-reference-user-editor-actions { flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
	.g-ops #dtt-main .dtt-supplier-tabs { gap: 20px; margin-inline: -16px; padding-inline: 16px; mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
}

/* Markup settings: G markup rows (category | type | value | base -> selling preview) */
.g-ops #dtt-main .dtt-supplier-markup-rows { display: grid; gap: 0; margin: 10px 0 12px; border: 0; }
.g-ops #dtt-main .dtt-supplier-markup-row {
	display: grid; grid-template-columns: minmax(150px, 1fr) 180px 100px minmax(230px, 1.3fr); gap: 14px; align-items: end;
	padding: 14px 4px; margin: 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: none; box-shadow: none;
}
.g-ops #dtt-main .dtt-supplier-markup-row:last-child { border-bottom: 0; }
.g-ops #dtt-main .dtt-supplier-markup-category { display: grid; gap: 2px; align-self: center; }
.g-ops #dtt-main .dtt-supplier-markup-category strong { font-weight: 650; font-size: var(--fs-md); color: var(--ink); }
.g-ops #dtt-main .dtt-supplier-markup-category span { font-size: 12.5px; color: var(--muted); }
.g-ops #dtt-main .dtt-supplier-markup-field { display: grid; gap: 6px; margin: 0; }
.g-ops #dtt-main .dtt-supplier-markup-field > span { font-size: 12.5px; font-weight: 650; color: var(--muted); }
.g-ops #dtt-main .dtt-supplier-markup-field input { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-ops #dtt-main .dtt-supplier-markup-example {
	margin: 0; align-self: end; min-height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--r-md);
	background: var(--mint-50); border: 1px solid var(--mint-200); font-size: var(--fs-sm); font-weight: 600; color: var(--emerald-800); font-variant-numeric: tabular-nums;
}
.g-ops #dtt-main .dtt-supplier-markup-example[data-empty] { background: none; border-color: transparent; color: var(--muted); font-weight: 400; }
.g-ops #dtt-main .dtt-supplier-markup-example.is-invalid { background: var(--bad-bg); border-color: #efc9c5; color: var(--bad-fg); }
@media (min-width: 1101px) {
	/* Column heads once (first row); later rows keep their labels for screen readers only. */
	.g-ops #dtt-main .dtt-supplier-markup-row:not(:first-child) .dtt-supplier-markup-field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
	.g-ops #dtt-main .dtt-supplier-markup-row:not(:first-child) { align-items: center; }
	.g-ops #dtt-main .dtt-supplier-markup-row:not(:first-child) .dtt-supplier-markup-example { align-self: center; }
	.g-ops #dtt-main .dtt-supplier-markup-row:first-child .dtt-supplier-markup-category { align-self: end; padding-bottom: 2px; }
}

/* ---------- Profile & Documents, registration ---------- */
.g-ops #dtt-main .dtt-reference-profile-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.g-ops #dtt-main .dtt-profile-identity-card { display: grid; gap: 12px; justify-items: start; text-align: left; }
.g-ops #dtt-main .dtt-profile-identity-card * { text-align: left; }
.g-ops #dtt-main .dtt-profile-identity-card > * { justify-self: start; margin-inline: 0; }
.g-ops #dtt-main .dtt-profile-identity-meta { border-top: 1px solid var(--border); padding-top: 12px; width: 100%; }
.g-ops #dtt-main .dtt-profile-identity-meta span { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-ops #dtt-main .dtt-profile-identity-meta .dtt-ui-icon { width: 16px; height: 16px; color: var(--emerald-700); }
.g-ops #dtt-main .dtt-detail-list { border: 0; background: none; box-shadow: none; border-radius: 0; }
.g-ops #dtt-main .dtt-detail-list :is(dt, dd) { background: none; padding-inline: 0; }
.g-ops #dtt-main .dtt-profile-documents-card .dtt-document-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.g-ops #dtt-main .dtt-profile-documents-card .dtt-document-item { align-items: center; }
.g-ops #dtt-main .dtt-profile-documents-card .dtt-document-item > strong { flex: 1 1 auto; text-align: left; }
.g-ops #dtt-main .dtt-document-file-control { flex: 1 1 100%; display: grid; gap: 6px; }
.g-ops #dtt-main .dtt-document-file-control > span { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.g-ops #dtt-main .dtt-profile-avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--forest-700); color: #fff; font: 650 18px/1 var(--font-display); }
.g-ops #dtt-main .dtt-profile-kicker { font-size: 12.5px; color: var(--muted); text-transform: none; letter-spacing: 0; margin: 0; font-weight: 400; }
.g-ops #dtt-main .dtt-profile-identity-copy h2 { font: 700 var(--fs-lg)/1.25 var(--font-display); margin: 2px 0 6px; }
.g-ops #dtt-main .dtt-profile-identity-meta { display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }
.g-ops #dtt-main .dtt-profile-content-stack { display: grid; gap: 16px; min-width: 0; }
.g-ops #dtt-main .dtt-profile-card-heading { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 0; border: 0; }
.g-ops #dtt-main .dtt-profile-card-heading h2 { margin: 0; }
.g-ops #dtt-main .dtt-profile-section-icon { width: 40px; height: 40px; flex: none; border-radius: var(--r-md); display: grid; place-items: center; background: var(--mint-100); color: var(--emerald-700); }
.g-ops #dtt-main .dtt-detail-list { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 0; margin: 0; font-size: var(--fs-md); }
.g-ops #dtt-main .dtt-detail-list :is(dt, dd) { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--border); min-width: 0; overflow-wrap: anywhere; }
.g-ops #dtt-main .dtt-detail-list dt { color: var(--muted); font-weight: 400; }
.g-ops #dtt-main .dtt-detail-list dd { font-weight: 600; color: var(--ink); }
.g-ops #dtt-main .dtt-detail-list :is(dt, dd):nth-last-child(-n+2) { border-bottom: 0; }
.g-ops #dtt-main .dtt-registration-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; align-items: start; }
.g-ops #dtt-main .dtt-registration-guidance { position: sticky; top: 16px; display: grid; gap: 10px; background: linear-gradient(160deg, var(--mint-100), var(--mint-50)); border-color: var(--mint-200); }
.g-ops #dtt-main .dtt-registration-guidance h2 { font: 700 var(--fs-lg)/1.25 var(--font-display); margin: 0; }
.g-ops #dtt-main .dtt-registration-guidance p { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.g-ops #dtt-main .dtt-registration-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.g-ops #dtt-main .dtt-registration-steps li { display: flex; gap: 12px; align-items: flex-start; }
.g-ops #dtt-main .dtt-registration-steps li > span { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--emerald-700); color: #fff; font: 650 13px/1 var(--font-display); }
.g-ops #dtt-main .dtt-registration-steps strong { display: block; font-weight: 650; font-size: var(--fs-md); }
.g-ops #dtt-main .dtt-registration-steps small { font-size: var(--fs-sm); color: var(--ink-2); }
.g-ops #dtt-main .dtt-registration-security-note { font-size: var(--fs-sm); color: var(--ink-2); padding-top: 10px; border-top: 1px solid var(--mint-300); }
.g-ops #dtt-main .dtt-registration-panel { display: grid; gap: 16px; padding: 0; background: none; border: 0; box-shadow: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.g-ops #dtt-main :is(.dtt-supplier-shell, .dtt-reference-user-editor-shell, .dtt-quote-detail-workspace, .dtt-reference-profile-layout, .dtt-registration-layout) { grid-template-columns: minmax(0, 1fr); }
	.g-ops #dtt-main .dtt-quote-detail-workspace > aside > section, .g-ops #dtt-main .dtt-quote-detail-main { grid-column: 1; grid-row: auto; }
	.g-ops #dtt-main .dtt-quote-detail-main { order: 0; }
	.g-ops #dtt-main .dtt-quote-pricing-card { order: 1; }
	.g-ops #dtt-main .dtt-quote-client-card { order: 2; }
	.g-ops #dtt-main .dtt-quote-status-card, .g-ops #dtt-main .dtt-quote-activity-card { order: 3; }
	.g-ops #dtt-main .dtt-supplier-markup-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g-ops #dtt-main :is(.dtt-supplier-markup-category, .dtt-supplier-markup-example) { grid-column: 1 / -1; }
	.g-ops #dtt-main .dtt-reference-editor-sidebar, .g-ops #dtt-main .dtt-registration-guidance { position: static; }
}
@media (max-width: 820px) {
	.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero, .dtt-quote-detail-header) { align-items: stretch; }
	.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero, .dtt-quote-detail-header) h1 { font-size: var(--fs-xl); }
	.g-ops #dtt-main :is(.dtt-quote-kpis, .dtt-management-list-summary, .dtt-user-kpis, .dtt-supplier-kpis, .dtt-booking-kpis, .dtt-kpi-grid, .dtt-destination-kpis) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.g-ops #dtt-main .dtt-stat-card, .g-ops #dtt-main :has(> .dtt-stat-card:nth-child(5)) > .dtt-stat-card { grid-template-columns: minmax(0, 1fr); padding: 14px; row-gap: 0; }
	.g-ops #dtt-main :has(> .dtt-stat-card:nth-child(5)), .g-ops #dtt-main :has(> .dtt-stat-card:nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	/* odd count: the first (total) card spans the row, the rest pair up, so no card sits alone at the end */
	.g-ops #dtt-main .dtt-stat-card:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
	.g-ops #dtt-main .dtt-stat-card strong { white-space: normal; overflow-wrap: anywhere; }
	.g-ops #dtt-main .dtt-stat-card .dtt-stat-icon { grid-row: auto; order: -1; width: 40px; height: 40px; margin-bottom: 8px; }
	.g-ops #dtt-main .dtt-stat-card .dtt-stat-icon .dtt-ui-icon { width: 21px; height: 21px; }
	.g-ops #dtt-main :is(.dtt-stat-card .dtt-stat-label, .dtt-stat-card strong, .dtt-stat-card small) { grid-column: 1; }
	.g-ops #dtt-main .dtt-stat-card strong { font-size: 22px; }
	.g-ops #dtt-main .dtt-stat-card .dtt-stat-label { font-size: var(--fs-sm); }
	.g-ops #dtt-main .dtt-filter-grid .dtt-management-list-search { grid-column: 1 / -1; }
	.g-ops #dtt-main .dtt-supplier-rail { grid-auto-flow: row; grid-auto-columns: auto; gap: 10px; padding: 14px 16px; }
	.g-ops #dtt-main .dtt-supplier-rail-step::after { display: none; }
}
@media (max-width: 480px) {
	/* Amounts ("PHP 269,900.00") stay on one line in a half-width card. */
	.g-ops #dtt-main .dtt-stat-card strong { white-space: nowrap; font-size: 18px; }
}
/* Phones: every wide table becomes card rows; the first cell is the row title, others show "Label  value". */
@media (max-width: 720px) {
	.g-ops #dtt-main :is(.dtt-page-heading, .dtt-quote-detail-header) > :is(a.dtt-button, .dtt-reference-editor-actions, .dtt-reference-user-editor-actions, .dtt-quote-actions) { width: 100%; }
	.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero) { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
	.g-ops #dtt-main :is(.dtt-page-heading, .dtt-dashboard-hero) > :is(a.dtt-button, button, .dtt-reference-editor-actions, .dtt-reference-user-editor-actions, div:not(:first-child)) { grid-column: 1; grid-row: auto; }
	.g-ops #dtt-main .dtt-page-heading > a.dtt-button { justify-content: center; }
	.g-ops #dtt-main :is(.dtt-reference-editor-actions, .dtt-quote-actions) > * { flex: 1 1 auto; }
	.g-ops #dtt-main .dtt-filter-form, .g-ops #dtt-main .dtt-list-filters { padding: 12px; }
	.g-ops #dtt-main .dtt-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.g-ops #dtt-main .dtt-filter-actions { grid-column: 1 / -1; }
	.g-ops #dtt-main .dtt-filter-actions > * { flex: 1 1 0; }
	.g-ops #dtt-main .dtt-list-filters > * { flex: 1 1 100%; }
	.g-ops #dtt-main .dtt-table-wrap { padding: 0; border: 0; box-shadow: none; background: none; overflow: visible; }
	.g-ops #dtt-main .dtt-table, .g-ops #dtt-main .dtt-table tbody { display: block; width: 100%; min-width: 0; }
	.g-ops #dtt-main .dtt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.g-ops #dtt-main .dtt-table tbody tr {
		display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 12px 14px; margin: 0;
		background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-card);
	}
	.g-ops #dtt-main .dtt-table tbody tr + tr { margin-top: 10px; }
	.g-ops #dtt-main .dtt-table tbody tr { min-width: 0; width: auto; }
	.g-ops #dtt-main form.dtt-management-list-filters.dtt-dashboard-card { grid-template-columns: minmax(0, 1fr); }
	.g-ops #dtt-main .dtt-index-filter-actions > * { flex: 1 1 0; }
	.g-ops #dtt-main .dtt-table tbody tr:hover > * { background: none; }
	.g-ops #dtt-main .dtt-table tbody tr > * {
		display: block; position: relative; padding: 0 0 0 122px; border: 0; min-width: 0; min-height: 20px;
		white-space: normal; text-align: left; width: auto; max-width: none; overflow-wrap: anywhere;
	}
	.g-ops #dtt-main .dtt-table tbody tr > *::before { content: attr(data-label); position: absolute; left: 0; top: 1px; width: 112px; font-size: 12.5px; line-height: 1.4; color: var(--muted); font-weight: 400; }
	.g-ops #dtt-main .dtt-table tbody tr > :first-child { padding: 0 0 6px; font-size: var(--fs-md); border-bottom: 1px solid var(--border); margin-bottom: 2px; }
	.g-ops #dtt-main .dtt-table tbody tr > :first-child::before { display: none; }
	.g-ops #dtt-main .dtt-table tbody tr > :only-child { border: 0; padding: 0; margin: 0; }
	.g-ops #dtt-main .dtt-table tbody tr > :is(.dtt-inline-actions, .dtt-management-list-actions):not(:first-child) { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 0; border-top: 1px solid var(--border); margin-top: 2px; }
	.g-ops #dtt-main .dtt-table tbody tr > :is(.dtt-inline-actions, .dtt-management-list-actions)::before { display: none; }
	.g-ops #dtt-main .dtt-table tbody tr > :is(.dtt-inline-actions, .dtt-management-list-actions) > * { margin: 0; flex: 1 1 0; min-width: max-content; }
	.g-ops #dtt-main .dtt-table tbody tr > :is(.dtt-inline-actions, .dtt-management-list-actions) .dtt-button { width: 100%; height: 36px; }
	.g-ops #dtt-main .dtt-table tbody tr > :empty { display: none; }
	.g-ops #dtt-main .dtt-table tbody tr > [colspan] { display: block; }
	.g-ops #dtt-main .dtt-table tbody tr > [colspan]::before { display: none; }
	.g-ops #dtt-main .dtt-table .dtt-status { justify-self: start; }
	.g-ops #dtt-main .dtt-form-section, .g-ops #dtt-main .dtt-dashboard-card, .g-ops #dtt-main .dtt-profile-card, .g-ops #dtt-main .dtt-quote-detail-card { padding: 16px; }
	.g-ops #dtt-main .dtt-supplier-facts { grid-template-columns: minmax(0, 1fr); }
	.g-ops #dtt-main .dtt-detail-list { grid-template-columns: minmax(0, 1fr); }
	.g-ops #dtt-main .dtt-detail-list dt { padding-bottom: 0; border: 0; font-size: 12.5px; }
	.g-ops #dtt-main .dtt-detail-list dd { padding-top: 2px; }
	.g-ops #dtt-main .dtt-supplier-markup-row { grid-template-columns: minmax(0, 1fr) 110px; gap: 10px 12px; }
	.g-ops #dtt-main .dtt-form-actions { margin-inline: -4px; }
	.g-ops #dtt-main .dtt-form-actions > * { flex: 1 1 auto; }
	.g-ops #dtt-main .dtt-catalog-card-actions .dtt-button { height: 38px; }
	.g-ops #dtt-main .dtt-pagination { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .g-ops #dtt-main * { transition: none !important; } }

/* ---------- Ferry rate list (admin): quieter type, same row actions as the other lists ---------- */
.g-pk-ferries #dtt-main .dtt-ferry-results-head h2 { font: 700 var(--fs-lg)/1.25 var(--font-display); color: var(--ink); }
.g-pk-ferries #dtt-main .dtt-ferry-result-count { font-size: var(--fs-sm); color: var(--muted); font-weight: 600; }
.g-pk-ferries #dtt-main .dtt-ferry-carrier { border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.g-pk-ferries #dtt-main .dtt-ferry-row-title { font: 650 15.5px/1.35 var(--font-display); color: var(--ink); }
.g-pk-ferries #dtt-main .dtt-ferry-row-price-label { font-size: 12.5px; color: var(--muted); }
.g-pk-ferries #dtt-main .dtt-ferry-row-price-amount { font: 700 19px/1.2 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.g-pk-ferries #dtt-main :is(.dtt-ferry-pax-pill, .dtt-ferry-class-badge) { font-size: 12.5px; font-weight: 600; height: 24px; padding: 0 10px; }
.g-pk-ferries #dtt-main .dtt-ferry-row-edit { background: var(--surface); border-color: var(--border-strong); color: var(--ink); height: 34px; }
.g-pk-ferries #dtt-main .dtt-ferry-row-edit .dtt-ui-icon { color: var(--emerald-700); }
.g-pk-ferries #dtt-main .dtt-ferry-row-edit:hover { background: var(--mint-50); color: var(--ink); }
.g-pk-ferries #dtt-main .dtt-ferry-row-tools .dtt-button-ghost { border-color: var(--border-strong); background: var(--surface); color: var(--ink); }
.g-pk-ferries #dtt-main .dtt-ferry-search { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.g-ops #dtt-main .dtt-reference-user-editor-sidebar :is(p, dl, dt, dd, li) { text-align: left; }
.g-ops #dtt-main .dtt-reference-user-editor-sidebar dd { margin: 2px 0 10px; font-weight: 600; color: var(--ink); }
.g-ops #dtt-main .dtt-reference-user-editor-sidebar dt { font-size: 12.5px; color: var(--muted); font-weight: 400; }
@media (max-width: 720px) {
	/* Editor field grids stack on phones (old layers keep 3 columns here). */
	.g-ops #dtt-main .dtt-grid:not(.dtt-filter-grid) { grid-template-columns: minmax(0, 1fr); }
	.g-ops #dtt-main .dtt-grid:not(.dtt-filter-grid) > * { grid-column: 1 / -1 !important; } /* refinement.css pins columns with !important */
	.g-ops #dtt-main .dtt-peak-season-ranges { grid-template-columns: minmax(0, 1fr); }
	.g-ops #dtt-main .dtt-peak-season-range-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Inventory cards: Edit · Duplicate · More, the More menu is a popover over the card (no reflow) ---------- */
.g-ops #dtt-main .dtt-catalog-card { position: relative; }
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions):has(> .dtt-catalog-more) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions) > .dtt-catalog-more { grid-column: auto; order: 0; position: static; border-top: 0; flex: 1 1 0; }
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions) > :is(.dtt-supplier-publish-form, .dtt-tour-card-action-pdf) { grid-column: 1 / -1; }
.g-ops #dtt-main .dtt-catalog-more > summary { height: 100%; min-height: 34px; align-items: center; }
.g-ops #dtt-main .dtt-catalog-more-panel {
	position: absolute; z-index: 30; left: 12px; right: 12px; bottom: calc(100% - 4px); display: grid; gap: 10px; padding: 12px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--shadow-pop);
}
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions):has(> .dtt-catalog-more) { position: relative; }
.g-ops #dtt-main .dtt-catalog-more-panel :is(form, .dtt-button) { margin: 0; width: 100%; }
.g-ops #dtt-main .dtt-catalog-more-panel .dtt-catalog-delete-form { padding-top: 10px; border-top: 1px solid var(--border); }
.g-ops #dtt-main .dtt-catalog-more-panel .dtt-catalog-delete-form .dtt-button { height: 34px; border: 1px solid #efc9c5; border-radius: var(--r-sm); }
.g-ops #dtt-main .dtt-tour-duration { background: rgb(21 38 27 / 0.78); border-radius: var(--r-sm); font-weight: 650; }
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions):has(> .dtt-catalog-more) :is(.dtt-button, summary) { padding-inline: 8px; gap: 4px; }

/* ---------- Editors: one primary save. The bottom action bar (or the destination sidebar) keeps it; the duplicate
   header and Publish Controls buttons are hidden (same form, same handler). ---------- */
.g-ops #dtt-main:has(.dtt-form-actions) :is(.dtt-reference-editor-actions, .dtt-tour-editor-heading-actions) > button[type="submit"][form],
.g-ops #dtt-main:has(.dtt-form-actions) .dtt-reference-sidebar-save,
.g-ops #dtt-main:has(.dtt-form-actions) .dtt-destination-editor-heading-actions > button[type="submit"][form] { display: none; }
.g-ops #dtt-main .dtt-destination-editor-form { grid-template-columns: minmax(0, 1fr); }
.g-ops #dtt-main .dtt-destination-editor-form .dtt-destination-editor-panel { min-height: 0; }

/* ---------- Agents list: agency column wide enough for one or two lines; the region subline repeats Territory ---------- */
@media (min-width: 721px) {
	.g-ops #dtt-main .dtt-agent-list-table tbody td:first-child small { display: none; }
	.g-ops #dtt-main .dtt-agent-list-table :is(thead th, tbody td) { padding-inline: 7px; }
	/* Edit · More: one fixed-width action cell, so rows line up and nothing moves when a status changes. */
	.g-ops #dtt-main .dtt-agent-list-table :is(th, td):last-child { width: 150px; white-space: nowrap; }
}
@media (min-width: 1280px) {
	.g-ops #dtt-main .dtt-agent-list-table tbody td:is(:first-child, :nth-child(2)) strong { white-space: nowrap; }
}

/* ---------- Ferry rate list: operator as a header row (40px logo tile + name) instead of a tall empty logo column ---------- */
.g-pk-ferries #dtt-main .dtt-ferry-carrier { grid-template-columns: minmax(0, 1fr); }
.g-pk-ferries #dtt-main .dtt-ferry-carrier-brand { display: flex; flex-direction: row; justify-content: flex-start; text-align: left; align-items: center; gap: 12px; min-height: 0; height: auto; padding: 14px 20px; border: 0; border-bottom: 1px solid var(--border); background: var(--surface-sunk); }
.g-pk-ferries #dtt-main .dtt-ferry-carrier-logo { width: 40px; height: 40px; flex: none; object-fit: cover; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06); margin: 0; }
.g-pk-ferries #dtt-main .dtt-ferry-carrier-brand .screen-reader-text { position: static; width: auto; height: auto; margin: 0; padding: 0; overflow: visible; clip: auto; clip-path: none; white-space: normal; word-wrap: normal; font: 650 var(--fs-lg)/1.25 var(--font-display); color: var(--ink); }

/* ---------- Empty views (supplier listing types with none yet) and the access-denied page ---------- */
.g-ops #dtt-main .empty-view { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 48px 24px; }
.g-ops #dtt-main .empty-view :is(h1, h2) { margin: 4px 0 0; font: 700 var(--fs-xl)/1.25 var(--font-display); color: var(--ink); }
.g-ops #dtt-main .empty-view p { margin: 0; max-width: 46ch; color: var(--muted); font-size: var(--fs-md); }
.g-ops #dtt-main .empty-view .dtt-button { margin-top: 6px; }
.g-ops #dtt-main .dtt-supplier-empty-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-100); color: var(--emerald-700); }
.g-ops #dtt-main .dtt-supplier-empty-icon :is(svg, .dtt-ui-icon) { width: 26px; height: 26px; }
.g-ops #dtt-main:has(.dtt-supplier-services-empty) .dtt-page-heading > a.dtt-button { display: none; } /* the empty view carries the one Add button */
.g-ops #dtt-main:has(.dtt-form-actions) .dtt-supplier-listing-summary .dtt-supplier-editor-buttons { display: none; } /* supplier editor: the action bar keeps Save draft / Submit for review */

/* ---------- fix2: one action pattern on every inventory list: Edit · Duplicate · More (PDF, supplier actions, Delete) ---------- */
/* Card footers are a flex row: buttons keep their label on one line (no clipped "Duplicat"); full-width items
   (Add to Public Listing) wrap to their own row below. */
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions), .g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions):has(> .dtt-catalog-more) { display: flex; flex-wrap: wrap; gap: 6px; }
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions) > * { flex: 1 1 0; width: auto; min-width: max-content; order: 0; grid-column: auto; }
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions) > :is(.dtt-supplier-publish-form, .dtt-tour-card-action-pdf) { flex-basis: 100%; order: 9; }
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions) :is(.dtt-button, summary) { white-space: nowrap; gap: 4px; padding-inline: 10px; width: 100%; }
.g-ops #dtt-main .dtt-catalog-more[open] > summary { background: var(--mint-50); border-color: var(--mint-400); }
.g-ops #dtt-main .dtt-catalog-managed-note { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 10px; border-radius: var(--r-md); background: var(--surface-sunk); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.g-ops #dtt-main .dtt-catalog-managed-note .i { color: var(--muted); flex: none; }
/* Rows (add-ons, offers, destinations, ferry): the menu panel floats over the page (g-ops.js places it, position:fixed),
   so the table wrap never scrolls or clips it. */
.g-ops #dtt-main :is(td, .dtt-ferry-row-tools) > .dtt-catalog-more { position: relative; display: inline-flex; }
.g-ops #dtt-main :is(td, .dtt-ferry-row-tools) > .dtt-catalog-more > .dtt-catalog-more-panel { position: fixed; left: auto; right: auto; bottom: auto; width: 240px; z-index: 60; white-space: normal; text-align: left; }
.g-ops #dtt-main td .dtt-catalog-more-panel .dtt-catalog-delete-form:only-child { padding-top: 0; border-top: 0; }
.g-ops #dtt-main .dtt-catalog-more-panel .dtt-catalog-delete-form:first-child { padding-top: 0; border-top: 0; }
.g-pk-ferries #dtt-main .dtt-ferry-row-tools { display: flex; gap: 6px; align-items: center; }
.g-pk-ferries #dtt-main .dtt-ferry-row-tools > * { margin: 0; }
.g-pk-ferries #dtt-main .dtt-ferry-row-tools summary { height: 34px; }

/* ---------- fix2: supplier detail Agreement tab: same two-column rows as Supplier summary, value gets the room ---------- */
.g-ops #dtt-main .dtt-reference-summary-card.dtt-supplier-card-agreement dl > div { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 16px; }
.g-ops #dtt-main .dtt-reference-summary-card.dtt-supplier-card-agreement dd { text-align: right; justify-content: flex-end; min-width: 0; }
.g-ops #dtt-main .dtt-supplier-card-agreement .dtt-supplier-agreement-manage { margin-top: 12px; justify-content: center; border-color: var(--border-strong); }

/* ---------- fix2: user tables (staff, agents, approvals): the first cell stays a table cell (same row height as the
   others); avatar and name sit inline instead of the old display:flex cell. ---------- */
@media (min-width: 721px) {
	.g-ops #dtt-main .dtt-management-list-table td:first-child { display: table-cell; }
	.g-ops #dtt-main .dtt-management-list-table td:first-child > .dtt-user-avatar { display: inline-grid; vertical-align: middle; margin-right: 10px; }
	.g-ops #dtt-main .dtt-management-list-table td:first-child:has(> .dtt-user-avatar) > :not(.dtt-user-avatar) { display: inline-block; vertical-align: middle; max-width: calc(100% - 54px); }
}

/* ---------- fix2: booking services total row: one tinted band across the whole row; on phones label left, amount right ---------- */
.g-ops #dtt-main .dtt-supplier-booking-lines tfoot :is(th, td) { background: var(--surface-sunk); }
.g-ops #dtt-main .dtt-supplier-booking-lines tfoot td { font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
	.g-ops #dtt-main .dtt-supplier-booking-lines tfoot { display: block; margin-top: 10px; }
	.g-ops #dtt-main .dtt-supplier-booking-lines tfoot tr { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface-sunk); }
	.g-ops #dtt-main .dtt-supplier-booking-lines tfoot :is(th, td), body.logged-in.g-ops #dtt-main .dtt-supplier-booking-lines tfoot td.dtt-supplier-booking-amount { display: block; width: auto; padding: 0; border: 0; background: none; text-align: left; }
	.g-ops #dtt-main .dtt-supplier-booking-lines tfoot td.dtt-supplier-booking-amount { text-align: right; white-space: nowrap; }
}
/* fix2: the managed note (staff, supplier listing) sits where Edit + Duplicate would, before More. */
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions) > .dtt-catalog-managed-note { order: 0; flex: 2 1 0; grid-column: auto; padding: 0 8px; gap: 5px; }
.g-ops #dtt-main :is(.dtt-catalog-card-actions, .dtt-tour-card-actions) > .dtt-catalog-more { order: 1; }
/* fix2: agreement rows: label column fixed, values right-aligned like Supplier summary; View PDF stays a compact head button. */
.g-ops #dtt-main .dtt-reference-summary-card.dtt-supplier-card-agreement dl > div { grid-template-columns: 170px minmax(0, 1fr); }
.g-ops #dtt-main .dtt-reference-summary-card.dtt-supplier-card-agreement dd { justify-self: end; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.g-ops #dtt-main .dtt-supplier-card-agreement .dtt-supplier-card-head { align-items: center; }
.g-ops #dtt-main .dtt-supplier-card-agreement .dtt-supplier-card-head .dtt-button { width: auto; }

/* ---------- Round-3 polish: peak date fields fit their half column at 390 (the date input was 4px wider than its
   label), the add-on rate stays on one line, and "Supplier:" sits on the first line of a two-line company name. ---------- */
.g-ops #dtt-main .dtt-peak-season-range-fields > label { min-width: 0; }
.g-ops #dtt-main .dtt-peak-season-range-fields input { min-width: 0; width: 100%; }
.g-ops #dtt-main .dtt-addon-list-table td:nth-child(5) { white-space: nowrap; }
.g-ops #dtt-main .dtt-catalog-card-body p:has(> strong) { align-items: baseline; }
