/* Differen'BIel - public + admin */

/* --- public page --- */
.dbienb { max-width: 760px; }
.dbienb-muted { color: #777; font-size: .92em; }
.dbienb-notice { padding: 12px 14px; border-radius: 8px; margin: 14px 0; font-weight: 600; }
.dbienb-notice.dbienb-ok { background: #e6f4ea; color: #1a7f37; }
.dbienb-notice.dbienb-error { background: #fce8e6; color: #b3261e; }
.dbienb-cta { display: inline-block; background: #0b6e4f; color: #fff !important; border: 0;
  padding: 10px 18px; border-radius: 8px; font-weight: 600; text-decoration: none; cursor: pointer; }
.dbienb-cta:hover { background: #0a5c43; }
.dbienb-top { margin: 8px 0 18px; }
.dbienb-section { margin: 22px 0; }

.dbienb-calbox { border: 1px solid #e3e3e3; border-radius: 10px; padding: 12px; }
.dbienb-cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 1.05em; }
.dbienb-cal-nav a { color: #0b6e4f; text-decoration: none; }
.dbienb-cal { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dbienb-cal th { font-size: .78em; text-transform: uppercase; color: #888; padding: 4px 2px; text-align: left; }
.dbienb-cal td { border: 1px solid #eee; vertical-align: top; height: 74px; padding: 4px; background: #fff; }
.dbienb-cal td.dbienb-dim { background: #fafafa; }
.dbienb-cal td.dbienb-past { background: #f4f4f4; }
.dbienb-cal td.dbienb-past .dbienb-dnum { color: #c8c8c8; }
.dbienb-cal td.dbienb-today { box-shadow: inset 0 0 0 2px #2f6fd6; }
.dbienb-dnum { display: inline-block; font-weight: 700; font-size: .85em; padding: 1px 5px; }
.dbienb-day-link { display: block; text-decoration: none; color: inherit; height: 100%; }
.dbienb-day-link:hover { background: #f0faf6; }
.dbienb-blocked { background: #f7f1ec; }
.dbienb-chip { display: block; font-size: .72em; line-height: 1.25; margin-top: 3px; padding: 2px 4px;
  border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbienb-chip.dbienb-confirmed, .dbienb-status.dbienb-s-success { background: #e6f4ea; color: #1a7f37; border: 1px solid #c3e6cd; }
.dbienb-chip.dbienb-prebook, .dbienb-status.dbienb-s-warning { background: #fef7e0; color: #b27400; border: 1px solid #f5e0a1; }
.dbienb-chip.dbienb-free { background: #fff; color: #555; border: 1px dashed #bbb; }
.dbienb-legend .dbienb-chip { display: inline-block; vertical-align: middle; }
.dbienb-legend { font-size: .8em; color: #777; margin: 10px 0 0; }

.dbienb-form { background: #fafafa; border: 1px solid #e3e3e3; border-radius: 10px; padding: 16px; }
.dbienb-form h3 { margin-top: 0; }
.dbienb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin-bottom: 14px; }
.dbienb-form label { display: flex; flex-direction: column; font-size: .92em; font-weight: 600; gap: 4px; }
.dbienb-form input, .dbienb-form select { padding: 8px; border: 1px solid #ccc; border-radius: 6px; font: inherit; font-weight: 400; }
.dbienb-captcha { margin-bottom: 14px; }
.dbienb-form .dbienb-captcha { flex-direction: row; align-items: center; gap: 8px; }
.dbienb-form .dbienb-captcha input { width: 90px; flex-shrink: 0; }
.dbienb-hp { position: absolute !important; left: -9999px !important; }

/* --- admin --- */
.dbienb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.dbienb-stat { background: #fff; border: 1px solid #e3e3e3; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; }
.dbienb-stat strong { margin-bottom: 4px; }
.dbienb-stat span { color: #555; font-size: .9em; }
.dbienb-filter { display: flex; gap: 8px; margin-bottom: 14px; }
.dbienb-status { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .85em; }
.dbienb-status.dbienb-s-info { background: #e4eefb; color: #1a56a8; }
.dbienb-status.dbienb-s-error { background: #fce8e6; color: #b3261e; }
.dbienb-actions a { white-space: nowrap; }

@media (max-width: 600px) {
  .dbienb-grid { grid-template-columns: 1fr; }
  .dbienb-cal td { height: 56px; }
}
