/**
 * IZCLINICA Admin — chrome do IZTEC.FOOD com paleta verde saúde.
 * Sobrescreva --iz-product-* se precisar.
 */

:root {
  /* Marca izClinicas — verde-menta da logo */
  --iz-primary-50: #edfdf8;
  --iz-primary-100: #d1faf0;
  --iz-primary-200: #a5f3e0;
  --iz-primary-300: #6ee7cb;
  --iz-primary-400: #3de0b8;
  --iz-primary-500: #26c69f;
  --iz-primary-600: #1aa887;
  --iz-primary-700: #15856c;
  --iz-primary-800: #146a57;
  --iz-primary-900: #135648;
  --iz-primary: #26c69f;
  --iz-primary-hover: #15856c;
  --iz-primary-login: #1aa887;
  --iz-primary-login-hover: #15856c;
  --iz-primary-ring: rgba(38, 198, 159, 0.16);
  --iz-primary-shadow: rgba(26, 168, 135, 0.32);

  /* Superfícies */
  --iz-bg-app: #f6f7f9;
  --iz-bg-login: #f8f9fa;
  --iz-bg-surface: #ffffff;
  --iz-bg-muted: #f5f5f5;
  --iz-bg-table: #f9fafb;
  --iz-bg-hover: #f9fafb;

  /* Texto */
  --iz-text: #333333;
  --iz-text-body: #444444;
  --iz-text-muted: #6b7280;
  --iz-text-subtle: #999999;
  --iz-text-faint: #cccccc;
  --iz-text-heading: #333333;
  --iz-text-on-primary: #ffffff;

  /* Bordas */
  --iz-border: #e8e8e8;
  --iz-border-strong: #e5e7eb;
  --iz-border-input: #e5e7eb;

  /* Status */
  --iz-success: #16a34a;
  --iz-success-bg: #dcfce7;
  --iz-success-text: #166534;
  --iz-danger: #dc2626;
  --iz-danger-bg: #fee2e2;
  --iz-danger-text: #991b1b;
  --iz-warning: #d97706;
  --iz-warning-bg: #fef3c7;
  --iz-warning-text: #92400e;
  --iz-info: #2563eb;
  --iz-info-bg: #dbeafe;
  --iz-info-text: #1e40af;
  --iz-swal-confirm: #2563eb;

  /* Layout */
  --iz-sidebar-w: 220px;
  --iz-sidebar-w-mobile: 240px;
  --iz-sidebar-bp: 1280px;
  --iz-radius-sm: 6px;
  --iz-radius: 8px;
  --iz-radius-lg: 12px;
  --iz-radius-xl: 16px;
  --iz-radius-2xl: 16px;
  --iz-header-h: 56px;

  /* Tipo */
  --iz-font-body: "Muli", "Mulish", sans-serif;
  --iz-font-brand: "Oswald", sans-serif;
  --iz-font-login: "Inter", system-ui, sans-serif;
  --iz-fs-root: 13px;
  --iz-fs-root-mobile: 12.5px;
  --iz-fs-sidebar: 12px;
  --iz-fs-sidebar-sub: 11.5px;
  --iz-fs-title: 20px;
  --iz-fs-label: 11px;
  --iz-fs-2xs: 10px;

  /* Produto (sobrescreva por sistema) */
  --iz-product-name: "izClinicas";
  --iz-product-suffix: "";
}

/* ========== Base ========== */
html { font-size: var(--iz-fs-root); }
@media (max-width: 1279px) { html { font-size: var(--iz-fs-root-mobile); } }

body.iz-admin {
  margin: 0;
  min-height: 100vh;
  background: var(--iz-bg-app);
  color: var(--iz-text);
  font-family: var(--iz-font-body);
  font-size: var(--iz-fs-root);
}

h1, h2, h3, .iz-heading { font-family: var(--iz-font-body); }

[x-cloak] { display: none !important; }

/* ========== Shell ========== */
.iz-shell { display: flex; min-height: 100vh; }

.iz-sidebar {
  position: fixed;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: var(--iz-sidebar-w);
  height: 100%;
  overflow: hidden;
  background: var(--iz-bg-surface);
  border-right: 1px solid var(--iz-border);
}

.iz-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--iz-border);
}

.iz-sidebar-logo img { height: 36px; width: 36px; object-fit: contain; }
.iz-sidebar-logo--brand { background: transparent; justify-content: center; }
.iz-login-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
}
.iz-login-brand img { width: 80px; height: 80px; object-fit: contain; }

