/* odontOS · piel Apple (opción A) SOLO celular (<=768px). La web de escritorio no cambia. */
@media (max-width: 834px){
/* odontOS · piel Apple (opción A). Solo cambia el aspecto: la estructura, reglas y funciones son las de la app real. */
:root,:root[data-theme="light"]{
  --font-display:"Inter",-apple-system,"SF Pro Display",system-ui,sans-serif;
  --font-body:"Inter",-apple-system,"SF Pro Text",system-ui,sans-serif;
  --font-mono:"Inter",-apple-system,system-ui,sans-serif;
  --bg:#F5F5F7;--panel:#FFFFFF;--card:#FFFFFF;--card-2:#F5F5F7;
  --ink:#1D1D1F;--ink-2:#515154;--muted:#86868B;
  --line:rgba(0,0,0,.09);--line-soft:rgba(0,0,0,.055);--line-2:rgba(0,0,0,.055);
  --radius:14px;--radius-sm:10px;--radius-lg:20px;
  --shadow:0 0 0 .5px rgba(0,0,0,.04),0 1px 2px rgba(0,0,0,.04),0 4px 14px rgba(0,0,0,.035);
  --shadow-sm:0 1px 2px rgba(0,0,0,.05);
  --shadow-lg:0 12px 40px rgba(0,0,0,.12);
  --blue-soft:#E8F3FB;--accent-soft:#E8F3FB;
}
html body{background:var(--bg);font-family:var(--font-body);-webkit-font-smoothing:antialiased;letter-spacing:-.006em;color:var(--ink);font-variant-numeric:tabular-nums}
/* ---- barra lateral: cápsula de vidrio con píldora blanca ---- */
html body nav.tabs{background:rgba(255,255,255,.74)!important;backdrop-filter:blur(26px) saturate(1.5);-webkit-backdrop-filter:blur(26px) saturate(1.5);border:1px solid rgba(0,0,0,.06)!important;box-shadow:0 8px 32px rgba(0,0,0,.08),inset 0 1px 0 rgba(255,255,255,.9)!important}
html body .tab-btn{color:#515154!important;border-radius:12px!important;font-weight:600;transition:background .15s,color .15s}
html body .tab-btn:hover{background:rgba(0,0,0,.045)!important}
html body .tab-btn.active,html body .tab-btn.pill-on{color:#0A6CA8!important}
html body .tab-btn svg,html body .tab-btn i{color:#6E6E73}
html body .tab-btn.active svg,html body .tab-btn.pill-on svg{color:#0A84C7}
html body nav.tabs .nav-pill{background:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.14),0 0 0 .5px rgba(0,0,0,.05)!important;border-radius:12px!important}
html body nav.tabs .nav-sep{background:var(--line)!important}
/* ---- cabecera ---- */
html body main > header{background:transparent!important;border:0!important;box-shadow:none!important;backdrop-filter:none}
html body .hd-title{font-weight:700;letter-spacing:-.02em}
html body .hd-title b,html body .hd-title strong,html body .hd-title .cur{font-weight:700}
html body header .secondary,html body header button.secondary{background:#fff!important;border:1px solid var(--line)!important;color:var(--ink)!important;border-radius:10px!important;box-shadow:none!important;font-weight:600}
/* ---- botones ---- */
html body button.primary,html body .primary,html body .btn-primary,html body .login-btn-primary{background:#0A84C7!important;background-image:none!important;border:0!important;color:#fff!important;border-radius:10px!important;font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.12)!important}
html body button.primary:hover{filter:brightness(.95)}
html body button.secondary,html body .secondary:not(header *),html body button.ghost{background:#fff!important;border:1px solid var(--line)!important;color:var(--ink)!important;border-radius:10px!important;box-shadow:none!important;font-weight:600}
html body button.secondary:hover{background:#F5F5F7!important}
html body .icon-btn{border-radius:10px!important}
/* ---- paneles y tarjetas: sin doble caja, tarjetas flotando sobre gris ---- */
html body .panel{background:transparent!important;border:0!important;box-shadow:none!important}
html body .mini-card,html body .ini-card,html body .report-card,html body .card{background:#fff!important;border:0!important;border-radius:14px!important;box-shadow:var(--shadow)!important}
html body .mini-card{min-height:0}
html body .panel-title-row h2,html body .panel-title-row .panel-title,html body .panel h2{font-weight:700;letter-spacing:-.025em}
html body .summary{gap:10px}
/* ---- tablas ---- */
html body table{border-collapse:collapse}
html body thead th,html body table th{background:transparent!important;color:#86868B!important;font-size:.7rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid var(--line)!important}
html body table td{border-bottom:1px solid var(--line-soft)!important}
html body tbody tr:hover td{background:#F4F9FD}
/* ---- chips / badges ---- */
html body .badge{border-radius:999px!important;font-weight:600;border:0!important}
/* ---- formularios ---- */
html body input:not([type=checkbox]):not([type=radio]):not([type=range]),html body select,html body textarea{border:1px solid rgba(0,0,0,.14)!important;border-radius:9px!important;background:#fff;font-family:var(--font-body);transition:border-color .12s,box-shadow .12s}
html body input:focus,html body select:focus,html body textarea:focus{outline:none!important;border-color:#0A84C7!important;box-shadow:0 0 0 3px rgba(10,132,199,.2)!important}
/* ---- ventanas ---- */
html body .modal-overlay{background:rgba(20,24,32,.34)!important;backdrop-filter:blur(6px)!important;-webkit-backdrop-filter:blur(6px)!important}
html body .modal-card{border-radius:20px!important;box-shadow:0 30px 90px rgba(0,0,0,.3),0 0 0 .5px rgba(0,0,0,.08)!important}
html body .modal-head{border-bottom:1px solid var(--line-soft)!important;background:transparent!important}
html body .modal-foot{background:#FAFAFC!important;border-top:1px solid var(--line-soft)!important}
html body .modal-close{background:#EEF0F4!important;border-radius:50%!important;border:0!important}
/* ---- calendario ---- */
html body .appointment-month{border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
html body .appointment-month *{font-family:var(--font-body)}
/* píldora activa detrás del texto */
html body nav.tabs{isolation:isolate}
html body nav.tabs .nav-pill{z-index:0!important}
html body nav.tabs .tab-btn{position:relative;z-index:1}
html body nav.tabs .tab-btn.active,html body nav.tabs .tab-btn.pill-on,html body nav.tabs .tab-btn.active *,html body nav.tabs .tab-btn.pill-on *{color:#0A6CA8!important;opacity:1!important}
html body nav.tabs .tab-btn.active svg,html body nav.tabs .tab-btn.pill-on svg{stroke:#0A84C7!important}
/* etiqueta de la pestaña activa (viene de ::after) */
html body nav.tabs .tab-btn.pill-on::after,html body nav.tabs .tab-btn.active::after{color:#0A6CA8!important}
html body nav.tabs .tab-btn::after{color:#6E6E73}
/* ---- ficha: riel izquierdo como lista de fuente de macOS ---- */
html body .pd-rail-grp{font-size:.68rem!important;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8E8E93!important;padding:16px 10px 4px!important}
html body .pd-rail-item{border-radius:9px!important;font-weight:500!important;color:#1D1D1F!important;background:transparent!important;border:0!important;box-shadow:none!important;transition:background .12s}
html body .pd-rail-item:hover{background:rgba(0,0,0,.05)!important}
html body .pd-rail-item.active,html body .pd-rail-item[aria-current="true"],html body .pd-rail-item.on{background:#E3F1FB!important;color:#0A5E96!important;font-weight:600!important}
html body .pd-rail-item svg{color:#6E6E73}
html body .pd-rail-cta{background:#0A84C7!important;background-image:none!important;color:#fff!important;border:0!important;border-radius:10px!important;font-weight:600!important;box-shadow:0 1px 2px rgba(0,0,0,.12)!important}
html body .pd-rail-back{color:#0A6CA8!important;font-weight:600!important;background:transparent!important;border:0!important}
html body .pd-rail .danger,html body .pd-rail-item.danger{color:#D92D20!important}
/* ---- lote 3: resto de pantallas ---- */
html,html body,html body main,html body .panel.active{background:var(--bg)!important}
html body .report-kpi-grid,html body .report-analytic-card,html body .report-settlement-card,html body .ct-card,html body .iv-card,html body .rx-patients-col,html body .rx-timeline-col,html body .rx-center-header,html body .settings-panel,html body .bp-card,html body .bp-side,html body .pl-stat,html body .table-wrap,html body .rp-conta,html body .reminders-search-box,html body .settlement-toggle-box{background:#fff!important;border:0!important;border-radius:14px!important;box-shadow:var(--shadow)!important}
html body .settlement-toggle-box{background:#F5F5F7!important;box-shadow:none!important}
html body .report-kpi-grid>*{border-color:var(--line-soft)!important}
html body .settlement-final-badge,html body .rp-conta .badge{border-radius:10px!important}
html body .rx-search-box,html body .reminders-search-box input{background:#F5F5F7!important;border:0!important;border-radius:10px!important}
html body .pl-chips .on,html body .pt-chips .on,html body .bp-fchips .on{background:#0A84C7!important;color:#fff!important;border-color:transparent!important}
html body .pl-chips button,html body .pt-chips button,html body .bp-fchips button{border-radius:999px!important}
html body .empty-state{color:#86868B}
html body .breakdown-progress-track{border-radius:99px!important;background:#EDEDF0!important}
html body .report-action-btn{border-radius:10px!important;background:#fff!important;border:1px solid var(--line)!important;font-weight:600}
/* barras segmentadas (30 días / 90 días…, Mensual / Semanal) */
html body [class*="seg"]:not(.segment-x),html body .view-switch,html body .period-tabs,html body .toggle-group{background:rgba(120,120,128,.14)!important;border:0!important;border-radius:10px!important}
html body [class*="seg"] button.active,html body .view-switch .active,html body .period-tabs .active,html body .toggle-group .active{background:#fff!important;color:#1D1D1F!important;box-shadow:0 1px 3px rgba(0,0,0,.14)!important;border-radius:8px!important;border:0!important}
/* ficha: páginas de periodoncia y odontograma */
html body .od-wrap,html body .perio-wrap,html body .ficha-card,html body .esp-card{background:#fff!important;border-radius:14px!important;box-shadow:var(--shadow)!important}
html body .pd-rail-item.pd-on{background:#E3F1FB!important;color:#0A5E96!important;font-weight:600!important;box-shadow:none!important;border:0!important}
html body .pd-rail-item.pd-on::before{display:none!important}
html body .pd-rail-item.pd-on svg{color:#0A84C7!important}
  html body .pd-stats{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;padding:0!important}
  html body .pd-stat{display:flex!important;align-items:center;justify-content:space-between;gap:6px;background:#F5F5F7!important;border:0!important;border-radius:12px!important;padding:10px 12px!important;min-height:54px}
  html body .pd-stat svg{width:20px;height:20px;opacity:.55;flex:none}
}
