
:root {
  --bg: #0a0d14;
  --bg2: #111827;
  --bg3: #1a2236;
  --border: #1e3a5f;
  --accent: #1e6fd9;
  --accent2: #1557b0;
  --accent-soft: rgba(30,111,217,0.12);
  --text: #e8eef8;
  --text2: #b3c2dc;
  --text3: #8195b8;
  --calendar-border: rgba(109,154,214,0.42);
  --green: #4ade80;
  --green-soft: rgba(74,222,128,0.12);
  --yellow: #fbbf24;
  --yellow-soft: rgba(251,191,36,0.12);
  --red: #f87171;
  --red-soft: rgba(248,113,113,0.12);
  --radius: 10px;
  --radius-sm: 6px;
}

[data-theme="light"] {
  --bg: #f0f4fc;
  --bg2: #ffffff;
  --bg3: #e8eef8;
  --border: #c0d0e8;
  --accent: #1e6fd9;
  --accent2: #1557b0;
  --accent-soft: rgba(30,111,217,0.1);
  --text: #0a1628;
  --text2: #3a5080;
  --text3: #7a90b8;
  --calendar-border: #c0d0e8;
  --green: #16a34a;
  --green-soft: rgba(22,163,74,0.1);
  --yellow: #d97706;
  --yellow-soft: rgba(217,119,6,0.1);
  --red: #dc2626;
  --red-soft: rgba(220,38,38,0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }

@view-transition {
  navigation: auto;
}

::view-transition-group(root) {
  animation-duration: 160ms;
  animation-timing-function: ease-out;
}

::view-transition-old(root) {
  animation: 160ms ease-out both wt-page-out;
}

::view-transition-new(root) {
  animation: 160ms ease-out both wt-page-in;
}

@keyframes wt-page-out {
  to { opacity: 0.92; }
}

@keyframes wt-page-in {
  from { opacity: 0.92; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(root),
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.01ms;
  }
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* LOGIN */
#login-screen {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at 60% 20%, rgba(30,111,217,0.2) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(21,87,176,0.15) 0%, transparent 50%), var(--bg);
}
.login-box {
  width: 100%; max-width: 380px; padding: 40px 36px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 16px;
}
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo .logo-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid rgba(124,106,247,0.3);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 12px;
}
.login-logo h1 { font-size: 20px; font-weight: 600; color: var(--text); }
.login-logo p { font-size: 13px; color: var(--text2); margin-top: 4px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 6px; font-weight: 500; }
.form-group input {
  width: 100%; padding: 10px 14px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px;
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus { border-color: var(--accent); }
.btn-login {
  width: 100%; padding: 11px; background: var(--accent);
  border: none; border-radius: var(--radius-sm); color: #fff;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background 0.2s; margin-top: 4px;
}
.btn-login:hover { background: var(--accent2); }
.login-error { font-size: 13px; color: var(--red); margin-top: 12px; text-align: center; display: none; background: var(--red-soft); border: 1px solid rgba(248,113,113,0.3); border-radius: var(--radius-sm); padding: 8px 12px; }

/* APP */
#app { display: none; flex-direction: row; min-height: 100vh; }

/* SIDEBAR */
.sidebar {
  width: 220px; flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
}
.sidebar-logo {
  padding: 20px 20px 16px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.sidebar-logo .icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent-soft); border: 1px solid rgba(124,106,247,0.3);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.sidebar-logo span { font-size: 15px; font-weight: 600; color: var(--text); }
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.nav-section { font-size: 10px; color: var(--text3); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text2); cursor: pointer;
  transition: all 0.15s; margin-bottom: 1px;
}
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.nav-item .icon { font-size: 16px; width: 18px; text-align: center; }
.sidebar-footer {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid rgba(124,106,247,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--accent); flex-shrink: 0;
}
.user-info .name { font-size: 12px; font-weight: 500; color: var(--text); }
.user-info .email { font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.btn-logout {
  margin-left: auto; background: none; border: none;
  color: var(--text3); cursor: pointer; font-size: 16px; padding: 4px;
  transition: color 0.15s;
}
.btn-logout:hover { color: var(--red); }

/* MAIN */
.main { margin-left: 220px; flex: 1; display: flex; flex-direction: column; height: 100vh; min-height: 0; overflow: hidden; position: relative; }
.floating-theme-btn {
  position: fixed; left: 236px; bottom: 10px; z-index: 90;
  width: 42px; height: 42px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 50%; color: var(--text2); cursor: pointer;
  font-size: 18px; box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.floating-theme-btn:hover { transform: translateY(-1px); border-color: var(--accent); background: var(--bg3); }
.floating-theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.floating-brand {
  position: fixed; left: 220px; right: 0; bottom: 0; z-index: 89;
  width: auto; height: 61px; padding: 7px 28px;
  display: flex; align-items: center; justify-content: flex-end;
  background: var(--bg); border-top: 1px solid var(--border);
  pointer-events: none;
}
.floating-brand img {
  display: block; width: auto; max-width: 160px; max-height: 46px; object-fit: contain;
}
@media (max-width: 700px) {
  .floating-theme-btn { left: 14px; bottom: 10px; }
  .floating-brand { left: 0; right: 0; bottom: 0; width: auto; height: 61px; padding: 7px 14px; }
  .floating-brand img { max-width: 140px; max-height: 46px; }
  .content { margin-bottom: 61px; }
}
.topbar {
  background: var(--bg2); border-bottom: 1px solid var(--border);
  height: 68px; min-height: 68px; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 10;
}
.topbar-title { font-size: 16px; font-weight: 600; color: var(--text); }
.topbar-sub { font-size: 12px; color: var(--text3); margin-top: 1px; }
.content {
  padding: 28px; flex: 1; min-height: 0;
  overflow-y: auto; margin-bottom: 61px;
}
.page { display: none; }
.page.active { display: block; }

/* COMPONENTS */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* METRIC CARDS */
.metric {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.metric-label { font-size: 12px; color: var(--text2); margin-bottom: 8px; }
.metric-value { font-size: 28px; font-weight: 600; color: var(--text); line-height: 1; }
.metric-sub { font-size: 11px; color: var(--text3); margin-top: 6px; }
.metric-accent { border-left: 2px solid var(--accent); }

/* TABLE */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: 11px; color: var(--text3);
  font-weight: 500; padding: 8px 14px; border-bottom: 1px solid var(--border);
  text-transform: uppercase; letter-spacing: 0.05em;
}
tbody td { padding: 12px 14px; font-size: 13px; color: var(--text2); border-bottom: 1px solid rgba(42,42,56,0.5); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg3); color: var(--text); }

/* BADGES */
.badge { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 20px; font-weight: 500; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-purple { background: var(--accent-soft); color: var(--accent); }

/* BUTTONS */
.btn {
  padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px;
  font-weight: 500; cursor: pointer; border: 1px solid var(--border);
  background: var(--bg3); color: var(--text2); transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-danger { background: var(--red-soft); border-color: var(--red); color: var(--red); }

/* FORM */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12px; color: var(--text2); margin-bottom: 5px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 13px;
  outline: none; transition: border-color 0.2s; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 80px; }
select option { background: var(--bg3); }

/* MESSAGES EDITOR */
.msg-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px;
}
.msg-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.msg-step {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); border: 1px solid rgba(124,106,247,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; color: var(--accent); flex-shrink: 0;
}
.msg-card-header .title { font-size: 13px; font-weight: 600; color: var(--text); }
.msg-card-header .desc { font-size: 11px; color: var(--text3); }
.msg-textarea {
  width: 100%; padding: 10px 12px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 13px;
  outline: none; font-family: inherit; resize: vertical; min-height: 70px;
  transition: border-color 0.2s;
}
.msg-textarea:focus { border-color: var(--accent); }
.msg-section-label {
  display: block; margin: 12px 0 6px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text3); text-transform: uppercase;
}
.msg-auto-box, .msg-preview-box {
  padding: 11px 12px; border-radius: var(--radius-sm);
  font-size: 12px; line-height: 1.55; white-space: normal;
}
.msg-auto-box {
  background: var(--bg); border: 1px dashed var(--border); color: var(--text2);
}
.msg-preview-box {
  min-height: 62px; background: var(--bg2); border: 1px solid var(--accent);
  color: var(--text); box-shadow: inset 3px 0 0 var(--accent);
}
.msg-preview-empty { color: var(--text3); font-style: italic; }

