/* ========================================================================== 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 /
layouts with coloured
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; }