feat: add room-planner app — 3-day HK room view with NewBook integration
NewBook-connected daily housekeeping planner. Replaces the hotelhubmodule-housekeeping-dailylist WordPress plugin. LXC 120 · 10.10.10.120:3080 · slug: room-planner. - 3-day booking window (yesterday/today/tomorrow) fetched live from NewBook - Task completion ticks back to NewBook; room status patches NewBook directly - 23px border sliver CSS system for adjacent-day booking status - 3-state filter cycling (off→inclusive→exclusive) for categories and flow types - Stat filters for outstanding tasks and clean/dirty status - Rolling 48h activity log with checkout/checkin/status/tasks events - newbook_pings event bus for future NewBook poller integration - Room modal with permission-gated guest/rate/notes, task checkboxes, status buttons - Placeholder sections for future linen-count and routine-tasks modules - Settings page: task type colours, twin/extra-bed detection, category exclusions - Mobile-first layout (sidebar desktop, compact top bar mobile) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
commit
1e658b6a48
39 changed files with 3765 additions and 0 deletions
903
frontend/src/index.css
Normal file
903
frontend/src/index.css
Normal file
|
|
@ -0,0 +1,903 @@
|
|||
/* Stack design system tokens */
|
||||
:root {
|
||||
--navy: #1a1a2e;
|
||||
--gold: #c9a84c;
|
||||
--body-bg: #f4f5f7;
|
||||
--card-bg: #ffffff;
|
||||
--text-primary: #1a1a2e;
|
||||
--text-muted: #6b7280;
|
||||
--border: #e5e7eb;
|
||||
--radius: 8px;
|
||||
--shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
|
||||
--shadow-md: 0 4px 12px rgba(0,0,0,0.12);
|
||||
|
||||
/* App theme */
|
||||
--app-primary: #2d6a4f;
|
||||
--app-primary-light: #40916c;
|
||||
--app-primary-dark: #1b4332;
|
||||
|
||||
/* Booking status colours */
|
||||
--col-arrived: #3b82f6;
|
||||
--col-confirmed: #10b981;
|
||||
--col-unconfirmed: #f59e0b;
|
||||
--col-departed: #a855f7;
|
||||
--col-blocked: #6b7280;
|
||||
--col-cancelled: #94a3b8;
|
||||
|
||||
/* Planner layout */
|
||||
--sidebar-w: 240px;
|
||||
--topbar-h: 56px;
|
||||
--card-h: 72px;
|
||||
--sliver-w: 23px;
|
||||
}
|
||||
|
||||
*, *::before, *::after { box-sizing: border-box; }
|
||||
|
||||
html, body, #root {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
background: var(--body-bg);
|
||||
color: var(--text-primary);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* ── Scrollbars ─────────────────────────────────────────────── */
|
||||
::-webkit-scrollbar { width: 4px; height: 4px; }
|
||||
::-webkit-scrollbar-track { background: transparent; }
|
||||
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
|
||||
|
||||
/* ── Layout ─────────────────────────────────────────────────── */
|
||||
.app-shell {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
/* Sidebar (desktop) */
|
||||
.sidebar {
|
||||
width: var(--sidebar-w);
|
||||
background: var(--navy);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
overflow-y: auto;
|
||||
}
|
||||
.sidebar-logo {
|
||||
padding: 20px 16px 12px;
|
||||
color: var(--gold);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
letter-spacing: .05em;
|
||||
text-transform: uppercase;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.sidebar-logo svg { opacity: .8; }
|
||||
.sidebar-nav {
|
||||
flex: 1;
|
||||
padding: 8px 0;
|
||||
}
|
||||
.sidebar-nav a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 10px 16px;
|
||||
color: rgba(255,255,255,.65);
|
||||
text-decoration: none;
|
||||
font-size: 13.5px;
|
||||
transition: background .15s, color .15s;
|
||||
}
|
||||
.sidebar-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
|
||||
.sidebar-nav a.active { background: rgba(201,168,76,.1); color: var(--gold); }
|
||||
.sidebar-user {
|
||||
padding: 12px 16px;
|
||||
border-top: 1px solid rgba(255,255,255,.08);
|
||||
color: rgba(255,255,255,.45);
|
||||
font-size: 12px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
/* Mobile top bar */
|
||||
.top-bar {
|
||||
display: none;
|
||||
height: var(--topbar-h);
|
||||
background: var(--navy);
|
||||
color: #fff;
|
||||
align-items: center;
|
||||
padding: 0 12px;
|
||||
gap: 10px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.top-bar-title {
|
||||
flex: 1;
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--gold);
|
||||
}
|
||||
.top-bar-nav {
|
||||
display: flex;
|
||||
gap: 4px;
|
||||
}
|
||||
.top-bar-nav a {
|
||||
color: rgba(255,255,255,.6);
|
||||
padding: 6px 10px;
|
||||
border-radius: 6px;
|
||||
text-decoration: none;
|
||||
font-size: 12px;
|
||||
}
|
||||
.top-bar-nav a.active { color: var(--gold); }
|
||||
|
||||
.page-content {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
.sidebar { display: none; }
|
||||
.top-bar { display: flex; }
|
||||
}
|
||||
|
||||
/* ── Date bar ────────────────────────────────────────────────── */
|
||||
.date-bar {
|
||||
background: var(--card-bg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding: 8px 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.date-bar input[type="date"] {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--radius);
|
||||
padding: 5px 8px;
|
||||
font-size: 14px;
|
||||
color: var(--text-primary);
|
||||
background: var(--body-bg);
|
||||
}
|
||||
.date-nav-btn {
|
||||
background: none;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 5px 10px;
|
||||
cursor: pointer;
|
||||
color: var(--text-muted);
|
||||
font-size: 13px;
|
||||
transition: background .12s;
|
||||
}
|
||||
.date-nav-btn:hover { background: var(--body-bg); }
|
||||
.date-today-btn {
|
||||
background: var(--app-primary);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
padding: 5px 12px;
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
}
|
||||
.date-label {
|
||||
flex: 1;
|
||||
font-weight: 600;
|
||||
font-size: 14px;
|
||||
}
|
||||
.refresh-btn {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: var(--text-muted);
|
||||
padding: 4px;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
transition: color .12s;
|
||||
}
|
||||
.refresh-btn:hover { color: var(--app-primary); }
|
||||
.refresh-btn.spinning svg { animation: spin .7s linear infinite; }
|
||||
@keyframes spin { to { transform: rotate(360deg); } }
|
||||
|
||||
/* ── Filter bars ─────────────────────────────────────────────── */
|
||||
.filter-section {
|
||||
background: var(--card-bg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.filter-bar {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
overflow: hidden;
|
||||
}
|
||||
.filter-bar-scroll {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
padding: 6px 10px;
|
||||
overflow-x: auto;
|
||||
scroll-behavior: smooth;
|
||||
scrollbar-width: none;
|
||||
flex: 1;
|
||||
}
|
||||
.filter-bar-scroll::-webkit-scrollbar { display: none; }
|
||||
.filter-arrow {
|
||||
background: linear-gradient(to right, transparent, var(--card-bg) 40%);
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: var(--text-muted);
|
||||
padding: 0 6px;
|
||||
height: 100%;
|
||||
flex-shrink: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.filter-arrow.left { background: linear-gradient(to left, transparent, var(--card-bg) 40%); }
|
||||
|
||||
/* Filter chips */
|
||||
.filter-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--body-bg);
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
user-select: none;
|
||||
transition: all .12s;
|
||||
}
|
||||
.filter-chip:hover { border-color: var(--app-primary); color: var(--app-primary); }
|
||||
.filter-chip.inclusive {
|
||||
background: #d1fae5;
|
||||
border-color: var(--col-confirmed);
|
||||
color: #065f46;
|
||||
}
|
||||
.filter-chip.exclusive {
|
||||
background: #fee2e2;
|
||||
border-color: #ef4444;
|
||||
color: #991b1b;
|
||||
}
|
||||
.chip-count {
|
||||
background: rgba(0,0,0,.12);
|
||||
border-radius: 10px;
|
||||
padding: 1px 5px;
|
||||
font-size: 10px;
|
||||
min-width: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* Stat filter chips */
|
||||
.stat-chip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 5px;
|
||||
padding: 4px 10px;
|
||||
border-radius: 20px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--body-bg);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
user-select: none;
|
||||
transition: all .12s;
|
||||
}
|
||||
.stat-chip.show-only { background: #fffbeb; border-color: #f59e0b; color: #92400e; }
|
||||
.stat-chip.hide { background: #f3f4f6; border-color: #9ca3af; color: #374151; text-decoration: line-through; }
|
||||
|
||||
/* ── Planner body ────────────────────────────────────────────── */
|
||||
.planner-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* ── Category group ──────────────────────────────────────────── */
|
||||
.category-group {
|
||||
margin-bottom: 2px;
|
||||
}
|
||||
.category-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
padding: 6px 12px 5px;
|
||||
background: var(--body-bg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
cursor: pointer;
|
||||
user-select: none;
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
}
|
||||
.category-name {
|
||||
flex: 1;
|
||||
font-size: 12px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .06em;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.category-badge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 2px 6px;
|
||||
border-radius: 10px;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.badge-tasks { background: #fef3c7; color: #92400e; }
|
||||
.badge-dirty { background: #fee2e2; color: #991b1b; }
|
||||
.category-chevron { color: var(--text-muted); transition: transform .15s; }
|
||||
.category-chevron.open { transform: rotate(0deg); }
|
||||
.category-chevron.closed { transform: rotate(-90deg); }
|
||||
.category-rooms {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
gap: 1px;
|
||||
background: var(--border);
|
||||
}
|
||||
|
||||
/* ── Room card ───────────────────────────────────────────────── */
|
||||
.room-card {
|
||||
position: relative;
|
||||
background: var(--card-bg);
|
||||
min-height: var(--card-h);
|
||||
cursor: pointer;
|
||||
overflow: hidden;
|
||||
transition: box-shadow .12s;
|
||||
padding-left: var(--sliver-w);
|
||||
padding-right: var(--sliver-w);
|
||||
}
|
||||
.room-card:hover { box-shadow: var(--shadow-md); z-index: 1; }
|
||||
|
||||
/* Left sliver (previous day status) */
|
||||
.room-card[data-spans-previous="true"]::before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: var(--sliver-w);
|
||||
background: var(--prev-color, transparent);
|
||||
opacity: .7;
|
||||
}
|
||||
/* Right sliver (next day status) */
|
||||
.room-card[data-spans-next="true"]::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: var(--sliver-w);
|
||||
background: var(--next-color, transparent);
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
/* Blocked rooms — fill entire card */
|
||||
.room-card.blocked-room {
|
||||
background: var(--col-blocked);
|
||||
}
|
||||
.room-card.blocked-room .card-room-name,
|
||||
.room-card.blocked-room .card-status-dot { color: rgba(255,255,255,.85); }
|
||||
|
||||
/* Status indicator strip at top of card */
|
||||
.card-status-strip {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: var(--sliver-w);
|
||||
right: var(--sliver-w);
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
/* Card inner */
|
||||
.card-inner {
|
||||
padding: 7px 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 3px;
|
||||
height: 100%;
|
||||
}
|
||||
.card-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.card-room-name {
|
||||
font-size: 15px;
|
||||
font-weight: 700;
|
||||
color: var(--text-primary);
|
||||
flex: 1;
|
||||
}
|
||||
.card-badges {
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.card-badge {
|
||||
font-size: 9px;
|
||||
font-weight: 600;
|
||||
padding: 2px 5px;
|
||||
border-radius: 4px;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .04em;
|
||||
}
|
||||
.badge-twin { background: #e0e7ff; color: #3730a3; }
|
||||
.badge-extra { background: #fce7f3; color: #9d174d; }
|
||||
.badge-pax { background: #f3f4f6; color: #374151; }
|
||||
.badge-depart-time { background: #f5f3ff; color: #6d28d9; }
|
||||
|
||||
.card-mid {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.card-guest-name {
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.card-rate {
|
||||
font-size: 10px;
|
||||
color: var(--text-muted);
|
||||
background: #f9fafb;
|
||||
border-radius: 4px;
|
||||
padding: 1px 5px;
|
||||
}
|
||||
|
||||
.card-bottom {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
margin-top: auto;
|
||||
}
|
||||
.card-flow-label {
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .05em;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.card-clean-status {
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
padding: 2px 6px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.clean-dot { background: #d1fae5; color: #065f46; }
|
||||
.dirty-dot { background: #fee2e2; color: #991b1b; }
|
||||
|
||||
/* Task dots row */
|
||||
.card-task-dots {
|
||||
display: flex;
|
||||
gap: 3px;
|
||||
flex-wrap: wrap;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.task-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.task-dot.complete { opacity: .3; }
|
||||
|
||||
/* ── Room modal ──────────────────────────────────────────────── */
|
||||
.modal-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
background: rgba(0,0,0,.4);
|
||||
z-index: 100;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
padding: 0;
|
||||
animation: fade-in .15s ease;
|
||||
}
|
||||
@keyframes fade-in { from { opacity: 0; } }
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.modal-overlay {
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
.modal-sheet {
|
||||
background: var(--card-bg);
|
||||
border-radius: 16px 16px 0 0;
|
||||
width: 100%;
|
||||
max-height: 90vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
animation: slide-up .2s ease;
|
||||
}
|
||||
@keyframes slide-up { from { transform: translateY(30px); opacity: 0; } }
|
||||
|
||||
@media (min-width: 640px) {
|
||||
.modal-sheet {
|
||||
border-radius: 16px;
|
||||
max-width: 600px;
|
||||
max-height: 85vh;
|
||||
}
|
||||
}
|
||||
|
||||
.modal-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 16px 20px 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
gap: 12px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.modal-header-main { flex: 1; min-width: 0; }
|
||||
.modal-room-name {
|
||||
font-size: 20px;
|
||||
font-weight: 700;
|
||||
}
|
||||
.modal-status-badge {
|
||||
display: inline-block;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
padding: 2px 7px;
|
||||
border-radius: 4px;
|
||||
margin-top: 2px;
|
||||
}
|
||||
.modal-close {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: var(--text-muted);
|
||||
padding: 6px;
|
||||
border-radius: 8px;
|
||||
display: flex;
|
||||
}
|
||||
.modal-close:hover { background: var(--body-bg); }
|
||||
|
||||
.modal-body {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
/* Modal booking info bar */
|
||||
.modal-booking-bar {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
padding: 12px 20px;
|
||||
background: var(--body-bg);
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.modal-booking-field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
}
|
||||
.field-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
|
||||
.field-value { font-size: 13px; font-weight: 600; }
|
||||
|
||||
/* Modal section */
|
||||
.modal-section {
|
||||
padding: 14px 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.modal-section:last-child { border-bottom: none; }
|
||||
.modal-section-title {
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .06em;
|
||||
color: var(--text-muted);
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
/* Tasks in modal */
|
||||
.task-list { display: flex; flex-direction: column; gap: 6px; }
|
||||
.task-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 10px;
|
||||
border-radius: var(--radius);
|
||||
background: var(--body-bg);
|
||||
transition: background .12s;
|
||||
}
|
||||
.task-item:hover { background: #f0fdf4; }
|
||||
.task-checkbox {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 4px;
|
||||
border: 2px solid var(--border);
|
||||
background: var(--card-bg);
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
transition: all .12s;
|
||||
}
|
||||
.task-checkbox.checked {
|
||||
background: var(--app-primary);
|
||||
border-color: var(--app-primary);
|
||||
color: #fff;
|
||||
}
|
||||
.task-checkbox.loading { opacity: .5; }
|
||||
.task-label { font-size: 13px; flex: 1; }
|
||||
.task-label.done { text-decoration: line-through; color: var(--text-muted); }
|
||||
.task-rollover-tag {
|
||||
font-size: 9px;
|
||||
background: #fef3c7;
|
||||
color: #92400e;
|
||||
border-radius: 3px;
|
||||
padding: 1px 4px;
|
||||
}
|
||||
|
||||
/* Status update buttons in modal */
|
||||
.status-btn-row {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.status-btn {
|
||||
padding: 7px 16px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--body-bg);
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
transition: all .12s;
|
||||
}
|
||||
.status-btn.active-clean { background: #d1fae5; border-color: #10b981; color: #065f46; }
|
||||
.status-btn.active-dirty { background: #fee2e2; border-color: #ef4444; color: #991b1b; }
|
||||
.status-btn.active-inspected { background: #ede9fe; border-color: #8b5cf6; color: #5b21b6; }
|
||||
|
||||
/* Notes tabs */
|
||||
.notes-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
|
||||
.notes-tab {
|
||||
padding: 4px 12px;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border);
|
||||
background: var(--body-bg);
|
||||
cursor: pointer;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
.notes-tab.active { background: var(--app-primary); color: #fff; border-color: var(--app-primary); }
|
||||
.note-item {
|
||||
padding: 6px 10px;
|
||||
border-radius: 6px;
|
||||
background: var(--body-bg);
|
||||
font-size: 13px;
|
||||
margin-bottom: 4px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
.note-type-label { font-size: 10px; color: var(--text-muted); margin-bottom: 2px; }
|
||||
|
||||
/* Placeholder sections (linen, routine tasks) */
|
||||
.placeholder-section {
|
||||
padding: 14px 20px;
|
||||
border-top: 1px solid var(--border);
|
||||
opacity: .5;
|
||||
text-align: center;
|
||||
font-size: 12px;
|
||||
color: var(--text-muted);
|
||||
}
|
||||
|
||||
/* ── Activity panel ──────────────────────────────────────────── */
|
||||
.activity-panel {
|
||||
width: 260px;
|
||||
flex-shrink: 0;
|
||||
border-left: 1px solid var(--border);
|
||||
background: var(--card-bg);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
}
|
||||
.activity-panel-header {
|
||||
padding: 10px 12px;
|
||||
font-size: 11px;
|
||||
font-weight: 700;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: .06em;
|
||||
color: var(--text-muted);
|
||||
border-bottom: 1px solid var(--border);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.activity-list {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
padding: 4px 0;
|
||||
}
|
||||
.activity-item {
|
||||
padding: 7px 12px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-size: 12px;
|
||||
}
|
||||
.activity-item:last-child { border-bottom: none; }
|
||||
.activity-room { font-weight: 700; font-size: 13px; }
|
||||
.activity-event { color: var(--text-muted); margin-top: 1px; }
|
||||
.activity-time { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
|
||||
.event-checkout { color: #6d28d9; }
|
||||
.event-checkin { color: #065f46; }
|
||||
.event-clean { color: #0369a1; }
|
||||
.event-dirty { color: #991b1b; }
|
||||
.event-tasks { color: #2d6a4f; }
|
||||
|
||||
@media (max-width: 1024px) {
|
||||
.activity-panel { display: none; }
|
||||
}
|
||||
|
||||
/* ── Planner layout (date-bar + filter + scroll body) ─────────── */
|
||||
.planner-main {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
}
|
||||
.planner-rooms-area {
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
/* ── Checkout notification toasts ────────────────────────────── */
|
||||
.checkout-toasts {
|
||||
position: fixed;
|
||||
bottom: 20px;
|
||||
right: 20px;
|
||||
z-index: 200;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
pointer-events: none;
|
||||
}
|
||||
.checkout-toast {
|
||||
background: var(--card-bg);
|
||||
border: 1px solid var(--col-departed);
|
||||
border-left: 4px solid var(--col-departed);
|
||||
border-radius: var(--radius);
|
||||
padding: 10px 14px;
|
||||
box-shadow: var(--shadow-md);
|
||||
font-size: 13px;
|
||||
max-width: 280px;
|
||||
pointer-events: auto;
|
||||
animation: toast-in .2s ease;
|
||||
}
|
||||
@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } }
|
||||
.toast-room { font-weight: 700; }
|
||||
.toast-msg { color: var(--text-muted); font-size: 12px; margin-top: 2px; }
|
||||
.toast-dismiss {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
color: var(--text-muted);
|
||||
float: right;
|
||||
padding: 0;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
/* ── Settings page ───────────────────────────────────────────── */
|
||||
.settings-page {
|
||||
padding: 20px;
|
||||
max-width: 720px;
|
||||
}
|
||||
.settings-section {
|
||||
background: var(--card-bg);
|
||||
border-radius: var(--radius);
|
||||
border: 1px solid var(--border);
|
||||
margin-bottom: 20px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.settings-section-header {
|
||||
padding: 14px 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
font-weight: 600;
|
||||
font-size: 15px;
|
||||
}
|
||||
.settings-section-body {
|
||||
padding: 16px 20px;
|
||||
}
|
||||
.settings-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
padding: 8px 0;
|
||||
border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.settings-row:last-child { border-bottom: none; }
|
||||
.settings-label { flex: 1; font-size: 13px; }
|
||||
.settings-hint { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
|
||||
.settings-input {
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 6px;
|
||||
padding: 5px 8px;
|
||||
font-size: 13px;
|
||||
color: var(--text-primary);
|
||||
background: var(--body-bg);
|
||||
}
|
||||
.settings-toggle {
|
||||
width: 40px;
|
||||
height: 22px;
|
||||
border-radius: 11px;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition: background .15s;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.settings-toggle.on { background: var(--app-primary); }
|
||||
.settings-toggle.off { background: #d1d5db; }
|
||||
.settings-toggle::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
border-radius: 50%;
|
||||
background: #fff;
|
||||
transition: left .15s;
|
||||
box-shadow: 0 1px 3px rgba(0,0,0,.2);
|
||||
}
|
||||
.settings-toggle.on::after { left: 21px; }
|
||||
.settings-toggle.off::after { left: 3px; }
|
||||
.save-btn {
|
||||
background: var(--app-primary);
|
||||
color: #fff;
|
||||
border: none;
|
||||
border-radius: 8px;
|
||||
padding: 8px 20px;
|
||||
cursor: pointer;
|
||||
font-size: 14px;
|
||||
font-weight: 600;
|
||||
transition: background .12s;
|
||||
}
|
||||
.save-btn:hover { background: var(--app-primary-dark); }
|
||||
.save-btn:disabled { opacity: .5; cursor: not-allowed; }
|
||||
|
||||
/* ── Empty / loading states ──────────────────────────────────── */
|
||||
.loading-spinner {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--text-muted);
|
||||
font-size: 14px;
|
||||
gap: 10px;
|
||||
}
|
||||
.loading-spinner svg { animation: spin .7s linear infinite; }
|
||||
|
||||
.error-banner {
|
||||
margin: 16px;
|
||||
padding: 12px 16px;
|
||||
background: #fee2e2;
|
||||
border: 1px solid #fca5a5;
|
||||
border-radius: var(--radius);
|
||||
color: #991b1b;
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.empty-state {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--text-muted);
|
||||
font-size: 14px;
|
||||
padding: 40px;
|
||||
text-align: center;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue