/* ============================================================
   LAKECLINIC (base Lake Flow) - Identidade visual
   Azul ciano -> Azul -> Indigo -> Roxo
   ============================================================ */

:root {
  --lc-cyan:      #29B6F6;
  --lc-blue:      #2F6BFF;
  --lc-blue-dark: #1D4ED8;
  --lc-indigo:    #4F46E5;
  --lc-purple:    #6D3EF0;
  --lc-violet:    #7C3AED;

  --lc-gradient: linear-gradient(135deg, #29B6F6 0%, #2F6BFF 45%, #7C3AED 100%);

  --lc-navy:      #0F1E3D;
  --lc-text:      #101935;
  --lc-text-2:    #64748B;
  --lc-text-3:    #94A3B8;

  --lc-bg:        #F7F9FC;
  --lc-surface:   #FFFFFF;
  --lc-surface-2: #F1F5F9;
  --lc-border:    #E2E8F0;
  --lc-border-2:  #CBD5E1;

  --lc-success:   #10B981;
  --lc-warning:   #F59E0B;
  --lc-danger:    #EF4444;

  --lc-r-sm: 6px;
  --lc-r:    10px;
  --lc-r-lg: 16px;

  --lc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --lc-shadow: 0 1px 2px rgba(15,30,61,.05);
  --lc-shadow-md: 0 6px 20px rgba(15,30,61,.08);
  --lc-shadow-lg: 0 24px 60px rgba(15,30,61,.18);
}

/* ---------- Reset local ---------- */

#lakeclinic-root, #lakeclinic-root * { box-sizing: border-box; }
#lakeclinic-root {
  font-family: var(--lc-font);
  color: var(--lc-text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
#lakeclinic-root h1, #lakeclinic-root h2, #lakeclinic-root h3, #lakeclinic-root p { margin: 0; }
#lakeclinic-root ul { margin: 0; padding: 0; list-style: none; }

.lakeflow-login-wall {
  max-width: 420px; margin: 3rem auto; padding: 2rem; text-align: center;
  border: 1px solid var(--lc-border); border-radius: var(--lc-r-lg); background: #fff;
}
.lakeflow-btn, #lakeclinic-root .lc-btn-primary {
  display: inline-block; padding: 10px 20px; border-radius: var(--lc-r);
  background: var(--lc-gradient); color: #fff; text-decoration: none; font-weight: 600; border: none; cursor: pointer;
}
.lc-boot, .lc-loading {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 320px; color: var(--lc-text-2);
}
.lc-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid var(--lc-border); border-top-color: var(--lc-blue);
  animation: lc-spin .8s linear infinite;
}
@keyframes lc-spin { to { transform: rotate(360deg); } }

/* ---------- Layout ---------- */

.lc-app {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 82vh;
  background: var(--lc-bg);
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg);
  overflow: hidden;
}

.lc-nav {
  background: var(--lc-surface);
  border-right: 1px solid var(--lc-border);
  padding: 20px 14px;
  display: flex; flex-direction: column; gap: 22px;
}
.lc-brand { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.lc-brand-name { font-size: 19px; font-weight: 700; letter-spacing: -.3px; color: var(--lc-navy); }
.lc-brand-name span {
  background: var(--lc-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lc-brand-sub { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--lc-text-3); }

.lc-nav nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.lc-nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border: none; background: none; cursor: pointer;
  border-radius: var(--lc-r); color: var(--lc-text-2); font: inherit; font-weight: 500;
  text-align: left; transition: all .16s ease;
}
.lc-nav-item:hover { background: var(--lc-surface-2); color: var(--lc-text); }
.lc-nav-item.active { background: rgba(47,107,255,.09); color: var(--lc-blue); font-weight: 600; }

.lc-nav-user {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--lc-border);
}
.lc-nav-user-name { font-weight: 600; font-size: 13px; }

.lc-main { padding: 26px 30px 40px; overflow-x: hidden; }
.lc-menu-btn { display: none; }

.lc-page { display: flex; flex-direction: column; gap: 20px; }
.lc-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lc-page-head h1 { font-size: 24px; font-weight: 700; letter-spacing: -.4px; color: var(--lc-navy); }

/* ---------- Textos ---------- */

.lc-muted { color: var(--lc-text-2); }
.lc-sm { font-size: 12px; }
.lc-strong { font-weight: 600; }
.lc-late { color: var(--lc-danger); font-weight: 600; }
.lc-spacer { flex: 1; }

/* ---------- Botoes ---------- */

.lc-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: var(--lc-r);
  border: 1px solid var(--lc-border-2); background: #fff; color: var(--lc-text);
  font: inherit; font-weight: 500; cursor: pointer; transition: all .16s ease;
}
.lc-btn:hover { border-color: var(--lc-blue); color: var(--lc-blue); }
.lc-btn-sm { padding: 6px 12px; font-size: 13px; }
.lc-btn-primary { background: var(--lc-gradient); color: #fff; border: none; font-weight: 600; }
.lc-btn-primary:hover { color: #fff; filter: brightness(1.06); }
.lc-btn-danger { border-color: #FECACA; color: var(--lc-danger); }
.lc-btn-danger:hover { background: #FEF2F2; border-color: var(--lc-danger); color: var(--lc-danger); }

.lc-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--lc-r-sm);
  border: none; background: none; color: var(--lc-text-2); cursor: pointer;
}
.lc-icon-btn:hover { background: var(--lc-surface-2); color: var(--lc-text); }

.lc-link {
  display: inline-flex; align-items: center; gap: 5px;
  border: none; background: none; color: var(--lc-blue); font: inherit; font-weight: 500; cursor: pointer; padding: 0;
}

/* ---------- Formularios ---------- */

#lakeclinic-root input, #lakeclinic-root select, #lakeclinic-root textarea {
  width: 100%; padding: 9px 12px; font: inherit; color: var(--lc-text);
  background: #fff; border: 1px solid var(--lc-border); border-radius: var(--lc-r-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
#lakeclinic-root input[type="checkbox"] { width: auto; }
#lakeclinic-root input[type="color"] { height: 38px; padding: 3px; }
#lakeclinic-root input:focus, #lakeclinic-root select:focus, #lakeclinic-root textarea:focus {
  outline: none; border-color: var(--lc-blue); box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}
#lakeclinic-root input:disabled, #lakeclinic-root textarea:disabled, #lakeclinic-root select:disabled {
  background: var(--lc-surface-2); color: var(--lc-text-2); cursor: not-allowed;
}
#lakeclinic-root textarea { resize: vertical; line-height: 1.6; }

.lc-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lc-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.lc-field-full { grid-column: 1 / -1; }
.lc-field label { font-size: 12px; font-weight: 600; color: var(--lc-text-2); }
.lc-hint { font-size: 11px; color: var(--lc-text-3); }

.lc-inline { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.lc-inline-tight { gap: 6px; margin-bottom: 0; }
.lc-inline .lc-btn { flex-shrink: 0; }

.lc-search { position: relative; display: flex; align-items: center; }
.lc-search i { position: absolute; left: 11px; color: var(--lc-text-3); }
.lc-search input { padding-left: 34px; min-width: 220px; }
.lc-search-wide input { min-width: 340px; }

/* ---------- Toolbar / tabs ---------- */

.lc-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
}
.lc-toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lc-toolbar select { width: auto; min-width: 190px; }
.lc-range { font-size: 14px; color: var(--lc-navy); margin-left: 6px; }

.lc-tabs {
  display: inline-flex; gap: 3px; padding: 3px;
  background: var(--lc-surface-2); border-radius: var(--lc-r);
}
.lc-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border: none; background: none; border-radius: var(--lc-r-sm);
  font: inherit; font-weight: 500; color: var(--lc-text-2); cursor: pointer; transition: all .16s ease;
}
.lc-tab:hover { color: var(--lc-text); }
.lc-tab.active { background: #fff; color: var(--lc-blue); font-weight: 600; box-shadow: var(--lc-shadow); }
.lc-tabs-sm { margin-bottom: 18px; }

/* ---------- Cards e stats ---------- */

.lc-card {
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); padding: 20px;
}
.lc-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lc-card-head h2 { font-size: 16px; font-weight: 600; color: var(--lc-navy); }

.lc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.lc-stat {
  display: flex; align-items: center; gap: 13px;
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); padding: 16px 18px;
}
.lc-stat-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.lc-tone-blue   { background: var(--lc-blue); }
.lc-tone-indigo { background: var(--lc-indigo); }
.lc-tone-purple { background: var(--lc-purple); }
.lc-tone-cyan   { background: var(--lc-cyan); }
.lc-stat-value { font-size: 21px; font-weight: 700; color: var(--lc-navy); letter-spacing: -.4px; }
.lc-stat-label { font-size: 12px; color: var(--lc-text-2); }

.lc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* ---------- Listas ---------- */

.lc-list li, .lc-timeline li {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--lc-border);
}
.lc-list li:last-child, .lc-timeline li:last-child { border-bottom: none; }
.lc-list li > div:first-child, .lc-timeline li > div { flex: 1; min-width: 0; }
.lc-time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--lc-navy); width: 44px; flex-shrink: 0; }
.lc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.lc-subsection { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--lc-border); }
.lc-subsection h3 { font-size: 14px; font-weight: 600; color: var(--lc-navy); margin-bottom: 8px; }

/* ---------- Avatares e badges ---------- */

.lc-avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--lc-gradient); color: #fff; font-size: 12px; font-weight: 600;
}
.lc-avatar-sm { width: 26px; height: 26px; font-size: 10px; }
.lc-avatar-lg { width: 46px; height: 46px; font-size: 15px; }

