@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/plex-sans-400-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("fonts/plex-condensed-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
:root {
  font-family: "IBM Plex Sans", Arial, sans-serif;
  --heading: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  color: #172b3c;
  background: #f3f5f7;
  --ink: #172b3c;
  --navy: #102f4d;
  --blue: #155f9c;
  --red: #bd222a;
  --muted: #4c6275;
  --line: #d9e1e8;
  --white: #fff;
  --frame: 1200px;
}

.masthead-inner > nav { margin-left: auto; }
.account-menu { position: relative; flex: none; align-self: center; }
.account-avatar {
  list-style: none; display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid #cbd9e5; border-radius: 50%; background: #eaf3fa;
  color: var(--navy); font-size: 13px; font-weight: 600; cursor: pointer;
}
.account-avatar::-webkit-details-marker { display: none; }
.account-avatar:hover, .account-menu[open] .account-avatar { background: #dcecf8; border-color: var(--blue); }
.account-avatar:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.account-popover {
  position: absolute; z-index: 20; top: calc(100% + 12px); right: 0;
  width: min(290px, calc(100vw - 28px)); padding: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff;
  box-shadow: 0 8px 28px rgb(16 47 77 / 15%);
}
.account-popover > strong, .account-popover > span { display: block; overflow-wrap: anywhere; }
.account-popover > span { margin: 3px 0 12px; font-size: 13px; }
.account-popover > .btn { display: flex; width: 100%; justify-content: flex-start; border: 0; margin-top: 4px; }
.autosave-note { align-self: center; color: var(--muted); font-size: 13px; }
.auth-panel { max-width: 520px; margin: 35px auto; }
.auth-panel form { display: grid; gap: 17px; }
.auth-panel form > .btn { justify-self: start; }
.first-access { margin-top: 22px; font-size: 14px; }
.first-access summary { cursor: pointer; color: var(--blue); }
.password-dialog { max-width: 470px; }
.password-dialog form { display: grid; gap: 15px; }
.password-dialog h2, .password-dialog p { margin: 0; }
@media (max-width: 620px) {
  .masthead-inner > .brand { flex: 1; min-width: 0; }
  .masthead-inner > nav { order: 3; margin-left: 0; }
  .account-menu { margin-left: auto; }
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #1c76bd;
  outline-offset: 3px;
}
[hidden] { display: none !important; }
svg { width: 21px; height: 21px; flex: none; vertical-align: middle; }
.masthead { background: var(--white); border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); }
.masthead-inner, main, .footer-inner { width: min(var(--frame), calc(100% - 64px)); margin-inline: auto; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--navy); text-decoration: none; }
.brand-logo { width: 52px; height: 48px; object-fit: contain; }
.brand strong { display: block; font-size: 1.25rem; line-height: 1.12; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: .8125rem; }
nav { display: flex; align-self: stretch; gap: 7px; }
.nav {
  background: none; border: 0; border-bottom: 3px solid transparent;
  color: var(--muted); padding: 3px 14px 0; font-size: 14px; font-weight: 600;
}
.nav.active { color: var(--navy); border-bottom-color: var(--red); font-weight: 600; }
.nav:hover { color: var(--navy); background: #f4f7fa; }
main { padding-block: 32px 56px; min-height: calc(100dvh - 146px); }

h1, h2, h3, .tile strong, .brand strong {
  font-family: var(--heading);
  font-weight: 600;
}
h1 { margin: 0 0 7px; font-size: clamp(2rem, 4vw, 2.625rem); line-height: 1.1; letter-spacing: -.012em; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 34px 0 14px; }
.section-head h2 { margin: 0; font-size: 1.375rem; line-height: 1.2; }
.section-head .btn { border-color: transparent; background: transparent; padding-inline: 1px; }
.section-head .btn:hover { color: var(--navy); text-decoration: underline; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tile {
  display: flex; flex-direction: column; align-items: start; gap: 7px;
  min-height: 132px; padding: 16px 18px; text-align: left; background: var(--white);
  border: 1px solid var(--line); border-radius: 5px; color: var(--ink);
  transition: border-color .16s ease, background .16s ease;
}
.tile:hover { border-color: #74a3c8; background: #f8fbff; }
.tile-icon { color: var(--blue); margin-bottom: 4px; }
.tile-icon svg { width: 25px; height: 25px; }
.tile strong { font-size: 1.25rem; line-height: 1.15; }
.tile span:last-child, .muted { color: var(--muted); line-height: 1.5; }
.tile span:last-child { font-size: 14px; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 24px; margin-top: 16px; }
.panel h2 { margin: 0 0 20px; font-size: 1.375rem; line-height: 1.2; }
.empty { display: flex; align-items: center; gap: 14px; color: var(--muted); min-height: 50px; }
.empty svg { color: var(--blue); width: 24px; height: 24px; }
.empty strong { display: block; margin-bottom: 3px; color: var(--ink); }
.empty div div { font-size: 14px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 8px 13px; color: var(--blue); background: white;
  border: 1px solid #bdcede; border-radius: 5px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: background .16s ease, color .16s ease;
}
.btn:hover { background: #eaf3fa; }
.primary { color: white; background: var(--blue); border-color: var(--blue); }
.primary:hover { background: #0c4a81; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.row:first-child { padding-top: 0; }
.row:last-child { padding-bottom: 0; border: 0; }
.row strong { display: block; margin-bottom: 4px; overflow-wrap: anywhere; }
.row small { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.form-head { margin: 19px 0 22px; }
form { max-width: 900px; }
.report-form { max-width: none; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; }
input, textarea { width: 100%; min-width: 0; border: 1px solid #b8cbdb; border-radius: 5px; background: white; color: var(--ink); padding: 10px 11px; font-size: 16px; }
input[type=file] { color: var(--muted); padding: 7px; }
input::file-selector-button { margin-right: 7px; border: 0; border-radius: 3px; background: #e6f0f8; color: var(--navy); padding: 7px 9px; font: inherit; font-size: 14px; cursor: pointer; }
textarea { min-height: 93px; resize: vertical; }
.fields, .photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.wide { grid-column: 1 / -1; }
.photo-group { background: #f3f7fb; border-radius: 4px; padding: 14px; }
.photo-group h3 { margin: 0 0 12px; color: var(--navy); }
.photo-list { display: grid; gap: 10px; }
.photo-list:not(:empty) { margin-top: 12px; }
.photo { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 9px; align-items: start; }
.photo img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.photo textarea { min-height: 62px; }
.photo button { margin-top: 5px; }
.form-actions { margin-top: 18px; }
.logo-preview { max-width: 170px; max-height: 100px; object-fit: contain; justify-self: start; }
.logo-preview + .btn { justify-self: start; align-self: center; }
.filter { max-width: 370px; }
footer { border-top: 1px solid var(--line); background: white; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 18px; }
.footer-inner div { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-inner strong { color: var(--navy); }
footer a { color: var(--blue); text-underline-offset: 3px; }
#notice:not(:empty) { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); width: max-content; padding: 11px 15px; background: var(--navy); color: white; border-radius: 5px; z-index: 3; }

@media (max-width: 850px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .masthead-inner, main, .footer-inner { width: calc(100% - 28px); }
  .masthead-inner { flex-wrap: wrap; gap: 3px; padding-top: 8px; }
  nav { width: 100%; }
  .nav { flex: 1; min-height: 42px; }
  main { padding-block: 17px 35px; }
  .section-head { margin-top: 22px; }
  .tiles { gap: 8px; }
  .tile { padding: 13px; }
  .tile strong { font-size: 1.125rem; }
  .panel { padding: 16px; }
  .row, .fields, .photos { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* The lead panel pairs the report action with the company's field photos. */
.workspace-banner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: stretch;
  background:
    repeating-radial-gradient(ellipse at 111% 132%, transparent 0 21px, rgb(168 224 244 / 9%) 22px, transparent 23px 35px) right bottom / 100% 100% no-repeat,
    linear-gradient(112deg, #102f4d 9%, #174768 65%, #206485);
}
.workspace-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: 26px clamp(20px, 4vw, 44px);
  color: white;

}
.workspace-copy::before { content: ""; display: block; width: 29px; height: 2px; margin-bottom: 16px; background: #f15a5c; }
.workspace-copy h1 { margin-bottom: 13px; letter-spacing: .012em; }
.workspace-copy .muted { max-width: 37ch; color: #e0ebf5; line-height: 1.6; }
.workspace-copy .btn { margin-top: 22px; border-color: white; color: var(--navy); }
.work-carousel { position: relative; min-width: 0; align-self: center; background: transparent; color: white; }
.work-track { position: relative; display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 100 / 44; min-height: 218px; cursor: grab; user-select: none; }
.work-track::-webkit-scrollbar { display: none; }
.work-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.work-example { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.work-track:focus-visible { outline: 2px solid white; outline-offset: -3px; }
.work-frame { position: relative; height: 100%; overflow: hidden; background: transparent; }
.work-frame img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
@media (min-width: 851px) {
  .work-track {
    mask: url("trabajos/recorte.svg") left center / 12% 100% no-repeat, linear-gradient(to right, transparent 11.9%, black 11.9%);
  }
  .work-carousel::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 12%;
    pointer-events: none;
    background: url("trabajos/garra.svg") center / 100% 100% no-repeat;
  }
  .work-track .work-example figcaption { left: 20%; }
}
.work-example figcaption { position: absolute; left: 14px; bottom: 14px; padding: 4px 8px; color: white; background: #10243ce6; border-radius: 3px; font-size: .8125rem; }
.work-example:not(.is-current) figcaption { visibility: hidden; }




@media (max-width: 850px) {
  .workspace-banner { grid-template-columns: minmax(0, 1fr); }
  .workspace-copy { padding: 20px; }
  .work-track { aspect-ratio: 2 / 1; min-height: 0; }

}

select { font: inherit; color: inherit; background: white; border: 1px solid #bfcbd6; border-radius: 8px; padding: 10px; width: 100%; }
.pump-panel > summary { cursor: pointer; font-weight: 600; font-size: 1.15rem; }
.pump-panel[open] > summary { margin-bottom: 18px; }
.pump-check { display: flex; flex-direction: row; align-items: center; gap: 9px; }
.pump-check input { width: auto; }
.pump-photos, .pump-breaker { margin-top: 16px; }
.pump-breaker { border: 1px solid #d6dfe7; border-radius: 8px; padding: 12px; min-width: 0; }
.signature canvas { display: block; width: 100%; height: auto; touch-action: none; background: #fff; border: 1px solid #bfcbd6; border-radius: 8px; margin-bottom: 10px; }

.photo-comparison > summary { cursor: pointer; font-weight: 600; }
.photo-comparison[open] > summary { margin-bottom: 12px; }

.signature > label { margin-bottom: 10px; }

.pump-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pump-options .pump-check { min-height: 44px; padding: 8px 12px; border: 1px solid #d6dfe7; border-radius: 8px; cursor: pointer; }
.pump-options .pump-check:has(input:checked) { background: #eef6fc; border-color: #84afd0; }
.pump-other label { margin-top: 12px; }
@media (max-width: 480px) { .pump-options { grid-template-columns: 1fr; } }

.pdf-preview { width: min(1000px, 96vw); max-width: 96vw; height: 92dvh; max-height: 92dvh; padding: 0; border: 1px solid #d6dfe7; border-radius: 12px; }
.pdf-preview[open] { display: flex; flex-direction: column; }
.pdf-preview::backdrop { background: #142c44a8; }
.preview-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; }
.preview-toolbar h2 { flex: 1 1 220px; margin: 0; font-size: 1.1rem; }
.pdf-preview iframe { display: block; flex: 1; width: 100%; min-height: 0; border: 0; background: #eef2f5; }

.equipment-card { position: relative; display: flow-root; }
.equipment-card > details > summary { min-height: 34px; padding-right: 132px; overflow-wrap: anywhere; }
.equipment-card > .equipment-remove { position: absolute; top: 35px; right: 24px; }
@media (max-width: 620px) {
  .equipment-card > .equipment-remove { top: 27px; right: 16px; }
}

.tile { position: relative; border-radius: 8px; }
.tile-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: #e7f3fd; }
.tile-arrow { position: absolute; right: 15px; top: 12px; color: var(--blue); font-size: 1.2rem; }
.recent-reports { border-radius: 8px; }
.recent-reports .report-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.recent-reports .report-title strong { margin: 0; }
.report-status { border-radius: 20px; padding: 2px 9px; background: #eaf0f5; color: #42566a; font-size: .8125rem; font-weight: 600; }
.report-status.draft { background: #fff1ce; color: #855400; }
.recent-reports .primary { background: var(--navy); border-color: var(--navy); }
.recent-reports .primary:hover { background: #1d476b; }
.recent-reports .actions .btn:last-child { border-color: transparent; background: transparent; }
.recent-reports .actions .btn:last-child:hover { text-decoration: underline; }
.pump-custom-option { min-width: 0; }
.pump-custom-option > label + label { margin-top: 8px; }
.pump-custom-option .pump-check span { overflow-wrap: anywhere; }
.report-picker { width: min(66rem, calc(100% - 2rem)); max-height: 90dvh; padding: 1.125rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.report-picker::backdrop { background: rgb(16 47 77 / 45%); }
.report-picker h2 { margin: 0 0 1rem; }
.report-picker .btn { display: block; width: 100%; margin-top: .5rem; text-align: left; }
.report-picker .btn:last-child { width: auto; margin: 1rem 0 0 auto; }

.report-picker .tiles { grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; }
@media (max-width: 800px) { .report-picker .tiles { grid-template-columns: repeat(2,minmax(0,1fr)); } }
.report-picker .tile { min-height: 0; padding: .75rem; gap: .25rem; }
.report-picker .tile strong { font-size: 1rem; }
.report-picker .tile span:last-child { font-size: .875rem; line-height: 1.35; }
.report-picker .tile-icon { width: 30px; height: 30px; }
.report-picker .tile-icon svg { width: 19px; height: 19px; }
@media (max-width: 380px) { .report-picker .tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .report-picker[open] { animation: picker-enter 180ms ease-out; }
  .report-picker .tile { transition: transform 140ms ease-out, border-color 140ms; }
  @media (hover: hover) { .report-picker .tile:hover { transform: translateY(-2px); } }
  @keyframes picker-enter { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .report-picker .tile { transition: none; } }

#view > .tiles { isolation: isolate; }
@media (hover: hover) and (pointer: fine) {
  #view > .tiles > .tile:hover {
    z-index: 1;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px var(--blue), 0 10px 24px rgb(16 47 77 / 18%);
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #view > .tiles > .tile { transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out; }
  #view > .tiles > .tile:hover { transform: translateY(-4px) scale(1.07); }
  #view > .tiles > .tile:first-child { transform-origin: left center; }
  #view > .tiles > .tile:last-child { transform-origin: right center; }
}
#view > .tiles > .tile:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

#view > .tiles > .tile {
  overflow: hidden;
  align-items: center;
  padding: 0 0 1.1rem;
  gap: .35rem;
  text-align: center;
  background: white;
}
.service-art { display: block; width: 86%; margin-top: .55rem; border-radius: 5px; aspect-ratio: 1.85; object-fit: cover; margin-bottom: .55rem; }
#view > .tiles > .tile strong, #view > .tiles > .tile span:last-child { padding-inline: .85rem; }
#view > .tiles .tile-arrow { background: rgb(255 255 255 / 85%); border-radius: 50%; width: 1.55rem; line-height: 1.55rem; top: .55rem; right: .55rem; }

.maintenance-picker { width: min(36rem, calc(100% - 2rem)); }
.maintenance-picker .tiles { grid-template-columns: repeat(auto-fit,minmax(min(100%,12rem),1fr)); }
.maintenance-picker > .btn { display: inline-block; width: auto; margin: .85rem .5rem 0 0; }

