/* ==========================================================================
Front Desk Reservations (events.php) - modern skin
--------------------------------------------------------------------------
Pure presentation layer. Every element id / name / class that the page's
JavaScript touches is left untouched; this file only restyles the shell,
the EasyUI widgets and the dialog forms. Scoped to body.fd-modern so it
cannot leak into other pages that share accounts/includes/header.php.
========================================================================== */
:root {
--fd-primary: #2563eb;
--fd-primary-600: #1d4ed8;
--fd-primary-100: #dbeafe;
--fd-primary-50: #eff6ff;
--fd-ground: #f5f7fb;
--fd-surface: #ffffff;
--fd-border: #e5e7eb;
--fd-border-strong: #d1d5db;
--fd-text: #111827;
--fd-text-2: #374151;
--fd-muted: #6b7280;
--fd-faint: #9ca3af;
--fd-green: #16a34a;
--fd-green-100: #dcfce7;
--fd-amber: #d97706;
--fd-amber-100: #fef3c7;
--fd-red: #dc2626;
--fd-red-100: #fee2e2;
--fd-purple: #7c3aed;
--fd-purple-100: #ede9fe;
--fd-slate: #475569;
--fd-slate-100: #e2e8f0;
--fd-radius: 10px;
--fd-radius-sm: 7px;
--fd-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
--fd-shadow-lg: 0 20px 50px rgba(15, 23, 42, .22), 0 4px 12px rgba(15, 23, 42, .10);
--fd-focus: 0 0 0 3px rgba(37, 99, 235, .18);
}
body.fd-modern {
background: var(--fd-ground) !important;
color: var(--fd-text);
font-size: 13px;
overflow-y: auto;
}
/* Only pages that size a datagrid to the viewport suppress the page scrollbar -
there the grid scrolls internally. Long form / settings pages (Taxes,
pos_charges, events-settings, accounts_setup ...) carry no such grid and
must stay scrollable, so fd-page.js / events-modern.js add .fd-fitted only
when they actually resize a grid to fit. */
body.fd-modern.fd-fitted {
overflow-y: hidden !important;
}
/* The page used to start with a stray
; hide the leftovers of that era. */
body.fd-modern > tr,
body.fd-modern > td { display: none !important; }
/* ==========================================================================
1. Page shell
========================================================================== */
#fd-page {
padding: 8px 10px 8px;
display: flex;
flex-direction: column;
gap: 8px;
box-sizing: border-box;
}
/* ---- title bar (title + date on one line, actions on the next) ---------- */
.fd-topbar {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 6px;
}
.fd-title { display: none; } /* the shared header already names the page */
.fd-title h1 {
margin: 0;
font-size: 18px;
font-weight: 700;
letter-spacing: -.01em;
color: var(--fd-text);
line-height: 1.2;
}
.fd-title p {
margin: 0;
font-size: 12px;
color: var(--fd-muted);
white-space: nowrap;
}
.fd-actions {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.fd-actions .fd-sep {
width: 1px;
height: 22px;
background: var(--fd-border);
margin: 0 3px;
}
/* ---- buttons ------------------------------------------------------------ */
.fd-btn {
display: inline-flex;
align-items: center;
gap: 6px;
height: 30px;
padding: 0 11px;
border-radius: var(--fd-radius-sm);
border: 1px solid var(--fd-border-strong);
background: var(--fd-surface);
color: var(--fd-text-2);
font-size: 12.5px;
font-weight: 500;
line-height: 1;
cursor: pointer;
text-decoration: none !important;
white-space: nowrap;
box-shadow: var(--fd-shadow);
transition: background .12s, border-color .12s, box-shadow .12s, transform .05s;
user-select: none;
}
.fd-btn:hover { background: #f8fafc; border-color: #c4cad3; color: var(--fd-text); }
.fd-btn:active { transform: translateY(1px); }
.fd-btn:focus-visible { outline: none; box-shadow: var(--fd-focus); }
.fd-btn svg { width: 16px; height: 16px; flex: none; }
.fd-btn-primary {
background: linear-gradient(180deg, #3b82f6 0%, var(--fd-primary) 100%);
border-color: var(--fd-primary-600);
color: #fff;
}
.fd-btn-primary:hover { background: linear-gradient(180deg, #2f76f0 0%, var(--fd-primary-600) 100%); color: #fff; border-color: #1e40af; }
.fd-btn-danger { color: var(--fd-red); }
.fd-btn-danger:hover { background: #fef2f2; border-color: #fca5a5; color: #b91c1c; }
.fd-btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--fd-text-2); }
.fd-btn-ghost:hover { background: #e8eef7; border-color: transparent; }
.fd-btn-icon { width: 30px; padding: 0; justify-content: center; }
.fd-btn .fd-badge {
display: inline-flex;
align-items: center;
height: 18px;
min-width: 18px;
padding: 0 6px;
border-radius: 9px;
background: var(--fd-red);
color: #fff;
font-size: 11px;
font-weight: 700;
justify-content: center;
}
.fd-btn .fd-badge:empty { display: none; }
/* EasyUI disables linkbuttons by adding l-btn-disabled; mirror that for ours */
.fd-btn.l-btn-disabled, .fd-btn[disabled] { opacity: .45; pointer-events: none; }
/* linkbutton-driven toolbar buttons (New / View / Delete keep easyui ids+handlers) */
body.fd-modern .fd-actions a.l-btn,
body.fd-modern .fd-actions a.l-btn:hover {
background: var(--fd-surface);
border: 1px solid var(--fd-border-strong);
border-radius: var(--fd-radius-sm);
height: 30px;
padding: 0 11px 0 9px;
box-shadow: var(--fd-shadow);
display: inline-flex;
align-items: center;
color: var(--fd-text-2);
}
body.fd-modern .fd-actions a.l-btn:hover { background: #f8fafc; color: var(--fd-text); }
body.fd-modern .fd-actions a.l-btn span.l-btn-left { background: none; padding: 0; height: auto; line-height: 1; display: inline-flex; align-items: center; }
body.fd-modern .fd-actions a.l-btn span span.l-btn-text { font-size: 12.5px; font-weight: 500; height: auto; line-height: 1; }
body.fd-modern .fd-actions a.l-btn span span.l-btn-icon-left { padding-left: 22px; background-position: left center; }
body.fd-modern .fd-actions a.l-btn#newReservation,
body.fd-modern .fd-actions a.l-btn#newReservation:hover {
background: linear-gradient(180deg, #3b82f6 0%, var(--fd-primary) 100%);
border-color: var(--fd-primary-600);
color: #fff;
}
body.fd-modern .fd-actions a.l-btn#newReservation .icon-add { filter: brightness(0) invert(1); }
body.fd-modern .fd-actions a.l-btn#cancel { color: var(--fd-red); }
body.fd-modern .fd-actions a.l-btn#cancel:hover { background: #fef2f2; border-color: #fca5a5; }
body.fd-modern .fd-actions a.l-btn-disabled,
body.fd-modern .fd-actions a.l-btn-disabled:hover { opacity: .45; }
/* ---- small selects used in the action row (Source / Rates / Reports) ---- */
.fd-actions .fd-select-label {
font-size: 12px;
color: var(--fd-muted);
margin-right: -2px;
}
/* ---- KPI strip ---------------------------------------------------------- */
/* the six cards share the filter row; they take whatever width is left */
.fd-kpis {
display: flex;
flex: 1 1 0;
min-width: 0;
gap: 6px;
}
.fd-kpis .fd-kpi { flex: 1 1 0; min-width: 0; }
/* summary strips with a variable number of cards (rooms management) keep the cards compact */
#hk-summary { flex: 0 1 auto; flex-wrap: wrap; }
#hk-summary .fd-kpi { flex: 0 1 auto; min-width: 140px; gap: 10px; }
#hk-summary .fd-kpi-body { gap: 10px; }
.fd-lbl-short { display: none; }
.fd-kpi.is-active {
border-color: var(--fd-primary);
background: var(--fd-primary-50);
box-shadow: 0 0 0 2px rgba(37, 99, 235, .15);
}
.fd-kpi.is-active .fd-kpi-label { color: var(--fd-primary-600); }
.fd-kpi {
background: var(--fd-surface);
border: 1px solid var(--fd-border);
border-radius: var(--fd-radius-sm);
padding: 5px 10px 5px 8px;
display: flex;
align-items: center;
gap: 8px;
box-shadow: var(--fd-shadow);
min-width: 0;
cursor: default;
}
.fd-kpi[data-filter] { cursor: pointer; }
.fd-kpi[data-filter]:hover { border-color: #c7d2fe; box-shadow: 0 0 0 3px rgba(37, 99, 235, .08); }
.fd-kpi-icon {
width: 26px;
height: 26px;
border-radius: 7px;
display: flex;
align-items: center;
justify-content: center;
flex: none;
}
.fd-kpi-icon svg { width: 15px; height: 15px; }
/* label, number and note sit on ONE line so the card stays ~36px tall */
.fd-kpi-body { min-width: 0; display: flex; align-items: center; gap: 8px; flex: 1 1 auto; }
.fd-kpi-label {
font-size: 10.5px;
font-weight: 600;
letter-spacing: .04em;
text-transform: uppercase;
color: var(--fd-muted);
white-space: nowrap;
flex: 1 1 auto;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.fd-kpi-value {
font-size: 18px;
font-weight: 700;
color: var(--fd-text);
line-height: 1;
font-variant-numeric: tabular-nums;
flex: none;
}
/* the note is the first thing to give way when the card is narrow */
.fd-kpi-sub { font-size: 11px; color: var(--fd-faint); white-space: nowrap; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fd-kpi.k-arr .fd-kpi-icon { background: var(--fd-primary-100); color: var(--fd-primary); }
.fd-kpi.k-dep .fd-kpi-icon { background: var(--fd-amber-100); color: var(--fd-amber); }
.fd-kpi.k-inh .fd-kpi-icon { background: var(--fd-green-100); color: var(--fd-green); }
.fd-kpi.k-vac .fd-kpi-icon { background: var(--fd-slate-100); color: var(--fd-slate); }
.fd-kpi.k-blk .fd-kpi-icon { background: var(--fd-red-100); color: var(--fd-red); }
.fd-kpi.k-occ .fd-kpi-icon { background: var(--fd-purple-100); color: var(--fd-purple); }
.fd-kpi-value.is-loading { color: var(--fd-faint); }
.fd-occ-bar {
height: 4px;
border-radius: 2px;
background: var(--fd-slate-100);
margin: 0;
overflow: hidden;
width: 54px;
flex: 0 1 54px;
min-width: 22px;
}
.fd-occ-bar i { display: block; height: 100%; width: 0; background: var(--fd-purple); transition: width .4s; }
/* ---- filter bar --------------------------------------------------------- */
.fd-filters {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.fd-filters .fd-filters-label {
font-size: 12px;
font-weight: 600;
color: var(--fd-muted);
text-transform: uppercase;
letter-spacing: .04em;
margin-right: 2px;
}
.fd-seg {
display: inline-flex;
background: var(--fd-surface);
border: 1px solid var(--fd-border-strong);
border-radius: 9px;
padding: 3px;
gap: 2px;
box-shadow: var(--fd-shadow);
}
.fd-seg span { display: inline-flex; } /* the tooltipNN wrappers */
.fd-seg input[type="checkbox"] {
position: absolute;
opacity: 0;
width: 0;
height: 0;
margin: 0;
pointer-events: none;
}
.fd-seg label {
display: inline-flex;
align-items: center;
height: 22px;
padding: 0 10px;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
color: var(--fd-text-2);
cursor: pointer;
white-space: nowrap;
transition: background .12s, color .12s;
user-select: none;
}
.fd-seg label:hover { background: #f1f5f9; color: var(--fd-text); }
.fd-seg input:checked + label {
background: var(--fd-primary);
color: #fff;
box-shadow: 0 1px 2px rgba(37, 99, 235, .35);
}
.fd-seg input:focus-visible + label { box-shadow: var(--fd-focus); }
.fd-seg.fd-seg-vip input:checked + label { background: var(--fd-amber); }
.fd-filter-tools {
display: flex;
align-items: center;
gap: 6px;
flex: none;
}
.fd-filter-tools .combo { height: 30px !important; }
.fd-filter-tools .combo .combo-text { height: 28px !important; line-height: 28px !important; }
.fd-filter-tools .combo .combo-arrow { height: 28px !important; }
.fd-search {
position: relative;
display: flex;
align-items: center;
margin-left: auto; /* sits at the right end of the action row */
}
.fd-filters { flex-wrap: nowrap; }
.fd-filters .fd-seg { flex: none; }
/* folio dropdown (Open / Closed / All / Short stay / VIP) */
.fd-folio-select {
height: 30px;
padding: 0 28px 0 10px;
border: 1px solid var(--fd-border-strong);
border-radius: var(--fd-radius-sm);
background: var(--fd-surface) url('data:image/svg+xml;utf8, ') no-repeat right 9px center;
appearance: none;
-webkit-appearance: none;
font-size: 12.5px;
font-weight: 600;
color: var(--fd-primary-600);
box-shadow: var(--fd-shadow);
cursor: pointer;
outline: none;
flex: none;
}
.fd-folio-select:focus { border-color: var(--fd-primary); box-shadow: var(--fd-focus); }
.fd-search svg {
position: absolute;
left: 10px;
width: 15px;
height: 15px;
color: var(--fd-faint);
pointer-events: none;
}
.fd-search input[type="text"] {
height: 30px;
width: 130px;
box-sizing: border-box;
padding: 0 12px 0 32px;
border: 1px solid var(--fd-border-strong);
border-radius: var(--fd-radius-sm);
background: var(--fd-surface);
font-size: 13px;
color: var(--fd-text);
box-shadow: var(--fd-shadow);
outline: none;
transition: border-color .12s, box-shadow .12s;
}
.fd-search input[type="text"]:focus { border-color: var(--fd-primary); box-shadow: var(--fd-focus); }
.fd-search input::placeholder { color: var(--fd-faint); }
/* ---- grid card ---------------------------------------------------------- */
.fd-grid-card {
background: var(--fd-surface);
border: 1px solid var(--fd-border);
border-radius: var(--fd-radius);
box-shadow: var(--fd-shadow);
overflow: hidden;
min-height: 240px;
}
.fd-grid-card .datagrid { border: 0 !important; }
.fd-grid-card .panel-header { display: none; } /* card supplies the chrome */
/* ==========================================================================
2. EasyUI datagrid (page grid, detail sub-grids, dialog grids)
========================================================================== */
body.fd-modern .datagrid-wrap { border-color: var(--fd-border) !important; }
body.fd-modern .datagrid-header {
background: #f8fafc !important;
border-bottom: 1px solid var(--fd-border) !important;
}
body.fd-modern .datagrid-header td,
body.fd-modern .datagrid-body td,
body.fd-modern .datagrid-footer td {
border-style: solid !important;
border-color: #eef0f3 !important;
border-width: 0 0 1px 0 !important;
}
body.fd-modern .datagrid-header td { border-right: 1px solid #edf0f4 !important; }
body.fd-modern .datagrid-header .datagrid-cell {
font-size: 11.5px;
font-weight: 600;
color: var(--fd-slate);
text-transform: uppercase;
letter-spacing: .03em;
height: 26px;
line-height: 26px;
padding: 0 10px;
}
body.fd-modern .datagrid-header .datagrid-cell span { display: inline; }
/* footer (totals) cells take the same side padding as body cells, or every footer column
drifts left of the column it totals */
body.fd-modern .datagrid-footer .datagrid-cell { padding: 0 10px; }
body.fd-modern .datagrid-body .datagrid-cell {
padding: 0 10px;
height: 30px;
line-height: 30px;
font-size: 12.5px;
color: var(--fd-text);
}
body.fd-modern .datagrid-cell-rownumber,
body.fd-modern .datagrid-header-rownumber {
background: #f8fafc !important;
color: var(--fd-faint) !important;
font-size: 11px;
height: 30px;
line-height: 30px;
}
body.fd-modern .datagrid-header-rownumber { height: 26px; line-height: 26px; }
body.fd-modern .datagrid-td-rownumber { background: #f8fafc; }
body.fd-modern .datagrid-row-over,
body.fd-modern .datagrid-header td.datagrid-header-over { background: #f5f8fd !important; }
/* selected row: yellow (chosen over the blue variant so it stands out from the blue chrome) */
body.fd-modern .datagrid-row-selected { background: #fef3b4 !important; color: var(--fd-text); }
body.fd-modern .datagrid-row-selected .datagrid-cell-rownumber { background: #fde68a !important; color: #92400e !important; }
body.fd-modern .datagrid-row-selected td:first-child .datagrid-cell { box-shadow: inset 3px 0 0 #f59e0b; }
body.fd-modern .datagrid-row-selected.datagrid-row-over { background: #fdea94 !important; }
body.fd-modern .datagrid-toolbar {
background: #fbfcfd;
border-bottom: 1px solid var(--fd-border) !important;
padding: 3px 6px !important;
display: flex;
align-items: center;
gap: 0;
}
body.fd-modern .datagrid-pager,
body.fd-modern .pagination {
background: #fbfcfd !important;
border-top: 1px solid var(--fd-border) !important;
}
body.fd-modern .pagination-info { color: var(--fd-muted); font-size: 12px; }
body.fd-modern .pagination .pagination-num,
body.fd-modern .pagination-page-list {
border-color: var(--fd-border-strong);
border-radius: 5px;
padding: 2px 4px;
font-size: 12px;
}
body.fd-modern .datagrid-view .datagrid-view1 .datagrid-body { background: #f8fafc; }
/* detail row (guests under a folio) */
body.fd-modern .datagrid-row-detail {
background: #f8fafc;
padding: 5px 8px 6px 34px !important;
box-shadow: inset 0 1px 0 var(--fd-border);
}
body.fd-modern .datagrid-row-detail > div { padding: 0 !important; }
body.fd-modern .datagrid-row-detail .datagrid {
border: 1px solid var(--fd-border) !important;
border-radius: 8px;
overflow: hidden;
background: #fff;
box-shadow: var(--fd-shadow);
}
body.fd-modern .datagrid-row-detail .datagrid-header { background: #f1f5f9 !important; }
body.fd-modern .datagrid-row-detail .datagrid-body .datagrid-cell { height: 28px; line-height: 28px; font-size: 12.5px; }
body.fd-modern .datagrid-row-detail .datagrid-header .datagrid-cell { height: 24px; line-height: 24px; }
body.fd-modern .datagrid-row-detail .datagrid-toolbar { background: #fff; padding: 3px 4px !important; flex-wrap: wrap; }
/* compact plain buttons so Add Guest ... Transfer + More fit on one line */
body.fd-modern .datagrid-row-detail .datagrid-toolbar a.l-btn-plain,
body.fd-modern .datagrid-row-detail .datagrid-toolbar a.l-btn-plain:hover { height: 24px; padding: 0 5px; margin: 1px 0; }
body.fd-modern .datagrid-row-detail .datagrid-toolbar a.l-btn span span.l-btn-text { font-size: 12px; }
body.fd-modern .datagrid-row-detail .datagrid-toolbar a.l-btn span span.l-btn-icon-left { padding-left: 18px; }
/* EasyUI builds array toolbars as a ; flatten it so the buttons can wrap on narrow screens */
body.fd-modern .datagrid-toolbar > table,
body.fd-modern .datagrid-toolbar > table > tbody,
body.fd-modern .datagrid-toolbar > table > tbody > tr { display: contents; }
body.fd-modern .datagrid-toolbar > table td { display: inline-flex; align-items: center; padding: 0; }
body.fd-modern .datagrid-toolbar .datagrid-btn-separator { display: none; }
/* the "Room Status" and "More" combos sitting inside the sub-grid toolbar */
body.fd-modern .datagrid-toolbar .combo { height: 26px !important; margin: 0 3px; border-radius: 6px; width: 116px !important; }
body.fd-modern .datagrid-toolbar .combo .combo-text { height: 24px !important; line-height: 24px !important; font-size: 12px !important; width: auto !important; padding: 0 6px !important; }
body.fd-modern .datagrid-toolbar .combo .combo-arrow { height: 24px !important; }
/* expander (+/-) cell: centre the icon in the taller row */
body.fd-modern .datagrid-td-expander > div { display: flex; align-items: center; justify-content: center; padding: 0; line-height: 1; height: 30px; }
body.fd-modern .datagrid-row-expander { margin: 0 !important; }
/* action-row combos (Rates / Reports) match the button height */
.fd-actions .combo { height: 30px !important; width: 104px !important; } /* Rates / Reports pickers */
.fd-actions .combo .combo-text { height: 28px !important; line-height: 28px !important; }
.fd-actions .combo .combo-arrow { height: 28px !important; }
/* ==========================================================================
3. EasyUI linkbuttons everywhere else on the page (dialogs, toolbars)
========================================================================== */
body.fd-modern a.l-btn {
background: var(--fd-surface);
border: 1px solid var(--fd-border-strong);
border-radius: var(--fd-radius-sm);
height: 32px;
padding: 0 12px 0 10px;
display: inline-flex;
align-items: center;
color: var(--fd-text-2);
box-shadow: var(--fd-shadow);
transition: background .12s, border-color .12s;
vertical-align: middle;
margin: 2px;
}
body.fd-modern a.l-btn:hover { background: #f8fafc; color: var(--fd-text); border-color: #c4cad3; }
body.fd-modern a.l-btn span.l-btn-left { background: none; padding: 0; height: auto; line-height: 1; display: inline-flex; align-items: center; }
body.fd-modern a.l-btn span span.l-btn-text { font-size: 12.5px; font-weight: 500; height: auto; line-height: 1; }
body.fd-modern a.l-btn span span.l-btn-icon-left { padding-left: 20px; background-position: left center; }
body.fd-modern a.l-btn span span.l-btn-icon-right { padding-right: 20px; }
body.fd-modern a.l-btn-plain,
body.fd-modern a.l-btn-plain:hover {
background: transparent;
border: 1px solid transparent;
box-shadow: none;
padding: 0 8px;
height: 28px;
}
body.fd-modern a.l-btn-plain:hover { background: #e8eef7; }
body.fd-modern a.l-btn-disabled,
body.fd-modern a.l-btn-disabled:hover { opacity: .4; }
/* buttons whose icon says "confirm" become the primary action */
body.fd-modern .dialog-button a.l-btn:has(.icon-ok),
body.fd-modern .dialog-button a.l-btn:has(.icon-save),
body.fd-modern .dialog-button a.l-btn:has(.icon-edit),
body.fd-modern .messager-button a.l-btn:first-child,
body.fd-modern a.l-btn.fd-primary {
background: linear-gradient(180deg, #3b82f6 0%, var(--fd-primary) 100%);
border-color: var(--fd-primary-600);
color: #fff;
}
body.fd-modern .dialog-button a.l-btn:has(.icon-ok):hover,
body.fd-modern .dialog-button a.l-btn:has(.icon-save):hover,
body.fd-modern .dialog-button a.l-btn:has(.icon-edit):hover,
body.fd-modern .messager-button a.l-btn:first-child:hover,
body.fd-modern a.l-btn.fd-primary:hover { background: linear-gradient(180deg, #2f76f0 0%, var(--fd-primary-600) 100%); color: #fff; }
body.fd-modern .dialog-button a.l-btn:has(.icon-ok) .l-btn-icon,
body.fd-modern .dialog-button a.l-btn:has(.icon-save) .l-btn-icon,
body.fd-modern .dialog-button a.l-btn:has(.icon-edit) .l-btn-icon,
body.fd-modern a.l-btn.fd-primary .l-btn-icon { filter: brightness(0) invert(1); }
body.fd-modern .dialog-button a.l-btn:has(.icon-cancel) { color: var(--fd-text-2); }
body.fd-modern .dialog-button a.l-btn:has(.icon-remove) { color: var(--fd-red); }
body.fd-modern .dialog-button a.l-btn:has(.icon-remove):hover { background: #fef2f2; border-color: #fca5a5; }
/* legacy / used inside a few dialogs */
body.fd-modern .window-body input[type="button"],
body.fd-modern .window-body input[type="submit"],
body.fd-modern .window-body button:not(.fd-btn) {
height: 32px;
padding: 0 12px;
border: 1px solid var(--fd-border-strong);
border-radius: var(--fd-radius-sm);
background: var(--fd-surface);
color: var(--fd-text-2);
font-size: 12.5px;
font-weight: 500;
cursor: pointer;
box-shadow: var(--fd-shadow);
margin: 2px 4px 2px 0;
}
/* hover darkens whatever colour the button already has, so page-coloured buttons
(e.g. the blue Process Payment / Refund / Receipts buttons) keep their white text readable */
body.fd-modern .window-body input[type="button"]:not(.blue):not(.green):not(.orange):not(.red):hover,
body.fd-modern .window-body button:not(.fd-btn):hover { filter: brightness(.94); }
/* ==========================================================================
4. Dialog / window frame
========================================================================== */
body.fd-modern .window {
background: var(--fd-surface) !important;
border: 1px solid var(--fd-border) !important;
border-radius: 12px;
padding: 0 !important;
box-shadow: var(--fd-shadow-lg);
overflow: hidden;
}
body.fd-modern .window-shadow { display: none !important; }
body.fd-modern .window-mask {
background: rgba(15, 23, 42, .5) !important;
opacity: 1 !important;
backdrop-filter: blur(2px);
}
body.fd-modern .window .window-header {
background: var(--fd-surface) !important;
border-bottom: 1px solid var(--fd-border);
padding: 12px 16px !important;
min-height: 22px;
}
body.fd-modern .window .window-header .panel-title {
font-size: 15px;
font-weight: 600;
color: var(--fd-text);
height: 22px;
line-height: 22px;
padding-left: 0 !important;
background: none;
}
body.fd-modern .window .window-header .panel-with-icon { padding-left: 0 !important; }
body.fd-modern .window .window-header .panel-icon { display: none; }
body.fd-modern .window .window-header .panel-tool { right: 12px !important; margin-top: -8px !important; }
body.fd-modern .window .window-header .panel-tool a {
width: 22px;
height: 22px;
border-radius: 6px;
opacity: .7;
transition: background .12s, opacity .12s;
background-position: center;
}
body.fd-modern .window .window-header .panel-tool a:hover { background-color: #f1f5f9; opacity: 1; }
body.fd-modern .window .window-header .panel-tool-close { background-image: url('data:image/svg+xml;utf8, ') !important; background-repeat: no-repeat !important; }
body.fd-modern .window .window-body,
body.fd-modern .dialog-content {
background: var(--fd-surface);
color: var(--fd-text);
font-size: 13px;
border: 0 !important;
}
body.fd-modern .dialog-content { padding: 16px 18px !important; }
body.fd-modern .dialog-toolbar {
background: #fbfcfd;
border-bottom: 1px solid var(--fd-border) !important;
padding: 8px 12px !important;
display: flex;
align-items: center;
gap: 4px;
flex-wrap: wrap;
}
body.fd-modern .dialog-toolbar:empty,
body.fd-modern .dialog-toolbar:not(:has(a, input, select, button, .combo, .l-btn)) { display: none; }
/* small legacy dialogs kept on their original markup, tidied by CSS only */
body.fd-modern #dlgGiveComp > div > label { display: block; font-size: 12px; font-weight: 500; color: var(--fd-muted); margin: 10px 0 5px; }
body.fd-modern #dlgGiveComp > div > label:first-child { margin-top: 0; }
body.fd-modern #dlgGiveComp > div > label br { display: none; }
body.fd-modern #dlgGiveComp input[type="text"], body.fd-modern #dlgGiveComp textarea { width: 100%; }
body.fd-modern #dlgGiveComp textarea { margin-bottom: 10px; }
body.fd-modern #dlgGiveComp > div > br { display: none; }
body.fd-modern #dlg-invoice-types td { padding: 6px 8px 6px 0; }
body.fd-modern #dlg-invoice-types td[onClick] { cursor: pointer; }
body.fd-modern #dlg-invoice-types label { cursor: pointer; }
body.fd-modern #dlg-groupcheckin td, body.fd-modern #dlg-virtualrooms td, body.fd-modern #dlgGiveDiscount td { padding: 5px 8px 5px 0; }
body.fd-modern #dlg-groupcheckin .combo, body.fd-modern #dlg-virtualrooms .combo { min-width: 180px; }
body.fd-modern .dialog-button {
background: #f9fafb;
border-top: 1px solid var(--fd-border) !important;
padding: 10px 14px !important;
display: flex;
justify-content: flex-end;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
body.fd-modern .dialog-button .l-btn { margin: 0; }
body.fd-modern .dialog-button #ReciepInvoice { margin-left: 4px; }
body.fd-modern .window-proxy { border: 2px dashed var(--fd-primary); background: rgba(37, 99, 235, .06); }
/* messager */
body.fd-modern .messager-window, body.fd-modern .messager-window .window-body { background: var(--fd-surface) !important; }
body.fd-modern .messager-progress .progressbar { border: 1px solid var(--fd-border-strong); border-radius: 7px; height: 16px; overflow: hidden; background: #f1f5f9; }
body.fd-modern .messager-progress .progressbar-value { background: linear-gradient(180deg, #3b82f6 0%, var(--fd-primary) 100%); }
body.fd-modern .messager-progress .progressbar-text { color: #fff; font-size: 11px; line-height: 16px; }
body.fd-modern .messager-p-msg { font-size: 13px; color: var(--fd-text-2); margin-bottom: 6px; }
body.fd-modern .messager-body { padding: 18px 20px 16px; font-size: 13px; }
body.fd-modern .messager-button { padding: 12px 0 4px; display: flex; justify-content: flex-end; gap: 6px; }
body.fd-modern .messager-progress .progressbar { border-radius: 6px; border-color: var(--fd-border-strong); }
body.fd-modern .progressbar-value { background: var(--fd-primary); color: #fff; }
/* combo drop-down panels */
body.fd-modern .combo-panel { border-color: var(--fd-border) !important; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); border-radius: 8px; padding: 4px; }
body.fd-modern .combobox-item { padding: 6px 10px; border-radius: 6px; font-size: 13px; }
body.fd-modern .combobox-item-hover { background: #f1f5f9; color: var(--fd-text); }
body.fd-modern .combobox-item-selected { background: var(--fd-primary-50); color: var(--fd-primary); font-weight: 500; }
body.fd-modern .calendar { border-color: var(--fd-border) !important; }
body.fd-modern .calendar-header { background: #f8fafc; border-color: var(--fd-border); }
body.fd-modern .calendar-selected { background: var(--fd-primary-100); border-color: var(--fd-primary); }
body.fd-modern .calendar-today { color: var(--fd-primary); font-weight: 700; }
/* ==========================================================================
5. Form controls inside dialogs (generic - covers all 74 dialogs)
========================================================================== */
body.fd-modern .window-body font { font-size: 13px !important; color: var(--fd-text-2) !important; }
body.fd-modern .window-body label { color: var(--fd-text-2); }
body.fd-modern .window-body table { border-collapse: separate; border-spacing: 0; }
body.fd-modern .window-body td { padding: 3px 6px 3px 0; vertical-align: middle; font-size: 13px; color: var(--fd-text-2); }
body.fd-modern .window-body hr { border: 0; border-top: 1px solid var(--fd-border); margin: 12px 0; }
body.fd-modern .window-body input[type="text"],
body.fd-modern .window-body input[type="password"],
body.fd-modern .window-body input[type="number"],
body.fd-modern .window-body input[type="email"],
body.fd-modern .window-body input[type="time"],
body.fd-modern .window-body input[type="date"],
body.fd-modern .window-body select,
body.fd-modern .window-body textarea {
height: 32px;
padding: 0 10px;
border: 1px solid var(--fd-border-strong);
border-radius: var(--fd-radius-sm);
background: var(--fd-surface);
color: var(--fd-text);
font-size: 13px;
box-sizing: border-box;
outline: none;
transition: border-color .12s, box-shadow .12s;
max-width: 100%;
}
body.fd-modern .window-body textarea { height: auto; min-height: 60px; padding: 8px 10px; line-height: 1.4; resize: vertical; }
body.fd-modern .window-body select { padding-right: 26px; appearance: none; -webkit-appearance: none; background: var(--fd-surface) url('data:image/svg+xml;utf8, ') no-repeat right 9px center; }
body.fd-modern .window-body input:focus,
body.fd-modern .window-body select:focus,
body.fd-modern .window-body textarea:focus { border-color: var(--fd-primary); box-shadow: var(--fd-focus); }
body.fd-modern .window-body input[readonly],
body.fd-modern .window-body input[disabled],
body.fd-modern .window-body input.summary { background: #f8fafc; color: var(--fd-text-2); }
body.fd-modern .window-body input.summary { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
body.fd-modern .window-body input[type="checkbox"],
body.fd-modern .window-body input[type="radio"] {
width: 16px;
height: 16px;
accent-color: var(--fd-primary);
vertical-align: middle;
margin: 0 6px 0 0;
cursor: pointer;
}
body.fd-modern .window-body input[type="file"] { font-size: 12px; }
/* EasyUI combos / dateboxes / spinners (1.3.4 structure: span.combo > input.combo-text + arrow) */
body.fd-modern .combo,
body.fd-modern .spinner {
border: 1px solid var(--fd-border-strong) !important;
border-radius: var(--fd-radius-sm);
background: var(--fd-surface);
height: 32px !important;
box-sizing: border-box;
display: inline-flex;
align-items: stretch;
overflow: hidden;
transition: border-color .12s, box-shadow .12s;
}
body.fd-modern .combo:focus-within { border-color: var(--fd-primary); box-shadow: var(--fd-focus); }
body.fd-modern .combo .combo-text {
height: 30px !important;
line-height: 30px !important;
padding: 0 8px !important;
font-size: 13px !important;
border: 0 !important;
border-radius: 0;
box-shadow: none !important;
background: transparent;
min-width: 0;
flex: 1 1 auto;
}
body.fd-modern .combo .combo-text:focus { box-shadow: none; }
body.fd-modern .combo > span { display: inline-flex; align-items: stretch; }
body.fd-modern .combo .combo-arrow,
body.fd-modern .combo .datebox-arrow,
body.fd-modern .combo .spinner-arrow {
height: 30px !important;
background-color: transparent !important;
opacity: .75;
border-left: 1px solid #eef0f3;
}
body.fd-modern .combo .combo-arrow:hover { opacity: 1; background-color: #f1f5f9 !important; }
body.fd-modern .combo .spinner-arrow-up, body.fd-modern .combo .spinner-arrow-down { background-color: transparent !important; height: 15px; }
body.fd-modern .spinner:focus-within { border-color: var(--fd-primary); box-shadow: var(--fd-focus); }
body.fd-modern .spinner .spinner-text {
height: 30px !important;
line-height: 30px !important;
padding: 0 8px !important;
font-size: 13px !important;
border: 0 !important;
background: transparent;
min-width: 0;
flex: 1 1 auto;
width: auto !important;
}
body.fd-modern .spinner .spinner-arrow { height: 30px !important; background-color: transparent !important; border-left: 1px solid #eef0f3; opacity: .75; display: inline-block; }
body.fd-modern .spinner .spinner-arrow-up, body.fd-modern .spinner .spinner-arrow-down { background-color: transparent !important; height: 15px !important; }
.fd-field .fd-control > .spinner { width: 100% !important; flex: 1 1 auto; }
.fd-time-pair > .combo, .fd-time-pair > .spinner { width: calc(50% - 4px) !important; flex: 0 0 calc(50% - 4px); }
/* a section whose fields have all been hidden by the page JS collapses entirely */
body.fd-modern .fd-form .fd-section:not(:has(.fd-field:not([style*="display: none"]):not([style*="display:none"]))),
body.fd-modern .fd-form .fd-amount-panel:not(:has(.fd-field:not([style*="display: none"]):not([style*="display:none"]))) { display: none; }
/* auto-height dialogs never grow past the viewport - the body scrolls instead */
body.fd-modern .dialog-content { max-height: calc(100vh - 150px); overflow: auto; box-sizing: border-box; }
body.fd-modern .combo .combo-text[disabled] { background: #f8fafc; }
body.fd-modern .combo:has(.combo-text[disabled]) { background: #f8fafc; }
body.fd-modern .validatebox-text,
body.fd-modern .numberbox {
height: 32px;
box-sizing: border-box;
border: 1px solid var(--fd-border-strong);
border-radius: var(--fd-radius-sm);
padding: 0 10px;
font-size: 13px;
}
body.fd-modern .validatebox-invalid,
body.fd-modern .combo:has(.validatebox-invalid) { border-color: #f87171 !important; background: #fff7f7; }
body.fd-modern .combo .validatebox-invalid { background: transparent; }
/* ==========================================================================
6. Structured dialog forms (used by the hand-designed dialogs)
========================================================================== */
.fd-form { display: flex; flex-direction: column; gap: 12px; }
.fd-form .fd-section { display: flex; flex-direction: column; gap: 8px; }
.fd-form .fd-section-title {
font-size: 11.5px;
font-weight: 700;
letter-spacing: .05em;
text-transform: uppercase;
color: var(--fd-muted);
padding-bottom: 6px;
border-bottom: 1px solid var(--fd-border);
display: flex;
align-items: center;
justify-content: space-between;
}
.fd-form .fd-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px 16px;
}
.fd-form .fd-grid.fd-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fd-form .fd-grid.fd-grid-1 { grid-template-columns: minmax(0, 1fr); }
/* .fd-field must survive jQuery .show() setting display:block on it, so it
never relies on flex for the label/control stack - margins do the spacing. */
.fd-field { display: block; min-width: 0; }
.fd-field > label, .fd-field > .fd-label { margin-bottom: 5px; }
.fd-field .fd-checkline {
display: inline-flex !important;
align-items: center;
gap: 8px;
font-size: 13px !important;
font-weight: 500 !important;
color: var(--fd-text-2) !important;
cursor: pointer;
margin: 0;
min-height: 32px;
}
.fd-field .fd-checkline input[type="checkbox"] { margin: 0; }
.fd-field.fd-check-field { padding-top: 19px; }
.fd-time-pair > .combo { width: calc(50% - 4px) !important; }
.fd-file-btn {
display: inline-flex;
align-items: center;
height: 28px;
padding: 0 12px;
border-radius: var(--fd-radius-sm);
border: 1px solid var(--fd-border-strong);
background: #fff;
color: var(--fd-text-2);
font-size: 12.5px;
font-weight: 500;
cursor: pointer;
box-shadow: var(--fd-shadow);
}
.fd-file-btn:hover { background: #f8fafc; }
/* quick reservation dialog */
.fd-quickres-layout { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 18px; align-items: start; }
.fd-quickres-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.fd-quickres-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fd-resno { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; background: #f8fafc; border: 1px solid var(--fd-border); border-radius: var(--fd-radius); padding: 10px 12px; }
.fd-resno input { width: 100% !important; font-weight: 600; text-align: center; }
.fd-quickres-side .fd-photo-actions { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; }
.fd-quickres-side .fd-photo-actions a.l-btn { height: 28px; padding: 0 9px; }
.fd-field.fd-span-2 { grid-column: span 2; }
.fd-field.fd-span-3 { grid-column: span 3; }
.fd-field > label, .fd-field > .fd-label, .fd-field > div > font {
font-size: 12px;
font-weight: 500;
color: var(--fd-muted);
line-height: 1.2;
display: flex;
align-items: center;
gap: 6px;
}
.fd-field .fd-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fd-field .fd-control > input[type="text"],
.fd-field .fd-control > input[type="password"],
.fd-field .fd-control > input[type="number"],
.fd-field .fd-control > input[type="email"],
.fd-field .fd-control > input[type="time"],
.fd-field .fd-control > select,
.fd-field .fd-control > textarea,
.fd-field .fd-control > .combo,
.fd-field .fd-control > .validatebox-text { width: 100% !important; flex: 1 1 auto; }
.fd-field .fd-control > .combo .combo-text { width: auto !important; }
.fd-field.fd-check { flex-direction: row; align-items: center; gap: 8px; min-height: 32px; padding-top: 18px; }
.fd-field.fd-check.fd-no-pad { padding-top: 0; }
.fd-field.fd-check > label { font-size: 13px; color: var(--fd-text-2); font-weight: 500; cursor: pointer; }
.fd-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fd-inline > label { font-size: 13px; color: var(--fd-text-2); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fd-hint { font-size: 11.5px; color: var(--fd-faint); }
.fd-meta { font-size: 12px; color: var(--fd-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.fd-meta b { color: var(--fd-text-2); font-weight: 500; }
.fd-form .fd-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; align-items: start; }
/* amount panel used by payments / settle */
.fd-amount-panel {
background: #f8fafc;
border: 1px solid var(--fd-border);
border-radius: var(--fd-radius);
padding: 12px 14px;
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px 16px;
}
.fd-amount-panel .fd-field > label { color: var(--fd-muted); }
.fd-amount-panel input.summary { font-size: 14px; }
.fd-amount-panel .fd-amount-input { font-size: 16px; font-weight: 600; height: 38px !important; }
.fd-card-block {
border: 1px dashed var(--fd-border-strong);
border-radius: var(--fd-radius);
padding: 12px 14px;
}
.fd-card-block .fd-field.fd-check-field { padding-top: 19px; }
/* photo card (guest / quick reservation) */
.fd-photo {
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
background: #f8fafc;
border: 1px solid var(--fd-border);
border-radius: var(--fd-radius);
padding: 12px;
}
.fd-photo p { margin: 0; font-size: 12px; font-weight: 600; color: var(--fd-muted); text-transform: uppercase; letter-spacing: .04em; }
.fd-photo img, .fd-photo video, .fd-photo canvas {
width: 100% !important;
max-width: 200px;
height: auto !important;
aspect-ratio: 1 / 1;
object-fit: cover;
border-radius: 10px;
border: 1px solid var(--fd-border);
background: #fff;
}
.fd-photo .fd-photo-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.fd-photo .fd-photo-actions a.l-btn { height: 28px; padding: 0 9px; }
.fd-photo label[for] {
display: inline-flex;
align-items: center;
height: 28px;
padding: 0 12px !important;
border-radius: var(--fd-radius-sm) !important;
border: 1px solid var(--fd-border-strong) !important;
background: #fff !important;
color: var(--fd-text-2) !important;
font-size: 12.5px !important;
font-weight: 500;
cursor: pointer;
box-shadow: var(--fd-shadow);
}
/* sub-panels that the guest dialog reveals (additional guest form, other guests grid) */
.fd-subpanel {
margin-top: 16px;
padding: 14px 16px 16px;
background: #f8fafc;
border: 1px solid var(--fd-border);
border-radius: var(--fd-radius);
}
.fd-subpanel .fd-form { gap: 12px; }
.fd-subpanel .fd-quickres-main { gap: 12px; }
.fd-guest-audit { margin-top: 12px; flex-direction: column; gap: 4px; }
.fd-guest-audit:empty { display: none; }
body.fd-modern .window-body #toolAdditionalGuests { display: flex; gap: 4px; padding: 6px; }
/* grids that sit inside a dialog */
body.fd-modern .window-body .datagrid { border: 1px solid var(--fd-border) !important; border-radius: 8px; overflow: hidden; max-width: 100%; }
body.fd-modern .window-body .datagrid .panel-header { background: #f8fafc; border-bottom: 1px solid var(--fd-border); padding: 8px 12px; }
body.fd-modern .window-body .datagrid .panel-title { font-size: 12.5px; font-weight: 600; color: var(--fd-text-2); }
body.fd-modern .window-body .datagrid-header .datagrid-cell { text-transform: none; letter-spacing: 0; font-size: 12px; padding: 0 8px; }
body.fd-modern .window-body .datagrid-footer .datagrid-cell { padding: 0 8px; }
body.fd-modern .window-body .datagrid-body .datagrid-cell { padding: 0 8px; height: 32px; line-height: 32px; font-size: 12.5px; }
.fd-dialog-toolbar {
display: flex;
align-items: center;
gap: 4px;
flex-wrap: wrap;
}
.fd-dialog-toolbar .fd-grow { flex: 1 1 auto; }
.fd-dialog-toolbar a.l-btn { height: 30px; }
/* ==========================================================================
7. Status chips
========================================================================== */
.fd-chip {
display: inline-flex;
align-items: center;
gap: 6px;
height: 22px;
padding: 0 9px 0 7px;
border-radius: 11px;
font-size: 11.5px;
font-weight: 600;
line-height: 1;
letter-spacing: .01em;
white-space: nowrap;
background: var(--fd-slate-100);
color: var(--fd-slate);
vertical-align: middle;
}
.fd-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.fd-chip-open, .fd-chip-checkin { background: var(--fd-green-100); color: #15803d; }
.fd-chip-confirmed, .fd-chip-reserved { background: var(--fd-primary-100); color: var(--fd-primary-600); }
.fd-chip-checkout { background: var(--fd-amber-100); color: #b45309; }
.fd-chip-tentative { background: var(--fd-purple-100); color: #6d28d9; }
.fd-chip-noshow, .fd-chip-blocked, .fd-chip-cancelled { background: var(--fd-red-100); color: #b91c1c; }
.fd-chip-closed { background: var(--fd-slate-100); color: var(--fd-slate); }
.fd-chip-paid { background: var(--fd-green-100); color: #15803d; }
.fd-chip-mealplan { background: var(--fd-amber-100); color: #b45309; }
/* ==========================================================================
8. Receptionist login dialog
========================================================================== */
#dlg-new-login .fd-login {
display: flex;
flex-direction: column;
gap: 14px;
padding: 4px 2px 0;
}
#dlg-new-login .fd-login-head { display: flex; align-items: center; gap: 12px; }
#dlg-new-login .fd-login-mark {
width: 42px;
height: 42px;
border-radius: 12px;
background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
display: flex;
align-items: center;
justify-content: center;
color: #fff;
box-shadow: 0 4px 10px rgba(37, 99, 235, .35);
flex: none;
}
#dlg-new-login .fd-login-mark svg { width: 22px; height: 22px; }
#dlg-new-login .fd-login-head b { display: block; font-size: 15px; color: var(--fd-text); }
#dlg-new-login .fd-login-head span { font-size: 12px; color: var(--fd-muted); }
#dlg-new-login .fd-demo-hint {
font-size: 11.5px;
color: var(--fd-muted);
background: #f8fafc;
border: 1px dashed var(--fd-border-strong);
border-radius: 8px;
padding: 7px 10px;
}
#dlg-new-login .fd-demo-hint strong { color: var(--fd-text-2); font-weight: 600; }
#new-login-btns { display: flex; align-items: center; justify-content: space-between; flex: 1 1 auto; }
body.fd-modern .dialog-button { box-sizing: border-box; }
#new-login-btns a:not(.l-btn) { font-size: 12.5px; color: var(--fd-muted) !important; text-decoration: none; }
#new-login-btns a:not(.l-btn):hover { color: var(--fd-primary) !important; text-decoration: underline; }
/* ==========================================================================
9. Legacy page bodies (pages that only opt in through the header hook)
The old pages are nested layouts with coloured s. These rules
give them the same look without touching their markup.
========================================================================== */
body.fd-modern > table { border-collapse: separate; border-spacing: 0; width: 100% !important; }
body.fd-modern > table > tbody > tr > td { padding: 6px 10px; vertical-align: top; }
body.fd-modern > table table { border-spacing: 0; }
body.fd-modern > table td { font-size: 13px; }
body.fd-modern font { font-family: inherit; }
body.fd-modern > table font[size="2"], body.fd-modern > table font[size="3"] { font-size: 13px !important; color: var(--fd-text-2) !important; }
body.fd-modern .datagrid { border-radius: 8px; overflow: hidden; }
body.fd-modern .datagrid > .datagrid-wrap, body.fd-modern .panel.datagrid { border: 1px solid var(--fd-border) !important; border-radius: 8px; }
body.fd-modern .datagrid .panel-header {
background: var(--fd-surface);
border-bottom: 1px solid var(--fd-border);
padding: 8px 12px;
}
body.fd-modern .datagrid .panel-header .panel-title { font-size: 13px; font-weight: 600; color: var(--fd-text); }
/* rows the page colours itself (re-order level, blocked, deleted): let the cells inherit that colour */
body.fd-modern .datagrid-body tr[style*="color"] .datagrid-cell { color: inherit; }
body.fd-modern .datagrid-body tr[style*="color:red"] .datagrid-cell,
body.fd-modern .datagrid-body tr[style*="color: red"] .datagrid-cell { color: #dc2626; font-weight: 400; }
/* action colours: the word says what the button does (add = green, edit/view = blue, delete = red) */
body.fd-modern a.l-btn:has(.icon-add):not(.dialog-button *):not(.messager-button *):not(.fd-primary) .l-btn-text,
body.fd-modern a.l-btn:has(.icon-ok):not(.dialog-button *):not(.messager-button *):not(.fd-primary) .l-btn-text,
body.fd-modern a.l-btn:has(.icon-save):not(.dialog-button *):not(.messager-button *):not(.fd-primary) .l-btn-text { color: #15803d; }
body.fd-modern a.l-btn:has(.icon-edit):not(.dialog-button *):not(.messager-button *):not(.fd-primary) .l-btn-text,
body.fd-modern a.l-btn:has(.icon-search):not(.dialog-button *):not(.messager-button *):not(.fd-primary) .l-btn-text { color: var(--fd-primary-600); }
body.fd-modern a.l-btn:has(.icon-remove):not(.dialog-button *):not(.messager-button *) .l-btn-text,
body.fd-modern a.l-btn:has(.icon-cancel):not(.dialog-button *):not(.messager-button *) .l-btn-text { color: var(--fd-red); }
body.fd-modern a.l-btn:has(.icon-remove):not(.dialog-button *):hover, body.fd-modern a.l-btn:has(.icon-cancel):not(.dialog-button *):hover { background: #fef2f2; border-color: #fca5a5; }
body.fd-modern a.l-btn:has(.icon-add):not(.dialog-button *):hover, body.fd-modern a.l-btn:has(.icon-save):not(.dialog-button *):hover { background: #f0fdf4; border-color: #86efac; }
body.fd-modern a.l-btn:has(.icon-edit):not(.dialog-button *):hover { background: var(--fd-primary-50); border-color: #93c5fd; }
body.fd-modern .fd-actions a.l-btn#newReservation .l-btn-text { color: #fff; }
/* Post Direct Purchases dialog: compact controls, tidy label column */
body.fd-modern #dlgaddItemStockFlow td { padding: 2px 6px 2px 0; font-size: 12.5px; }
body.fd-modern #dlgaddItemStockFlow font { font-size: 12.5px !important; }
/* Scoped to the entry form only: the purchased-items grid below it must keep EasyUI's
own inline-editor sizing. A dialog-wide `.combo { width:170px !important }` used to
push the UOM editor (130px column) under the Quantity cell, hiding its arrow. */
body.fd-modern #dlgaddItemStockFlow form#inventoryPurchase input[type="text"], body.fd-modern #dlgaddItemStockFlow form#inventoryPurchase input[type="number"],
body.fd-modern #dlgaddItemStockFlow form#inventoryPurchase .validatebox-text { height: 28px; font-size: 12.5px; width: 170px; }
body.fd-modern #dlgaddItemStockFlow form#inventoryPurchase .combo { height: 28px !important; width: 170px !important; }
body.fd-modern #dlgaddItemStockFlow form#inventoryPurchase .combo .combo-text { height: 26px !important; line-height: 26px !important; font-size: 12.5px !important; }
body.fd-modern #dlgaddItemStockFlow form#inventoryPurchase .combo .combo-arrow, body.fd-modern #dlgaddItemStockFlow form#inventoryPurchase .combo .datebox-arrow { height: 26px !important; }
body.fd-modern #dlgaddItemStockFlow form#inventoryPurchase textarea { min-height: 52px; font-size: 12.5px; width: 170px; }
body.fd-modern #dlgaddItemStockFlow .datagrid-toolbar a.l-btn { height: 28px; }
/* POS setup - Item Inputs dialog: the item form becomes a two-column grid so the inputs grid
underneath is visible without scrolling; the dialog itself is wide enough for the inputs grid */
body.fd-modern #dlgItem #itemform > table { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content minmax(0, 1fr); column-gap: 14px; row-gap: 4px; align-items: center; width: 100% !important; }
body.fd-modern #dlgItem #itemform > table > tbody { display: contents; }
body.fd-modern #dlgItem #itemform > table > tbody > tr { display: contents; }
body.fd-modern #dlgItem #itemform > table > tbody > tr[style*="display: none"],
body.fd-modern #dlgItem #itemform > table > tbody > tr[style*="display:none"] { display: none; }
body.fd-modern #dlgItem #itemform > table td { padding: 2px 4px 2px 0; font-size: 12.5px; }
body.fd-modern #dlgItem #itemform > table font { font-size: 12.5px !important; white-space: nowrap; }
body.fd-modern #dlgItem #item_desc { width: 100% !important; height: 30px !important; min-height: 30px; }
body.fd-modern #dlgItem #itemform input[type="text"], body.fd-modern #dlgItem #itemform input[type="number"] { height: 28px; }
body.fd-modern #dlgItem #itemform .combo { height: 28px !important; }
body.fd-modern #dlgItem #itemform .combo .combo-text { height: 26px !important; line-height: 26px !important; }
body.fd-modern #dlgItem #itemform .combo .combo-arrow { height: 26px !important; }
body.fd-modern #dlgItem #tt-grid { margin-top: 8px; }
body.fd-modern #dlgItem .datagrid { max-width: 100%; }
body.fd-modern #dlgItem.dialog-content { max-height: calc(100vh - 120px); }
/* emphasised toolbar action (e.g. Post Purchases / LPO Purchase) */
body.fd-modern a.l-btn.fd-emph, body.fd-modern a.l-btn.fd-emph:hover {
background: linear-gradient(180deg, #3b82f6 0%, var(--fd-primary) 100%);
border-color: var(--fd-primary-600);
color: #fff;
}
body.fd-modern a.l-btn.fd-emph .l-btn-text { color: #fff; font-weight: 600; }
body.fd-modern a.l-btn.fd-emph .l-btn-icon { filter: brightness(0) invert(1); }
/* two-row toolbars with a right-aligned group */
body.fd-modern .fd-tb-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; width: 100%; }
body.fd-modern .fd-tb-row + .fd-tb-row { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--fd-border); }
body.fd-modern .fd-tb-right { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.fd-modern .fd-tb-label { font-size: 12.5px; color: var(--fd-muted); }
/* Direct Transfers: note shown when the destination is the origin outlet's production department (a return) */
body.fd-modern .fd-return-hint { display: inline-block; max-width: 520px; padding: 4px 10px; border-radius: 6px; background: #fff7e6; border: 1px solid #f5c26b; color: #7a4b00; font-size: 12px; line-height: 1.35; }
body.fd-modern .fd-return-hint b { color: #a15c00; }
/* coloured legacy buttons (header.php .blue/.green/.orange/.red) become flat toolbar buttons */
body.fd-modern input.blue, body.fd-modern input.green, body.fd-modern input.orange, body.fd-modern input.red,
body.fd-modern button.blue, body.fd-modern button.green, body.fd-modern button.orange, body.fd-modern button.red,
body.fd-modern a.blue, body.fd-modern a.green, body.fd-modern a.orange, body.fd-modern a.red {
display: inline-flex;
align-items: center;
gap: 6px;
height: 30px !important;
margin: 2px 4px 2px 0 !important;
padding: 0 11px !important;
border-radius: var(--fd-radius-sm) !important;
border: 1px solid var(--fd-border-strong) !important;
background: var(--fd-surface) !important;
color: var(--fd-text-2) !important;
font-size: 12.5px !important;
font-weight: 500 !important;
line-height: 1 !important;
box-shadow: var(--fd-shadow) !important;
cursor: pointer;
text-decoration: none !important;
width: auto !important;
}
body.fd-modern input.blue, body.fd-modern button.blue, body.fd-modern a.blue {
background: linear-gradient(180deg, #3b82f6 0%, var(--fd-primary) 100%) !important;
border-color: var(--fd-primary-600) !important;
color: #fff !important;
}
body.fd-modern input.green, body.fd-modern button.green, body.fd-modern a.green { color: #15803d !important; }
body.fd-modern input.green:hover, body.fd-modern button.green:hover, body.fd-modern a.green:hover { background: #f0fdf4 !important; border-color: #86efac !important; }
body.fd-modern input.orange, body.fd-modern button.orange, body.fd-modern a.orange { color: #b45309 !important; }
body.fd-modern input.orange:hover, body.fd-modern button.orange:hover, body.fd-modern a.orange:hover { background: #fffbeb !important; border-color: #fcd34d !important; }
body.fd-modern input.red, body.fd-modern button.red, body.fd-modern a.red { color: var(--fd-red) !important; }
body.fd-modern input.red:hover, body.fd-modern button.red:hover, body.fd-modern a.red:hover { background: #fef2f2 !important; border-color: #fca5a5 !important; }
body.fd-modern input.blue:hover, body.fd-modern button.blue:hover, body.fd-modern a.blue:hover { background: linear-gradient(180deg, #2f76f0 0%, var(--fd-primary-600) 100%) !important; }
/* Emphasised legacy / action - a solid fill so the primary button
stands out from the plain ones beside it (e.g. Update Event on the Edit Event
Reservation dialog, which sits in a row with Process Payment / Refund / Receipts).
Counterpart of a.l-btn.fd-emph above, which only matches EasyUI linkbuttons.
Declared after the .green/.blue rules so it wins at equal specificity. */
body.fd-modern input.fd-emph, body.fd-modern button.fd-emph {
height: 34px !important;
padding: 0 18px !important;
background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%) !important;
border-color: #15803d !important;
color: #fff !important;
font-size: 13px !important;
font-weight: 600 !important;
box-shadow: 0 1px 3px rgba(22, 163, 74, .35) !important;
}
body.fd-modern input.fd-emph:hover, body.fd-modern button.fd-emph:hover {
background: linear-gradient(180deg, #16a34a 0%, #15803d 100%) !important;
border-color: #166534 !important;
}
/* unclassed s in toolbars and page bodies get the secondary button look */
body.fd-modern .datagrid-toolbar button:not([class]),
body.fd-modern > table button:not([class]),
body.fd-modern > form button:not([class]),
body.fd-modern > div button:not([class]):not(.sidebar-container *):not(#content-header *) {
display: inline-flex;
align-items: center;
height: 30px;
padding: 0 11px;
border-radius: var(--fd-radius-sm);
border: 1px solid var(--fd-border-strong);
background: var(--fd-surface);
color: var(--fd-text-2);
font-size: 12.5px;
font-weight: 500;
cursor: pointer;
box-shadow: var(--fd-shadow);
}
body.fd-modern .datagrid-toolbar button:not([class]):hover,
body.fd-modern > table button:not([class]):hover { background: #f8fafc; }
/* plain text inputs / selects that sit in legacy toolbars and page bodies */
body.fd-modern .datagrid-toolbar input[type="text"],
body.fd-modern .datagrid-toolbar input:not([type]):not(.combo-text):not(.validatebox-text),
body.fd-modern > table input:not([type]):not(.combo-text):not(.validatebox-text),
body.fd-modern .datagrid-toolbar select,
body.fd-modern > table input[type="text"]:not(.combo-text):not(.validatebox-text):not(.spinner-text),
body.fd-modern > table select {
height: 30px;
padding: 0 9px;
border: 1px solid var(--fd-border-strong);
border-radius: var(--fd-radius-sm);
background: var(--fd-surface);
font-size: 13px;
box-sizing: border-box;
outline: none;
}
body.fd-modern .datagrid-toolbar input[type="text"]:focus,
body.fd-modern > table input[type="text"]:focus { border-color: var(--fd-primary); box-shadow: var(--fd-focus); }
body.fd-modern .datagrid-toolbar label { font-size: 12.5px; color: var(--fd-muted); }
body.fd-modern .datagrid-toolbar { flex-wrap: wrap; }
body.fd-modern .datagrid-toolbar br { display: none; }
/* form-style pages (system settings and friends): inputs anywhere in the page body that are
not EasyUI internals or grid editors get the same control look as the dialogs */
body.fd-modern input[type="text"]:not(.combo-text):not(.validatebox-text):not(.spinner-text):not(.datagrid-editable-input):not(.textbox-text):not(.sidebar-container *):not(#content-header *),
body.fd-modern input[type="password"]:not(.combo-text):not(.sidebar-container *),
body.fd-modern input[type="email"]:not(.sidebar-container *), body.fd-modern input[type="number"]:not(.datagrid-editable-input),
body.fd-modern input[type="date"], body.fd-modern input[type="time"],
body.fd-modern select:not(.datagrid-editable-input):not(.pagination-page-list):not(.sidebar-container *):not(#content-header *),
body.fd-modern textarea:not(.datagrid-editable-input):not(.sidebar-container *) {
height: 30px;
padding: 0 9px;
border: 1px solid var(--fd-border-strong);
border-radius: var(--fd-radius-sm);
background: var(--fd-surface);
color: var(--fd-text);
font-size: 13px;
box-sizing: border-box;
outline: none;
max-width: 100%;
}
body.fd-modern textarea:not(.datagrid-editable-input) { height: auto; min-height: 60px; padding: 8px 10px; line-height: 1.4; }
body.fd-modern input[type="text"]:focus, body.fd-modern input[type="password"]:focus, body.fd-modern select:focus, body.fd-modern textarea:focus { border-color: var(--fd-primary); box-shadow: var(--fd-focus); }
body.fd-modern input[type="file"] { font-size: 12.5px; }
body.fd-modern input[type="submit"]:not(.fd-btn), body.fd-modern input[type="button"]:not(.fd-btn) {
height: 30px; padding: 0 12px; border: 1px solid var(--fd-primary-600); border-radius: var(--fd-radius-sm);
background: linear-gradient(180deg, #3b82f6 0%, var(--fd-primary) 100%); color: #fff; font-size: 12.5px; font-weight: 500; cursor: pointer; box-shadow: var(--fd-shadow);
}
body.fd-modern > form > table, body.fd-modern > div > form > table { margin: 6px 10px !important; }
/* the system-settings family: the settings form becomes a card */
body.fd-modern > form#currentsettings:has(input:not([type="hidden"]), select, textarea),
body.fd-modern > div > form#currentsettings:has(input:not([type="hidden"]), select, textarea) {
display: block;
margin: 8px 10px;
padding: 10px 14px 16px;
background: var(--fd-surface);
border: 1px solid var(--fd-border);
border-radius: var(--fd-radius);
box-shadow: var(--fd-shadow);
}
body.fd-modern form#currentsettings > table { margin: 0 !important; width: 100% !important; }
body.fd-modern form#currentsettings td { padding: 5px 8px 5px 0; }
body.fd-modern form#currentsettings input[type="text"], body.fd-modern form#currentsettings input[type="password"] { margin-left: 0 !important; }
body.fd-modern form td { font-size: 13px; color: var(--fd-text-2); }
body.fd-modern form td strong, body.fd-modern form th { color: var(--fd-text); }
body.fd-modern hr { border: 0; border-top: 1px solid var(--fd-border); margin: 8px 0; }
/* tab bar + child toolbar (POS membership): the tabs are the page's own checkboxes, the group
of buttons underneath is visibly attached to the active tab */
body.fd-modern .fd-tabbar { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 0; padding: 6px 8px 8px !important; }
body.fd-modern .datagrid-toolbar > .fd-tabbar { flex: 1 1 100%; width: 100%; box-sizing: border-box; }
body.fd-modern .fd-tabbar .fd-seg-tabs { align-self: flex-start; border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; margin-bottom: -1px; position: relative; z-index: 1; background: #fff; }
body.fd-modern .fd-tabbar .fd-seg-tabs label { height: 28px; padding: 0 14px; font-size: 13px; }
body.fd-modern .fd-tabbar .fd-seg-tabs input:checked + label { background: var(--fd-primary); color: #fff; }
body.fd-modern .fd-subbar {
background: #f8fafc;
border: 1px solid var(--fd-border-strong);
border-radius: 0 9px 9px 9px;
padding: 8px 10px;
box-shadow: inset 3px 0 0 var(--fd-primary);
}
body.fd-modern .fd-subbar-group { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
body.fd-modern .fd-subbar-group button, body.fd-modern .fd-subbar-group a.l-btn { margin: 0 !important; }
body.fd-modern .fd-subbar-field { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fd-muted); margin-left: 6px; }
body.fd-modern .fd-subbar-search { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: 12.5px; color: var(--fd-muted); }
body.fd-modern .fd-subbar-search input[type="search"] {
height: 30px; width: 220px; padding: 0 10px; border: 1px solid var(--fd-border-strong); border-radius: var(--fd-radius-sm);
background: #fff; font-size: 13px; box-sizing: border-box; outline: none;
}
body.fd-modern .fd-subbar-search input[type="search"]:focus { border-color: var(--fd-primary); box-shadow: var(--fd-focus); }
/* stacked modal dialogs: only the first mask dims and blurs; masks of dialogs opened on top stay
light so the figures on the dialog underneath remain readable */
body.fd-modern .window-mask.fd-mask-light { background: rgba(15, 23, 42, .12) !important; backdrop-filter: none !important; }
/* ==========================================================================
10. Misc
========================================================================== */
body.fd-modern .tooltip { border-radius: 8px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
body.fd-modern .tooltip-icon-remove { vertical-align: middle; }
body.fd-modern .tabs-header { background: #f8fafc; border-color: var(--fd-border); }
body.fd-modern .tabs li a.tabs-inner { border-radius: 6px 6px 0 0; font-size: 12.5px; }
body.fd-modern .tabs li.tabs-selected a.tabs-inner { color: var(--fd-primary); border-bottom-color: #fff; }
body.fd-modern .panel-header { background: #f8fafc; border-color: var(--fd-border); }
body.fd-modern .panel-title { color: var(--fd-text-2); }
/* the room chart dialog that lives inside this page */
body.fd-modern #dlg-roomchart .room { border-radius: 8px; box-shadow: var(--fd-shadow); }
/* laptops (1366 wide with the sidebar open): keep one KPI row, drop the sub-text */
@media (max-width: 1700px) {
.fd-kpis { gap: 4px; }
.fd-kpi { padding: 4px 6px 4px 5px; gap: 5px; }
.fd-kpi-icon { width: 22px; height: 22px; border-radius: 6px; }
.fd-kpi-icon svg { width: 13px; height: 13px; }
.fd-kpi-label { font-size: 10px; letter-spacing: .02em; }
.fd-kpi-value { font-size: 15px; }
.fd-lbl-long { display: none; }
.fd-lbl-short { display: inline; }
.fd-occ-bar { display: none; }
.fd-seg label { padding: 0 8px; font-size: 12px; }
.fd-btn { padding: 0 9px; }
}
/* 1366-wide laptops with the sidebar open (~1086px of content) */
@media (max-width: 1500px) {
.fd-actions .fd-search input[type="text"] { width: 110px; }
.fd-btn:not(.fd-btn-icon) svg { display: none; } /* text-only secondary buttons keep the row on one line */
.fd-actions { gap: 4px; }
.fd-actions .fd-sep { margin: 0 1px; }
.fd-actions .combo { width: 88px !important; }
.fd-btn:not(.fd-btn-icon) { padding: 0 7px; }
body.fd-modern .fd-actions a.l-btn { padding: 0 8px 0 7px; }
.fd-seg label { padding: 0 6px; }
.fd-filter-tools .combo { width: 112px !important; }
.fd-filters { gap: 5px; }
.fd-kpi { padding: 3px 5px; }
.fd-kpi-icon { display: none; }
.fd-kpi-body { gap: 4px; }
.fd-kpi-value { font-size: 14px; }
.fd-kpi-label { font-size: 9.5px; letter-spacing: 0; }
}
/* 1280-wide screens with the sidebar open (~1000px of content) */
@media (max-width: 1320px) {
.fd-seg label { padding: 0 6px; }
.fd-actions .fd-search input[type="text"] { width: 84px; padding-left: 26px; }
.fd-search svg { left: 7px; }
.fd-actions { gap: 3px; }
.fd-actions .fd-sep { display: none; }
.fd-actions .combo { width: 74px !important; }
.fd-btn:not(.fd-btn-icon) { padding: 0 6px; }
body.fd-modern .fd-actions a.l-btn { padding: 0 7px 0 6px; }
.fd-filters { gap: 5px; }
.fd-kpi-body { gap: 5px; }
.fd-kpi-label { font-size: 9.5px; letter-spacing: 0; }
body.fd-modern .datagrid-row-detail .datagrid-toolbar a.l-btn span span.l-btn-icon-left { padding-left: 0; background-image: none; }
body.fd-modern .datagrid-row-detail .datagrid-toolbar a.l-btn-plain { padding: 0 4px; }
body.fd-modern .datagrid-row-detail .datagrid-toolbar .combo { width: 104px !important; margin: 0 2px; }
}
/* ==========================================================================
10. Legacy table-form dialogs rebuilt with CSS only (ids / names untouched)
========================================================================== */
/* --- shared: a legacy form laid out as a multi-column field grid ---
Every becomes display:contents so its label cell and field cell flow into the
grid. Rows the page JS hides keep working: jQuery .hide() writes display:none inline
(wins over display:contents) and .show() writes display:table-row, which the
!important rule below turns back into display:contents. */
body.fd-modern .fd-tgrid { display: grid; column-gap: 14px; row-gap: 7px; align-items: center; width: 100%; box-sizing: border-box; }
body.fd-modern .fd-tgrid > tbody, body.fd-modern .fd-tgrid > tbody > tr { display: contents; }
body.fd-modern .fd-tgrid > tbody > tr[style*="display: none"], body.fd-modern .fd-tgrid > tbody > tr[style*="display:none"] { display: none !important; }
body.fd-modern .fd-tgrid > tbody > tr[style*="table-row"] { display: contents !important; }
body.fd-modern .fd-tgrid > tbody > tr > td { display: block; padding: 0; min-width: 0; width: auto !important; height: auto !important; }
body.fd-modern .fd-tgrid > tbody > tr > td:first-child { font-size: 12.5px; color: var(--fd-muted); white-space: nowrap; }
body.fd-modern .fd-tgrid > tbody > tr > td:first-child font { font-size: 12.5px !important; font-family: inherit !important; color: inherit !important; }
body.fd-modern .fd-tgrid > tbody > tr > td:first-child div { text-align: left !important; }
body.fd-modern .fd-tgrid > tbody > tr > td > input[type="text"],
body.fd-modern .fd-tgrid > tbody > tr > td > input[type="number"],
body.fd-modern .fd-tgrid > tbody > tr > td > input[type="password"],
body.fd-modern .fd-tgrid > tbody > tr > td > input[type="search"],
body.fd-modern .fd-tgrid > tbody > tr > td > select,
body.fd-modern .fd-tgrid > tbody > tr > td > textarea { width: 100% !important; box-sizing: border-box; margin: 0; }
body.fd-modern .fd-tgrid > tbody > tr > td > .combo,
body.fd-modern .fd-tgrid > tbody > tr > td > .spinner { width: 100% !important; box-sizing: border-box; }
body.fd-modern .fd-tgrid > tbody > tr > td > textarea { height: 62px; resize: vertical; }
/* a field followed by a small add button: field grows, button stays square */
body.fd-modern .fd-tgrid > tbody > tr > td:has(> a.l-btn, > button) { display: flex; align-items: center; gap: 6px; }
body.fd-modern .fd-tgrid > tbody > tr > td:has(> a.l-btn, > button) > .combo,
body.fd-modern .fd-tgrid > tbody > tr > td:has(> a.l-btn, > button) > input[type="text"] { flex: 1 1 auto; width: auto !important; min-width: 0; }
body.fd-modern .fd-tgrid > tbody > tr > td > a.l-btn { flex: 0 0 auto; height: 30px; }
body.fd-modern .fd-tgrid > tbody > tr > td > button { flex: 0 0 auto; }
/* legacy inputs inside these grids: same height as the combos */
body.fd-modern .fd-tgrid > tbody > tr > td > input[type="text"]:not(.combo-text):not(.datagrid-editable-input),
body.fd-modern .fd-tgrid > tbody > tr > td > input[type="number"],
body.fd-modern .fd-tgrid > tbody > tr > td > select { height: 32px; }
body.fd-modern .fd-tgrid > tbody > tr > td > input[readonly] { background: #f8fafc; }
body.fd-modern .fd-tgrid > tbody > tr > td > input[type="checkbox"] { width: 16px; height: 16px; margin: 0; }
/* section heading inside a grid form (rendered from a data-attribute or a fixed text) */
body.fd-modern .fd-tgrid-title { grid-column: 1 / -1; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fd-primary); padding: 4px 0 2px; border-bottom: 1px solid var(--fd-border); margin-top: 2px; }
/* --- Event Details dialog (events/events.php, events/event-quotation.php) --- */
body.fd-modern #dlgNewReservation { padding: 4px 14px !important; }
body.fd-modern #dlgNewReservation .EventNo { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fd-muted); margin: 0 0 4px; }
body.fd-modern #dlgNewReservation .EventNo label { font-weight: 600; color: var(--fd-text-2); }
body.fd-modern #dlgNewReservation .EventNo input#viewEventNo { width: 90px !important; height: 26px; font-weight: 700; color: var(--fd-text); background: transparent; box-shadow: none; padding: 0; }
/* outer 3-cell table (form | spacer | form) -> stacked blocks */
body.fd-modern #dlgNewReservation .dialog-content > table,
body.fd-modern #dlgNewReservation .dialog-content > table > tbody,
body.fd-modern #dlgNewReservation .dialog-content > table > tbody > tr,
body.fd-modern #dlgNewReservation .dialog-content > table > tbody > tr > td { display: block; width: 100%; padding: 0; }
body.fd-modern #dlgNewReservation .dialog-content > table > tbody > tr > td:has(> img) { display: none; }
body.fd-modern #dlgNewReservation .dialog-content > table > tbody > tr > td + td:not(:has(> img)) { margin-top: 6px; }
/* both inner forms: 3 label/field pairs per row */
body.fd-modern #dlgNewReservation form#Eventform > table,
body.fd-modern #dlgNewReservation form#Totalform > table {
display: grid; grid-template-columns: repeat(4, max-content minmax(110px, 1fr)); column-gap: 12px; row-gap: 5px; align-items: center; width: 100%; box-sizing: border-box;
}
body.fd-modern #dlgNewReservation form > table > tbody, body.fd-modern #dlgNewReservation form > table > tbody > tr { display: contents; }
body.fd-modern #dlgNewReservation form > table > tbody > tr[style*="display: none"], body.fd-modern #dlgNewReservation form > table > tbody > tr[style*="display:none"] { display: none !important; }
body.fd-modern #dlgNewReservation form > table > tbody > tr[style*="table-row"] { display: contents !important; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td { display: block; padding: 0; min-width: 0; width: auto !important; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td:first-child { font-size: 12.5px; color: var(--fd-muted); white-space: nowrap; }
/* the empty spacer cell between label and field disappears, unless it carries a control */
body.fd-modern #dlgNewReservation form > table > tbody > tr > td:nth-child(2):not(:has(input, select, a)) { display: none; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td:nth-child(2):has(input, select, a) { justify-self: start; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td:nth-child(2):has(input, select, a) + td { grid-column: span 3; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td > input[type="text"],
body.fd-modern #dlgNewReservation form > table > tbody > tr > td > textarea { width: 100% !important; box-sizing: border-box; margin: 0; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td > input[type="text"]:not(.combo-text) { height: 32px; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td > .combo { width: 100% !important; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td > textarea { height: 34px; min-height: 34px; resize: vertical; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td > input.summary { text-align: right; font-weight: 600; background: #f8fafc; }
/* organisation + add button */
body.fd-modern #dlgNewReservation form > table > tbody > tr > td:has(> a.l-btn) { display: flex; align-items: center; gap: 6px; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td:has(> a.l-btn) > .combo { flex: 1 1 auto; width: auto !important; min-width: 0; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td > a.l-btn { flex: 0 0 auto; height: 30px; }
/* Confirm / Update buttons row spans the full width, right aligned */
body.fd-modern #dlgNewReservation form > table > tbody > tr:has(#SavethisEvent) > td:first-child { display: none; }
body.fd-modern #dlgNewReservation form > table > tbody > tr:has(#SavethisEvent) > td:last-child { grid-column: -3 / -1; display: flex; justify-content: flex-end; gap: 8px; }
body.fd-modern #dlgNewReservation form > table > tbody > tr:has(#SavethisEvent) > td:last-child input[type="button"] { width: auto !important; }
/* action buttons inside the totals block (Process Payment / Refund / Receipts) take a full row */
body.fd-modern #dlgNewReservation form > table > tbody > tr > td:has(> input[type="button"]):not(:has(#SavethisEvent)) { grid-column: 1 / -1; display: flex; gap: 8px; justify-content: flex-end; }
body.fd-modern #dlgNewReservation form > table > tbody > tr > td:has(> input[type="button"]):not(:has(#SavethisEvent)) input[type="button"] { width: auto !important; }
/* the totals block: small heading so the two areas read as sections */
body.fd-modern #dlgNewReservation form#Eventform > table::before { content: "Event"; }
body.fd-modern #dlgNewReservation form#Totalform > table::before { content: "Client & totals"; }
body.fd-modern #dlgNewReservation form#Eventform > table::before, body.fd-modern #dlgNewReservation form#Totalform > table::before {
grid-column: 1 / -1; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fd-primary); padding-bottom: 2px; border-bottom: 1px solid var(--fd-border);
}
/* the grids underneath fill the dialog width */
body.fd-modern #dlgNewReservation #datagrids { margin-top: 6px; }
body.fd-modern #dlgNewReservation #datagrids > .datagrid, body.fd-modern #dlgNewReservation .dialog-content > .datagrid { width: 100% !important; }
body.fd-modern #dlgNewReservation #datagrids .datagrid-toolbar table { display: contents; }
/* --- New Employee dialog (hr/index.php): left column becomes 2 field pairs per row --- */
body.fd-modern #dlg #staffForm > table > tbody > tr > td > table > tbody > tr > td[style*="384px"] { width: 58% !important; padding-right: 18px; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table { display: grid; grid-template-columns: max-content minmax(130px, 1fr) max-content minmax(130px, 1fr); column-gap: 12px; row-gap: 7px; align-items: center; width: 100% !important; box-sizing: border-box; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody, body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr { display: contents; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr[style*="display: none"], body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr[style*="display:none"] { display: none !important; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr[style*="table-row"] { display: contents !important; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr > td { display: block; padding: 0; min-width: 0; width: auto !important; height: auto !important; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr > td:first-child { font-size: 12.5px; color: var(--fd-muted); white-space: nowrap; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr > td:first-child font { font-size: 12.5px !important; font-family: inherit !important; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr > td > input[type="text"],
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr > td > select { width: 100% !important; box-sizing: border-box; height: 32px; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr > td > .combo { width: 100% !important; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr > td:has(> a.l-btn) { display: flex; align-items: center; gap: 6px; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr > td:has(> a.l-btn) > .combo { flex: 1 1 auto; width: auto !important; min-width: 0; }
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr > td > a.l-btn { flex: 0 0 auto; height: 30px; }
/* right column: photo + payroll fields */
body.fd-modern #dlg #staffForm td[style*="384px"] + td > table { width: 100%; }
body.fd-modern #dlg #staffForm td[style*="384px"] + td > table > tbody > tr > td { padding: 3px 4px; }
body.fd-modern #dlg #staffForm td[style*="384px"] + td > table > tbody > tr > td:first-child font { font-size: 12.5px !important; font-family: inherit !important; color: var(--fd-muted) !important; }
body.fd-modern #dlg #staffForm td[style*="384px"] + td > table > tbody > tr > td > input[type="text"] { width: 100%; box-sizing: border-box; height: 32px; }
body.fd-modern #dlg #staffForm img#staff_image { border-radius: 8px; border: 1px solid var(--fd-border); object-fit: cover; }
/* --- Asset Details dialog (accounts/assets_management.php): two label/field pairs per row --- */
body.fd-modern .fd-asset-dlg { padding: 8px 16px !important; }
body.fd-modern .fd-asset-dlg #assetForm { display: block; }
body.fd-modern .fd-asset-dlg #assetForm > table { display: grid; grid-template-columns: max-content minmax(150px, 1fr) max-content minmax(150px, 1fr); column-gap: 14px; row-gap: 7px; align-items: center; width: 100% !important; float: none !important; margin: 0 0 14px !important; box-sizing: border-box; border-spacing: 0; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody, body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr { display: contents; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr[style*="display: none"], body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr[style*="display:none"] { display: none !important; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr[style*="table-row"] { display: contents !important; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td { display: block; padding: 0; min-width: 0; width: auto !important; height: auto !important; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:first-child { font-size: 12.5px; color: var(--fd-muted); white-space: nowrap; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:first-child font { font-size: 12.5px !important; font-family: inherit !important; color: inherit !important; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:first-child div { text-align: left !important; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child { display: flex; align-items: center; gap: 6px; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > input[type="text"],
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > input:not([type]),
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > textarea,
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > .combo,
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > .spinner,
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > .validatebox-text,
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > .textbox { flex: 1 1 auto; width: auto !important; min-width: 0; box-sizing: border-box; margin: 0; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > input:not([type="checkbox"]):not(.combo-text) { height: 32px; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > textarea { height: 34px; min-height: 34px; resize: vertical; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > input[readonly] { background: #f8fafc; border: 1px solid var(--fd-border-strong) !important; box-shadow: none !important; }
body.fd-modern .fd-asset-dlg #assetForm > table > tbody > tr > td:last-child > input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex: 0 0 auto; }
body.fd-modern .fd-asset-dlg #assetForm > table::before { grid-column: 1 / -1; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fd-primary); padding-bottom: 4px; border-bottom: 1px solid var(--fd-border); }
body.fd-modern .fd-asset-dlg #assetForm > table:nth-of-type(1)::before { content: "Asset"; }
body.fd-modern .fd-asset-dlg #assetForm > table:nth-of-type(2)::before { content: "Purchase Details"; }
/* the second table only shows when one of its rows is visible */
body.fd-modern .fd-asset-dlg #assetForm > table:nth-of-type(2):not(:has(> tbody > tr:not([style*="display: none"]):not([style*="display:none"]))) { display: none; }
body.fd-modern .fd-asset-dlg div[style*="italic"] { font-style: normal !important; font-weight: 400 !important; font-size: 12px; color: var(--fd-muted); margin-top: 2px; }
body.fd-modern .fd-asset-dlg div[style*="italic"] br { display: none; }
body.fd-modern a.l-btn.fd-inline-add { height: 30px; width: 30px; padding: 0; justify-content: center; flex: 0 0 auto; }
body.fd-modern a.l-btn.fd-inline-add .l-btn-text { padding: 0 !important; }
body.fd-modern a.l-btn.fd-inline-add .l-btn-icon-left, body.fd-modern a.l-btn.fd-inline-add .l-btn-text { margin: 0; }
/* --- Add Leave dialog (hr/Employeeleavemanagement.php) --- */
body.fd-modern #dlgAddLeave table { width: 100%; border-spacing: 0; }
body.fd-modern #dlgAddLeave table > tbody > tr > td { padding: 3px 4px; }
body.fd-modern #dlgAddLeave table > tbody > tr > td:first-child { width: 38%; font-size: 12.5px; color: var(--fd-muted); }
body.fd-modern #dlgAddLeave table > tbody > tr > td > input[type="text"], body.fd-modern #dlgAddLeave table > tbody > tr > td > input[type="number"] { width: 100%; box-sizing: border-box; height: 32px; }
body.fd-modern #dlgAddLeave table > tbody > tr > td > .combo { width: 100% !important; }
body.fd-modern #dlgAddLeave table > tbody > tr:last-child { display: none; }
/* --- Partial Payment dialog (hr/salaries.php) --- */
body.fd-modern #newbalancedlg form > table { width: 100%; border-spacing: 0; }
body.fd-modern #newbalancedlg form > table > tbody > tr > td { padding: 3px 4px; }
body.fd-modern #newbalancedlg form > table > tbody > tr > td:first-child { width: 36%; font-size: 12.5px; color: var(--fd-muted); }
/* --- PAYE setup dialog (hr/adminallowance.php) --- */
body.fd-modern #dlgpaye .datagrid { width: 100% !important; }
body.fd-modern #dlgpaye #tbpaye { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
body.fd-modern #dlgpaye #tbpaye > span { display: inline-flex; align-items: center; gap: 6px; }
body.fd-modern #dlgpaye #tbpaye > span[style*="float"] { float: none !important; margin-left: auto; }
/* --- a main grid whose title bar was dropped (the page header names the page) --- */
body.fd-modern .datagrid.fd-no-title > .panel-body { border-top-left-radius: var(--fd-radius); border-top-right-radius: var(--fd-radius); }
/* rows the page hides with a stylesheet rule (.contract) stay hidden until the page JS shows them inline */
body.fd-modern #dlg #staffForm td[style*="384px"] > table > tbody > tr.contract:not([style*="table-row"]) { display: none !important; }
/* --- settings forms: a real two-column layout -----------------------------
The legacy markup faked alignment with a hand-tuned margin-left on every
input (58px, 53px, 48px, 84px, 92px ...) plus runs of , so the fields
landed anywhere between x=325 and x=367. Those are stripped from the markup;
these rules give the labels one column and the fields another. */
body.fd-modern form#currentsettings td > label {
display: inline-block;
min-width: 240px;
vertical-align: middle;
color: var(--fd-text-2);
}
/* headings and the stacked (textarea / upload) rows keep their own width */
body.fd-modern form#currentsettings td > label:has(strong),
body.fd-modern form#currentsettings td > label:has(br) {
min-width: 0;
display: block;
margin-bottom: 4px;
}
body.fd-modern form#currentsettings input[type="text"],
body.fd-modern form#currentsettings input[type="password"],
body.fd-modern form#currentsettings input[type="email"],
body.fd-modern form#currentsettings select {
width: 300px;
vertical-align: middle;
}
body.fd-modern form#currentsettings textarea { width: 545px; max-width: 100%; }
/* section headings ("HOTEL DETAILS", "Confirmation Email Text" ...) */
body.fd-modern form#currentsettings td[colspan] > font > strong,
body.fd-modern form#currentsettings td[colspan] > strong {
display: block;
margin: 14px 0 2px;
padding-bottom: 6px;
border-bottom: 1px solid var(--fd-border);
font-size: 12px;
font-weight: 600;
letter-spacing: .04em;
text-transform: uppercase;
color: var(--fd-text);
}
/* --- events.php Event Details: fixed column layout requested 2026-09-12 (events page only: it alone has #UsedServicestobe) --- */
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table::before, body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table::before { grid-row: 1; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#EventType) > td:first-child { grid-column: 1; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#EventType) > td:last-child { grid-column: 2; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#EventName) > td:first-child { grid-column: 1; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#EventName) > td:last-child { grid-column: 2; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#Organisation) > td:first-child { grid-column: 1; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#Organisation) > td:last-child { grid-column: 2; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#Designation) > td:first-child { grid-column: 1; grid-row: 5; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#Designation) > td:last-child { grid-column: 2; grid-row: 5; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#NoofParticipants) > td:first-child { grid-column: 3; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#NoofParticipants) > td:last-child { grid-column: 4; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#StartDate) > td:first-child { grid-column: 3; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#StartDate) > td:last-child { grid-column: 4; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#ClosingDate) > td:first-child { grid-column: 3; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#ClosingDate) > td:last-child { grid-column: 4; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#NumberofDays) > td:first-child { grid-column: 3; grid-row: 5; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#NumberofDays) > td:last-child { grid-column: 4; grid-row: 5; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#Starttime) > td:first-child { grid-column: 5; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#Starttime) > td:last-child { grid-column: 6; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#EndTime) > td:first-child { grid-column: 5; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#EndTime) > td:last-child { grid-column: 6; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#ContactPerson) > td:first-child { grid-column: 7; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#ContactPerson) > td:last-child { grid-column: 8; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#Phonecontacts) > td:first-child { grid-column: 7; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#Phonecontacts) > td:last-child { grid-column: 8; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#EmailPerson) > td:first-child { grid-column: 7; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#EmailPerson) > td:last-child { grid-column: 8; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#client_address) > td:first-child { grid-column: 5; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#client_address) > td:last-child { grid-column: 6; grid-row: 4 / span 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#client_address) > td:first-child { align-self: start; padding-top: 8px; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#client_address) > td:last-child > textarea { height: 100%; min-height: 66px; box-sizing: border-box; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr:has(#SavethisEvent) > td:last-child { grid-column: 7 / 9; grid-row: 5; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#AdditionalServicestobe) > td:first-child { grid-column: 1; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#AdditionalServicestobe) > td:last-child { grid-column: 2; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#UsedServicestobe) > td:first-child { grid-column: 1; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#UsedServicestobe) > td:last-child { grid-column: 2; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#dg_taxes) > td:first-child { grid-column: 1; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#dg_taxes) > td:last-child { grid-column: 2; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#OverallTotaltobe_2) > td:first-child { grid-column: 3; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#OverallTotaltobe_2) > td:last-child { grid-column: 4; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#AmountPaid) > td:first-child { grid-column: 3; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#AmountPaid) > td:last-child { grid-column: 4; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#RemainingBalance) > td:first-child { grid-column: 3; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#RemainingBalance) > td:last-child { grid-column: 4; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#Vattobe) > td:first-child { grid-column: 5; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#Vattobe) > td:last-child { grid-column: 6; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#TotalAmounttobe) > td:first-child { grid-column: 5; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#TotalAmounttobe) > td:last-child { grid-column: 6; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#remark) > td:first-child { grid-column: 5; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#remark) > td:last-child { grid-column: 6; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#merge_frontdesk) > td:first-child { grid-column: 7; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#merge_frontdesk) > td:last-child { grid-column: 8; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#package) > td:first-child { grid-column: 7; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#package) > td:last-child { grid-column: 8; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr > td:has(> input[type="button"]):not(:has(#SavethisEvent)) { grid-row: 5; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table::before { content: "Totals"; }
/* Settle buttons (events.php: Events Services / POS services toolbars) are payments,
not deletions - violet instead of the red that icon-remove would otherwise give them */
body.fd-modern a.l-btn[onclick*="settle_"] .l-btn-text,
body.fd-modern a.l-btn[onClick*="settle_"] .l-btn-text { color: #6d28d9 !important; }
body.fd-modern a.l-btn[onclick*="settle_"]:hover,
body.fd-modern a.l-btn[onClick*="settle_"]:hover { background: #f5f3ff !important; border-color: #c4b5fd !important; }
/* ==========================================================================
11. Prospects page (frontdesk/frontdesk-quotation-independent.php)
========================================================================== */
body.fd-modern .iq-wrap { padding: 0 !important; height: auto !important; }
body.fd-modern .iq-wrap #iq-list-section { height: auto; }
body.fd-modern #iq-kpis { margin-left: auto; flex: 0 1 600px; }
body.fd-modern .fd-kpi.iq-tab-btn.active { border-color: var(--fd-primary); background: var(--fd-primary-50); box-shadow: 0 0 0 2px rgba(37, 99, 235, .15); }
body.fd-modern .fd-kpi.iq-tab-btn.active .fd-kpi-label { color: var(--fd-primary-600); }
body.fd-modern .fd-kpi-value.iq-tab-count.zero { color: var(--fd-faint); }
body.fd-modern .iq-deleted-btn { color: var(--fd-red); }
body.fd-modern .iq-deleted-btn:hover { background: #fef2f2; border-color: #fca5a5; }
/* detail dialog: the two side-by-side tables become stacked sections, 4 label/field pairs per row */
body.fd-modern #iqDetailDialog .EventNo { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--fd-muted); margin: 0 0 4px; }
body.fd-modern #iqDetailDialog .EventNo label { font-weight: 600; color: var(--fd-text-2); }
body.fd-modern #iqDetailDialog .EventNo input#iq_quotation_ref_display { width: 90px !important; height: 26px; font-weight: 700; color: var(--fd-text); background: transparent; box-shadow: none; padding: 0; }
body.fd-modern #iqDetailDialog form#iqClientForm > table,
body.fd-modern #iqDetailDialog form#iqClientForm > table > tbody,
body.fd-modern #iqDetailDialog form#iqClientForm > table > tbody > tr,
body.fd-modern #iqDetailDialog form#iqClientForm > table > tbody > tr > td { display: block; width: 100%; padding: 0; }
body.fd-modern #iqDetailDialog form#iqClientForm > table > tbody > tr > td:has(> img) { display: none; }
body.fd-modern #iqDetailDialog form#iqClientForm > table > tbody > tr > td + td:not(:has(> img)) { margin-top: 6px; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table { display: grid; grid-template-columns: repeat(4, max-content minmax(110px, 1fr)); column-gap: 12px; row-gap: 5px; align-items: center; width: 100%; box-sizing: border-box; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody, body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr { display: contents; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr[style*="display: none"], body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr[style*="display:none"] { display: none !important; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr[style*="table-row"] { display: contents !important; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr > td { display: block; padding: 0; min-width: 0; width: auto !important; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr > td:first-child { font-size: 12.5px; color: var(--fd-muted); white-space: nowrap; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr > td > input:not([type="button"]):not([type="hidden"]),
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr > td > select { width: 100% !important; box-sizing: border-box; height: 32px; margin: 0; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr > td > .combo { width: 100% !important; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr > td > input.summary { text-align: right; font-weight: 600; background: #f8fafc; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr > td[colspan] { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table > tbody > tr > td[colspan] > input[type="button"] { width: auto !important; }
body.fd-modern #iqDetailDialog form#iqClientForm td > table::before { grid-column: 1 / -1; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--fd-primary); padding-bottom: 2px; border-bottom: 1px solid var(--fd-border); }
body.fd-modern #iqDetailDialog form#iqClientForm > table > tbody > tr > td:nth-child(1) > table::before { content: "Client"; }
body.fd-modern #iqDetailDialog form#iqClientForm > table > tbody > tr > td:nth-child(3) > table::before { content: "Stay & totals"; }
body.fd-modern #iqDetailDialog #iq-services-section .datagrid { width: 100% !important; }
/* service line dialog */
body.fd-modern #iqServiceDialog table { width: 100%; border-spacing: 0; }
body.fd-modern #iqServiceDialog table > tbody > tr > td { padding: 3px 4px; }
body.fd-modern #iqServiceDialog table > tbody > tr > td:first-child { width: 40%; font-size: 12.5px; color: var(--fd-muted); }
body.fd-modern #iqServiceDialog table > tbody > tr > td > input:not([type="hidden"]), body.fd-modern #iqServiceDialog table > tbody > tr > td > select { width: 100%; box-sizing: border-box; height: 32px; }
body.fd-modern .fd-kpi-value.iq-tab-count { background: transparent !important; color: var(--fd-text); padding: 0; min-width: 0; border-radius: 0; line-height: 1; font-size: 18px; margin: 0; }
body.fd-modern .fd-kpi-value.iq-tab-count.zero { color: var(--fd-faint); }
body.fd-modern .fd-search input[type="text"] { padding-left: 30px !important; }
/* --- Front Desk Reservations: colourful action buttons (one tint per tool) --- */
body.fd-modern #toolbard .fd-actions .fd-btn { font-weight: 600; }
body.fd-modern #toolbard .fd-actions .fd-btn[onclick*="available_rooms"] { color: #0f766e; border-color: #99f6e4; background: #f0fdfa; }
body.fd-modern #toolbard .fd-actions .fd-btn[onclick*="available_rooms"]:hover { background: #ccfbf1; border-color: #5eead4; }
body.fd-modern #toolbard .fd-actions .fd-btn[onclick*="openCalender"] { color: #6d28d9; border-color: #ddd6fe; background: #f5f3ff; }
body.fd-modern #toolbard .fd-actions .fd-btn[onclick*="openCalender"]:hover { background: #ede9fe; border-color: #c4b5fd; }
body.fd-modern #toolbard .fd-actions .fd-btn[onclick*="roomschart"] { color: #b45309; border-color: #fde68a; background: #fffbeb; }
body.fd-modern #toolbard .fd-actions .fd-btn[onclick*="roomschart"]:hover { background: #fef3c7; border-color: #fcd34d; }
body.fd-modern #toolbard .fd-actions .fd-btn[onclick*="accDailySales"] { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
body.fd-modern #toolbard .fd-actions .fd-btn[onclick*="accDailySales"]:hover { background: #dcfce7; border-color: #86efac; }
body.fd-modern #toolbard .fd-actions .fd-btn[href*="website_bookings"] { color: #0369a1; border-color: #bae6fd; background: #f0f9ff; }
body.fd-modern #toolbard .fd-actions .fd-btn[href*="website_bookings"]:hover { background: #e0f2fe; border-color: #7dd3fc; }
body.fd-modern #toolbard .fd-actions .fd-btn svg { color: inherit; }
/* --- New Reservation dialog: slightly larger type --- */
body.fd-modern #dlg-quick-reservation .fd-field > label, body.fd-modern #dlg-quick-reservation .fd-field > .fd-label { font-size: 13.5px; }
body.fd-modern #dlg-quick-reservation .fd-field .fd-control > input, body.fd-modern #dlg-quick-reservation .fd-field .fd-control > select,
body.fd-modern #dlg-quick-reservation .fd-field .fd-control > textarea, body.fd-modern #dlg-quick-reservation .combo .combo-text,
body.fd-modern #dlg-quick-reservation .fd-checkline, body.fd-modern #dlg-quick-reservation .fd-field.fd-check > label { font-size: 14px !important; }
body.fd-modern #dlg-quick-reservation .fd-section-title { font-size: 12.5px; }
/* --- New Reservation dialog: fit on one screen (no scrolling) ---------------
The dialog used to stack ~950px of fields in an 800px-wide window, so on a
laptop (768px tall) its body hit the 100vh-150px cap and scrolled. It is now
wider and denser instead: the main column lays its fields out three across,
the side column two across (Tax/Service/VIP and the Photo on the left, Purpose
of Visit on the right, Res No/Code spanning both), and the vertical rhythm is
tightened. Markup and ids are unchanged; below 1200px viewports the original
stacked layout is kept. */
body.fd-modern #dlg-quick-reservation .fd-quickres-layout { grid-template-columns: minmax(0, 1fr) 440px; gap: 16px; }
body.fd-modern #dlg-quick-reservation .fd-form { gap: 8px; }
body.fd-modern #dlg-quick-reservation .fd-quickres-main { gap: 8px; }
body.fd-modern #dlg-quick-reservation .fd-form .fd-section { gap: 6px; }
body.fd-modern #dlg-quick-reservation .fd-form .fd-section-title { padding-bottom: 4px; }
body.fd-modern #dlg-quick-reservation .fd-form .fd-grid { gap: 6px 14px; }
body.fd-modern #dlg-quick-reservation .fd-field > label, body.fd-modern #dlg-quick-reservation .fd-field > .fd-label { margin-bottom: 3px; }
/* main column: three fields per row */
body.fd-modern #dlg-quick-reservation .fd-quickres-main .fd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Address no longer needs two cells - one of three is as wide as one of two was */
body.fd-modern #dlg-quick-reservation .fd-quickres-main .fd-field.fd-span-2:has(> .fd-control > #quick-address) { grid-column: span 1; }
/* controls a touch shorter; textareas fixed so rows stay even */
body.fd-modern #dlg-quick-reservation .fd-field .fd-control > input:not([type="checkbox"]),
body.fd-modern #dlg-quick-reservation .fd-field .fd-control > select,
body.fd-modern #dlg-quick-reservation .fd-field .fd-control > .combo,
body.fd-modern #dlg-quick-reservation .fd-field .fd-control > .validatebox-text,
body.fd-modern #dlg-quick-reservation .validatebox-text,
body.fd-modern #dlg-quick-reservation .numberbox { height: 30px !important; }
body.fd-modern #dlg-quick-reservation .combo .combo-text { height: 28px !important; line-height: 28px !important; }
body.fd-modern #dlg-quick-reservation .combo .combo-arrow, body.fd-modern #dlg-quick-reservation .combo .datebox-arrow { height: 28px !important; }
body.fd-modern #dlg-quick-reservation .fd-field .fd-control > textarea { height: 56px !important; min-height: 56px; resize: none; }
body.fd-modern #dlg-quick-reservation .fd-field .fd-checkline { min-height: 30px; }
body.fd-modern #dlg-quick-reservation .fd-field.fd-check-field { padding-top: 19px; }
/* side column: two across */
body.fd-modern #dlg-quick-reservation .fd-quickres-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; gap: 8px 14px; align-items: start; }
body.fd-modern #dlg-quick-reservation .fd-quickres-side > .fd-resno { grid-column: 1 / -1; padding: 8px 12px; }
body.fd-modern #dlg-quick-reservation .fd-quickres-side > .fd-grid-1 { grid-column: 1; grid-row: 2; }
body.fd-modern #dlg-quick-reservation .fd-quickres-side > .fd-section { grid-column: 2; grid-row: 2 / span 3; }
body.fd-modern #dlg-quick-reservation .fd-quickres-side > .fd-photo { grid-column: 1; grid-row: 3; padding: 10px; gap: 6px; }
body.fd-modern #dlg-quick-reservation .fd-quickres-side > .fd-photo-actions { grid-column: 1; grid-row: 4; }
body.fd-modern #dlg-quick-reservation .fd-photo img, body.fd-modern #dlg-quick-reservation .fd-photo video, body.fd-modern #dlg-quick-reservation .fd-photo canvas { max-width: 140px; }
/* narrower screens: the original stacked layout, dialog kept inside the viewport */
@media (max-width: 1199px) {
body.fd-modern .window:has(> #dlg-quick-reservation) { width: calc(100vw - 40px) !important; left: 20px !important; }
body.fd-modern #dlg-quick-reservation { width: auto !important; }
body.fd-modern #dlg-quick-reservation .fd-quickres-layout { grid-template-columns: minmax(0, 1fr) 232px; }
body.fd-modern #dlg-quick-reservation .fd-quickres-main .fd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.fd-modern #dlg-quick-reservation .fd-quickres-main .fd-field.fd-span-2:has(> .fd-control > #quick-address) { grid-column: span 2; }
body.fd-modern #dlg-quick-reservation .fd-quickres-side { display: flex; flex-direction: column; }
}
/* New Reservation (2026-09-28): Client details and Stay details are three stacked
columns (.fd-col) inside the 3-column grid, so a field the page hides (agent,
particulars, payment duration, rate amount...) closes up its own column instead of
leaving a hole in a shared row. Special requirements / Notifications stay as the
grid's last row. Below 1200px the grid is 2 columns and column 3 wraps under 1. */
.fd-form .fd-grid > .fd-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
body.fd-modern #dlg-quick-reservation .fd-form .fd-grid > .fd-col { gap: 6px; }
body.fd-modern #dlg-quick-reservation .fd-grid > .fd-col > .fd-field.fd-check-field { padding-top: 2px; }
/* events.php: Confirm / Update now share the payment-buttons row (full width, right aligned) */
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#UpdatethisEvent) > td:last-child { grid-column: 1 / -1; grid-row: 5; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#UpdatethisEvent) > td:last-child input[type="button"] { width: auto !important; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform > table > tbody > tr:has(#UpdatethisEvent) > td:last-child br { display: none; }
/* events.php Event Details: toolbar line = Close Folio button + Event No at the right; no EVENT heading */
body.fd-modern #dlgNewReservation > .dialog-toolbar { display: flex; align-items: center; gap: 10px; padding: 6px 14px !important; }
body.fd-modern #dlgNewReservation > .dialog-toolbar .EventNo { margin: 0 0 0 auto !important; }
body.fd-modern #dlgNewReservation > .dialog-toolbar .EventNo label { font-size: 12.5px; color: var(--fd-muted); font-weight: 500; }
body.fd-modern #dlgNewReservation > .dialog-toolbar .EventNo input#viewEventNo { font-size: 15px; width: 70px !important; }
body.fd-modern #dlgNewReservation > .dialog-toolbar a.l-btn#btnCloseFolio { background: var(--fd-primary); border-color: var(--fd-primary-600); box-shadow: 0 1px 2px rgba(37, 99, 235, .35); padding: 0 6px; }
body.fd-modern #dlgNewReservation > .dialog-toolbar a.l-btn#btnCloseFolio .l-btn-text { color: #fff !important; font-weight: 600; }
body.fd-modern #dlgNewReservation > .dialog-toolbar a.l-btn#btnCloseFolio .l-btn-icon-left { filter: brightness(0) invert(1); }
body.fd-modern #dlgNewReservation > .dialog-toolbar a.l-btn#btnCloseFolio:hover { background: var(--fd-primary-600); }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table::before { display: none; }
/* Confirm & Proceed (new events) stands out */
body.fd-modern #dlgNewReservation input#SavethisEvent { background: #16a34a !important; border-color: #15803d !important; color: #fff !important; font-weight: 600; padding: 0 16px; height: 34px; box-shadow: 0 1px 2px rgba(22, 163, 74, .35); }
body.fd-modern #dlgNewReservation input#SavethisEvent:hover { background: #15803d !important; }
/* --- hover notice on the Blocked folio chip (frontdesk/events.php) --- */
body.fd-modern .fd-chip.fd-chip-blocked { cursor: help; }
.fd-tip { position: fixed; z-index: 99999; max-width: 360px; background: #1f2937; color: #f8fafc; font-size: 12.5px; line-height: 1.45; padding: 10px 12px; border-radius: 8px; box-shadow: 0 10px 30px rgba(15, 23, 42, .35); pointer-events: none; opacity: 0; transition: opacity .12s; }
.fd-tip.is-on { opacity: 1; }
.fd-tip b { display: block; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #fca5a5; margin-bottom: 4px; }
/* Events & Banqueting only. The Front Desk dialog reuses these same field ids, so every
rule here is gated on markers that exist on the Events page alone (tr.ev-venue-amount,
tr.ev-packages). Layout: Venue Amount, Event Services and POS Services run down the
first column; Tax Applicable takes the slot Packages vacated; Refund keeps its place
beside Remarks; Packages moves up beside the event details, under Email. */
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr.ev-venue-amount > td:first-child { grid-column: 1; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr.ev-venue-amount > td:last-child { grid-column: 2; grid-row: 2; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr:has(#AdditionalServicestobe) > td:first-child { grid-column: 1; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr:has(#AdditionalServicestobe) > td:last-child { grid-column: 2; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr:has(#UsedServicestobe) > td:first-child { grid-column: 1; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr:has(#UsedServicestobe) > td:last-child { grid-column: 2; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr:has(#dg_taxes) > td:first-child { grid-column: 7; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr:has(#dg_taxes) > td:last-child { grid-column: 8; grid-row: 3; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr#row_refund > td:first-child { grid-column: 5; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr#row_refund > td:last-child { grid-column: 6; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr.ev-packages:has(#package) > td:first-child { grid-column: 7; grid-row: 4; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr.ev-packages:has(#package) > td:last-child { grid-column: 8; grid-row: 4; justify-self: start; }
/* Packages sits under Tax Applicable, so the buttons keep the whole row below */
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Totalform:has(tr.ev-venue-amount) > table > tbody > tr:has(#UpdatethisEvent) > td:last-child { grid-column: 1 / -1; }
/* Remarks moved up beside the event details, under Email. The stock rule pins it into
the totals grid by id, so this repeats that :has(#remark) weight and adds the
Events-only marker class; the Front Desk dialog keeps its own placement. */
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr.ev-remarks:has(#remark) > td:first-child { grid-column: 7; grid-row: 5; }
body.fd-modern #dlgNewReservation:has(#UsedServicestobe) form#Eventform > table > tbody > tr.ev-remarks:has(#remark) > td:last-child { grid-column: 8; grid-row: 5; }
/* ==========================================================================
Reservation dialog (#dlg-quick-reservation): compulsory fields + Edit layout
(2026-10-01)
--------------------------------------------------------------------------
Compulsory fields carry a red star: .fd-req always, .fd-req-new only while
creating, .fd-req-edit only while editing (Tax / Service Charge are checked
by updateQuickReservation, Apartment or Office by saveQuickReservation).
Edit Reservation shows only a dozen of the dialog's fields (everything with
.quick-client_details is hidden), which left the three-column New layout
full of holes and a mostly empty side column. events-modern.js tags the form
.fd-quickres--edit on Edit and the dialog becomes one narrower column of
sections whose fields simply flow four to a row in their source order:
a hidden field closes the row up instead of leaving a gap, whatever the
client type or settings.stay_type (1 = hotel, 2 = apartments / offices,
which adds Apartment or Office, Particulars, Payment duration and the
week / month count). The New Reservation layout is untouched.
========================================================================== */
body.fd-modern #dlg-quick-reservation .fd-field.fd-req > label::after,
body.fd-modern #dlg-quick-reservation .fd-quickres:not(.fd-quickres--edit) .fd-field.fd-req-new > label::after,
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-field.fd-req-edit > label::after {
content: "*";
order: 1;
margin-left: -3px;
color: var(--fd-red);
font-size: 15px;
font-weight: 700;
line-height: 1;
}
body.fd-modern #dlg-quick-reservation .fd-field > label > .tooltip-icon-remove { order: 2; }
body.fd-modern .dialog-button .fd-req-note { float: left; line-height: 30px; font-size: 12.5px; color: var(--fd-muted); }
body.fd-modern .dialog-button .fd-req-note b { color: var(--fd-red); font-size: 15px; font-weight: 700; }
.fd-form .fd-edit-only { display: none; }
/* ---- Edit layout ---- */
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-main,
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-side,
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-grid > .fd-col { display: contents; }
/* reading order: which reservation -> client -> stay -> tax -> audit line */
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-side > * { grid-column: auto; grid-row: auto; }
/* Stay details: under stay_type 2 the New layout leads with the occupancy, so the
source order differs; Edit keeps dates -> nights -> payment plan -> pax in both. */
body.fd-modern #dlg-quick-reservation .fd-quickres--edit #quick-StartDate_section { order: 1; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit #quick-ClosingDate_section { order: 2; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit #quick-NumberofDays_section { order: 3; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit #checkin_type_section { order: 4; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit #duration_count { order: 5; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit #quick-reservation-no_of_adults_section { order: 6; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-resno { order: 1; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-main > .fd-section { order: 2; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-charges { order: 3; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-meta { order: 4; }
/* nothing here applies to an existing folio: purpose of visit and the ID photo */
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-side > .fd-section,
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-photo,
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-photo-actions { display: none !important; }
/* Apartment or Office and Particulars are captured when the reservation is created;
Edit neither loads nor saves them, so they are not offered there. */
body.fd-modern #dlg-quick-reservation .fd-quickres--edit #o_or_a_section,
body.fd-modern #dlg-quick-reservation .fd-quickres--edit #particulars_section { display: none !important; }
/* four fields to a row, in every section */
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-main .fd-grid,
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-charges { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-main .fd-field.fd-span-2,
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-main .fd-field.fd-span-2:has(> .fd-control > #quick-address) { grid-column: span 1; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-charges > .fd-edit-only { display: flex; grid-column: 1 / -1; margin-bottom: -4px; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-charges > .fd-field.fd-check-field { padding-top: 19px; }
/* Res. No / Code: a compact read-only line, not a full-width box */
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-resno { display: flex; align-items: center; gap: 22px; justify-self: start; padding: 6px 12px; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-resno .fd-field { display: flex; align-items: center; gap: 8px; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-resno .fd-field > label { margin-bottom: 0; white-space: nowrap; }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-resno .fd-control > input { width: 96px !important; flex: 0 0 auto; }
@media (max-width: 1199px) {
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-layout { grid-template-columns: minmax(0, 1fr); }
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-main .fd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-main .fd-grid,
body.fd-modern #dlg-quick-reservation .fd-quickres--edit .fd-quickres-charges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---- New Reservation, Organisation / Travel Agent (.fd-quickres--org): the same
compact single-column arrangement as Edit (generated from the Edit block above;
Particulars is kept because it is captured at creation). .fd-quickres--nostay, set
for an Organisation folio under settings.stay_type = 2, removes the Stay details
section: such a folio is opened without dates / rate / pax and gets its guests later. */
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-main,
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-side,
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-grid > .fd-col { display: contents; }
/* reading order: which reservation -> client -> stay -> tax -> audit line */
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-side > * { grid-column: auto; grid-row: auto; }
/* Stay details: under stay_type 2 the New layout leads with the occupancy, so the
source order differs; Edit keeps dates -> nights -> payment plan -> pax in both. */
body.fd-modern #dlg-quick-reservation .fd-quickres--org #quick-StartDate_section { order: 1; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org #quick-ClosingDate_section { order: 2; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org #quick-NumberofDays_section { order: 3; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org #checkin_type_section { order: 4; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org #duration_count { order: 5; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org #quick-reservation-no_of_adults_section { order: 6; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-resno { order: 1; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-main > .fd-section { order: 2; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-charges { order: 3; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-meta { order: 4; }
/* nothing here applies to an existing folio: purpose of visit and the ID photo */
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-side > .fd-section,
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-photo,
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-photo-actions { display: none !important; }
/* four fields to a row, in every section */
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-main .fd-grid,
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-charges { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-main .fd-field.fd-span-2,
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-main .fd-field.fd-span-2:has(> .fd-control > #quick-address) { grid-column: span 1; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-charges > .fd-edit-only { display: flex; grid-column: 1 / -1; margin-bottom: -4px; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-charges > .fd-field.fd-check-field { padding-top: 19px; }
/* Res. No / Code: a compact read-only line, not a full-width box */
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-resno { display: flex; align-items: center; gap: 22px; justify-self: start; padding: 6px 12px; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-resno .fd-field { display: flex; align-items: center; gap: 8px; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-resno .fd-field > label { margin-bottom: 0; white-space: nowrap; }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-resno .fd-control > input { width: 96px !important; flex: 0 0 auto; }
@media (max-width: 1199px) {
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-layout { grid-template-columns: minmax(0, 1fr); }
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-main .fd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-main .fd-grid,
body.fd-modern #dlg-quick-reservation .fd-quickres--org .fd-quickres-charges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.fd-modern #dlg-quick-reservation .fd-quickres--org.fd-quickres--nostay .fd-quickres-main > .fd-section:has(#quick-StartDate_section) { display: none !important; }