/* AJEROSA_WEB_R5 (round 5, 24 Oct 2026) - loaded after round4.css */
/* W4: the golden fence handle (the app's gps-geofence-edge-handle) - a thick gold knob on the circle's edge, drag to resize */
.r5-fence-handle{width:26px;height:26px;background:none!important;border:0!important}
.r5-fence-handle span{display:block;width:26px;height:26px;border-radius:50%;box-sizing:border-box;
  background:radial-gradient(circle,#f6c744 0 38%,rgba(246,199,68,.55) 39% 100%);border:4px solid #efc62d;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 0 12px rgba(246,199,68,.55),0 2px 6px rgba(0,0,0,.35);cursor:ew-resize;touch-action:none}
.r5-fence-handle span:active{cursor:grabbing;box-shadow:0 0 18px rgba(246,199,68,.8),0 2px 6px rgba(0,0,0,.35)}
/* W6: the Replay date-and-time picker with OK / Cancel inside (ajerosa-picker.js) */
.ajp-input{cursor:pointer;caret-color:transparent}
.ajp-picker{position:absolute;z-index:4000;width:286px;padding:12px;border-radius:16px;border:1px solid rgba(239,198,45,.35);background:rgba(7,18,30,.97);color:#eef4fb;box-shadow:0 18px 40px rgba(0,0,0,.5);font-size:.9rem}
.ajp-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.ajp-head strong{color:#f2c641}
.ajp-nav{width:30px;height:30px;border-radius:50%;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);color:#fff;cursor:pointer}
.ajp-week,.ajp-days{display:grid;grid-template-columns:repeat(7,1fr);gap:3px;text-align:center}
.ajp-week span{font-size:.72rem;color:#9fb2c6;padding:2px 0}
.ajp-day{height:32px;border-radius:9px;border:0;background:transparent;color:#eef4fb;cursor:pointer}
.ajp-day:hover{background:rgba(255,255,255,.08)}
.ajp-day.on{background:#efc62d;color:#10202d;font-weight:700}
.ajp-time{display:flex;align-items:center;gap:6px;margin:10px 0 4px}
.ajp-time span{flex:1;color:#9fb2c6}
.ajp-time select{padding:6px 8px;border-radius:9px;border:1px solid rgba(255,255,255,.2);background:rgba(3,13,22,.8);color:#fff}
.ajp-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.ajp-actions .button{min-width:84px}
/* Device model picker with search (AJEROSA_WEB_R5_MODEL_PICKER) */
.r5-model-pick{display:grid;gap:6px;align-content:start}
.r5-model-pick>label{display:flex;justify-content:space-between;gap:8px}
.r5-model-pick input[type=search]{width:100%}
/* AJEROSA_WEB_R6_REPLY_INBOX (W11): the inbox controls live in the SAME slim header line and a slim pager line - the card,
   the rows and their fonts keep their size */
.r6-inbox-head{justify-content:flex-start;gap:4px 12px;flex-wrap:wrap;font-size:12px}
.r6-inbox-head .text-button{font-size:12px;padding:0}
.r6-inbox-head .text-button:disabled{opacity:.4;cursor:default}
.r6-inbox-head .r4-clear-replies{margin-left:auto}
.r6-selall{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--muted);cursor:pointer}
.r6-selall input,.r6-tick{width:13px;height:13px;margin:0 6px 0 0;vertical-align:-2px;accent-color:#efc62d}
.r6-selall input{margin:0}
.r6-pager{display:flex;align-items:center;gap:4px 10px;flex-wrap:wrap;margin:6px 0 0;font-size:12px}
.r6-pager select{font-size:12px;padding:1px 4px;height:auto;width:auto;min-width:0}
.r6-pager .text-button{font-size:12px;padding:0}
.r6-pager .text-button:disabled{opacity:.4;cursor:default}
.r6-pager small{margin-right:auto}
/* W10: position buttons under a location reply - small, one click, nothing to copy */
.r6-loc{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin-left:4px}
.r6-loc-ll{color:var(--muted);font-size:11px}
.r6-loc-btn{font:inherit;font-size:11px;line-height:1.4;padding:1px 8px;border-radius:999px;border:1px solid rgba(239,198,45,.55);background:rgba(239,198,45,.1);color:#efc62d;cursor:pointer;text-decoration:none;white-space:nowrap}
.r6-loc-btn:hover{background:rgba(239,198,45,.22)}
.r6-reply-pin{display:flex;align-items:flex-end;gap:2px;white-space:nowrap}
.r6-reply-pin span{font-size:26px;line-height:1}
.r6-reply-pin b{font-size:11px;background:#111;color:#efc62d;border:1px solid #efc62d;border-radius:6px;padding:1px 5px;margin-bottom:12px}
.r6-reply-at{flex-basis:100%;font-size:12.5px}
.r6-reply-at a{color:#efc62d}
/* AJEROSA_WEB_R11_APPLE_REFUSED: the note shown on an Apple map when Apple refuses the map pass (instead of a silent grey grid) */
.r11-apple-refused{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:1200;max-width:min(420px,86%);display:grid;gap:8px;justify-items:center;text-align:center;padding:16px 18px;border-radius:16px;background:rgba(6,20,32,.92);border:1px solid rgba(246,191,39,.55);color:#eef6fb;box-shadow:0 14px 34px rgba(0,0,0,.45);font-size:13px;line-height:1.4}
.r11-apple-refused b{font-size:14px;color:#fff}
.r11-apple-refused button{min-height:34px;padding:7px 16px;border-radius:999px;border:1px solid rgba(246,191,39,.75);background:linear-gradient(180deg,#ffe58a,#f6bf27);color:#1d1600;font-weight:800;cursor:pointer}
/* AJEROSA_R12_REPLIES_DISMISSED_DELETED: GPS Alerts - removed command replies under "Dismissed" and "Deleted" (same row look as Command replies) */
.r12-removed-replies{margin-top:14px;padding:16px}
.r12-removed-head{margin:14px 0 6px;font-size:13px;letter-spacing:.04em;color:var(--muted)}
.r12-removed-row .r12-restore{grid-column:1/-1;justify-self:end;min-height:26px;padding:3px 12px;font-size:12px}
/* AJEROSA_R12_REPLY_DELETE: the Delete (bin) button sits under the × in the row's right margin, so the row is not taller */
.r3-command-row .r12-delete{position:absolute;bottom:5px;right:6px;width:26px;height:28px;min-height:0;padding:0;line-height:1;font-size:13px}
/* AJEROSA_R12_TILE_GRID (owner, 30 Oct 2026: thin light grid lines on Google and Leaflet at every zoom; Apple clean) - see
   map-engine.js AJEROSA_R12_TILE_GRID. Leaflet: tiles blend normally (Leaflet 1.9's plus-lighter ADDS the two halves of an edge
   pixel = a light line); the 1 px overlap is set in map-engine.js. Google: each raster tile picture (always 256 css px) is drawn 257 px (its slot plus
   1 px), so neighbours overlap and Google's light grey background can never show between them. Apple (one canvas) untouched. */
.leaflet-container img.leaflet-tile{mix-blend-mode:normal}
.gm-style div > img[src*="/kh?"],.gm-style div > img[src*="/vt?"],.gm-style div > img[src*="/vt/"],.gm-style div > img[src*="/maps/vt"]{width:257px!important;height:257px!important}
/* AJEROSA_R14_ALERTS_PAGES + AJEROSA_R14_PAGER_ALWAYS (owner, 30 Oct 2026: "rows per page 25/50/100, tick boxes, Select all, Delete
   selected, Delete all" and "Next and Previous ALWAYS visible, greyed when there is no other page"): Alerts tools row, a tick box
   at the start of each alert card, and the always-visible pager. Existing colours only. */
.r14-alert-tools{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:4px 0 10px}
.r14-alert-tools label{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:13px}
.r14-alert-tools .r14-alert-per-page{margin-left:auto}
.r14-alert-tools select{min-height:30px;padding:2px 6px}
.r14-alert-tools button:disabled{opacity:.45;cursor:not-allowed}
.r14-alert-tick{display:inline-flex;align-items:flex-start;padding:3px 8px 0 0;flex:0 0 auto}
.r14-alert-tick input,.r14-alert-pick-all input{width:17px;height:17px;margin:0;accent-color:var(--gold,#d7b45a)}
.r14-alert-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 4px}
.r14-alert-pager span{color:var(--muted);font-size:13px}
.r14-alert-pager span b{color:inherit}
.r14-alert-pager button:disabled{opacity:.4;cursor:not-allowed}
.gps-alert-row .card-top>.r14-alert-tick+div{flex:1 1 auto;min-width:0}

/* AJEROSA_R21_COMPACT (owner-approved mock-ups, 3 Nov 2026): the websites follow the same compact rules as the phone app,
   with the sites' own colours - ONE filter card (search, small Status / Rows selects with the label inside, the draft time
   inline), selection tools on one line, the pager with the selected count, tools + pager hidden when the list is empty,
   tight stat tiles, four small value boxes on a paired asset card with Relay + Last update on one line, and engine-hours
   times that never wrap (ajerosa-engine-hours.js). Sizes / spacing only: no colour changes. */
.r21-pager[hidden],.r21-tools[hidden]{display:none!important}
.r21-filter-card{display:grid;gap:8px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.03)}
.r21-filter-card>.r21-filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0;padding:0;border:0;background:none;box-shadow:none}
.r21-filter-row>input{height:38px;min-height:38px;padding:0 12px;font-size:14px;box-sizing:border-box}
.r21-select{position:relative;display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;height:34px;margin:0;padding:0 22px 0 10px;box-sizing:border-box;border:1px solid var(--line);border-radius:10px;font-size:13px;white-space:nowrap;cursor:pointer}
.r21-select>span{color:var(--muted);font-weight:600}
.r21-select>select{-webkit-appearance:none;appearance:none;height:32px;min-height:0;margin:0;padding:0;border:0;background:transparent;box-shadow:none;color:inherit;font:inherit;font-weight:700;cursor:pointer;width:auto;min-width:0}
.r21-select::after{content:"▾";position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:12px;pointer-events:none;opacity:.85}
.ajr-draft-time-inline{display:inline-flex;align-items:center;gap:4px;margin-left:auto;font-size:13px;white-space:nowrap;color:var(--muted)}
.ajr-draft-time-inline strong{color:var(--text,#fff)}
.r21-filter-card>.bulk-actions.r21-tools{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;margin:0;padding:0;border:0;background:none}
.r21-tools>.button{height:32px;min-height:32px;padding:0 12px;font-size:13px;white-space:nowrap}
.r21-filter-card>.pagination-controls.r21-pager,.pagination-controls.r21-pager{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:0;border:0;background:none}
.r21-pager>.button{height:32px;min-height:32px;padding:0 12px;font-size:13px;white-space:nowrap}
.r21-pager-info{flex:1 1 auto;text-align:center;color:var(--muted);font-size:13px}
.r21-pager-info b{color:var(--text,#fff);white-space:nowrap}
.metric-grid.r21-tiles{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-bottom:8px}
.r21-tiles>.metric-card{min-height:0;padding:8px 12px;border-radius:12px}
.r21-tiles>.metric-card span{font-size:12px;font-weight:600}
.r21-tiles>.metric-card strong{margin:2px 0 0;font-size:19px;font-weight:800;line-height:1.2;white-space:nowrap}
.r21-tiles>.metric-card small{display:none}
.r3-company-strip h4{margin:0 0 6px}
.entity-card-grid.r21-mtiles{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.r21-mtiles>.card{padding:8px 12px;border-radius:12px}
.r21-mtiles>.card h3{margin:2px 0 0;font-size:19px;font-weight:800;line-height:1.2}
.entity-card-grid .card.r21-mcard{padding:10px 12px}
.r21-mcard .card-top h3{margin:0}.r21-mcard .card-top p{margin:2px 0 0}
.r21-mcard>div[style*="height:8px"]{margin:6px 0!important}.r21-mcard>p.muted{margin:0}
.entity-card-grid .card.r21-asset{padding:10px 12px}
.r21-asset .r3-card-top{margin-bottom:6px}.r21-asset>h3{margin:0 0 1px}.r21-asset>p.muted{margin:0 0 6px}
.r21-asset .r3-card-top .status-chip{max-width:calc(100% - 70px);white-space:normal;overflow:visible;text-overflow:clip}
.entity-card-grid .card .details.r21-boxes{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0 0 6px}
.r21-boxes>div{min-width:0}
.r21-boxes strong{display:block;overflow-wrap:break-word}
.r21-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}.r21-foot>small{text-align:right}
.heading-actions .button.r21-add{height:34px;min-height:34px;padding:0 14px;font-size:13px}
.r21-filter-card,.r21-filter-card>.r21-filter-row{min-width:0;max-width:100%;box-sizing:border-box}
.r21-filter-row>input{flex:1 1 220px;min-width:0!important;max-width:100%}
@media (max-width:700px){.r21-tools>.button,.r21-pager>.button{padding:0 8px;font-size:12px}.r21-pager-info{font-size:12px}.ajr-draft-time-inline{margin-left:0}}
.r21-select>select{width:auto!important;max-width:170px;flex:0 0 auto}
.r21-boxes span{white-space:normal;overflow:visible;text-overflow:clip}
.r21-filter-row>.r21-select{flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:220px;display:inline-flex!important}
.r21-filter-row>.r21-select>select{min-width:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
.r21-filter-row>.r21-select>select{field-sizing:content}
/* AJEROSA_R24_BIN (owner, 7-8 Nov 2026): the Recycle Bin's area / business chips + company select and the GPS tag (same look
   as fleet.ajerosa.com's Recycle Bin). */
.r24-bin{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 16px;margin:0 0 10px}
.r24-bin-chips{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0}
.r24-bin-chips>.button{min-height:34px;height:34px;padding:0 14px;font-size:13px}
.r24-company{display:flex;flex-direction:column;gap:4px;min-width:220px;font-size:13px;font-weight:700}
.r24-area{display:inline-block;padding:0 7px;border-radius:999px;border:1px solid rgba(80,200,140,.55);background:rgba(80,200,140,.1);color:#8fe3b7;font-size:11px;font-weight:800;line-height:17px;vertical-align:1px}
.r24-co{display:block;font-size:12px}
@media (max-width:700px){.r24-bin-chips>.button{padding:0 10px;font-size:12px}.r24-company{min-width:0;width:100%}}
