:root{
  --sblt-primary:#0F172A;
  --sblt-accent:#2563EB;
  --sblt-bg:#F8FAFC;
  --sblt-card:#FFFFFF;
  --sblt-text:#0F172A;
  --sblt-bar-bg:#0F172A;
  --sblt-bar-text:#FFFFFF;
  --sblt-modal-width:720px;
}

.sblt-input{
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:8px;
  outline:none;
  min-width: 200px;
}
.sblt-input:focus{ border-color: var(--sblt-accent); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }

.sblt-btn{
  padding:10px 14px;
  border:none;
  border-radius:8px;
  background: var(--sblt-accent);
  color:#fff;
  cursor:pointer;
  font-weight:600;
  margin-left:8px;
}
.sblt-btn:disabled{ opacity:.6; cursor:not-allowed; }

/* Cards */
.sblt-card{
  background: var(--sblt-card);
  color: var(--sblt-text);
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  padding:14px;
  margin:10px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.sblt-card-hd{ display:flex; align-items:center; justify-content:space-between; gap:10px; }
.sblt-title{ margin-top:8px; font-weight:600; }
.sblt-muted{ color:#64748B; font-size:13px; }
.sblt-times{ margin-top:8px; }

.sblt-kv{ 
  display:grid; 
  grid-template-columns: 160px 1fr; 
  gap:6px 12px; 
  margin-top:10px;
}
.sblt-kv dt{ font-weight:600; color:#334155; }
.sblt-kv dd{ margin:0; }

.sblt-badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:999px;
  font-size:12px;
  background:#E5E7EB;
  color:#111827;
  border:1px solid rgba(0,0,0,.06);
}
/* simple color hints for common statuses */
.sblt-badge-in_progress{ background:#FEF3C7; color:#92400E; }
.sblt-badge-completed{ background:#DCFCE7; color:#166534; }
.sblt-badge-cancelled{ background:#FEE2E2; color:#991B1B; }
.sblt-badge-approved{ background:#E0F2FE; color:#075985; }
.sblt-badge-rejected{ background:#F3E8FF; color:#6B21A8; }

/* Floating bar */
.sblt-float{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  pointer-events:none;
}
.sblt-float .sblt-float-inner{
  margin: 10px auto;
  padding: 12px;
  background: var(--sblt-bar-bg);
  color: var(--sblt-bar-text);
  max-width: 850px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,.2);
}

.sblt-pos-bottom-left .sblt-float-inner,
.sblt-pos-bottom-right .sblt-float-inner{
  max-width: 520px;
}
.sblt-pos-bottom-left{ left: 10px; right: auto; }
.sblt-pos-bottom-right{ right: 10px; left: auto; }

/* Modal */
.sblt-modal{ position:fixed; inset:0; display:none; z-index:10000; }
.sblt-modal.is-open{ display:block; }
.sblt-backdrop{ position:absolute; inset:0; background: rgba(15,23,42,.55); }
.sblt-dialog{ 
  position:relative; 
  margin: 6vh auto; 
  max-width: var(--sblt-modal-width);
  background: var(--sblt-bg);
  color: var(--sblt-text);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.3);
  padding: 16px;
}
.sblt-close{ 
  position:absolute; top:6px; right:6px; 
  border:none; background:transparent; font-size:28px; line-height:1; cursor:pointer; color:#64748B;
}
.sblt-modal-body{ padding-top: 12px; max-height: 72vh; overflow:auto; }

/* Page widget */
.sblt-widget .sblt-form{ display:flex; gap:8px; margin-bottom: 12px; }

/* Headings */
.sblt-h3{ margin:0 0 4px; }
.sblt-sub{ margin:0 0 12px; color:#64748B; }
