Adds GET /api/staff/arrivals (NewBook bookings_list, same list_type: 'staying' pattern room-planner/hvac/maintenance already use) and a popup section that lists each arrival with its own Push button, falling back to a per-row device picker on busy/offline/no-default — a second route to the same push flow, separate from the content-script's injected NewBook page buttons.
99 lines
3.3 KiB
CSS
99 lines
3.3 KiB
CSS
body {
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
|
width: 300px;
|
|
margin: 0;
|
|
padding: 12px 14px;
|
|
color: #1e293b;
|
|
background: #f4f5f7;
|
|
}
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
margin-bottom: 10px;
|
|
}
|
|
.title { font-weight: 700; font-size: 14px; color: #1a1a2e; }
|
|
.nb-status { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
|
|
.nb-status.ok { background: #dcfce7; color: #166534; }
|
|
.nb-status.no { background: #fee2e2; color: #991b1b; }
|
|
.muted { color: #64748b; font-size: 13px; }
|
|
.booking { font-size: 13px; margin-bottom: 10px; }
|
|
.booking strong { color: #1a1a2e; }
|
|
select {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 8px;
|
|
border-radius: 8px;
|
|
border: 1px solid #e4e8ee;
|
|
margin-bottom: 10px;
|
|
font-size: 13px;
|
|
}
|
|
button.primary {
|
|
width: 100%;
|
|
padding: 10px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
background: #c9a84c;
|
|
color: #1a1a2e;
|
|
font-weight: 700;
|
|
font-size: 13px;
|
|
cursor: pointer;
|
|
}
|
|
button.primary:disabled { opacity: 0.5; cursor: default; }
|
|
.msg { margin-top: 10px; font-size: 12px; }
|
|
.msg.error { color: #dc2626; }
|
|
.msg.ok { color: #16a34a; }
|
|
.msg.warn { color: #b45309; }
|
|
a.settings-link { display: block; margin-top: 12px; font-size: 12px; color: #7b4f00; }
|
|
|
|
.section-label {
|
|
font-size: 11px; font-weight: 700; text-transform: uppercase;
|
|
letter-spacing: 0.04em; color: #64748b; margin: 0 0 6px;
|
|
}
|
|
.device-list { list-style: none; margin: 0 0 12px; padding: 0; }
|
|
.device-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 12px; }
|
|
.device-name { flex: 1; color: #1a1a2e; }
|
|
.device-status {
|
|
font-size: 10px; padding: 1px 6px; border-radius: 999px; text-transform: capitalize;
|
|
}
|
|
.device-status.idle { background: #dcfce7; color: #166534; }
|
|
.device-status.busy { background: #fee2e2; color: #991b1b; }
|
|
.reset-btn {
|
|
border: none; background: #be123c; color: #fff; font-size: 10px; font-weight: 600;
|
|
padding: 2px 8px; border-radius: 999px; cursor: pointer;
|
|
}
|
|
.reset-btn:disabled { opacity: 0.5; cursor: default; }
|
|
|
|
.arrival-list {
|
|
list-style: none; margin: 0 0 12px; padding: 0;
|
|
max-height: 220px; overflow-y: auto;
|
|
}
|
|
.arrival-row {
|
|
display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
|
|
padding: 6px 0; font-size: 12px; border-bottom: 1px solid #e4e8ee;
|
|
}
|
|
.arrival-row:last-child { border-bottom: none; }
|
|
.arrival-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
|
|
.arrival-name { color: #1a1a2e; font-weight: 600; }
|
|
.arrival-site { color: #64748b; font-size: 11px; }
|
|
.arrival-done {
|
|
font-size: 10px; padding: 1px 6px; border-radius: 999px;
|
|
background: #dcfce7; color: #166534;
|
|
}
|
|
.push-btn {
|
|
border: none; background: #c9a84c; color: #1a1a2e; font-size: 11px; font-weight: 700;
|
|
padding: 3px 10px; border-radius: 999px; cursor: pointer;
|
|
}
|
|
.push-btn:disabled { opacity: 0.5; cursor: default; }
|
|
.arrival-msg { flex-basis: 100%; font-size: 11px; }
|
|
.arrival-picker {
|
|
flex-basis: 100%; display: flex; gap: 6px; margin-top: 4px;
|
|
}
|
|
.arrival-picker select {
|
|
flex: 1; margin-bottom: 0; padding: 4px; font-size: 12px;
|
|
}
|
|
.send-small {
|
|
border: none; background: #c9a84c; color: #1a1a2e; font-size: 11px; font-weight: 700;
|
|
padding: 4px 10px; border-radius: 6px; cursor: pointer;
|
|
}
|
|
.send-small:disabled { opacity: 0.5; cursor: default; }
|