.iz-wordmark { display: flex; align-items: baseline; letter-spacing: -1px; line-height: 1; }
.iz-wordmark .iz { font-family: var(--iz-font-brand); font-weight: 600; font-size: 26px; color: #333; }
.iz-wordmark .tec { font-family: var(--iz-font-brand); font-weight: 400; font-size: 26px; color: #888; }
.iz-wordmark .dot { font-family: var(--iz-font-brand); font-weight: 400; font-size: 22px; color: var(--iz-primary); }
.iz-wordmark .product { font-family: var(--iz-font-brand); font-weight: 500; font-size: 18px; color: var(--iz-primary); margin-left: 2px; }

.iz-sidebar-company {
  padding: 14px 16px;
  border-bottom: 1px solid var(--iz-border);
}

.iz-sidebar-company .name {
  font-weight: 700;
  font-size: 13px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.iz-sidebar-company .meta {
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

.iz-sidebar-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  scrollbar-width: none;
}
.iz-sidebar-nav::-webkit-scrollbar { width: 0; }

.iz-sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 18px;
  color: #444;
  font-size: 12px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  border-radius: 0;
}

.iz-sidebar-link:hover { background: #f5f5f5; color: #333; }

.iz-sidebar-link.active { color: #333; font-weight: 700; }

.iz-sidebar-link .material-icons {
  font-size: 20px;
  color: #777;
  width: 24px;
  text-align: center;
}

.iz-sidebar-link.active .material-icons { color: #444; }

.iz-sidebar-link i.fas,
.iz-sidebar-link i.fab {
  font-size: 16px;
  color: #777;
  width: 26px;
  text-align: center;
}

.iz-sidebar-section {
  padding: 10px 18px 4px;
  font-size: 11px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.iz-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.5);
}
.iz-overlay.active { display: block; }

.iz-main {
  flex: 1;
  min-width: 0;
  overflow-x: hidden;
  margin-left: var(--iz-sidebar-w);
}

.iz-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid var(--iz-border);
  padding: 12px 16px;
}

.iz-topbar h1 {
  margin: 0;
  font-family: var(--iz-font-body);
  font-size: 20px;
  font-weight: 700;
  color: #333;
}

.iz-content { padding: 16px; }

@media (min-width: 768px) {
  .iz-topbar { padding: 16px 28px; }
  .iz-content { padding: 24px; }
}

@media (max-width: 1279px) {
  .iz-sidebar {
    width: var(--iz-sidebar-w-mobile);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .iz-sidebar.open { transform: translateX(0); }
  .iz-main { margin-left: 0; }
}

/* ========== Componentes ========== */
.iz-card {
  background: #fff;
  border: 1px solid var(--iz-border-strong);
  border-radius: var(--iz-radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.iz-card-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--iz-border-strong);
}

.iz-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 8px;
}
.iz-card-header h3 i {
  color: var(--iz-primary-500);
  font-size: 15px;
}

.iz-card-body { padding: 16px 24px; }

.iz-stat {
  background: #fff;
  border: 1px solid var(--iz-border-strong);
  border-radius: var(--iz-radius-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 16px 24px;
}

.iz-stat-label { font-size: 13px; color: #6b7280; }
.iz-stat-value { font-size: 28px; font-weight: 700; color: #1f2937; margin-top: 4px; }
.iz-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--iz-primary-100);
  color: var(--iz-primary-600);
}

.iz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  border-radius: 8px;
  padding: 8px 14px;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.iz-btn-primary {
  background: var(--iz-primary-600);
  color: #fff;
}
.iz-btn-primary:hover { background: var(--iz-primary-700); }

.iz-btn-ghost {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}
.iz-btn-ghost:hover { background: #f9fafb; }

.iz-btn-danger { background: var(--iz-danger); color: #fff; }
.iz-btn-danger:hover { background: #b91c1c; }

.iz-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: #6b7280;
  cursor: pointer;
}
.iz-icon-btn:hover { background: #f3f4f6; color: var(--iz-primary-600); }

.iz-input,
.iz-select,
.iz-textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 13.5px;
  color: #1f2937;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.iz-input:focus,
.iz-select:focus,
.iz-textarea:focus {
  border-color: var(--iz-primary-500);
  box-shadow: 0 0 0 3px var(--iz-primary-ring);
}
.iz-textarea { min-height: 88px; resize: vertical; }

.iz-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.iz-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.iz-badge-success { background: #dcfce7; color: #166534; }
.iz-badge-danger { background: #fee2e2; color: #991b1b; }
.iz-badge-warning { background: #fef3c7; color: #92400e; }
.iz-badge-info { background: #dbeafe; color: #1e40af; }
.iz-badge-primary { background: var(--iz-primary-100); color: var(--iz-primary-700); }
.iz-badge-muted { background: #f3f4f6; color: #374151; }

.iz-table { width: 100%; border-collapse: collapse; }
.iz-table thead { background: #f9fafb; }
.iz-table th {
  text-align: left;
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
}
.iz-table td {
  padding: 12px 24px;
  font-size: 13px;
  color: #4b5563;
  border-top: 1px solid #e5e7eb;
}
.iz-table tbody tr:hover { background: #f9fafb; }

.iz-dropdown {
  background: #fff;
  border: 1px solid var(--iz-border-strong);
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.iz-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  padding: 16px;
}

.iz-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 448px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.iz-toast {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 50;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 13px;
  max-width: 90vw;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.iz-toast-success { background: var(--iz-primary-500); }
.iz-toast-error { background: #ef4444; }
.iz-toast-warning { background: #eab308; }
.iz-toast-info { background: #3b82f6; }

/* ========== Login ========== */
body.iz-login {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--iz-bg-login);
  font-family: var(--iz-font-login);
}

.iz-login-card {
  width: 100%;
  max-width: 384px;
  animation: iz-slide-up 0.5s ease-out;
}

@keyframes iz-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.iz-login-panel {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2);
}

.iz-login-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #e5e7eb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.iz-login-field:focus-within {
  border-color: var(--iz-primary-login);
  box-shadow: 0 0 0 3px var(--iz-primary-ring);
}

.iz-login-field input {
  flex: 1;
  border: 0;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: #1f2937;
  font-family: inherit;
}

.iz-btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--iz-primary-login);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.iz-btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--iz-primary-shadow);
  background: var(--iz-primary-login-hover);
}

.iz-alert-error {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 500;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Tabelas viram cards no mobile */
@media (max-width: 767px) {
  .iz-table-responsive table { display: block; }
  .iz-table-responsive thead { display: none; }
  .iz-table-responsive tbody { display: block; }
  .iz-table-responsive tr {
    display: block;
    margin-bottom: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.75rem;
    background: #fff;
  }
  .iz-table-responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border: none;
    font-size: 0.875rem;
  }
  .iz-table-responsive td:before {
    content: attr(data-label);
    font-weight: 600;
    color: #6b7280;
    font-size: 0.75rem;
    margin-right: 0.5rem;
    flex-shrink: 0;
  }
}

.iz-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.iz-toolbar-search {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 220px;
  max-width: 420px;
}
.iz-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.iz-form-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.iz-form-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.iz-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.iz-empty { text-align: center; color: #9ca3af; padding: 36px 16px; font-size: 13px; }
.iz-flash {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}
.iz-flash-ok { background: #dcfce7; color: #166534; }
.iz-flash-error { background: #fee2e2; color: #991b1b; }
.iz-banner-support {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: #0b0f0e;
  color: #3de0b8;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  margin-bottom: 16px;
}
.iz-muted { color: #9ca3af; font-size: 12px; }
.iz-input-row { display: flex; gap: 8px; align-items: center; }
.iz-input-row .iz-input { flex: 1; min-width: 0; }
.iz-input-row .iz-btn { white-space: nowrap; height: 38px; }
.iz-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}
.iz-tab {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.iz-tab:hover { color: #1aa887; }
.iz-tab.active { color: #1aa887; border-bottom-color: #1aa887; }
.iz-prontuario-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}
@media (max-width: 900px) {
  .iz-prontuario-grid { display: block; }
}
.iz-evo {
  border-top: 1px solid #e5e7eb;
  padding: 12px 0;
}
.iz-evo:first-of-type { border-top: 0; }
@media (max-width: 900px) {
  .iz-content > div[style*="grid-template-columns:minmax"] {
    display: block !important;
  }
}

/* ========== FOOD-like: página, busca, avatar, hero, seções ========== */
.iz-page-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.iz-page-meta-count {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.iz-search-bar {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin-bottom: 16px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.iz-search-bar:focus-within {
  border-color: var(--iz-primary-500);
  box-shadow: 0 0 0 3px var(--iz-primary-ring);
}
.iz-search-bar-icon {
  display: flex;
  align-items: center;
  padding: 0 14px 0 18px;
  color: #9ca3af;
  font-size: 14px;
}
.iz-search-bar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  padding: 12px 8px;
  color: #1f2937;
}
.iz-search-bar button {
  border: 0;
  border-radius: 0;
  padding: 0 22px;
  background: var(--iz-primary-600);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
}
.iz-search-bar button:hover { background: var(--iz-primary-700); }

.iz-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  letter-spacing: 0;
}
.iz-avatar--lg { width: 64px; height: 64px; font-size: 24px; }
.iz-avatar--0 { background: #d1faf0; color: #15856c; }
.iz-avatar--1 { background: #dbeafe; color: #1d4ed8; }
.iz-avatar--2 { background: #fef3c7; color: #b45309; }
.iz-avatar--3 { background: #e0e7ff; color: #4338ca; }
.iz-avatar--4 { background: #fce7f3; color: #be185d; }

.iz-person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.iz-person-name { font-weight: 600; color: #111827; }
.iz-person-sub { font-size: 12px; color: #9ca3af; margin-top: 2px; }

.iz-contact {
  display: flex;
  align-items: center;
  gap: 6px;
}
.iz-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 11px;
  text-decoration: none;
}
.iz-wa:hover { background: #1ebe5d; color: #fff; }

.iz-count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.iz-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}
.iz-icon-action {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #6b7280;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.iz-icon-action:hover { background: #f3f4f6; color: #111827; }
.iz-icon-action--edit { color: var(--iz-primary-600); }
.iz-icon-action--edit:hover { background: var(--iz-primary-50); color: var(--iz-primary-700); }
.iz-icon-action--danger { color: #dc2626; }
.iz-icon-action--danger:hover { background: #fef2f2; }

.iz-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 16px;
}
.iz-back:hover { color: #111827; }

.iz-form-section {
  background: #fff;
  border: 1px solid var(--iz-border-strong);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 22px 24px;
  margin-bottom: 16px;
}
.iz-form-section-title {
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 650;
  color: #1f2937;
  display: flex;
  align-items: center;
  gap: 10px;
}
.iz-form-section-title i {
  color: var(--iz-primary-500);
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.iz-hero {
  background: linear-gradient(135deg, #15856c 0%, #1aa887 48%, #26c69f 100%);
  border-radius: 12px 12px 0 0;
  padding: 22px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}
.iz-hero .iz-avatar {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}
.iz-hero-body { flex: 1; min-width: 0; }
.iz-hero-name {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  word-break: break-word;
}
.iz-hero-meta {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.92;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.iz-hero-since {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
}
.iz-hero-edit {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.iz-hero-edit:hover { background: rgba(255, 255, 255, 0.26); color: #fff; }
.iz-badge-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.iz-badge-wa:hover { background: #1ebe5d; color: #fff; }

.iz-hero-wrap {
  background: #fff;
  border: 1px solid var(--iz-border-strong);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  margin-bottom: 16px;
}
.iz-hero-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff;
}
.iz-hero-stat {
  padding: 14px 12px;
  text-align: center;
  border-left: 1px solid #f3f4f6;
}
.iz-hero-stat:first-child { border-left: 0; }
.iz-hero-stat-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.iz-hero-stat-value {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}
.iz-hero-stat-value.is-primary { color: var(--iz-primary-600); }
.iz-hero-stat-value.is-info { color: #2563eb; }
.iz-hero-stat-value.is-ok { color: #16a34a; }

.iz-ficha-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
}
.iz-dl {
  display: grid;
  gap: 14px;
}
.iz-dl-item dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  margin: 0 0 3px;
}
.iz-dl-item dd {
  margin: 0;
  font-size: 14px;
  color: #111827;
  font-weight: 500;
}
.iz-btn-whatsapp {
  width: 100%;
  background: #25d366;
  color: #fff;
  margin-top: 16px;
}
.iz-btn-whatsapp:hover { background: #1ebe5d; color: #fff; }

.iz-status-list { display: grid; gap: 10px; }
.iz-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: #374151;
}
.iz-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}
.iz-dot-warn { background: #f59e0b; }
.iz-dot-info { background: #3b82f6; }
.iz-dot-ok { background: #22c55e; }
.iz-dot-danger { background: #ef4444; }

@media (max-width: 900px) {
  .iz-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .iz-hero-stat { border-left: 0; border-top: 1px solid #f3f4f6; }
  .iz-ficha-grid { display: block; }
  .iz-hero { padding-right: 88px; }
}

.iz-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 12px;
  align-items: start;
}
.iz-kanban-col {
  background: #f3f4f6;
  border-radius: 12px;
  padding: 10px;
  min-height: 180px;
}
.iz-kanban-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.iz-kanban-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.iz-kanban-card a { color: inherit; text-decoration: none; }
.iz-kanban-card strong { display: block; font-size: 13px; color: #111827; }
.iz-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.iz-slot {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
}
.iz-slot:hover, .iz-slot.is-on {
  border-color: var(--iz-primary-500);
  background: var(--iz-primary-50);
  color: var(--iz-primary-700);
}
body.iz-portal {
  margin: 0;
  min-height: 100vh;
  background: #f6f7f9;
  font-family: Inter, system-ui, sans-serif;
  color: #1f2937;
}
.iz-portal-wrap { max-width: 720px; margin: 0 auto; padding: 28px 16px 48px; }
.iz-portal-brand { text-align: center; margin-bottom: 24px; }
.iz-portal-brand img { width: 56px; height: 56px; object-fit: contain; }
.iz-portal-brand h1 { margin: 12px 0 4px; font-size: 22px; }
@media (max-width: 900px) {
  .iz-kanban { grid-template-columns: 1fr; }
}

.iz-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  min-height: 110px;
  padding-top: 8px;
}
.iz-bar {
  flex: 1;
  text-align: center;
  font-size: 11px;
  color: #6b7280;
}
.iz-bar-fill {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--iz-primary-500);
  color: #fff;
  border-radius: 8px 8px 4px 4px;
  min-height: 8px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}
.iz-pix-box { display: grid; gap: 6px; }
.iz-pix-box span { font-size: 12px; font-weight: 600; color: #374151; }
.iz-pix {
  display: block;
  word-break: break-all;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #111827;
}
.iz-jitsi {
  width: 100%;
  min-height: 560px;
  border: 0;
  border-radius: 12px;
  background: #111;
}

.iz-agenda-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}
.iz-agenda-grid {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.iz-agenda-grid th, .iz-agenda-grid td {
  border: 1px solid #eef0f3;
  vertical-align: top;
  padding: 4px;
}
.iz-agenda-grid thead th {
  background: #f8faf9;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  padding: 10px 8px;
  position: sticky;
  top: 0;
  z-index: 1;
}
.iz-agenda-grid thead th a { color: inherit; text-decoration: none; }
.iz-agenda-time {
  width: 56px;
  text-align: right;
  font-size: 11px;
  color: #6b7280;
  background: #fafafa;
  white-space: nowrap;
  padding: 6px 8px !important;
}
.iz-agenda-cell { min-width: 140px; height: 52px; }
.iz-agenda-cell--fora { background: #f3f4f6; }
.iz-agenda-cell--cont { background: #edfdf8; }
.iz-agenda-livre {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: #9ca3af;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
}
.iz-agenda-livre:hover { background: var(--iz-primary-50); color: var(--iz-primary-700); }
.iz-agenda-card {
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 11px;
  line-height: 1.3;
  background: #edfdf8;
  border-left: 3px solid var(--iz-primary-500);
}
.iz-agenda-card strong { display: block; font-size: 12px; color: #111827; }
.iz-agenda-card span { color: #6b7280; }
.iz-agenda-card--confirmado { background: #e0f2fe; border-left-color: #0284c7; }
.iz-agenda-card--aguardando { background: #fef3c7; border-left-color: #d97706; }
.iz-agenda-card--em_atendimento { background: #dbeafe; border-left-color: #2563eb; }
.iz-agenda-card--concluido { background: #dcfce7; border-left-color: #16a34a; }
.iz-agenda-card--encaixe { background: #fff7ed; border-left-color: #ea580c; }
.iz-agenda-encaixe {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: #c2410c;
  text-decoration: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px dashed #fdba74;
}
.iz-agenda-encaixe:hover { background: #fff7ed; }
.iz-agenda-card-encaixe-link { font-size: 10px; font-weight: 700; color: #c2410c; text-decoration: none; }
.iz-agenda-extras { display: block; font-size: 10px; color: #9a3412; margin-top: 2px; }
.iz-th-encaixe { display: block; font-size: 10px; font-weight: 600; color: #c2410c; margin-top: 2px; }
.iz-agenda-card-actions { display: flex; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.iz-agenda-card-actions button {
  border: 0;
  background: #fff;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  cursor: pointer;
}
.iz-agenda-block {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #991b1b;
  background: #fee2e2;
  border-radius: 6px;
  padding: 8px 6px;
  text-align: center;
}
.iz-agenda-cont { display: block; height: 100%; min-height: 40px; background: #edfdf8; border-radius: 4px; }