/* SERVICES EDITOR */
.services-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.services-toolbar p { font-size: 13px; color: var(--text2); }
.service-field { position: relative; }
.service-field label { padding-right: 34px; }
.service-field-row { display: flex; align-items: center; gap: 8px; }
.service-field-row input { flex: 1; min-width: 0; }
.service-delete {
  width: 36px; height: 36px; flex-shrink: 0; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--red); border-radius: var(--radius-sm);
  background: var(--red-soft); color: var(--red); cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.service-delete:hover { background: var(--red); color: #fff; }
.services-empty {
  grid-column: 1 / -1; padding: 24px; text-align: center;
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: var(--text3); font-size: 13px;
}

/* CALENDAR */
.cal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cal-nav h3 { font-size: 14px; font-weight: 600; color: var(--text); flex: 1; text-align: center; }
.cal-nav button { width: 28px; height: 28px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg3); color: var(--text2); cursor: pointer; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.cal-nav button:hover { border-color: var(--accent); color: var(--accent); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-header-day { text-align: center; font-size: 11px; color: var(--text3); padding: 4px; font-weight: 500; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--text2); border: 1px solid var(--calendar-border); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.15s; position: relative; background: transparent; font-family: inherit;
}
.cal-day:hover { background: var(--bg3); color: var(--text); border-color: var(--accent); }
.cal-day.today { background: var(--accent); color: #fff; font-weight: 600; border-color: var(--accent); }
.cal-day.has-event::after {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
}
.cal-day.today::after { background: #fff; }
.cal-day.empty { cursor: default; border-color: transparent; }
.cal-day.selected { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(124,106,247,0.3); }

/* ALERTS */
.alert { padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; margin-bottom: 16px; }
.alert-success { background: var(--green-soft); color: var(--green); border: 1px solid rgba(74,222,128,0.2); }
.alert-error { background: var(--red-soft); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }

/* LOADING */
.loading { text-align: center; padding: 40px; color: var(--text3); font-size: 13px; }
.spinner { display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.7s linear infinite; margin-bottom: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.6); z-index: 200;
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; width: 100%; max-width: 480px;
  max-height: 90vh; overflow-y: auto;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 15px; font-weight: 600; color: var(--text); }
.modal-close { background: none; border: none; color: var(--text3); cursor: pointer; font-size: 20px; line-height: 1; }
.modal-close:hover { color: var(--red); }
.modal-footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* SEARCH */
.search-bar {
  padding: 8px 12px; background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 13px;
  outline: none; width: 220px; transition: border-color 0.2s;
}
.search-bar:focus { border-color: var(--accent); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* EMPTY STATE */
.empty { text-align: center; padding: 48px 20px; color: var(--text3); }
.empty .icon { font-size: 36px; margin-bottom: 12px; }
.empty p { font-size: 13px; }

/* TOPBAR ACTIONS */
.topbar-right { display: flex; align-items: center; gap: 10px; }

@media (max-width: 900px) {
  .grid4 { grid-template-columns: 1fr 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
}

.turno-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text); cursor: pointer;
  padding: 8px 14px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all 0.15s;
  user-select: none; flex: 1; justify-content: center;
}
.turno-label:has(input:checked) {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent);
}
.turno-label input { display: none; }

.dia-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text); cursor: pointer;
  padding: 6px 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); transition: all 0.15s;
  user-select: none;
}
.dia-label:has(input:checked) {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent);
}
.dia-label input { display: none; }

