/* ==========================================================================
   Field service (WP-H): work orders, schedule board and map, technician web app (My day),
   installed base, inventory, IoT, portal appointments. Prefix fs- (staff) and md- (My day).
   ========================================================================== */

/* ---------- shared ---------- */
.fs-tabs { display: flex; flex-wrap: wrap; border: 1px solid #b9c9d8; border-radius: 4px; background: #fff; overflow: hidden; }
.fs-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; font: 700 12.5px var(--fb); color: #22517a; border-right: 1px solid #dbe4ec; min-height: 38px; }
.fs-tabs a:last-child { border-right: 0; }
.fs-tabs a .n { font-weight: 700; color: #5f7184; font-size: 11.5px; background: #eef3f8; border-radius: 9px; padding: 1px 7px; }
.fs-tabs a.on { background: linear-gradient(var(--brand-primary-light, #1688eb), var(--brand-primary-dark, #0870d4)); color: #fff; }
.fs-tabs a.on .n { background: rgba(255, 255, 255, .22); color: #fff; }
.fs-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.fs-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fs-span2 { grid-column: span 2; }
.fs-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fs-actions form { display: inline; margin: 0; }
.fs-note { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.fs-ref { font-family: Consolas, 'Courier New', monospace; font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.fs-pri { display: inline-block; width: 4px; height: 26px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }
.fs-mini { font-size: 11.5px; color: var(--muted); }
.fs-wrap { white-space: normal !important; min-width: 220px; }
.fs-check-row { display: flex; gap: 14px; flex-wrap: wrap; }
details.fs-more { border: 1px solid var(--line2); border-radius: 4px; background: #fff; }
details.fs-more > summary { cursor: pointer; padding: 9px 12px; font-weight: 700; color: #22517a; list-style: none; }
details.fs-more > summary::-webkit-details-marker { display: none; }
details.fs-more > summary:before { content: "\25B8"; margin-right: 6px; }
details.fs-more[open] > summary:before { content: "\25BE"; }
details.fs-more > div { padding: 0 12px 12px; }

/* ---------- record header ---------- */
.fs-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: linear-gradient(90deg, var(--brand-navy-2, #111111), #111111); color: #fff; border-radius: 5px; padding: 14px 16px; box-shadow: var(--shadow); }
.fs-head .ic { width: 52px; height: 52px; border-radius: 8px; display: grid; place-items: center; font-size: 26px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #8fe3f8; }
.fs-head h2 { color: #fff; font-size: 18px; margin: 0 0 4px; }
.fs-head .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: #c9d8ea; }
.fs-head .meta b { color: #fff; }
.fs-head .pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fs-head .right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.fs-head .big { font-size: 22px; font-weight: 700; }
.fs-flow { margin: 0; padding: 0; display: flex; flex-wrap: wrap; border: 1px solid #cbd7e2; border-radius: 4px; overflow: hidden; background: #fff; }
.fs-flow li { list-style: none; flex: 1 1 0; min-width: 110px; padding: 8px 10px; font-size: 11.5px; color: var(--muted); border-right: 1px solid #e0e7ed; }
.fs-flow li:last-child { border-right: 0; }
.fs-flow li b { display: block; font-size: 12px; color: #2f4559; }
.fs-flow li.done { background: #effaf4; } .fs-flow li.done b { color: var(--okFg); }
.fs-flow li.now { background: #eef6ff; } .fs-flow li.now b { color: #0a5fb5; }
.fs-flow ol { display: contents; }

/* ---------- checklist ---------- */
.fs-task { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.fs-task:last-child { border-bottom: 0; }
.fs-task .tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e6edf3; color: #9aaabb; font-size: 13px; }
.fs-task.done .tick { background: var(--okBg); color: var(--okFg); }
.fs-task.out .tick { background: var(--badBg); color: var(--badFg); }
.fs-task .lbl { font-weight: 700; color: #22384d; }
.fs-task .val { font-size: 12px; color: var(--muted); }
.fs-sect { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8a6a2e; font-weight: 700; margin: 12px 0 2px; }
.fs-sect:first-child { margin-top: 0; }

/* ---------- media ---------- */
.fs-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fs-media figure { margin: 0; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; background: #fff; }
.fs-media img { width: 100%; height: 120px; object-fit: cover; display: block; background: #eef3f8; }
.fs-media .vid { height: 120px; display: grid; place-items: center; background: #0b2a4f; color: #8fe3f8; font-size: 32px; }
.fs-media figcaption { padding: 6px 8px; font-size: 11.5px; color: var(--muted); }
.fs-sig { background: #fff; border: 1px dashed #b9c9d8; border-radius: 4px; padding: 8px; max-width: 380px; }
.fs-sig img { width: 100%; height: auto; display: block; }

/* ---------- schedule board ---------- */
.fs-boardbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; }
.fs-boardbar .grow { flex: 1 1 auto; }
.fs-boardbar form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 0; }
.fs-board { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 10px; align-items: start; }
.fs-unsched { background: #fff; border: 1px solid var(--line); border-radius: 4px; max-height: 920px; overflow: auto; }
.fs-unsched h3 { margin: 0; padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--line2); background: var(--panel2); position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; }
.fs-unsched .list { padding: 8px; display: grid; gap: 8px; }
.fs-unsched.drop-ok { outline: 2px dashed #0a6fd2; outline-offset: -4px; }
.fs-gridwrap { background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: auto; }
.fs-grid { display: grid; min-width: 720px; }
.fs-grid .h { background: #eff4f8; border-bottom: 1px solid #c8d4df; border-right: 1px solid #d6e0e9; padding: 8px; font-size: 12px; font-weight: 700; color: #2f4559; position: sticky; top: 0; z-index: 1; }
.fs-grid .h small { display: block; font-weight: 400; color: var(--muted); }
.fs-grid .h.today { background: #e4f0ff; color: #0a5fb5; }
.fs-grid .tech { border-bottom: 1px solid #e0e7ed; border-right: 1px solid #d6e0e9; padding: 8px 10px; background: #fbfdff; position: sticky; left: 0; z-index: 1; }
.fs-grid .tech b { display: block; font-size: 12.5px; }
.fs-grid .tech .fs-mini { display: block; }
.fs-grid .tech .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.fs-cell { border-bottom: 1px solid #e0e7ed; border-right: 1px solid #edf1f4; padding: 6px; min-height: 92px; display: flex; flex-direction: column; gap: 5px; transition: background .12s; }
.fs-cell.off { background: repeating-linear-gradient(135deg, #f5f7f9, #f5f7f9 6px, #eef1f4 6px, #eef1f4 12px); }
.fs-cell.drop-ok { background: #e4f0ff; outline: 2px dashed #0a6fd2; outline-offset: -3px; }
.fs-cell .load { height: 4px; border-radius: 2px; background: #e6edf3; overflow: hidden; margin-top: auto; }
.fs-cell .load i { display: block; height: 100%; background: var(--brand-primary, #1a7fe0); }
.fs-cell .load i.hi { background: #e08a00; } .fs-cell .load i.over { background: #d6334b; }
.fs-cell .absent { font-size: 11px; color: #8b620d; background: var(--warnBg); border-radius: 3px; padding: 2px 6px; }
.fs-card { position: relative; background: #fff; border: 1px solid #cfdbe6; border-left: 4px solid var(--brand-primary, #1a7fe0); border-radius: 3px; padding: 6px 8px; font-size: 11.5px; line-height: 1.35; cursor: grab; box-shadow: 0 1px 2px rgba(18, 45, 72, .06); }
.fs-card:focus { outline: 2px solid #4ea1ff; outline-offset: 1px; }
.fs-card.dragging { opacity: .45; }
.fs-card b { font-size: 12px; color: #12304f; white-space: nowrap; }
.fs-card .t { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 6px; align-items: baseline; }
.fs-card .c { color: #3d5166; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-card .w { color: var(--badFg); font-weight: 700; display: flex; gap: 4px; align-items: center; }
.fs-card .w.warn { color: var(--warnFg); }
.fs-card.st-completed { opacity: .72; border-left-color: #12a079 !important; }
.fs-card.st-cancelled { opacity: .5; text-decoration: line-through; }
.fs-card .move { position: absolute; right: 4px; bottom: 4px; }
.fs-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11.5px; color: var(--muted); align-items: center; }
.fs-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 4px; vertical-align: -2px; }
.fs-dayview .fs-grid { min-width: 980px; }
.fs-hour { border-bottom: 1px solid #e0e7ed; border-right: 1px solid #f0f3f6; min-height: 70px; padding: 4px; position: relative; }
.fs-hour.drop-ok { background: #e4f0ff; }
.fs-hour .fs-card { font-size: 11px; }
.fs-warnbox { max-height: 260px; overflow: auto; }
dialog.fs-dialog { border: 1px solid var(--line); border-radius: 6px; padding: 0; width: min(440px, 94vw); box-shadow: 0 18px 50px rgba(6, 26, 54, .3); }
dialog.fs-dialog::backdrop { background: rgba(6, 26, 54, .45); }
dialog.fs-dialog header { background: var(--brand-navy-2, #111111); color: #fff; padding: 10px 14px; font-weight: 700; display: flex; justify-content: space-between; }
dialog.fs-dialog form { padding: 14px; display: grid; gap: 10px; }
.fs-live { position: fixed; right: 16px; bottom: 16px; z-index: 70; max-width: 420px; }

/* ---------- map ---------- */
.fs-map { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 8px; }
.fs-map svg { width: 100%; height: auto; display: block; background: radial-gradient(circle at 30% 20%, #f4f9ff, #e8f0f8); border-radius: 3px; }
.fs-map .grid line { stroke: #d7e2ec; stroke-width: 1; }
.fs-map text { font: 11px var(--fb); fill: #2f4559; }
.fs-map .lbl { paint-order: stroke; stroke: #fff; stroke-width: 3px; }
.fs-routes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.fs-route { background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.fs-route h4 { margin: 0 0 6px; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.fs-route ol { margin: 0 0 8px; padding-left: 20px; font-size: 12px; display: grid; gap: 3px; }

/* ---------- tree (genealogy) ---------- */
.fs-tree, .fs-tree ul { list-style: none; margin: 0; padding: 0; }
.fs-tree ul { padding-left: 22px; border-left: 2px solid #e0e7ed; margin-left: 9px; }
.fs-tree li { padding: 5px 0; }
.fs-tree .node { display: inline-flex; gap: 8px; align-items: center; padding: 5px 9px; border: 1px solid #d6e0e9; border-radius: 4px; background: #fff; font-size: 12px; }
.fs-tree .node.me { border-color: #0a6fd2; background: #eef6ff; }
.fs-tree .node.retired { opacity: .6; text-decoration: line-through; }

/* ---------- sparklines in tables ---------- */
.fs-spark { width: 120px; height: 26px; display: block; }

/* ---------- technician web app (My day) ---------- */
.md-wrap { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.md-hero { background: linear-gradient(135deg, var(--brand-navy-2, #071d42), #0b3266 60%, #0d4a8f); color: #fff; border-radius: 8px; padding: 16px; display: grid; gap: 10px; }
.md-hero h2 { color: #fff; margin: 0; font-size: 20px; }
.md-hero .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.md-hero .row div { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 6px; padding: 8px 10px; }
.md-hero .row b { display: block; font-size: 20px; }
.md-hero .row span { font-size: 11.5px; color: #c9d8ea; }
.md-net { display: flex; gap: 8px; align-items: center; font-size: 12.5px; border-radius: 6px; padding: 9px 12px; background: var(--okBg); color: var(--okFg); border: 1px solid #b9dfce; }
.md-net.off { background: var(--warnBg); color: var(--warnFg); border-color: #f0d58f; }
.md-net .q { margin-left: auto; font-weight: 700; }
.md-job { background: #fff; border: 1px solid #cfdbe6; border-left: 6px solid var(--brand-primary, #1a7fe0); border-radius: 8px; padding: 14px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.md-job.st-completed { border-left-color: #12a079; opacity: .8; }
.md-job.active { box-shadow: 0 0 0 3px #cfe4ff, var(--shadow); }
.md-job .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.md-job .seq { width: 34px; height: 34px; border-radius: 50%; background: #0a6fd2; color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.md-job h3 { margin: 0; font-size: 15px; }
.md-job .where { color: var(--text2); font-size: 13px; }
.md-job .when { font-size: 13px; font-weight: 700; }
.md-job a.open { position: absolute; inset: 0; }
.md-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.md-btn { min-height: 54px; border-radius: 8px; border: 1px solid #9fb2c6; background: linear-gradient(#fff, #edf3f8); color: #12304f; font: 700 15px var(--fb); display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; padding: 0 12px; width: 100%; text-align: center; }
.md-btn i { font-size: 20px; }
.md-btn.pri { background: linear-gradient(var(--brand-primary-light, #1688eb), var(--brand-primary-dark, #0870d4)); border-color: #0a63b8; color: #fff; }
.md-btn.ok { background: linear-gradient(#17b07a, #0a9160); border-color: #06804f; color: #fff; }
.md-btn.warn { background: linear-gradient(#f8ad26, #ed9200); border-color: #c17800; color: #fff; }
.md-btn.dark { background: linear-gradient(#123d72, var(--brand-navy-2, #071d42)); border-color: #051a33; color: #fff; }
.md-btn:disabled { opacity: .5; }
.md-sect { background: #fff; border: 1px solid #cfdbe6; border-radius: 8px; overflow: hidden; }
.md-sect > h3 { margin: 0; padding: 11px 14px; font-size: 14px; background: var(--panel2); border-bottom: 1px solid var(--line2); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.md-sect > .b { padding: 12px 14px; display: grid; gap: 10px; }
.md-task { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.md-task:last-child { border-bottom: 0; }
.md-task button.tick { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #9fb2c6; background: #fff; font-size: 18px; color: #fff; cursor: pointer; }
.md-task.done button.tick { background: #12a079; border-color: #12a079; }
.md-task.out button.tick { background: #d6334b; border-color: #d6334b; }
.md-task .lbl { font-weight: 700; font-size: 13.5px; }
.md-task form { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; }
.md-task input[type=text], .md-task input[type=number] { min-height: 40px; font-size: 15px; border: 1px solid #b4c3d1; border-radius: 6px; padding: 0 10px; width: 130px; }
.md-input { min-height: 46px; font-size: 16px !important; }
.md-sign canvas { width: 100%; height: 180px; border: 2px dashed #9fb2c6; border-radius: 8px; background: #fff; touch-action: none; display: block; }
.md-queue { font-size: 12px; color: var(--muted); }
.md-pending { outline: 2px dashed #e08a00; outline-offset: 2px; }
.md-toast { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; max-width: 560px; margin: 0 auto; }

/* ---------- portal ---------- */
.fs-steps { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid #cbd7e2; border-radius: 6px; overflow: hidden; background: #fff; padding: 0; margin: 0; }
.fs-steps li { list-style: none; flex: 1 1 0; min-width: 90px; text-align: center; padding: 12px 6px; font-size: 12px; font-weight: 700; color: var(--muted); border-right: 1px solid #e0e7ed; }
.fs-steps li:last-child { border-right: 0; }
.fs-steps li i { display: block; font-size: 20px; margin-bottom: 4px; }
.fs-steps li.done { color: var(--okFg); background: #effaf4; }
.fs-steps li.now { color: #0a5fb5; background: #eef6ff; }
.fs-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.fs-slots label { border: 1px solid #c4d2df; border-radius: 6px; padding: 10px 12px; cursor: pointer; display: flex; gap: 8px; align-items: center; background: #fff; font-size: 12.5px; }
.fs-slots label:hover { border-color: #0a6fd2; }
.fs-slots input:checked + span { color: #0a5fb5; font-weight: 700; }
.fs-slots label:has(input:checked) { border-color: #0a6fd2; background: #eef6ff; box-shadow: 0 0 0 2px #cfe4ff; }
.fs-eta { display: flex; gap: 14px; align-items: center; background: linear-gradient(90deg, var(--brand-navy-2, #071d42), #0b3266); color: #fff; padding: 16px; border-radius: 6px; }
.fs-eta .big { font-size: 30px; font-weight: 700; }
.fs-eta i { font-size: 34px; color: #8fe3f8; }

/* ---------- phone ---------- */
@media (max-width: 1100px) {
    .fs-board { grid-template-columns: minmax(0, 1fr); }
    .fs-unsched { max-height: 360px; }
}
@media (max-width: 760px) {
    .fs-grid2, .fs-grid3 { grid-template-columns: minmax(0, 1fr); }
    .fs-span2 { grid-column: auto; }
    .fs-head { grid-template-columns: auto 1fr; }
    .fs-head .right { grid-column: 1 / -1; align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
    .fs-tabs a { padding: 8px 10px; flex: 1 1 auto; justify-content: center; }
    .md-hero .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md-hero .row b { font-size: 17px; }
    .fs-flow li { min-width: 33%; flex: 1 1 33%; border-bottom: 1px solid #e0e7ed; }
    .fs-steps li { min-width: 33%; }
    .fs-eta .big { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .fs-cell, .fs-card { transition: none; } }


/* Pinnacle Premier Bank: black navigation with restrained gold selection accents. */
.ct-top,header.top,.ct-modbar,.topnav,.ct-navtitle,.navtitle,.navbar.bg-primary,.nav-menu.bg-primary,.sidebar.bg-primary{background:#000!important;background-image:none!important;border-color:#252525!important;color:#fff!important}
.ct-top-title,.ct-top-title b,.ct-session,.ct-modbar a,.topnav a,.topnav button,.ct-navtitle span,.navtitle span{color:#fff!important}
.ct-modbar a:hover,.ct-modbar a.on,.topnav a:hover,.topnav a.on,.topnav button:hover,.topnav button.on{background:#242424!important;color:#fff!important}
.ct-sidebar,.shell>.sidebar{background:#f2f2f2!important;border-color:#d3d3d3!important}
.ct-navitem,.navitem{color:#171717!important;background:linear-gradient(#fff,#f3f3f3)!important;border-color:#d0d0d0!important}
.ct-navitem i,.navitem svg{color:#171717!important}
.ct-navitem:hover,.ct-navitem.on,.navitem:hover,.navitem.on,.nav-link.active,.sidebar .nav-link.active{color:#fff!important;background:#111!important;box-shadow:inset 3px 0 0 #c8a34a!important}
.ct-navitem:hover i,.ct-navitem.on i,.navitem:hover svg,.navitem.on svg{color:#e3c375!important}
.ct-navtitle span,.navtitle span{background:#292929!important}
.ct-topbtn,.ct-command,.ct-command input,.ct-top .ct-avatar{background:#171717!important;border-color:#454545!important;color:#fff!important}
.ct-menu .drop a:hover,.ct-menu .drop button:hover{background:#111!important;color:#fff!important}