.lc-badge {
  display: inline-block; padding: 3px 9px; border-radius: 20px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.lc-pri-alta  { background: #FEE2E2; color: #991B1B; }
.lc-pri-media { background: #FEF3C7; color: #92400E; }
.lc-pri-baixa { background: #D1FAE5; color: #065F46; }

.lc-st-agendado   { background: #E0E7FF; color: #3730A3; }
.lc-st-confirmado { background: #DBEAFE; color: #1E40AF; }
.lc-st-presente   { background: #D1FAE5; color: #065F46; }
.lc-st-falta      { background: #FEE2E2; color: #991B1B; }
.lc-st-cancelado  { background: #F1F5F9; color: #64748B; }

.lc-status-ativo    { background: #D1FAE5; color: #065F46; }
.lc-status-pausado, .lc-status-afastado { background: #FEF3C7; color: #92400E; }
.lc-status-inativo  { background: #F1F5F9; color: #64748B; }
.lc-status-alta     { background: #E0E7FF; color: #3730A3; }

.lc-tag {
  display: inline-block; padding: 3px 9px; border-radius: var(--lc-r-sm);
  background: rgba(79,70,229,.09); color: var(--lc-indigo); font-size: 11px; font-weight: 600;
}
.lc-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }

/* ---------- Kanban ---------- */

.lc-board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(258px, 1fr);
  gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start;
}
.lc-col {
  background: var(--lc-surface-2); border-radius: var(--lc-r-lg);
  padding: 14px; min-height: 340px; display: flex; flex-direction: column;
}
.lc-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.lc-col-head h3 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--lc-text-2); }
.lc-count {
  background: #fff; color: var(--lc-blue); font-size: 11px; font-weight: 700;
  padding: 1px 8px; border-radius: 20px;
}
.lc-col-body { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.lc-col-empty { text-align: center; color: var(--lc-text-3); font-size: 12px; padding: 20px 0; }

.lc-task {
  background: #fff; border: 1px solid var(--lc-border); border-radius: var(--lc-r);
  padding: 12px; cursor: pointer; transition: all .16s ease;
}
.lc-task:hover { border-color: var(--lc-blue); box-shadow: var(--lc-shadow-md); transform: translateY(-1px); }
.lc-task.dragging { opacity: .45; }
.lc-task-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.lc-task-title { font-weight: 600; font-size: 13.5px; line-height: 1.4; margin-bottom: 9px; }
.lc-task-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 9px; border-top: 1px solid var(--lc-surface-2);
}
.lc-task-meta { display: flex; align-items: center; gap: 11px; font-size: 11.5px; color: var(--lc-text-2); }
.lc-task-meta span, .lc-task-meta > * { display: inline-flex; align-items: center; gap: 3px; }

/* ---------- Agenda ---------- */

.lc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.lc-week-single { grid-template-columns: 1fr; }
.lc-day {
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r); padding: 10px; min-height: 260px;
  display: flex; flex-direction: column;
}
.lc-day-today { border-color: var(--lc-blue); box-shadow: 0 0 0 3px rgba(47,107,255,.09); }
.lc-day-head {
  display: flex; align-items: baseline; gap: 6px;
  padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--lc-border);
}
.lc-day-name { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--lc-text-3); }
.lc-day-num { font-size: 17px; font-weight: 700; color: var(--lc-navy); }
.lc-day-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.lc-day-empty { text-align: center; color: var(--lc-text-3); font-size: 11px; padding: 14px 0; }
.lc-day-add {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin-top: 8px; padding: 6px; border: 1px dashed var(--lc-border-2); border-radius: var(--lc-r-sm);
  background: none; color: var(--lc-text-3); font: inherit; font-size: 11px; cursor: pointer;
}
.lc-day-add:hover { border-color: var(--lc-blue); color: var(--lc-blue); }

.lc-appt {
  display: flex; flex-direction: column; gap: 1px; text-align: left;
  padding: 8px 9px; border: 1px solid var(--lc-border); border-left: 3px solid var(--lc-blue);
  border-radius: var(--lc-r-sm); background: #fff; cursor: pointer; font: inherit;
  transition: all .16s ease;
}
.lc-appt:hover { box-shadow: var(--lc-shadow-md); transform: translateX(1px); }
.lc-appt-time { font-size: 11px; font-weight: 700; color: var(--lc-navy); font-variant-numeric: tabular-nums; }
.lc-appt-name { font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-appt-meta { font-size: 10.5px; color: var(--lc-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-st-border-cancelado { opacity: .5; text-decoration: line-through; }
.lc-st-border-falta { background: #FEF2F2; }
.lc-st-border-presente { background: #F0FDF4; }

/* ---------- Tabela ---------- */

.lc-table-wrap {
  background: #fff; border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); overflow: hidden;
}
.lc-table { width: 100%; border-collapse: collapse; }
.lc-table th {
  text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px; color: var(--lc-text-3);
  background: var(--lc-surface-2); border-bottom: 1px solid var(--lc-border);
}
.lc-table td { padding: 12px 16px; border-bottom: 1px solid var(--lc-border); vertical-align: middle; }
.lc-table tbody tr { cursor: pointer; transition: background .14s ease; }
.lc-table tbody tr:hover { background: var(--lc-surface-2); }
.lc-table tbody tr:last-child td { border-bottom: none; }
.lc-cell-user { display: flex; align-items: center; gap: 10px; }

/* ---------- Pessoa ---------- */

.lc-person {
  display: flex; gap: 13px; align-items: flex-start;
  background: #fff; border: 1px solid var(--lc-border); border-radius: var(--lc-r-lg);
  padding: 16px; cursor: pointer; transition: all .16s ease;
}
.lc-person:hover { border-color: var(--lc-blue); box-shadow: var(--lc-shadow-md); }
.lc-person-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lc-person-meta { display: flex; flex-direction: column; gap: 3px; margin-top: 5px; }
.lc-person-meta li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--lc-text-2); }

/* ---------- Prontuarios ---------- */

.lc-records { display: flex; flex-direction: column; gap: 10px; }
.lc-record {
  background: #fff; border: 1px solid var(--lc-border); border-left: 3px solid var(--lc-indigo);
  border-radius: var(--lc-r); padding: 14px 16px; cursor: pointer; transition: all .16s ease;
}
.lc-record:hover { box-shadow: var(--lc-shadow-md); }
.lc-record-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.lc-record-badges { display: flex; align-items: center; gap: 8px; color: var(--lc-text-3); }
.lc-record-text { font-size: 13px; color: var(--lc-text-2); line-height: 1.6; }

.lc-lock {
  display: flex; align-items: center; gap: 9px; margin-top: 16px;
  padding: 11px 14px; background: var(--lc-surface-2); border-radius: var(--lc-r);
  font-size: 13px; font-weight: 500; cursor: pointer;
}

/* ---------- Notas / alertas ---------- */

.lc-note {
  display: flex; align-items: flex-start; gap: 9px; margin-top: 14px;
  padding: 11px 14px; background: rgba(47,107,255,.07); border-radius: var(--lc-r);
  font-size: 12.5px; color: #1E3A8A; line-height: 1.55;
}
.lc-alert {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 16px; background: #FFFBEB; border: 1px solid #FDE68A;
  border-radius: var(--lc-r); color: #92400E;
}
.lc-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.lc-chip {
  padding: 4px 11px; border-radius: 20px; border: 1px solid #FDE68A;
  background: #fff; color: #92400E; font: inherit; font-size: 12px; cursor: pointer;
}
.lc-chip:hover { background: #FEF3C7; }

/* ---------- Checklist / log ---------- */

.lc-check li {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--lc-border);
}
.lc-check label { display: flex; align-items: center; gap: 9px; flex: 1; cursor: pointer; font-size: 13.5px; }
.lc-check .done { text-decoration: line-through; color: var(--lc-text-3); }

.lc-log li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--lc-border); }
.lc-log li:last-child { border-bottom: none; }
.lc-log p { font-size: 13px; }

/* ---------- Empty ---------- */

.lc-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 40px 20px; text-align: center; color: var(--lc-text-3);
}
.lc-empty-title { font-weight: 600; color: var(--lc-text-2); }

/* ---------- Modal ---------- */

.lc-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(15,30,61,.5); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 4vh 16px; overflow-y: auto;
  animation: lc-fade .18s ease;
}
@keyframes lc-fade { from { opacity: 0; } to { opacity: 1; } }
.lc-modal {
  background: #fff; border-radius: var(--lc-r-lg); box-shadow: var(--lc-shadow-lg);
  width: 100%; max-width: 520px; margin: auto 0;
  animation: lc-rise .22s ease;
}
.lc-modal-wide { max-width: 780px; }
@keyframes lc-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.lc-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
  padding: 20px 22px 14px; border-bottom: 1px solid var(--lc-border);
}
.lc-modal-head h2 { font-size: 17px; font-weight: 700; color: var(--lc-navy); }
.lc-modal-head p { font-size: 12.5px; }
.lc-modal-body { padding: 20px 22px; }
.lc-modal-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--lc-border);
}

/* ---------- Toast ---------- */

.lc-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 100000; padding: 12px 20px; border-radius: var(--lc-r);
  background: var(--lc-navy); color: #fff; font-size: 13.5px; font-weight: 500;
  box-shadow: var(--lc-shadow-lg); animation: lc-toast-in .22s ease;
}
.lc-toast-err { background: var(--lc-danger); }
@keyframes lc-toast-in { from { transform: translate(-50%, 12px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* ---------- Responsivo ---------- */

@media (max-width: 900px) {
  .lc-app { grid-template-columns: 1fr; }
  .lc-nav {
    position: fixed; inset: 0 auto 0 0; z-index: 9999; width: 232px;
    transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: var(--lc-shadow-lg);
  }
  .lc-nav-open { transform: none; }
  .lc-menu-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-bottom: 14px;
    border: 1px solid var(--lc-border); border-radius: var(--lc-r-sm);
    background: #fff; cursor: pointer;
  }
  .lc-main { padding: 18px 16px 32px; }
  .lc-grid-2 { grid-template-columns: 1fr; }
  .lc-form { grid-template-columns: 1fr; }
  .lc-week { grid-template-columns: 1fr; }
  .lc-search input, .lc-search-wide input { min-width: 0; width: 100%; }
  .lc-toolbar select { width: 100%; }
  .lc-page-head h1 { font-size: 20px; }
}

/* ---------- Impressao ---------- */

@media print {
  .lc-nav, .lc-toolbar, .lc-page-head button, .lc-modal-foot { display: none !important; }
  .lc-app { border: none; grid-template-columns: 1fr; }
}

/* ============================================================
   NOTIFICACOES E MENCOES
   ============================================================ */

.lc-bell { position: relative; margin-top: auto; }
.lc-bell.has-unread { color: var(--lc-blue); font-weight: 600; }
.lc-bell-count {
  position: absolute; right: 10px;
  min-width: 18px; height: 18px; padding: 0 5px;
  display: flex; align-items: center; justify-content: center;
  background: var(--lc-danger); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 20px;
}

.lc-notif-wrap {
  position: fixed; inset: 0; z-index: 99998;
  background: rgba(15,30,61,.28);
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 60px 0 0 244px;
}
.lc-notif-panel {
  width: 340px; max-height: 70vh; overflow-y: auto;
  background: #fff; border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); box-shadow: var(--lc-shadow-lg);
  animation: lc-rise .18s ease;
}
.lc-notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 16px; border-bottom: 1px solid var(--lc-border);
  position: sticky; top: 0; background: #fff; border-radius: var(--lc-r-lg) var(--lc-r-lg) 0 0;
}
.lc-notif-list li {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 16px; border-bottom: 1px solid var(--lc-border); cursor: pointer;
  transition: background .14s ease;
}
.lc-notif-list li:hover { background: var(--lc-surface-2); }
.lc-notif-list li:last-child { border-bottom: none; }
.lc-notif-list li.unread { background: rgba(47,107,255,.045); }
.lc-notif-list li.unread .lc-strong::after {
  content: ''; display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--lc-blue); margin-left: 6px; vertical-align: middle;
}
.lc-notif-icon {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.lc-nt-mencao      { background: var(--lc-purple); }
.lc-nt-indicacao   { background: var(--lc-blue); }
.lc-nt-agendamento { background: var(--lc-cyan); }

.lc-commentbox { position: relative; margin-bottom: 14px; }
.lc-commentbox .lc-inline { margin-bottom: 0; }
.lc-suggest {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
  margin-top: 4px; background: #fff;
  border: 1px solid var(--lc-border); border-radius: var(--lc-r);
  box-shadow: var(--lc-shadow-md); overflow: hidden;
}
.lc-suggest li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; cursor: pointer; transition: background .14s ease;
}
.lc-suggest li:hover { background: rgba(47,107,255,.07); }

.lc-mention {
  background: rgba(79,70,229,.12); color: var(--lc-indigo);
  padding: 1px 5px; border-radius: 4px; font-weight: 600;
}

.lc-btn-on {
  background: rgba(47,107,255,.09);
  border-color: var(--lc-blue); color: var(--lc-blue); font-weight: 600;
}

@media (max-width: 900px) {
  .lc-notif-wrap { padding: 60px 12px 0; justify-content: center; }
  .lc-notif-panel { width: 100%; max-width: 380px; }
}

/* ============================================================
   TELA DE LOGIN
   ============================================================ */

.lc-login {
  font-family: var(--lc-font);
  min-height: 78vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 20px; padding: 40px 16px;
  background:
    radial-gradient(1000px 400px at 50% -10%, rgba(47,107,255,.09), transparent 70%),
    var(--lc-bg);
}
.lc-login-card {
  width: 100%; max-width: 396px;
  background: #fff; border: 1px solid var(--lc-border);
  border-radius: var(--lc-r-lg); box-shadow: var(--lc-shadow-md);
  padding: 34px 32px 28px; text-align: center;
}
.lc-login-logo { width: 210px; height: auto; margin: 0 auto 4px; display: block; }
.lc-login-sub { margin: 0 0 22px; font-size: 13.5px; color: var(--lc-text-2); }

.lc-login form { text-align: left; }
.lc-login label {
  display: block; margin-bottom: 5px;
  font-size: 12px; font-weight: 600; color: var(--lc-text-2);
}
.lc-login input[type="text"],
.lc-login input[type="password"] {
  width: 100%; box-sizing: border-box;
  padding: 11px 13px; margin-bottom: 15px;
  font: inherit; font-size: 14px; color: var(--lc-text);
  background: #fff; border: 1px solid var(--lc-border); border-radius: var(--lc-r-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.lc-login input[type="text"]:focus,
.lc-login input[type="password"]:focus {
  outline: none; border-color: var(--lc-blue);
  box-shadow: 0 0 0 3px rgba(47,107,255,.12);
}
.lc-login-check {
  display: flex !important; align-items: center; gap: 8px;
  margin-bottom: 18px; font-weight: 500 !important; color: var(--lc-text-2);
  font-size: 13px; cursor: pointer;
}
.lc-login-check input { width: auto; margin: 0; }

.lc-login-btn {
  width: 100%; padding: 12px;
  background: var(--lc-gradient); color: #fff;
  border: none; border-radius: var(--lc-r);
  font: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: filter .16s ease, transform .16s ease;
}
.lc-login-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.lc-login-btn:active { transform: none; }

.lc-login-link {
  display: inline-block; margin-top: 16px;
  font-size: 12.5px; color: var(--lc-text-2); text-decoration: none;
}
.lc-login-link:hover { color: var(--lc-blue); text-decoration: underline; }

.lc-login-erro {
  padding: 11px 14px; margin-bottom: 18px;
  background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--lc-r-sm);
  color: #991B1B; font-size: 13px; text-align: left;
}
.lc-login-foot { margin: 0; font-size: 12px; color: var(--lc-text-3); }

/* ============================================================
   EDITOR DE ETAPAS
   ============================================================ */

.lc-colsedit { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lc-colsedit li {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px; background: var(--lc-surface-2); border-radius: var(--lc-r);
}
.lc-colsedit-n {
  width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #fff; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: var(--lc-text-2);
}
.lc-colsedit input { flex: 1; min-width: 0; background: #fff; }
.lc-colsedit-c {
  flex-shrink: 0; padding: 2px 9px; border-radius: 20px;
  background: rgba(47,107,255,.1); color: var(--lc-blue);
  font-size: 11px; font-weight: 700;
}
.lc-colsedit .lc-icon-btn { width: 28px; height: 28px; flex-shrink: 0; }
.lc-colsedit .lc-icon-btn:disabled { opacity: .3; cursor: not-allowed; }
.lc-colsedit .lc-icon-btn:disabled:hover { background: none; }
.lc-icon-danger:hover { background: #FEF2F2 !important; color: var(--lc-danger) !important; }

.lc-btn-dash {
  width: 100%; justify-content: center;
  border-style: dashed; border-color: var(--lc-border-2);
  color: var(--lc-text-2); background: none;
}
.lc-btn-dash:hover { border-color: var(--lc-blue); background: rgba(47,107,255,.04); }

.lc-nav-user-info { flex: 1; min-width: 0; }
.lc-nav-user-info p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-nav-user .lc-icon-btn { flex-shrink: 0; text-decoration: none; }

/* ============================================================
   V3 - TOPBAR, GRUPOS DE MENU, QUADROS
   ============================================================ */

.lc-topbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.lc-spin i { animation: lc-spin 1s linear infinite; }

.lc-navgroup { margin-bottom: 12px; }
.lc-navgroup-title {
  font-size: 10px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--lc-text-3); padding: 0 12px; margin-bottom: 5px;
}
.lc-brand-name { font-size: 19px; font-weight: 700; letter-spacing: -.3px; color: var(--lc-navy); }

/* Seletor de quadros */
.lc-boardbar {
  display: flex; gap: 7px; flex-wrap: wrap; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--lc-border);
}
.lc-boardchip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border: 1.5px solid var(--lc-border); border-radius: 22px;
  background: #fff; font: inherit; font-size: 13px; font-weight: 500;
  color: var(--lc-text-2); cursor: pointer; transition: all .16s ease;
}
.lc-boardchip:hover { border-color: var(--lc-border-2); color: var(--lc-text); }
.lc-boardchip.active { color: var(--lc-navy); font-weight: 600; box-shadow: var(--lc-shadow); }
.lc-boardchip-add { border-style: dashed; color: var(--lc-text-3); }
.lc-boardchip-add:hover { border-color: var(--lc-blue); color: var(--lc-blue); }
.lc-chipcount {
  padding: 0 7px; border-radius: 20px; background: var(--lc-surface-2);
  font-size: 11px; font-weight: 700; color: var(--lc-text-2);
}
.lc-toolbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Card com cor, capa, etiquetas e botao concluir */
.lc-task { position: relative; overflow: hidden; }
.lc-task-color { position: absolute; inset: 0 auto 0 0; width: 4px; }
.lc-task-cover {
  display: block; width: calc(100% + 24px); margin: -12px -12px 10px;
  max-height: 116px; object-fit: cover;
}
.lc-task-done {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--lc-border-2); border-radius: 50%;
  background: #fff; color: var(--lc-text-3); cursor: pointer; transition: all .16s ease;
}
.lc-task-done:hover { background: var(--lc-success); border-color: var(--lc-success); color: #fff; }
.lc-avatars { display: flex; align-items: center; }
.lc-avatars .lc-avatar { margin-left: -6px; border: 2px solid #fff; }
.lc-avatars .lc-avatar:first-child { margin-left: 0; }
.lc-avatar-more { background: var(--lc-surface-2) !important; color: var(--lc-text-2); font-size: 9px; }
.lc-done { color: var(--lc-success); font-weight: 600; }
.lc-col-arch { margin-left: auto; }

/* Responsaveis */
.lc-members { position: relative; }
.lc-memberchips { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.lc-memberchip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 6px 4px 4px; border-radius: 20px;
  background: var(--lc-surface-2); font-size: 12.5px; font-weight: 500;
}
.lc-chipx {
  width: 18px; height: 18px; border: none; border-radius: 50%;
  background: rgba(15,30,61,.08); color: var(--lc-text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lc-chipx:hover { background: var(--lc-danger); color: #fff; }
.lc-memberlist {
  margin-top: 8px; max-height: 240px; overflow-y: auto;
  border: 1px solid var(--lc-border); border-radius: var(--lc-r); background: #fff;
}
.lc-memberlist li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  cursor: pointer; border-bottom: 1px solid var(--lc-surface-2);
}
.lc-memberlist li:last-child { border-bottom: none; }
.lc-memberlist li:hover { background: var(--lc-surface-2); }
.lc-memberlist li.on { background: rgba(47,107,255,.06); color: var(--lc-blue); }
.lc-memberlist li > div { flex: 1; min-width: 0; }

/* Etiquetas em botao */
.lc-labelrow { display: flex; flex-wrap: wrap; gap: 6px; }
.lc-labelbtn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px; border: 1px solid transparent; border-radius: 20px;
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all .16s ease;
}
.lc-labelbtn:hover { filter: brightness(.96); }
.lc-tag {
  display: inline-block; padding: 3px 9px; border-radius: 5px;
  font-size: 11px; font-weight: 700;
}

/* Paleta */
.lc-colorpicker { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lc-swatch {
  width: 26px; height: 26px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; padding: 0; transition: transform .14s ease;
}
.lc-swatch:hover { transform: scale(1.1); }
.lc-swatch.on { border-color: var(--lc-navy); box-shadow: 0 0 0 2px #fff inset; }
.lc-swatch-none {
  background: #fff; border: 1.5px dashed var(--lc-border-2); color: var(--lc-text-3);
  display: flex; align-items: center; justify-content: center;
}

/* Checklists */
.lc-checklist {
  padding: 14px; margin-bottom: 12px;
  background: var(--lc-surface-2); border-radius: var(--lc-r);
}
.lc-checklist-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lc-checklist-title {
  flex: 1; background: transparent !important; border: none !important;
  font-weight: 700 !important; font-size: 14px !important; padding: 4px 6px !important;
}
.lc-checklist-title:focus { background: #fff !important; }
.lc-checklist-pct { font-size: 12px; font-weight: 700; color: var(--lc-blue); }
.lc-progress { height: 5px; border-radius: 3px; background: var(--lc-border); overflow: hidden; margin-bottom: 8px; }
.lc-progress span { display: block; height: 100%; background: var(--lc-gradient); transition: width .25s ease; }
.lc-checkdate {
  flex-shrink: 0; padding: 2px 7px; border-radius: 20px;
  background: rgba(16,185,129,.13); color: #065F46; font-size: 10.5px; font-weight: 700;
}
.lc-check li { border-bottom-color: rgba(226,232,240,.7); }

/* Entregas */
.lc-deliveries li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; margin-bottom: 7px;
  background: var(--lc-surface-2); border-radius: var(--lc-r); color: var(--lc-text-2);
}
.lc-deliveries li > div { flex: 1; min-width: 0; }
.lc-a { color: var(--lc-blue); text-decoration: none; word-break: break-all; }
.lc-a:hover { text-decoration: underline; }
.lc-linkpreview {
  margin-top: 8px; padding: 10px 12px;
  background: var(--lc-surface-2); border-radius: var(--lc-r);
  font-size: 12.5px; line-height: 1.6; word-break: break-word;
}

/* Anexos */
.lc-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 26px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--lc-border-2); border-radius: var(--lc-r-lg);
  color: var(--lc-text-2); transition: all .16s ease;
}
.lc-dropzone:hover, .lc-dropzone.on { border-color: var(--lc-blue); background: rgba(47,107,255,.04); color: var(--lc-blue); }
.lc-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px; margin-top: 14px;
}
.lc-gallery figure { margin: 0; border: 1px solid var(--lc-border); border-radius: var(--lc-r); overflow: hidden; background: #fff; }
.lc-gallery img { display: block; width: 100%; height: 96px; object-fit: cover; }
.lc-filebox {
  display: flex; align-items: center; justify-content: center;
  height: 96px; background: var(--lc-surface-2); color: var(--lc-danger);
}
.lc-gallery figcaption {
  display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 9px;
  font-size: 11px; color: var(--lc-text-2);
}
.lc-gallery figcaption span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Calendario mensal do marketing */
.lc-month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.lc-month-wd {
  padding: 6px 0; text-align: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--lc-text-3);
}
.lc-mday {
  min-height: 104px; padding: 6px; background: #fff;
  border: 1px solid var(--lc-border); border-radius: var(--lc-r-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.lc-mday.fora { background: var(--lc-surface-2); opacity: .6; }
.lc-mday.hoje { border-color: var(--lc-blue); box-shadow: 0 0 0 2px rgba(47,107,255,.1); }
.lc-mday-n { font-size: 12px; font-weight: 700; color: var(--lc-text-2); }
.lc-mday.hoje .lc-mday-n { color: var(--lc-blue); }
.lc-mday-body { display: flex; flex-direction: column; gap: 3px; }
.lc-mtask {
  display: flex; flex-direction: column; text-align: left; gap: 1px;
  padding: 4px 6px; border: none; border-left: 3px solid var(--lc-blue); border-radius: 4px;
  background: var(--lc-surface-2); cursor: pointer; font: inherit; transition: all .14s ease;
}
.lc-mtask:hover { background: rgba(47,107,255,.09); }
.lc-mtask-b { font-size: 9px; font-weight: 700; color: var(--lc-text-3); text-transform: uppercase; letter-spacing: .3px; }
.lc-mtask-t { font-size: 11.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Barra de proporcao */
.lc-barwrap { display: flex; flex-direction: column; gap: 10px; }
.lc-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--lc-surface-2); }
.lc-bar span { display: block; }
.lc-barleg { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--lc-text-2); }
.lc-barleg li { display: flex; align-items: center; gap: 6px; }
.lc-barleg strong { color: var(--lc-navy); }

/* Tons extras */
.lc-tone-green { background: var(--lc-success); }
.lc-tone-red   { background: var(--lc-danger); }
.lc-badge.lc-neutral { background: var(--lc-surface-2); color: var(--lc-text-2); }
.lc-btn-ok { border-color: rgba(16,185,129,.4); color: #047857; }
.lc-btn-ok:hover { background: rgba(16,185,129,.08); border-color: var(--lc-success); color: #047857; }
.lc-modal-accent { height: 4px; border-radius: var(--lc-r-lg) var(--lc-r-lg) 0 0; }
.lc-archlist li { gap: 10px; }

@media (max-width: 900px) {
  .lc-month { font-size: 11px; }
  .lc-mday { min-height: 72px; }
  .lc-mtask-b { display: none; }
  .lc-gallery { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}

/* ============================================================
   V3.1 - AUTOSAVE, ACESSOS, CARD COLORIDO
   ============================================================ */

/* Card com cor e estado de concluido */
.lc-task-color { position: absolute; inset: 0 0 auto 0; width: auto; height: 5px; }
.lc-task { padding-top: 15px; }
.lc-task-ok { opacity: .8; }
.lc-risc { text-decoration: line-through; color: var(--lc-text-2); }
.lc-task-actions { display: flex; align-items: center; gap: 5px; }
.lc-task-arch {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 50%;
  background: none; color: var(--lc-text-3); cursor: pointer; transition: all .16s ease;
}
.lc-task-arch:hover { background: var(--lc-surface-2); color: var(--lc-text); }
.lc-task-done.on { background: var(--lc-success); border-color: var(--lc-success); color: #fff; }
.lc-task-done.on:hover { background: #059669; }
.lc-tags { margin-bottom: 8px; }

/* Indicador de salvamento */
.lc-autohint {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 12px; font-size: 12px; color: var(--lc-text-3);
}
.lc-autosave {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px; border-radius: 20px;
  font-size: 12px; font-weight: 600;
  background: var(--lc-surface-2); color: var(--lc-text-2);
}
.lc-autosave.salvo { background: rgba(16,185,129,.12); color: #047857; }
.lc-autosave.salvando i { animation: lc-spin 1s linear infinite; }
.lc-btn-ok.on { background: rgba(16,185,129,.12); border-color: var(--lc-success); font-weight: 600; }

/* Comentarios e itens editaveis */
.lc-log li { align-items: flex-start; }
.lc-log-body { flex: 1; min-width: 0; }

.lc-delivery-edit { flex-wrap: wrap; align-items: flex-start; }


/* Acessos */
.lc-accessbox {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 14px 16px; border-radius: var(--lc-r);
  background: var(--lc-surface-2); color: var(--lc-text-2);
}
.lc-accessbox-ok { background: rgba(16,185,129,.09); color: #065F46; }
.lc-accessbox code {
  padding: 2px 7px; border-radius: 5px; background: #fff;
  font-size: 13px; font-weight: 700; color: var(--lc-navy);
  border: 1px solid var(--lc-border);
}
.lc-person-side { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; flex-shrink: 0; }

/* Barra inferior do menu */
.lc-nav-actions { display: flex; gap: 6px; margin-top: 10px; }
.lc-nav-actions .lc-btn { flex: 1; justify-content: center; padding: 7px 8px; font-size: 12px; }
.lc-btn-exit { text-decoration: none; }
.lc-btn-exit:hover { border-color: var(--lc-danger); color: var(--lc-danger); }
.lc-nav-user { padding-bottom: 0; border-bottom: none; }

/* Troca obrigatoria de senha */
.lc-app-locked {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  grid-template-columns: none; min-height: 70vh; padding: 40px 20px;
}
.lc-locked-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lc-locked-inner h1 { font-size: 22px; font-weight: 700; color: var(--lc-navy); margin-top: 8px; }

/* ============================================================
   V3.2 - ACOES SEMPRE VISIVEIS (editar / excluir)
   ============================================================ */

/* Grupo de botoes de acao — visivel sempre, inclusive no celular */
.lc-itemactions {
  display: flex; align-items: center; gap: 2px; flex-shrink: 0;
  padding: 2px; border-radius: 8px; background: rgba(15,30,61,.04);
}
.lc-itemactions .lc-icon-btn {
  width: 28px; height: 28px; border-radius: 6px;
  color: var(--lc-text-2); text-decoration: none;
}
.lc-itemactions .lc-icon-btn:hover { background: #fff; color: var(--lc-blue); box-shadow: var(--lc-shadow); }
.lc-itemactions .lc-icon-danger:hover { background: #FEF2F2; color: var(--lc-danger); box-shadow: none; }

.lc-log li { align-items: flex-start; gap: 10px; }
.lc-check li { gap: 8px; }
.lc-deliveries li { align-items: center; }

/* Anexos: legenda e acoes */
.lc-gallery figure { position: relative; display: flex; flex-direction: column; }
.lc-gallery figcaption { padding: 6px 8px 4px; }
.lc-renameinput {
  width: 100%; padding: 3px 6px !important; font-size: 11px !important;
  border-radius: 4px !important;
}
.lc-gallery .lc-itemactions {
  margin: 0 6px 6px; justify-content: center; background: var(--lc-surface-2);
}
.lc-gallery .lc-itemactions .lc-icon-btn { width: 30px; height: 26px; }

@media (max-width: 900px) {
  .lc-itemactions { background: transparent; }
  .lc-itemactions .lc-icon-btn { width: 34px; height: 34px; }
}

/* ============================================================
   V3.3 - BOTOES DE ACAO COM CONTORNO + LOGO CLICAVEL
   ============================================================ */

/* Botao de acao: contorno e cor proprias, sempre legivel */
.lc-actbtn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 7px;
  border: 1px solid var(--lc-border-2); background: #fff;
  font: inherit; font-size: 12px; font-weight: 600;
  color: var(--lc-text-2); cursor: pointer; text-decoration: none;
  transition: all .15s ease; white-space: nowrap;
}
.lc-actbtn:hover { border-color: var(--lc-blue); color: var(--lc-blue); background: rgba(47,107,255,.06); }
.lc-actbtn-danger { border-color: #FCA5A5; color: #B91C1C; }
.lc-actbtn-danger:hover { border-color: var(--lc-danger); color: #B91C1C; background: #FEF2F2; }

.lc-itemactions { background: none; padding: 0; gap: 6px; }

/* Em espacos apertados, so o icone */
.lc-check .lc-actbtn, .lc-gallery .lc-actbtn { padding: 5px 8px; }
.lc-check .lc-actbtn span, .lc-gallery .lc-actbtn span { display: none; }

/* Botoes do card no quadro */
.lc-task-arch, .lc-task-done { border: 1px solid var(--lc-border-2) !important; background: #fff; }
.lc-task-arch { color: var(--lc-text-2); }
.lc-task-arch:hover { border-color: var(--lc-blue) !important; color: var(--lc-blue); }
.lc-task-done { color: var(--lc-text-2); }
.lc-task-done.on { border-color: var(--lc-success) !important; }

/* Logo clicavel */
.lc-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px; margin: -6px -8px 0;
  border: none; background: none; border-radius: var(--lc-r);
  cursor: pointer; font: inherit; text-align: left;
  transition: background .15s ease;
}
.lc-brand:hover { background: var(--lc-surface-2); }
.lc-brand:active { transform: scale(.985); }

@media (max-width: 900px) {
  .lc-actbtn { padding: 8px 12px; font-size: 13px; }
  .lc-log .lc-actbtn span, .lc-deliveries .lc-actbtn span { display: none; }
}

/* ============================================================
   V3.4 - ICONES EMBUTIDOS (sem fonte externa)
   ============================================================ */

.lc-ic { flex-shrink: 0; vertical-align: -0.16em; display: inline-block; }
#lakeclinic-root button .lc-ic, #lakeclinic-root a .lc-ic { pointer-events: none; }
.lc-actbtn .lc-ic, .lc-btn .lc-ic { vertical-align: middle; }
.lc-icon-btn .lc-ic { vertical-align: middle; }
.lc-spin .lc-ic, .lc-autosave.salvando .lc-ic { animation: lc-spin 1s linear infinite; }

/* ============================================================
   V3.5 - FICHA DO PACIENTE E LINHA DO TRATAMENTO
   ============================================================ */

.lc-ficha { display: flex; flex-direction: column; gap: 16px; }

.lc-ficha-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.lc-ficha-id { display: flex; align-items: center; gap: 14px; }
.lc-ficha-id h2 { font-size: 20px; font-weight: 700; color: var(--lc-navy); }
.lc-ficha-nums { display: flex; gap: 26px; flex-wrap: wrap; }
.lc-ficha-nums div { display: flex; flex-direction: column; }
.lc-ficha-nums strong { font-size: 21px; font-weight: 700; color: var(--lc-navy); letter-spacing: -.5px; }
.lc-ficha-nums span { font-size: 11.5px; color: var(--lc-text-2); }

/* Plano terapeutico */
.lc-plano { display: flex; flex-direction: column; gap: 14px; }
.lc-plano h4 {
  margin: 0 0 3px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px; color: var(--lc-text-3);
}
.lc-plano p { font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; }
.lc-note-plan { background: rgba(124,58,237,.07); color: #4C1D95; }

/* Linha do tratamento */
.lc-linha { display: flex; flex-direction: column; gap: 0; counter-reset: sessao; }
.lc-linha li { display: flex; gap: 14px; position: relative; padding-bottom: 14px; }
.lc-linha li::before {
  content: ''; position: absolute; left: 15px; top: 34px; bottom: 0;
  width: 2px; background: var(--lc-border);
}
.lc-linha li:last-child::before { display: none; }

.lc-linha-n {
  width: 32px; height: 32px; flex-shrink: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--lc-gradient); color: #fff;
  font-size: 12.5px; font-weight: 700;
}
.lc-linha-corpo {
  flex: 1; min-width: 0;
  border: 1px solid var(--lc-border); border-radius: var(--lc-r);
  background: #fff; overflow: hidden; transition: border-color .16s ease;
}
.lc-linha li.aberto .lc-linha-corpo { border-color: var(--lc-blue); box-shadow: var(--lc-shadow-md); }
.lc-linha-topo {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; padding: 11px 14px; cursor: pointer;
}
.lc-linha-topo:hover { background: var(--lc-surface-2); }
.lc-linha-acoes { display: flex; align-items: center; gap: 8px; color: var(--lc-text-3); flex-shrink: 0; }
.lc-linha-resumo {
  padding: 0 14px 12px; font-size: 12.5px; color: var(--lc-text-2); line-height: 1.6;
}
.lc-linha-detalhe {
  padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 12px;
  border-top: 1px solid var(--lc-surface-2);
}
.lc-linha-detalhe h4 {
  margin: 0 0 3px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px; color: var(--lc-text-3);
}
.lc-linha-detalhe p { font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; }
.lc-linha-detalhe .lc-btn { align-self: flex-start; }

.lc-proximas { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--lc-border); }
.lc-proximas h4 {
  margin: 0 0 8px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .7px; color: var(--lc-text-3);
}
.lc-chip-quiet {
  border-color: var(--lc-border) !important; background: var(--lc-surface-2) !important;
  color: var(--lc-text-2) !important; cursor: default;
}
.lc-tabs .lc-tab .lc-ic { margin-right: 4px; }

@media (max-width: 900px) {
  .lc-ficha-nums { gap: 18px; }
  .lc-ficha-nums strong { font-size: 18px; }
  .lc-linha li { gap: 10px; }
}

/* ============================================================
   V4 - TELA CHEIA, TEMA ESCURO, CONTRASTE E MOBILE
   ============================================================ */

/* ---------- Ocupa a tela inteira ---------- */
#lakeclinic-root { display: block; }
.lc-app {
  min-height: calc(100vh - 2px);
  height: auto;
  border: none;
  border-radius: 0;
  align-items: stretch;
}
.lc-nav { min-height: 100%; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.lc-main { min-height: 100vh; display: flex; flex-direction: column; }
.lc-page { flex: 1; }

/* ---------- Contraste dos botoes ---------- */
/* O botao primario perdia legibilidade no hover — agora escurece o fundo */
.lc-btn-primary {
  background: var(--lc-gradient);
  color: #FFFFFF !important;
  text-shadow: 0 1px 1px rgba(15,30,61,.18);
}
.lc-btn-primary:hover {
  background: linear-gradient(135deg, #1E88D6 0%, #1E4FD8 45%, #5B21B6 100%);
  filter: none;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(47,107,255,.32);
}
.lc-btn-primary:focus-visible { outline: 3px solid rgba(47,107,255,.4); outline-offset: 2px; }
.lc-login-btn:hover { background: linear-gradient(135deg, #1E88D6 0%, #1E4FD8 45%, #5B21B6 100%); filter: none; }

.lc-btn:hover { background: rgba(47,107,255,.07); }
.lc-btn-danger:hover { background: #FEF2F2; }
.lc-nav-item:focus-visible, .lc-btn:focus-visible, .lc-actbtn:focus-visible {
  outline: 2px solid var(--lc-blue); outline-offset: 2px;
}

/* ---------- Etapas arrastaveis ---------- */
.lc-colsedit li { cursor: default; transition: transform .12s ease, box-shadow .12s ease; }
.lc-colsedit-drag {
  display: flex; align-items: center; color: var(--lc-text-3);
  cursor: grab; padding: 2px; flex-shrink: 0;
}
.lc-colsedit-drag:active { cursor: grabbing; }
.lc-colsedit li.arrastando { opacity: .45; }
.lc-colsedit li.alvo { box-shadow: inset 0 3px 0 var(--lc-blue); }

/* ---------- Perfil e foto ---------- */
.lc-perfilfoto { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.lc-avatar-xl, .lc-fotogrande {
  width: 82px; height: 82px; border-radius: 50%; font-size: 26px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.lc-fotogrande { object-fit: cover; border: 3px solid var(--lc-surface); box-shadow: var(--lc-shadow-md); }
.lc-avatar-img { object-fit: cover; }

/* ---------- Escolha de tema ---------- */
.lc-temas { display: flex; gap: 10px; flex-wrap: wrap; }
.lc-tema {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 16px; min-width: 104px;
  border: 2px solid var(--lc-border); border-radius: var(--lc-r-lg);
  background: var(--lc-surface); font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--lc-text-2); cursor: pointer; transition: all .16s ease;
}
.lc-tema:hover { border-color: var(--lc-border-2); }
.lc-tema.on { border-color: var(--lc-blue); color: var(--lc-blue); background: rgba(47,107,255,.06); }
.lc-tema-preview { width: 100%; height: 34px; border-radius: 7px; border: 1px solid var(--lc-border); }
.lc-tema-claro  { background: linear-gradient(135deg, #FFFFFF 50%, #F1F5F9 50%); }
.lc-tema-escuro { background: linear-gradient(135deg, #1E293B 50%, #0F172A 50%); }
.lc-tema-auto   { background: linear-gradient(135deg, #FFFFFF 50%, #0F172A 50%); }

/* ---------- Financeiro ---------- */
.lc-valor { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.lc-tone-amber { background: var(--lc-warning); }
.lc-pay-pago      { background: #D1FAE5; color: #065F46; }
.lc-pay-pendente  { background: #FEF3C7; color: #92400E; }
.lc-pay-vencida   { background: #FEE2E2; color: #991B1B; }
.lc-pay-pacote, .lc-pay-isento, .lc-pay-cancelado { background: #F1F5F9; color: #475569; }

/* ============================================================
   TEMA ESCURO
   ============================================================ */

#lakeclinic-root[data-lc-theme="escuro"] {
  --lc-navy:      #F1F5F9;
  --lc-text:      #E2E8F0;
  --lc-text-2:    #94A3B8;
  --lc-text-3:    #64748B;
  --lc-bg:        #0F172A;
  --lc-surface:   #1E293B;
  --lc-surface-2: #263449;
  --lc-border:    #334155;
  --lc-border-2:  #475569;
  --lc-shadow:    0 1px 2px rgba(0,0,0,.4);
  --lc-shadow-md: 0 6px 20px rgba(0,0,0,.45);
  --lc-shadow-lg: 0 24px 60px rgba(0,0,0,.6);
  color: var(--lc-text);
}
#lakeclinic-root[data-lc-theme="escuro"] .lc-app,
#lakeclinic-root[data-lc-theme="escuro"] .lc-login { background: var(--lc-bg); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-nav,
#lakeclinic-root[data-lc-theme="escuro"] .lc-card,
#lakeclinic-root[data-lc-theme="escuro"] .lc-task,
#lakeclinic-root[data-lc-theme="escuro"] .lc-modal,
#lakeclinic-root[data-lc-theme="escuro"] .lc-day,
#lakeclinic-root[data-lc-theme="escuro"] .lc-mday,
#lakeclinic-root[data-lc-theme="escuro"] .lc-appt,
#lakeclinic-root[data-lc-theme="escuro"] .lc-stat,
#lakeclinic-root[data-lc-theme="escuro"] .lc-person,
#lakeclinic-root[data-lc-theme="escuro"] .lc-record,
#lakeclinic-root[data-lc-theme="escuro"] .lc-table-wrap,
#lakeclinic-root[data-lc-theme="escuro"] .lc-linha-corpo,
#lakeclinic-root[data-lc-theme="escuro"] .lc-boardchip,
#lakeclinic-root[data-lc-theme="escuro"] .lc-notif-panel,
#lakeclinic-root[data-lc-theme="escuro"] .lc-suggest,
#lakeclinic-root[data-lc-theme="escuro"] .lc-memberlist,
#lakeclinic-root[data-lc-theme="escuro"] .lc-gallery figure,
#lakeclinic-root[data-lc-theme="escuro"] .lc-tema { background: var(--lc-surface); }

#lakeclinic-root[data-lc-theme="escuro"] input,
#lakeclinic-root[data-lc-theme="escuro"] select,
#lakeclinic-root[data-lc-theme="escuro"] textarea,
#lakeclinic-root[data-lc-theme="escuro"] .lc-btn,
#lakeclinic-root[data-lc-theme="escuro"] .lc-actbtn {
  background: var(--lc-surface-2); color: var(--lc-text); border-color: var(--lc-border);
}
#lakeclinic-root[data-lc-theme="escuro"] .lc-btn:hover,
#lakeclinic-root[data-lc-theme="escuro"] .lc-actbtn:hover { background: rgba(47,107,255,.18); color: #93C5FD; border-color: #3B82F6; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-actbtn-danger { color: #FCA5A5; border-color: #7F1D1D; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-actbtn-danger:hover { background: rgba(239,68,68,.18); color: #FCA5A5; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-btn-danger { color: #FCA5A5; border-color: #7F1D1D; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-btn-danger:hover { background: rgba(239,68,68,.16); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-btn-primary,
#lakeclinic-root[data-lc-theme="escuro"] .lc-login-btn { background: var(--lc-gradient); color: #fff !important; }

#lakeclinic-root[data-lc-theme="escuro"] .lc-col,
#lakeclinic-root[data-lc-theme="escuro"] .lc-checklist,
#lakeclinic-root[data-lc-theme="escuro"] .lc-deliveries li,
#lakeclinic-root[data-lc-theme="escuro"] .lc-tabs,
#lakeclinic-root[data-lc-theme="escuro"] .lc-accessbox,
#lakeclinic-root[data-lc-theme="escuro"] .lc-linkpreview { background: var(--lc-surface-2); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-tab.active { background: var(--lc-surface); color: #93C5FD; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-nav-item.active,
#lakeclinic-root[data-lc-theme="escuro"] .lc-bell.has-unread { background: rgba(47,107,255,.18); color: #93C5FD; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-table th { background: var(--lc-surface-2); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-table tbody tr:hover { background: var(--lc-surface-2); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-count,
#lakeclinic-root[data-lc-theme="escuro"] .lc-chipcount { background: var(--lc-surface-2); color: #93C5FD; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-alert { background: rgba(245,158,11,.12); border-color: #78350F; color: #FCD34D; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-chip { background: var(--lc-surface); border-color: #78350F; color: #FCD34D; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-note { background: rgba(47,107,255,.14); color: #BFDBFE; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-toast { background: #000; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-overlay { background: rgba(0,0,0,.66); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-brand:hover { background: var(--lc-surface-2); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-brand-name { color: #F1F5F9; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-progress { background: var(--lc-border); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-mday.fora { background: #172033; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-mtask { background: var(--lc-surface-2); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-swatch.on { border-color: #fff; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-accessbox code { background: var(--lc-bg); color: var(--lc-text); }

/* Badges no escuro */
#lakeclinic-root[data-lc-theme="escuro"] .lc-pri-alta,
#lakeclinic-root[data-lc-theme="escuro"] .lc-pay-vencida,
#lakeclinic-root[data-lc-theme="escuro"] .lc-st-falta { background: rgba(239,68,68,.2); color: #FCA5A5; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-pri-media,
#lakeclinic-root[data-lc-theme="escuro"] .lc-pay-pendente { background: rgba(245,158,11,.2); color: #FCD34D; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-pri-baixa,
#lakeclinic-root[data-lc-theme="escuro"] .lc-pay-pago,
#lakeclinic-root[data-lc-theme="escuro"] .lc-status-ativo,
#lakeclinic-root[data-lc-theme="escuro"] .lc-st-presente { background: rgba(16,185,129,.2); color: #6EE7B7; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-st-agendado,
#lakeclinic-root[data-lc-theme="escuro"] .lc-st-confirmado { background: rgba(59,130,246,.2); color: #93C5FD; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-neutral,
#lakeclinic-root[data-lc-theme="escuro"] .lc-status-inativo,
#lakeclinic-root[data-lc-theme="escuro"] .lc-st-cancelado { background: var(--lc-surface-2); color: var(--lc-text-2); }

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 900px) {
  .lc-app { min-height: 100vh; }
  .lc-nav { height: 100vh; position: fixed; }
  .lc-main { padding: 14px 12px 28px; }
  .lc-topbar { position: sticky; top: 0; z-index: 50; padding: 8px 0; background: var(--lc-bg); }
  .lc-page-head { gap: 10px; }
  .lc-page-head h1 { font-size: 19px; }
  .lc-page-head > button, .lc-page-head .lc-btn { width: 100%; justify-content: center; }
  .lc-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lc-stat { padding: 12px; gap: 9px; }
  .lc-stat-icon { width: 34px; height: 34px; border-radius: 10px; }
  .lc-stat-value { font-size: 17px; }
  .lc-card { padding: 14px; }
  .lc-toolbar { gap: 8px; }
  .lc-toolbar-left, .lc-toolbar-right { width: 100%; }
  .lc-tabs { width: 100%; overflow-x: auto; }
  .lc-tab { white-space: nowrap; }
  .lc-board { grid-auto-columns: 84vw; }
  .lc-boardbar { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 10px; }
  .lc-boardchip { white-space: nowrap; }
  .lc-table-wrap { overflow-x: auto; }
  .lc-table { min-width: 640px; }
  .lc-modal { max-width: 100%; margin: 0; }
  .lc-overlay { padding: 12px 8px; }
  .lc-modal-foot { flex-wrap: wrap; }
  .lc-modal-foot .lc-btn { flex: 1; justify-content: center; }
  .lc-ficha-nums { width: 100%; justify-content: space-between; gap: 12px; }
  .lc-temas { width: 100%; }
  .lc-tema { flex: 1; min-width: 0; }
  .lc-nav-actions { flex-direction: column; }
}

@media (max-width: 560px) {
  .lc-stats { grid-template-columns: 1fr; }
  .lc-board { grid-auto-columns: 90vw; }
  .lc-ficha-nums strong { font-size: 16px; }
  .lc-ficha-nums span { font-size: 10.5px; }
}

/* ============================================================
   V4.1 - GRAFICOS, VIDEO E TEXTO LONGO
   ============================================================ */

/* ---------- Texto longo nunca vaza do quadro ---------- */
#lakeclinic-root p, #lakeclinic-root span, #lakeclinic-root td, #lakeclinic-root li, #lakeclinic-root a {
  overflow-wrap: anywhere; word-break: break-word; min-width: 0;
}
.lc-person-body, .lc-person-meta, .lc-nav-user-info, .lc-cell-user > div,
.lc-list li > div, .lc-timeline li > div, .lc-tele-info { min-width: 0; max-width: 100%; }

/* E-mail e telefone: corta com reticencias em vez de estourar */
.lc-person-meta li {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lc-person-meta li .lc-ic { flex-shrink: 0; }
.lc-nav-user-name, .lc-legenda-nome, .lc-barrash-nome {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lc-quebra { overflow-wrap: anywhere; }
.lc-table td { max-width: 260px; overflow-wrap: anywhere; }
.lc-suggest li > div, .lc-memberlist li > div { overflow: hidden; }
.lc-memberlist li p, .lc-suggest li p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-accessbox { overflow-wrap: anywhere; }
.lc-modal-head h2 { overflow-wrap: anywhere; }

/* ---------- Rosca ---------- */
.lc-donutwrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.lc-donut { flex-shrink: 0; }
.lc-fatia { transition: opacity .16s ease; }
.lc-fatia:hover { opacity: .82; }
.lc-donut-valor { font-size: 19px; font-weight: 700; fill: var(--lc-navy); }
.lc-donut-rot { font-size: 10.5px; fill: var(--lc-text-2); }
.lc-donut-vazio { font-size: 12px; fill: var(--lc-text-3); }

.lc-legenda { flex: 1; min-width: 190px; display: flex; flex-direction: column; gap: 9px; }
.lc-legenda li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.lc-legenda-nome { flex: 1; color: var(--lc-text-2); }
.lc-legenda-valor { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--lc-navy); white-space: nowrap; }
.lc-legenda-pct {
  min-width: 40px; text-align: right; font-size: 11.5px; font-weight: 700; color: var(--lc-text-3);
}
.lc-legenda-inline { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--lc-text-2); }

/* ---------- Colunas ---------- */
.lc-colunas { position: relative; display: flex; padding-left: 46px; }
.lc-colunas-grade {
  position: absolute; inset: 0 0 22px 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.lc-linha-grade { position: relative; border-top: 1px dashed var(--lc-border); }
.lc-linha-grade span {
  position: absolute; left: 0; top: -7px; width: 42px; text-align: right;
  font-size: 10px; color: var(--lc-text-3);
}
.lc-colunas-area { flex: 1; display: flex; align-items: flex-end; gap: 6px; position: relative; }
.lc-coluna { display: flex; flex-direction: column; align-items: center; height: 100%; }
.lc-coluna-barras {
  flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  padding-bottom: 4px;
}
.lc-barra {
  width: 40%; max-width: 26px; min-height: 3px;
  background: var(--lc-blue); border-radius: 4px 4px 0 0;
  transition: opacity .16s ease;
}
.lc-barra:hover { opacity: .8; }
.lc-barra-2 { background: var(--lc-success); }
.lc-coluna-rot { font-size: 10.5px; color: var(--lc-text-2); padding-top: 4px; }

/* ---------- Barras horizontais ---------- */
.lc-barrash { display: flex; flex-direction: column; gap: 13px; }
.lc-barrash-topo { display: flex; align-items: baseline; gap: 10px; margin-bottom: 5px; }
.lc-barrash-nome { flex: 1; font-size: 13px; font-weight: 600; color: var(--lc-navy); }
.lc-barrash-trilho { height: 9px; border-radius: 5px; background: var(--lc-surface-2); overflow: hidden; }
.lc-barrash-trilho span { display: block; height: 100%; border-radius: 5px; transition: width .3s ease; }

.lc-mininums {
  display: flex; gap: 20px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid var(--lc-border); flex-wrap: wrap;
}
.lc-mininums div { display: flex; flex-direction: column; }
.lc-mininums strong { font-size: 16px; font-weight: 700; color: var(--lc-navy); }
.lc-mininums span { font-size: 11px; color: var(--lc-text-2); }

/* ---------- Teleatendimento ---------- */
.lc-teleList { display: flex; flex-direction: column; }
.lc-teleList li {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid var(--lc-border); flex-wrap: wrap;
}
.lc-teleList li:last-child { border-bottom: none; }
.lc-tele-hora {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px;
  color: var(--lc-navy); width: 52px; flex-shrink: 0;
}
.lc-tele-info { flex: 1; min-width: 160px; }
.lc-tele-acoes { display: flex; gap: 7px; flex-wrap: wrap; }

.lc-passos { display: flex; flex-direction: column; gap: 10px; counter-reset: passo; padding-left: 0; }
.lc-passos li {
  position: relative; padding-left: 34px; font-size: 13.5px; line-height: 1.6; color: var(--lc-text-2);
}
.lc-passos li::before {
  counter-increment: passo; content: counter(passo);
  position: absolute; left: 0; top: 0;
  width: 23px; height: 23px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--lc-surface-2); color: var(--lc-blue);
  font-size: 11.5px; font-weight: 700;
}
.lc-passos strong { color: var(--lc-navy); }

/* ---------- Janela flutuante da chamada ---------- */
.lc-chamada {
  position: fixed; right: 22px; bottom: 22px; z-index: 99990;
  width: min(680px, calc(100vw - 44px)); height: min(460px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: #0F172A; border-radius: var(--lc-r-lg); overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  transition: width .2s ease, height .2s ease;
}
.lc-chamada.mini { width: 292px; height: 194px; }
.lc-chamada-barra {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 10px 8px 13px; background: #111C33; color: #E2E8F0; flex-shrink: 0;
}
.lc-chamada-tit {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lc-chamada-tit .lc-muted { color: #94A3B8; }
.lc-chamada-btns { display: flex; gap: 2px; flex-shrink: 0; }
.lc-chamada-btns .lc-icon-btn { color: #94A3B8; }
.lc-chamada-btns .lc-icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.lc-chamada-btns .lc-icon-danger:hover { background: var(--lc-danger); color: #fff; }
.lc-aovivo {
  width: 8px; height: 8px; border-radius: 50%; background: #EF4444; flex-shrink: 0;
  animation: lc-pulso 1.6s ease-in-out infinite;
}
@keyframes lc-pulso { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.lc-chamada-video { flex: 1; position: relative; background: #0F172A; }
.lc-chamada-video iframe { width: 100% !important; height: 100% !important; border: 0; }
.lc-chamada-aviso {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px;
  color: #94A3B8; font-size: 13px; text-align: center; padding: 20px;
}
.lc-chamada-erro { color: #FCA5A5; }
.lc-chamada.mini .lc-chamada-video { pointer-events: auto; }

@media (max-width: 900px) {
  .lc-chamada { right: 8px; left: 8px; bottom: 8px; width: auto; height: 56vh; }
  .lc-chamada.mini { width: 176px; height: 118px; left: auto; }
  .lc-donutwrap { justify-content: center; }
  .lc-legenda { min-width: 100%; }
  .lc-tele-hora { width: 44px; font-size: 14px; }
  .lc-tele-acoes { width: 100%; }
  .lc-tele-acoes .lc-btn, .lc-tele-acoes .lc-actbtn { flex: 1; justify-content: center; }
}

/* Escuro */
#lakeclinic-root[data-lc-theme="escuro"] .lc-barrash-trilho,
#lakeclinic-root[data-lc-theme="escuro"] .lc-passos li::before { background: var(--lc-surface-2); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-donut-valor { fill: #F1F5F9; }

/* ============================================================
   V5 - CARD COMPLETO, CHECKLIST RICA, AUDIO E REORDENACAO
   ============================================================ */

/* ---------- Card aberto: tudo a vista ---------- */
.lc-modal-wide { max-width: 1080px; }
.lc-cardgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.lc-cardcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.lc-bloco {
  border: 1px solid var(--lc-border); border-radius: var(--lc-r-lg);
  padding: 15px; background: var(--lc-surface);
}
.lc-bloco-tit {
  display: flex; align-items: center; gap: 7px; margin: 0 0 12px;
  font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  color: var(--lc-text-2);
}
.lc-bloco-tit .lc-count { margin-left: auto; }
.lc-bloco .lc-form { gap: 12px; }

/* ---------- Caixa de comentario que cresce ---------- */
.lc-cbox {
  border: 1px solid var(--lc-border); border-radius: var(--lc-r);
  background: var(--lc-surface); overflow: hidden;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.lc-cbox:focus-within { border-color: var(--lc-blue); box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
.lc-cbox textarea {
  width: 100%; border: none !important; box-shadow: none !important;
  background: transparent !important; resize: none; min-height: 76px; padding: 11px 13px !important;
  line-height: 1.6;
}
.lc-cbox textarea:focus { outline: none; }
.lc-cbox-pe {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px; border-top: 1px solid var(--lc-border); background: var(--lc-surface-2);
}
.lc-cbox-img { position: relative; margin: 0 13px 10px; display: inline-block; }
.lc-cbox-img img { max-height: 130px; border-radius: var(--lc-r-sm); display: block; }
.lc-cbox-img .lc-chipx { position: absolute; top: -7px; right: -7px; background: var(--lc-danger); color: #fff; }

/* ---------- Comentarios ---------- */
.lc-log { margin-top: 14px; }
.lc-log-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.lc-log-topo .lc-itemactions { margin-left: auto; }
.lc-log-texto { font-size: 13.5px; line-height: 1.65; white-space: pre-wrap; }
.lc-log-com { background: var(--lc-surface-2); border-radius: var(--lc-r); padding: 11px 12px; border-bottom: none; margin-bottom: 8px; }
.lc-log-img { display: block; margin-top: 8px; }
.lc-log-img img {
  max-width: 100%; max-height: 260px; border-radius: var(--lc-r-sm);
  border: 1px solid var(--lc-border); display: block;
}

/* ---------- Checklist rica ---------- */
.lc-checkli { flex-direction: column; align-items: stretch; gap: 0; }
.lc-checkli-linha { display: flex; align-items: center; gap: 10px; width: 100%; }
.lc-checkli-linha label { flex: 1; min-width: 0; }
.lc-checkli-meta { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.lc-checkdue {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px;
  background: rgba(245,158,11,.16); color: #92400E; font-size: 10.5px; font-weight: 700;
}
.lc-checkdue.atrasado { background: rgba(239,68,68,.16); color: #991B1B; }
.lc-checkdue.feito { background: rgba(16,185,129,.16); color: #065F46; }
.lc-checkli-det {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 8px 0 4px; padding: 10px; background: var(--lc-surface); border-radius: var(--lc-r-sm);
}

/* ---------- Modelos de checklist ---------- */
.lc-modelos {
  margin-top: 10px; padding: 12px; border-radius: var(--lc-r);
  background: var(--lc-surface-2); display: flex; flex-direction: column; gap: 8px;
}
.lc-modelo {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 11px; background: var(--lc-surface);
  border: 1px solid var(--lc-border); border-radius: var(--lc-r-sm);
}
.lc-modelo > div:first-child { flex: 1; min-width: 0; }

/* ---------- Audio ---------- */
.lc-fig-audio { grid-column: span 2; }
.lc-audiobox { padding: 12px 10px; background: var(--lc-surface-2); }
.lc-audiobox audio { width: 100%; height: 38px; }

/* ---------- Reordenacao de cards ---------- */
.lc-slot { position: relative; }
.lc-slot.alvo::before {
  content: ''; position: absolute; top: -5px; left: 0; right: 0;
  height: 3px; border-radius: 2px; background: var(--lc-blue);
}
.lc-task { cursor: grab; }
.lc-task:active { cursor: grabbing; }

@media (max-width: 900px) {
  .lc-cardgrid { grid-template-columns: 1fr; gap: 14px; }
  .lc-checkli-det { grid-template-columns: 1fr; }
  .lc-checkli-linha { flex-wrap: wrap; }
  .lc-fig-audio { grid-column: 1 / -1; }
}

/* Escuro */
#lakeclinic-root[data-lc-theme="escuro"] .lc-bloco,
#lakeclinic-root[data-lc-theme="escuro"] .lc-cbox,
#lakeclinic-root[data-lc-theme="escuro"] .lc-modelo { background: var(--lc-surface); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-cbox-pe,
#lakeclinic-root[data-lc-theme="escuro"] .lc-log-com,
#lakeclinic-root[data-lc-theme="escuro"] .lc-modelos,
#lakeclinic-root[data-lc-theme="escuro"] .lc-audiobox { background: var(--lc-surface-2); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-checkdue { background: rgba(245,158,11,.2); color: #FCD34D; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-checkdue.atrasado { background: rgba(239,68,68,.2); color: #FCA5A5; }
#lakeclinic-root[data-lc-theme="escuro"] .lc-checkdue.feito { background: rgba(16,185,129,.2); color: #6EE7B7; }

/* ============================================================
   V5.1 - VISOR DE IMAGEM, MODELOS DE CARD, PERIODO
   ============================================================ */

/* ---------- Visor de imagem em tela cheia ---------- */
.lc-lightbox {
  position: fixed; inset: 0; z-index: 100001;
  background: rgba(8,14,28,.93);
  display: flex; align-items: center; justify-content: center;
  padding: 62px 20px 24px; cursor: zoom-out;
  animation: lc-fade .16s ease;
}
.lc-lightbox img {
  max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: var(--lc-r);
  box-shadow: 0 24px 70px rgba(0,0,0,.6); cursor: default;
}
.lc-lightbox-barra {
  position: absolute; top: 14px; right: 16px;
  display: flex; gap: 8px;
}
.lc-lightbox-barra .lc-btn {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25);
  text-decoration: none;
}
.lc-lightbox-barra .lc-btn:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- Menu de modelos ---------- */
.lc-dropwrap { position: relative; }
.lc-dropmenu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  min-width: 290px; max-height: 340px; overflow-y: auto;
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: var(--lc-r); box-shadow: var(--lc-shadow-lg);
  padding: 5px;
}
.lc-dropmenu li { display: flex; align-items: center; gap: 4px; }
.lc-dropmenu li > button:first-child {
  flex: 1; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 9px 11px; border: none; background: none; border-radius: var(--lc-r-sm);
  font: inherit; color: var(--lc-text); cursor: pointer; min-width: 0;
}
.lc-dropmenu li > button:first-child:hover { background: var(--lc-surface-2); }
.lc-dropmenu li > button:first-child div { min-width: 0; }

/* ---------- Comentario ainda nao publicado ---------- */
.lc-log-pend {
  border: 1px dashed var(--lc-border-2);
  background: rgba(245,158,11,.07) !important;
}

@media (max-width: 900px) {
  .lc-lightbox { padding: 56px 10px 14px; }
  .lc-dropmenu { right: auto; left: 0; min-width: 260px; }
}

#lakeclinic-root[data-lc-theme="escuro"] .lc-dropmenu { background: var(--lc-surface); }

/* ============================================================
   V5.2 - REACOES, ETIQUETAS E NOTIFICACOES
   ============================================================ */

/* ---------- Reacoes no comentario ---------- */
.lc-reacoes { display: flex; align-items: center; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.lc-reacao {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px;
  border: 1px solid var(--lc-border); background: var(--lc-surface);
  font: inherit; font-size: 12px; font-weight: 600; color: var(--lc-text-2);
  cursor: pointer; transition: all .14s ease; line-height: 1.4;
}
.lc-reacao span { font-size: 13px; }
.lc-reacao:hover { border-color: var(--lc-blue); }
.lc-reacao.on { background: rgba(47,107,255,.12); border-color: var(--lc-blue); color: var(--lc-blue); }
.lc-reacao-add { color: var(--lc-text-3); padding: 4px 8px; }

.lc-emojibar {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 70;
  display: flex; gap: 2px; padding: 5px;
  background: var(--lc-surface); border: 1px solid var(--lc-border);
  border-radius: 22px; box-shadow: var(--lc-shadow-md);
}
.lc-emojibar button {
  width: 32px; height: 32px; border: none; background: none; border-radius: 50%;
  font-size: 17px; cursor: pointer; transition: transform .12s ease, background .12s ease;
}
.lc-emojibar button:hover { background: var(--lc-surface-2); transform: scale(1.15); }

/* ---------- Excluir etiqueta ---------- */
.lc-labelwrap { position: relative; display: inline-flex; }
.lc-labelx {
  position: absolute; top: -5px; right: -5px;
  width: 17px; height: 17px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: none; background: var(--lc-danger); color: #fff; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.lc-labelx:hover { background: #B91C1C; }

/* ---------- Notificacoes ---------- */
.lc-notif-filtro {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-bottom: 1px solid var(--lc-border);
  font-size: 12.5px; color: var(--lc-text-2); cursor: pointer;
}
.lc-notif-filtro input { width: auto; }
.lc-notif-list li { position: relative; }
.lc-notif-x { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; }
.lc-notif-list li > div { padding-right: 22px; }

#lakeclinic-root[data-lc-theme="escuro"] .lc-reacao,
#lakeclinic-root[data-lc-theme="escuro"] .lc-emojibar { background: var(--lc-surface-2); }

/* ============================================================
   LAKECLINIC - EVOLUCAO DO PACIENTE
   ============================================================ */

.lc-topbar-clinic { font-weight: 600; color: var(--lc-text-2); font-size: 13px; }
.lc-note-setup { margin: 0 0 16px; }
.lc-optcheck { display: flex; align-items: center; gap: 9px; font-size: 13px; cursor: pointer; padding: 6px 0; }
.lc-optcheck input { width: auto !important; }

/* ---------- Resumo ---------- */
.lc-evo-card .lc-card-head h2 { display: flex; align-items: center; gap: 8px; }
.lc-evo-resumo {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px;
}
.lc-evo-res {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px;
  background: var(--lc-surface-2); border-radius: var(--lc-r);
}
.lc-evo-res-rot { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .7px; color: var(--lc-text-3); }
.lc-evo-res strong { font-size: 24px; font-weight: 700; color: var(--lc-navy); letter-spacing: -.5px; line-height: 1.15; }
.lc-evo-res strong small { font-size: 13px; color: var(--lc-text-3); font-weight: 600; margin-left: 2px; }
.lc-evo-res-sub { font-size: 12px; color: var(--lc-text-2); }
.lc-evo-res-sub.up { color: #059669; font-weight: 600; }
.lc-evo-res-sub.down { color: #DC2626; font-weight: 600; }
.lc-evo-mov { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--lc-text-2); margin-top: 3px; }
.lc-evo-mov b { font-size: 17px; margin-right: 3px; }
.lc-evo-alerta { margin-bottom: 14px; }

.lc-trend { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.lc-trend-up { color: #059669; }
.lc-trend-flat { color: var(--lc-text-2); }
.lc-trend-down { color: #DC2626; }
.lc-evo-res .lc-trend { font-size: 16px; margin-top: 2px; }

/* ---------- Grafico ---------- */
.lc-evo-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 8px; }
.lc-evo-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 20px;
  border: 1px solid var(--lc-border); background: var(--lc-surface); color: var(--lc-text-2);
  font: inherit; font-size: 12px; cursor: pointer; transition: all .15s ease;
}
.lc-evo-chip:hover { border-color: var(--lc-border-2); color: var(--lc-text); }
.lc-evo-chip.on { border-color: var(--lc-blue); color: var(--lc-text); background: rgba(47,107,255,.07); font-weight: 600; }
.lc-evo-chip.fixo { cursor: default; }
.lc-evo-todos { font-size: 12px; margin-left: 4px; }
.lc-evo-sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
.lc-evo-sw-idx { background: linear-gradient(90deg, #29B6F6, #2F6BFF, #7C3AED); width: 16px; height: 4px; border-radius: 2px; }

.lc-evo-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.lc-evo-svg { display: block; }
.lc-evo-svg text { font-family: var(--lc-font); }
.lc-evo-grade { stroke: var(--lc-border); stroke-width: 1; }
.lc-evo-grade.meio { stroke-dasharray: 4 4; stroke: var(--lc-border-2); }
.lc-evo-eixo { font-size: 10.5px; fill: var(--lc-text-3); }
.lc-evo-x { font-size: 11px; font-weight: 700; fill: var(--lc-text-2); }
.lc-evo-x.on { fill: var(--lc-blue); }
.lc-evo-xdata { font-size: 10px; fill: var(--lc-text-3); }
.lc-evo-sel { fill: none; stroke: var(--lc-blue); stroke-width: 1.4; stroke-dasharray: 3 3; opacity: .55; }
.lc-evo-mais { font-size: 10px; font-weight: 700; fill: var(--lc-text-2); }
.lc-evo-falta { stroke: #94A3B8; stroke-width: 1.5; stroke-dasharray: 2 3; }
.lc-evo-falta-txt { font-size: 9.5px; font-weight: 700; fill: #94A3B8; }

.lc-evo-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 11.5px; color: var(--lc-text-2); margin-top: 6px; }
.lc-evo-leg > span { display: inline-flex; align-items: center; gap: 6px; }
.lc-evo-legbar { width: 16px; height: 5px; border-radius: 3px; display: inline-block; }
.lc-evo-legfalta { font-size: 10px; font-weight: 700; color: #94A3B8; border: 1px dashed #94A3B8; border-radius: 3px; padding: 0 3px; }
.lc-evo-legrisco { width: 12px; height: 12px; border-radius: 50%; border: 2px dashed #EF4444; display: inline-block; }

.lc-evo-detalhe {
  margin-top: 14px; padding: 14px 16px; border: 1px solid var(--lc-border); border-radius: var(--lc-r);
  background: var(--lc-surface); display: flex; flex-direction: column; gap: 10px;
}
.lc-evo-detalhe-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.lc-evo-nota {
  font-size: 13px; line-height: 1.6; padding: 8px 12px; border-left: 3px solid #0EA5E9;
  background: rgba(14,165,233,.07); border-radius: 0 var(--lc-r-sm) var(--lc-r-sm) 0; white-space: pre-wrap;
}
.lc-evo-texto { font-size: 12.5px; color: var(--lc-text-2); line-height: 1.6; white-space: pre-wrap; }
.lc-evo-notas { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 18px; }
.lc-evo-nota-ind { display: grid; grid-template-columns: 10px minmax(0, 1fr) 70px 26px; align-items: center; gap: 8px; font-size: 12px; }
.lc-evo-nota-rot { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--lc-text-2); }
.lc-evo-nota-bar { height: 6px; background: var(--lc-surface-2); border-radius: 3px; overflow: hidden; }
.lc-evo-nota-bar span { display: block; height: 100%; border-radius: 3px; }
.lc-evo-nota-ind strong { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Marcos e movimento (tags) ---------- */
.lc-marcos-linha, .lc-linha-marcos { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lc-linha-marcos { padding: 0 14px 10px; }
.lc-linha-marcos-lista { padding: 0 0 8px; }
.lc-marco-tag {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px;
  font-size: 11.5px; font-weight: 600; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.lc-linha-nota { width: 100%; font-size: 12.5px; line-height: 1.55; color: var(--lc-text); font-style: italic; margin-top: 2px; }
.lc-mov-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
}
.lc-idx-pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; padding: 2px 7px;
  border-radius: 6px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--lc-gradient);
  font-variant-numeric: tabular-nums;
}
.lc-linha li.lc-chave .lc-linha-corpo { border-left: 3px solid #0EA5E9; }
.lc-linha-falta {
  display: flex; align-items: center; gap: 5px; padding: 6px 14px 0; font-size: 11.5px; color: var(--lc-text-3);
}

/* ---------- Leitura da sessao (formulario) ---------- */
.lc-leitura h3 { display: flex; align-items: center; gap: 7px; }
.lc-leitura-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.lc-leitura-idx {
  display: flex; flex-direction: column; align-items: flex-end; padding: 8px 14px; border-radius: var(--lc-r);
  background: var(--lc-surface-2); min-width: 130px;
}
.lc-leitura-idx span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; color: var(--lc-text-3); }
.lc-leitura-idx strong { font-size: 24px; font-weight: 700; color: var(--lc-navy); line-height: 1.2; }
.lc-leitura-idx em { font-style: normal; font-size: 11.5px; color: var(--lc-text-2); }
.lc-leitura-idx em.up { color: #059669; font-weight: 600; }
.lc-leitura-idx em.down { color: #DC2626; font-weight: 600; }
.lc-leitura-rot { font-size: 12px; font-weight: 700; color: var(--lc-text-2); margin: 14px 0 8px !important; }
.lc-leitura-escalas-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.lc-leitura-escalas-head .lc-link { font-size: 12px; margin-top: 6px; }

.lc-movs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lc-mov {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 11px 12px;
  border: 1.5px solid var(--lc-border); border-radius: var(--lc-r); background: var(--lc-surface);
  color: var(--lc-text-2); font: inherit; text-align: left; cursor: pointer; transition: all .15s ease;
}
.lc-mov:hover:not(:disabled) { border-color: var(--c); color: var(--c); }
.lc-mov.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--lc-surface)); color: var(--c); }
.lc-mov:disabled { cursor: not-allowed; opacity: .75; }
.lc-mov-nome { font-weight: 700; font-size: 13.5px; }
.lc-mov-txt { font-size: 11px; line-height: 1.35; color: var(--lc-text-3); }

.lc-escalas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.lc-escala { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--lc-border); border-radius: var(--lc-r); }
.lc-escala.vazio { border-style: dashed; }
.lc-escala.vazio input[type="range"] { opacity: .35; }
.lc-escala-topo { display: flex; align-items: center; gap: 7px; }
.lc-escala-nome { flex: 1; font-size: 13px; font-weight: 600; }
.lc-escala-valor { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--lc-text-3); }
.lc-escala.vazio .lc-escala-valor { font-size: 11px; font-weight: 500; }
#lakeclinic-root .lc-escala input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; padding: 0; border: none;
  border-radius: 3px; background: var(--lc-surface-2); accent-color: var(--c); cursor: pointer; margin: 6px 0;
}
#lakeclinic-root .lc-escala input[type="range"]:focus { box-shadow: none; }
#lakeclinic-root .lc-escala input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c); border: 3px solid var(--lc-surface); box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
#lakeclinic-root .lc-escala input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 3px solid var(--lc-surface);
}
.lc-escala-pe { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.lc-escala-ant { font-size: 11px; color: var(--lc-text-3); white-space: nowrap; }
.lc-escala-ant b.up { color: #059669; }
.lc-escala-ant b.down { color: #DC2626; }
.lc-escala-x { border: none; background: none; color: var(--lc-text-3); font: inherit; font-size: 11px; text-decoration: underline; cursor: pointer; margin-left: 6px; padding: 0; }

.lc-marcos { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.lc-marco {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px;
  border: 1.5px solid var(--lc-border); background: var(--lc-surface); color: var(--lc-text-2);
  font: inherit; font-size: 12.5px; cursor: pointer; transition: all .15s ease;
}
.lc-marco:hover:not(:disabled) { border-color: var(--c); color: var(--c); }
.lc-marco.on { border-color: var(--c); background: var(--c); color: #fff; font-weight: 600; }
.lc-marco:disabled { cursor: not-allowed; }

/* ---------- Sparkline e painel ---------- */
.lc-spark { display: block; overflow: visible; }
.lc-spark-meio { stroke: var(--lc-border); stroke-dasharray: 2 3; }
.lc-td-evo { cursor: pointer; }
.lc-td-evo:hover .lc-spark path { stroke-width: 2.6; }

.lc-carteira { margin-top: 18px; }
.lc-carteira-lista li {
  display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-bottom: 1px solid var(--lc-border);
  cursor: pointer; border-radius: var(--lc-r-sm);
}
.lc-carteira-lista li:last-child { border-bottom: none; }
.lc-carteira-lista li:hover { background: var(--lc-surface-2); }
.lc-carteira-nome { flex: 1; min-width: 0; }
.lc-carteira-nome p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-carteira-idx { display: flex; flex-direction: column; align-items: flex-end; min-width: 86px; }
.lc-carteira-idx strong { font-size: 17px; color: var(--lc-navy); }
.lc-carteira-idx .lc-trend { font-size: 11.5px; }
.lc-carteira-alerta {
  width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #FEF2F2; color: #DC2626; flex-shrink: 0;
}

/* ---------- Configuracao dos indicadores ---------- */
.lc-inds { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.lc-inds li { display: flex; gap: 10px; padding: 12px; border: 1px solid var(--lc-border); border-radius: var(--lc-r); }
.lc-inds li.off { opacity: .55; }
.lc-inds-ordem { display: flex; flex-direction: column; }
.lc-inds-campos { flex: 1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; min-width: 0; }
.lc-inds-ops { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 12.5px; }
.lc-inds-ops label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

/* ---------- Escuro ---------- */
#lakeclinic-root[data-lc-theme="escuro"] .lc-carteira-alerta { background: rgba(239,68,68,.15); }
#lakeclinic-root[data-lc-theme="escuro"] .lc-evo-chip,
#lakeclinic-root[data-lc-theme="escuro"] .lc-mov,
#lakeclinic-root[data-lc-theme="escuro"] .lc-marco { background: var(--lc-surface); }

/* ---------- Celular ---------- */
@media (max-width: 760px) {
  .lc-movs { grid-template-columns: 1fr 1fr; }
  .lc-escalas { grid-template-columns: 1fr; }
  .lc-inds-campos { grid-template-columns: 1fr; }
  .lc-carteira-lista .lc-spark { display: none; }
  .lc-evo-res strong { font-size: 20px; }
  .lc-linha-topo { flex-wrap: wrap; }
  .lc-linha-acoes { flex-wrap: wrap; flex-shrink: 1; }
  .lc-linha li { gap: 8px; }
  .lc-evo-detalhe { padding: 12px; }
}

/* ---------- Impressao da ficha ---------- */
@media print {
  .lc-evo-chips, .lc-evo-todos, .lc-evo-detalhe .lc-btn { display: none !important; }
  .lc-evo-scroll { overflow: visible; }
}

/* ============================================================
   V0.2 - TELA CHEIA (modelo proprio do plugin)
   ============================================================ */
html, body.lakeclinic-full { margin: 0 !important; padding: 0 !important; background: var(--lc-bg, #F7F9FC); }
body.lakeclinic-full #lakeclinic-root { min-height: 100vh; width: 100%; max-width: none; }
body.lakeclinic-full .lc-app { min-height: 100vh; border: none; border-radius: 0; }
body.lakeclinic-full .lc-login { min-height: 100vh; }
#lakeclinic-root[data-lc-theme="escuro"] { background: var(--lc-bg); }

/* ============================================================
   V0.2 - AGENDA -> PRONTUARIO, CHECKLIST, CASAL
   ============================================================ */
.lc-modal-xl { max-width: 1240px !important; }
.lc-rec-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.lc-rec-main { min-width: 0; }
.lc-rec-side { position: sticky; top: 0; }
.lc-checksessao {
  border: 1px solid var(--lc-border); border-radius: var(--lc-r-lg); padding: 14px 16px;
  background: var(--lc-surface-2); display: flex; flex-direction: column; gap: 8px;
}
.lc-checksessao-bloco { padding-bottom: 10px; border-bottom: 1px solid var(--lc-border); }
.lc-checksessao-bloco .lc-leitura-rot, .lc-checksessao-head .lc-leitura-rot { margin: 0 0 8px !important; display: flex; align-items: center; gap: 6px; }
.lc-checksessao-head { display: flex; justify-content: space-between; align-items: center; }
.lc-checksessao-n { font-size: 12px; font-weight: 700; color: var(--lc-blue); }
.lc-checksessao-bar { height: 5px; border-radius: 3px; background: var(--lc-border); overflow: hidden; }
.lc-checksessao-bar span { display: block; height: 100%; background: var(--lc-gradient); transition: width .2s ease; }
.lc-checksessao-lista { display: flex; flex-direction: column; gap: 2px; }
.lc-checksessao-lista label {
  display: flex; gap: 9px; align-items: flex-start; padding: 7px 8px; border-radius: var(--lc-r-sm);
  font-size: 12.5px; line-height: 1.4; cursor: pointer;
}
.lc-checksessao-lista label:hover { background: var(--lc-surface); }
.lc-checksessao-lista label.on { background: var(--lc-surface); font-weight: 600; }
.lc-checksessao-lista input { width: 16px !important; height: 16px; margin-top: 1px; flex-shrink: 0; accent-color: var(--lc-blue); }
.lc-check-ef { display: block; font-style: normal; font-weight: 500; font-size: 10.5px; color: #0284C7; margin-top: 1px; }
.lc-check-ef.risco { color: #DC2626; }

.lc-quem { flex-wrap: wrap; }
.lc-quem .lc-tab { font-size: 12.5px; }
.lc-quem-tag, .lc-check-pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 600; background: var(--lc-surface-2); color: var(--lc-text-2);
}
.lc-quem-tag.ind { background: rgba(124,58,237,.1); color: #6D28D9; }

/* Agenda: botoes no card */
.lc-appt-st { margin-left: 6px; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; opacity: .8; }
.lc-appt-acoes { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.lc-appt-btn {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--lc-border); background: var(--lc-surface); color: var(--lc-text-2);
  font: inherit; font-size: 10.5px; font-weight: 600; cursor: pointer;
}
.lc-appt-btn:hover { border-color: var(--lc-blue); color: var(--lc-blue); }
.lc-appt-btn.pend { border-color: #FCD34D; color: #B45309; background: #FFFBEB; }
.lc-appt-btn.ok { border-color: #A7F3D0; color: #047857; background: #ECFDF5; }
.lc-appt-cancel .lc-appt-name { text-decoration: line-through; }
.lc-appt-pront {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding: 12px 14px;
  border-radius: var(--lc-r); background: rgba(47,107,255,.07); color: #1E3A8A; font-size: 13px;
}
.lc-appt-pront .lc-spacer { flex: 1; min-width: 160px; }

/* Matriz do checklist */
.lc-matriz { border-collapse: separate; border-spacing: 3px; width: 100%; font-size: 12px; }
.lc-matriz th { font-size: 11px; font-weight: 700; color: var(--lc-text-2); text-align: center; padding: 4px; white-space: nowrap; }
.lc-matriz th small { font-weight: 500; color: var(--lc-text-3); }
.lc-matriz-quem { color: #6D28D9 !important; }
.lc-matriz-item { padding: 5px 10px 5px 0; color: var(--lc-text); white-space: nowrap; max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
.lc-matriz-cel { width: 38px; height: 26px; border-radius: 6px; background: var(--lc-surface-2); text-align: center; color: #fff; }
.lc-matriz-cel.ok { background: #2F6BFF; }
.lc-matriz-cel.marco { background: #0EA5E9; }
.lc-matriz-cel.alerta { background: #EF4444; }
.lc-matriz-total { text-align: center; font-weight: 700; color: var(--lc-navy); }
.lc-matriz-pct td { text-align: center; font-weight: 700; color: var(--lc-text-2); padding-top: 6px; }
.lc-matriz-pct td:first-child { text-align: left; font-weight: 600; }

@media (max-width: 980px) {
  .lc-rec-grid { grid-template-columns: 1fr; }
  .lc-rec-side { position: static; order: -1; }
}
.lc-rec-grid { margin-top: 14px; }
/* menu lateral fixo ao rolar (overflow hidden quebrava o sticky) */
.lc-app { overflow: clip; }
.lc-appt-time { white-space: nowrap; }
.lc-appt-st { display: block; margin: 1px 0 2px; }
.lc-matriz { width: auto; min-width: 60%; }
.lc-nav { align-self: start; height: 100vh; position: sticky; top: 0; }