/* AJUSTES COMPARTILHADOS DA VERSÃO MODULAR */
body { font-size: 15px; }
.sidebar { width: 240px; }
.main { margin-left: 240px; }
.floating-theme-btn { left: 256px; }
.floating-brand { left: 240px; }
.nav-item { font-size: 15px; text-decoration: none; }
.nav-item .icon { font-size: 18px; width: 20px; }
.nav-section { font-size: 11px; }
.sidebar-brand-name { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.user-avatar { font-size: 14px; }
.user-avatar.profile-avatar-upload { position: relative; cursor: pointer; overflow: visible; transition: border-color .15s, transform .15s; }
.user-avatar.profile-avatar-upload:hover { border-color: var(--accent); transform: translateY(-1px); }
.user-avatar.profile-avatar-upload:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.user-avatar.profile-avatar-upload img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.user-avatar.profile-avatar-upload::after { content: '+'; position: absolute; right: -4px; bottom: -3px; width: 14px; height: 14px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; border: 2px solid var(--bg2); font-size: 11px; font-weight: 700; line-height: 1; }
.user-info .name { font-size: 14px; }
.user-info .email { font-size: 12px; max-width: 140px; }
.topbar-title { font-size: 18px; }
.topbar-sub { font-size: 14px; }
.card-title { font-size: 15px; }
.metric-label { font-size: 14px; }
.metric-sub { font-size: 13px; }
thead th { font-size: 12px; }
tbody td { font-size: 14px; }
.badge { font-size: 12px; }
.btn { font-size: 14px; }
.btn-sm { font-size: 13px; }
.field label, .form-group label { font-size: 14px; }
.field input, .field select, .field textarea, .search-bar { font-size: 15px; }
.msg-step { font-size: 13px; }
.msg-card-header .title { font-size: 15px; }
.msg-card-header .desc { font-size: 13px; }
.msg-card { min-width: 0; overflow: visible; }
.msg-card-header > div:last-child { min-width: 0; }
.msg-textarea { display: block; width: 100%; max-width: 100%; min-height: 120px; height: auto; overflow-x: hidden; overflow-y: hidden; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; font-size: 15px; line-height: 1.55; }
.msg-section-label { font-size: 12px; }
.msg-auto-box, .msg-preview-box { font-size: 14px; }
.services-toolbar p, .services-empty { font-size: 14px; }
.cal-nav h3 { font-size: 17px; }
.cal-nav button { font-size: 18px; }
.cal-head, .cal-header-day { font-size: 15px; font-weight: 600; }
.cal-day { font-size: 17px; font-weight: 500; }
.cal-day.today { font-weight: 700; }
.cal-day.has-event::after { width: 12px; height: 12px; bottom: 8px; }
.alert, .loading, .empty p { font-size: 14px; }
.modal-title { font-size: 17px; }
.turno-label, .dia-label { font-size: 14px; }
.company-info-grid, .company-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.company-section-title { margin: 18px 0 12px; color: var(--text); font-size: 15px; font-weight: 600; }
.company-readonly { background: color-mix(in srgb, var(--bg2) 86%, var(--border)); color: var(--text2); cursor: default; }
.company-status-ok { color: #34d399 !important; border-color: rgba(52, 211, 153, .45) !important; }
.company-status-warning { color: #fbbf24 !important; border-color: rgba(251, 191, 36, .45) !important; }
.company-payment-note { margin-top: 6px; color: var(--text3); font-size: 12px; }
.actions-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.actions-group { display: flex; gap: 8px; flex-wrap: wrap; }
.checkbox-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* Estrutura das telas separadas */
.dashboard-metrics { margin-bottom: 20px; }
.dashboard-lists { align-items: start; }
.agenda-layout { display: grid; grid-template-columns: minmax(560px, 1.05fr) minmax(340px, .95fr); gap: 16px; align-items: start; }
.appointment-list-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.appointment-list-item:last-child { border-bottom: 0; }
.appointment-list-time { min-width: 62px; color: var(--accent); font-size: 14px; font-weight: 600; }
.appointment-list-time small { display: block; margin-top: 3px; color: var(--text3); font-size: 12px; font-weight: 400; }
.appointment-list-info { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.appointment-list-info strong { color: var(--text); font-size: 15px; }
.appointment-list-info span { color: var(--text3); font-size: 13px; }
.actions-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.page-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.checkbox-options .dia-label, .checkbox-options .turno-label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text2); font-size: 13px; cursor: pointer; }
.checkbox-options input { accent-color: var(--accent); }
.modal.modal-wide { max-width: 760px; }
.form-section { margin-top: 16px; }
.standalone-check { display: inline-flex; align-items: center; gap: 7px; color: var(--text2); font-size: 14px; margin: 2px 0 14px; }
.field-help { color: var(--text3); font-size: 12px; margin-top: 6px; }
tbody td strong { color: var(--text); font-weight: 600; }
td .btn + .btn { margin-left: 4px; }

@media (max-width: 1050px) {
  .agenda-layout { grid-template-columns: 1fr; }
}
.time-range { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.time-range input { width: 110px; }
.page-loader { padding: 48px 20px; text-align: center; color: var(--text3); }

@media (max-width: 700px) {
  .floating-theme-btn { left: 14px; }
  .floating-brand { left: 0; }
  .company-info-grid, .company-edit-grid { grid-template-columns: 1fr; }
}
