/* Vista móvil para técnicos y administradores, buscadores, adjuntos, logos de cliente y proyectos. */
/* ===== v3 · Vista móvil (clase .movil en <html>, solo técnicos y administradores) ===== */
.only-movil {
  display: none;
}
html.movil .only-movil {
  display: revert;
}
html.movil body {
  font-size: 16px;
  line-height: 1.5;
}
html.movil input,
html.movil select,
html.movil textarea {
  font-size: 16px;
  padding: 10px 12px;
  min-height: 44px;
}
html.movil input[type='checkbox'] {
  min-height: 0;
  width: 22px;
  height: 22px;
}
html.movil textarea {
  min-height: 110px;
}
html.movil .btn {
  font-size: 15px;
  padding: 10px 15px;
  min-height: 44px;
  justify-content: center;
}
html.movil .btn.sm {
  font-size: 14px;
  padding: 7px 12px;
  min-height: 38px;
}
html.movil .chip {
  font-size: 13px;
  padding: 3px 10px;
}
html.movil .brand b {
  font-size: 17px;
  white-space: nowrap;
}
html.movil .brand span,
html.movil .userbox .nm,
html.movil .hide-sm {
  display: none;
}
html.movil .top-row {
  gap: 8px;
  padding-block: 8px;
  flex-wrap: nowrap;
}
html.movil .timer .what {
  display: none;
}
html.movil .timer .clock {
  font-size: 14px;
}
html.movil .fgrid,
html.movil .fgrid.c3,
html.movil .fgrid.c4 {
  grid-template-columns: minmax(0, 1fr);
}
html.movil .contact-row {
  grid-template-columns: 1fr 1fr;
}
html.movil .cols-2 {
  grid-template-columns: minmax(0, 1fr);
}
html.movil .kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
html.movil .kpi {
  padding: 12px 14px;
}
html.movil .kpi .val {
  font-size: 24px;
}
html.movil .modal {
  padding: 0;
}
html.movil .modal-card,
html.movil .modal-card.wide {
  border-radius: 0;
  min-height: 100%;
  margin: 0;
  max-width: none;
}
html.movil .m-head h2 {
  font-size: 18px;
}
html.movil .m-foot {
  border-radius: 0;
  position: sticky;
  bottom: 0;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}
html.movil .m-foot .left {
  width: 100%;
  margin-right: 0;
}
html.movil .m-foot {
  flex-wrap: wrap;
}
html.movil .m-foot > .btn {
  flex: 1 1 auto;
}
html.movil .kv {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
html.movil .page-head h1 {
  font-size: 22px;
}
html.movil main {
  padding-block: 16px calc(96px + env(safe-area-inset-bottom, 0px));
}
html.movil .tabs.abajo {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  gap: 0;
  overflow: visible;
}
html.movil .tabs.abajo .tab {
  flex: 1;
  text-align: center;
  border-bottom: 0;
  border-top: 3px solid transparent;
  padding: 10px 4px 12px;
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
html.movil .tabs.abajo .tab svg {
  width: 22px;
  height: 22px;
}
html.movil .tabs.abajo .tab[aria-current='page'] {
  border-top-color: var(--accent);
  color: var(--accent-strong);
}
html.movil .tabs.abajo .tab .cnt {
  position: absolute;
  margin: -4px 0 0 26px;
}
html.movil .top .wrap:has(.tabs.abajo) {
  padding: 0;
}
html.movil .toast {
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}
.m-new {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px !important;
}
.m-new b {
  font-size: 19px;
  line-height: 1;
  font-weight: 600;
}
.mlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  min-width: 0;
  text-align: left;
}
.mcard:active {
  background: var(--surface-2);
}
.mcard.void {
  opacity: 0.6;
}
.mc-top {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.mc-top .r {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 13.5px;
  color: var(--muted);
}
.mc-t {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.mc-s {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.mc-s.clamp2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.msec {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 8px;
}
.msec h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16.5px;
  margin: 0;
  margin-right: auto;
}
.mact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.mfilters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.mfilters .seg {
  display: flex;
}
.mfilters .seg button {
  flex: 1;
  padding: 9px 6px;
  font-size: 14.5px;
}
.mday {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
  margin: 14px 2px 2px;
  display: flex;
}
.mday span {
  margin-left: auto;
  font-family: var(--f-mono);
}
.mcontact {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.mcontact:first-child {
  border-top: 0;
}
.mcontact .n {
  margin-right: auto;
  min-width: 0;
}
.mcontact .n b {
  display: block;
  font-weight: 600;
}
.mcontact .n span {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.mlinks {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mfoot-note {
  text-align: center;
  margin: 28px 0 0;
}
