.rbm-wrap .description { max-width: 900px; }
.rbm-req, .rbm-danger { color: #b32d2e; }
a.rbm-danger:hover, button.rbm-danger:hover { color: #8a1f1f; }
.rbm-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; vertical-align: middle; border: 1px solid rgba(0,0,0,.15); }
.rbm-inactive td { opacity: .6; }
.rbm-table { margin-top: 10px; }
.rbm-table td { vertical-align: top; }
.rbm-table small { color: #646970; }
.rbm-actions { white-space: nowrap; }
.rbm-row-cancelled td { opacity: .6; }
.rbm-row-cancelled td:last-child { opacity: 1; }

/* Toolbar */
.rbm-toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 12px 0; }
.rbm-toolbar label { display: inline-flex; align-items: center; gap: 6px; }
.rbm-legend { margin-left: auto; color: #50575e; display: inline-flex; align-items: center; gap: 6px; }
.rbm-legend-travel, .rbm-legend-block { display: inline-block; width: 22px; height: 12px; border-radius: 2px; margin-left: 10px; }
.rbm-legend-travel { background: repeating-linear-gradient(135deg, #2271b1 0 4px, #c5d9ed 4px 8px); }
.rbm-legend-block { background: #50575e; }
.rbm-table-title { margin-top: 28px; }

/* Status cards */
.rbm-status { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.rbm-status-card { background: #fff; border: 1px solid #dcdcde; border-left: 5px solid #2271b1; border-radius: 4px; padding: 10px 14px; min-width: 220px; display: flex; flex-direction: column; gap: 4px; }
.rbm-status-card small { color: #50575e; }

/* Pills */
.rbm-pill { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #f0f0f1; color: #1d2327; }
.rbm-pill-available, .rbm-pill-confirmed { background: #d1f0d8; color: #0a5c1f; }
.rbm-pill-completed { background: #dbe7f5; color: #12406f; }
.rbm-pill-cancelled, .rbm-pill-out_of_service { background: #fbe1e1; color: #8a1f1f; }
.rbm-pill-on_site, .rbm-pill-travelling, .rbm-pill-returning, .rbm-pill-in_use { background: #fcf0d6; color: #6b4a00; }
.rbm-pill-blocked { background: #e2e4e7; color: #2c3338; }

/* Calendar */
.rbm-calendar { background: #fff; padding: 12px; border: 1px solid #dcdcde; border-radius: 4px; }
.rbm-calendar .fc-event { cursor: pointer; }
.rbm-calendar .fc-event.rbm-travel {
	background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 6px, rgba(255,255,255,.85) 6px 12px) !important;
	color: #1d2327 !important;
	cursor: default;
}
.rbm-calendar .fc-event.rbm-travel .fc-event-main { color: #1d2327; }
.rbm-calendar .fc-event.rbm-wait { background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.7) 0 3px, rgba(255,255,255,.9) 3px 9px) !important; }
.rbm-calendar .fc-event.rbm-status-cancelled { opacity: .5; text-decoration: line-through; }
.rbm-calendar .fc-event.rbm-status-completed { opacity: .75; }
.rbm-calendar .fc-event.rbm-block { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.15) 0 6px, transparent 6px 12px); }

/* Modal */
.rbm-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; }
.rbm-modal[hidden] { display: none; }
.rbm-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); }
.rbm-modal-dialog { position: relative; background: #fff; border-radius: 6px; width: 100%; max-width: 760px; padding: 20px 24px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.rbm-modal-dialog h2 { margin-top: 0; }
.rbm-modal-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: #50575e; }
body.rbm-modal-open { overflow: hidden; }

.rbm-form .rbm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.rbm-form .rbm-field { display: flex; flex-direction: column; gap: 4px; }
.rbm-form .rbm-field > span { font-weight: 600; }
.rbm-form .rbm-field[hidden] { display: none; }
.rbm-form .rbm-span2 { grid-column: 1 / -1; }
.rbm-form input:not([type=checkbox]), .rbm-form select, .rbm-form textarea { width: 100%; max-width: none; }
.rbm-buttons { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rbm-buttons [hidden] { display: none; }

.rbm-check { margin-top: 14px; }
.rbm-check:empty { display: none; }
.rbm-check { padding: 8px 12px; border-left: 4px solid #dcdcde; background: #f6f7f7; }
.rbm-check p { margin: 4px 0; }
.rbm-check ul { margin: 4px 0 4px 18px; list-style: disc; }
.rbm-check-ok { border-left-color: #00a32a; background: #edfaef; }
.rbm-check-bad { border-left-color: #d63638; background: #fcf0f1; }
.rbm-check-warn { border-left-color: #dba617; background: #fcf9e8; }

/* Toasts */
.rbm-toast { position: fixed; right: 20px; bottom: 20px; z-index: 100001; max-width: 420px; box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: opacity .5s; cursor: pointer; }
.rbm-toast ul { margin-left: 18px; list-style: disc; }
.rbm-toast-hide { opacity: 0; }

@media (max-width: 782px) {
	.rbm-form .rbm-grid { grid-template-columns: 1fr; }
	.rbm-legend { margin-left: 0; }
	.rbm-modal { padding: 10px; }
}
.rbm-table-wrap { overflow-x: auto; }
