.boss-fb { --bfb-accent: #1f6f5c; --bfb-accent-dark: #17564a; --bfb-border: #d5d9dd; --bfb-muted: #6b7280; max-width: 900px; margin: 0 auto 2em; font-size: 16px; line-height: 1.45; }
.boss-fb * { box-sizing: border-box; }
.boss-fb h3 { margin: 1.4em 0 .5em; font-size: 1.15em; }

.boss-fb-top { text-align: right; font-size: .85em; color: var(--bfb-muted); margin-bottom: 8px; }

.boss-fb-nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.boss-fb-nav input[type=date] { padding: 8px 10px; border: 1px solid var(--bfb-border); border-radius: 6px; font: inherit; }
.boss-fb-daylabel { flex: 1 1 100%; font-weight: 600; font-size: 1.1em; }

.boss-fb-btn { appearance: none; border: 1px solid var(--bfb-border); background: #fff; color: #222; padding: 8px 14px; border-radius: 6px; font: inherit; cursor: pointer; line-height: 1.2; }
.boss-fb-btn:hover:not(:disabled) { border-color: var(--bfb-accent); color: var(--bfb-accent); }
.boss-fb-btn:disabled { opacity: .5; cursor: not-allowed; }
.boss-fb-btn-small { padding: 5px 10px; font-size: .9em; }
.boss-fb-primary { background: var(--bfb-accent); border-color: var(--bfb-accent); color: #fff; }
.boss-fb-primary:hover:not(:disabled) { background: var(--bfb-accent-dark); border-color: var(--bfb-accent-dark); color: #fff; }

.boss-fb-msg { padding: 10px 14px; border-radius: 6px; margin: 0 0 12px; border: 1px solid; }
.boss-fb-msg-success { background: #e8f5ef; border-color: #9fd3bd; color: #14523f; }
.boss-fb-msg-error { background: #fdecec; border-color: #f0b4b4; color: #8a1f1f; }

.boss-fb-gridwrap { overflow-x: auto; border: 1px solid var(--bfb-border); border-radius: 8px; background: #fff; }
.boss-fb-closed, .boss-fb-loading { padding: 18px; margin: 0; color: var(--bfb-muted); }

.boss-fb-grid { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 420px; }
.boss-fb-grid th, .boss-fb-grid td { border-bottom: 1px solid #eceef0; padding: 0; text-align: center; }
.boss-fb-grid thead th { padding: 10px 6px; background: #f6f7f8; position: sticky; top: 0; }
.boss-fb-grid .boss-fb-corner, .boss-fb-grid .boss-fb-time { width: 86px; }
.boss-fb-grid .boss-fb-time { padding: 0 8px; text-align: right; font-weight: 400; color: var(--bfb-muted); font-size: .85em; white-space: nowrap; background: #fff; }
.boss-fb-sp-name { display: block; font-weight: 600; }
.boss-fb-sp-desc { display: block; font-weight: 400; font-size: .78em; line-height: 1.25; color: #374151; margin-top: 2px; }
.boss-fb-sp-rate { display: block; font-weight: 400; font-size: .8em; color: var(--bfb-muted); margin-top: 2px; }
.boss-fb-sr { position: absolute; left: -9999px; }

.boss-fb-cell { display: block; width: 100%; height: 38px; margin: 0; padding: 0 4px; border: 0; border-left: 1px solid #eceef0; background: #fff; font: inherit; font-size: .78em; color: var(--bfb-muted); cursor: pointer; }
.boss-fb-cell.boss-fb-free:hover { background: #e8f5ef; box-shadow: inset 0 0 0 2px var(--bfb-accent); }
.boss-fb-cell.boss-fb-selected { background: var(--bfb-accent); color: #fff; font-weight: 600; cursor: pointer; }
.boss-fb-cell.boss-fb-booked, .boss-fb-cell.boss-fb-blocked { background: repeating-linear-gradient(135deg, #f1f2f4, #f1f2f4 6px, #e7e9ec 6px, #e7e9ec 12px); cursor: not-allowed; }
.boss-fb-cell.boss-fb-mine { background: #dbeafe; color: #1e40af; font-weight: 600; cursor: default; }
.boss-fb-cell.boss-fb-past { background: #fafafa; cursor: not-allowed; }
.boss-fb-cell:focus-visible { outline: 3px solid #f59e0b; outline-offset: -3px; }

.boss-fb-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 14px; margin: 0; padding: 10px 12px; font-size: .85em; color: var(--bfb-muted); border-top: 1px solid #eceef0; }
.boss-fb-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.boss-fb-key { display: inline-block; width: 14px; height: 14px; border: 1px solid var(--bfb-border); border-radius: 3px; background: #fff; }
.boss-fb-key.boss-fb-selected { background: var(--bfb-accent); border-color: var(--bfb-accent); }
.boss-fb-key.boss-fb-booked { background: repeating-linear-gradient(135deg, #f1f2f4, #f1f2f4 3px, #e0e2e6 3px, #e0e2e6 6px); }
.boss-fb-key.boss-fb-mine { background: #dbeafe; border-color: #93c5fd; }
.boss-fb-hint { margin: 0; padding: 0 12px 12px; font-size: .85em; color: var(--bfb-muted); }

.boss-fb-panel { margin-top: 16px; padding: 16px; border: 2px solid var(--bfb-accent); border-radius: 8px; background: #f4fbf8; }
.boss-fb-panel h3 { margin-top: 0; }
.boss-fb-summary { font-weight: 600; margin: 0 0 4px; }
.boss-fb-desc { margin: 0 0 4px; color: var(--bfb-muted); }
.boss-fb-est { margin: 0 0 10px; color: var(--bfb-muted); }
.boss-fb-panel label { display: block; margin: 10px 0 4px; font-size: .9em; }
.boss-fb-panel textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--bfb-border); border-radius: 6px; font: inherit; resize: vertical; }
.boss-fb-actions { display: flex; gap: 8px; margin-top: 12px; }

.boss-fb-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--bfb-border); border-radius: 8px; background: #fff; }
.boss-fb-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; margin: 0; border-bottom: 1px solid #eceef0; }
.boss-fb-list li:last-child { border-bottom: 0; }
.boss-fb-muted { color: var(--bfb-muted); font-size: .85em; text-align: right; }

.boss-fb-login { max-width: 380px; }
.boss-fb-login input[type=text], .boss-fb-login input[type=password] { width: 100%; padding: 8px 10px; border: 1px solid var(--bfb-border); border-radius: 6px; }
.boss-fb-login .login-submit input { background: var(--bfb-accent); color: #fff; border: 0; padding: 9px 18px; border-radius: 6px; cursor: pointer; }

@media (max-width: 520px) {
  .boss-fb-grid { min-width: 0; }
  .boss-fb-grid thead th { padding: 8px 2px; font-size: .85em; }
  .boss-fb-grid .boss-fb-corner, .boss-fb-grid .boss-fb-time { width: 56px; }
  .boss-fb-grid .boss-fb-time { padding: 0 4px; font-size: .75em; }
  .boss-fb-cell { height: 42px; font-size: .7em; padding: 0 2px; }
  .boss-fb-list li { flex-direction: column; align-items: flex-start; }
  .boss-fb-muted { text-align: left; }
}
