/* Offshore workbench. Product tokens apply to the signed-in shell only. */
body:has(.ops-shell) {
  --en-frame: #f1f5f6;
  --en-ink: #132932;
  --en-muted: #4e646d;
  --en-raised: #f5f8f9;
  --en-accent: var(--enterprise-primary);
  --en-accent-wash: var(--enterprise-primary-soft);
  --en-line: #dce6e9;
  --en-control: #a9bdc2;
  --en-focus: #147d77;
  --gy-sidebar: #101e29;
  --gy-sidebar-line: #263b48;
  --gy-nav-text: #bed0da;
  --gy-nav-active: #d2f9e9;
  --gy-nav-wash: #173e3a;
  --gy-blue: #215d78;
  --gy-blue-wash: #eaf4f8;
  --brand-strong: var(--enterprise-primary-hover);
  --ops-primary-hover: var(--enterprise-primary-hover);
}
.ops-shell .ops-sidebar .ops-brand { min-height: 71px; border-bottom: 1px solid var(--gy-sidebar-line); }
.ops-shell .ops-sidebar .geyao-app-brand strong { color: #eef9fb; letter-spacing: .08em; }
.ops-shell .ops-sidebar .geyao-app-brand small { color: #a9c0cd; font-size: 10px; letter-spacing: .08em; }
.ops-shell .ops-sidebar nav { padding: 12px 12px 18px; }
.ops-shell .ops-nav-heading { color: #a0b5c2; padding-inline: 10px; }
.ops-shell .ops-nav-item .ops-icon { color: #a8c1ce; }
.ops-shell .ops-nav-item:hover:not(.active) { color: #f2feff; background: #1c3440; }
.ops-shell .ops-nav-item.active,
.ops-shell .ops-nav-item.active:hover { border-color: var(--enterprise-rail-selected-border); box-shadow: inset 2px 0 var(--enterprise-primary-on-dark); font-weight: 600; }
.ops-shell .ops-nav-item.active .ops-icon { color: var(--enterprise-primary-on-dark); }
.ops-shell .ops-user-avatar { color: #d1eee6; background: #213f43; border-color: #345457; }
.ops-shell .ops-sidebar :is(button,a):focus-visible { outline-color: var(--enterprise-primary-on-dark); }
.ops-shell .ops-sidebar .ops-icon-button:hover { background: #1c3440; color: #fff; }
.ops-shell .ops-topbar { height: 60px; min-height: 60px; }
.ops-shell .ops-topbar .ops-search-trigger { height: 38px; }
.ops-shell .ops-topbar .ops-environment { color: var(--en-muted); }
.ops-shell .ops-footer { color: var(--en-muted); }
.ops-shell .iw-nav-close { display: none; }
.ops-shell [data-ops-page="dashboard"] { padding-top: 26px; }
.iw-dashboard {
  --iw-green: #086b58;
  --iw-green-wash: #e9f6f1;
  --iw-soft: #f6f9fa;
  --iw-border: #dce6e9;
  --iw-blue: #207191;
  --iw-muted: #4e646d;
  --iw-ink: #132932;
  display: grid;
  gap: 16px;
  max-width: 1520px;
  margin-inline: auto;
  color: var(--iw-ink);
  font-variant-numeric: tabular-nums;
}
.iw-dashboard :is(h1,h2,h3,p,ul) { margin: 0; }
.iw-dashboard button { cursor: pointer; }
.iw-dashboard button:focus-visible { outline: 2px solid var(--en-focus); outline-offset: 3px; }
.iw-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 4px; }
.iw-heading time { color: var(--iw-green); font-size: 12px; font-weight: 600; }
.iw-heading time span { color: var(--iw-muted); font-weight: 400; }
.iw-heading h1 { margin-block: 4px 3px; font-size: clamp(25px, 3vw, 36px); line-height: 1.25; font-weight: 680; }
.iw-heading p, .iw-panel-head p { color: var(--iw-muted); font-size: 13px; }
.iw-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.iw-dashboard :is(.primary-btn, .secondary-btn, .ghost-btn) { min-height: 38px; }
.iw-dashboard .primary-btn { background: var(--iw-green); border-color: var(--iw-green); color: #fff; }
.iw-dashboard .primary-btn:hover { background: var(--enterprise-primary-hover); }
.iw-dashboard .secondary-btn { background: #fff; border-color: #a9bdc2; color: var(--iw-ink); }
.iw-dashboard .ghost-btn { color: var(--iw-green); font-weight: 600; }
.iw-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.iw-dashboard .iw-metric {
  display: grid;
  gap: 7px;
  justify-items: start;
  min-width: 0;
  min-height: 125px;
  padding: 13px 15px;
  text-align: left;
  color: var(--iw-ink);
  background: #fff;
  border: 1px solid var(--iw-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px #14384408;
}
.iw-dashboard button.iw-metric:hover { border-color: #6c9c9a; }
.iw-metric-top { display: flex; align-items: center; gap: 7px; width: 100%; font-size: 13px; font-weight: 600; line-height: 1.35; }
.iw-metric-icon, .iw-mini-icon { display: inline-grid; flex: none; place-items: center; width: 28px; height: 28px; background: #e8f3f6; color: #215f77; border-radius: 7px; }
.iw-metric-icon .ops-icon, .iw-mini-icon .ops-icon { width: 15px; height: 15px; }
.iw-metric-top .iw-metric-arrow { margin-left: auto; flex: none; width: 15px; color: var(--iw-muted); }
.iw-metric > strong { font-size: 32px; line-height: 1.1; font-weight: 680; }
.iw-metric > strong small { margin-left: 5px; font-size: 12px; font-weight: 500; }
.iw-metric-note { color: var(--iw-muted); font-size: 12px; line-height: 1.3; }
.iw-dashboard .iw-metric.lead {
  background: radial-gradient(ellipse at 100% 100%, #19524f, transparent 65%), #14313d;
  border-color: #14313d;
  color: #f5fffd;
}
.iw-metric.lead .iw-metric-note, .iw-metric.lead .iw-metric-arrow { color: #bedbd6; }
.iw-metric.lead .iw-metric-icon { background: #2b5458; color: #b4f2d9; }
.iw-metric.lead > strong { color: #baf2db; }
.iw-middle, .iw-bottom { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(265px,1fr); gap: 14px; align-items: start; }
.iw-panel {
  min-width: 0;
  border: 1px solid var(--iw-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px #14384408;
}
.iw-panel-head { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 16px 16px 12px; }
.iw-panel-head h2 { font-size: 17px; font-weight: 660; line-height: 1.35; }
.iw-panel-head p { margin-top: 4px; line-height: 1.45; }
.iw-days { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding: 0 16px; }
.iw-dashboard .iw-days button {
  display: grid;
  grid-template-columns: repeat(2,max-content);
  align-content: center;
  align-items: baseline;
  gap: 4px 7px;
  min-height: 64px;
  min-width: 0;
  padding: 9px 10px;
  text-align: left;
  color: var(--iw-ink);
  background: var(--iw-soft);
  border: 1px solid var(--iw-border);
  border-radius: 8px;
}
.iw-days button span { grid-column: 1 / -1; color: var(--iw-muted); overflow-wrap: anywhere; font-size: 11px; }
.iw-days button time { color: var(--iw-muted); font-size: 11px; }
.iw-dashboard .iw-days button:hover { border-color: #6b9e95; }
.iw-dashboard .iw-days button[aria-pressed="true"] { border-color: #65a493; color: #07584b; background: var(--iw-green-wash); }
.iw-days button[aria-pressed="true"] :is(time,span) { color: #276459; }
.iw-movements { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 11px 16px; }
.iw-movements > div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 5px; }
.iw-movements > div + div { border-left: 1px solid var(--iw-border); padding-left: 9px; }
.iw-movements .ops-icon { width: 15px; color: var(--iw-blue); }
.iw-movements span { font-size: 12px; color: var(--iw-muted); }
.iw-movements strong { grid-column: 2; font-size: 21px; line-height: 1.3; }
.iw-movements small { margin-left: 4px; font-size: 10px; color: var(--iw-muted); font-weight: 500; }
.iw-vessel-row { display: flex; align-items: center; gap: 8px; padding: 5px 8px 5px 10px; margin: 0 16px 10px; background: #eff6fa; border: 1px solid #e1edf2; border-radius: 8px; color: #244a60; }
.iw-vessel-row > .ops-icon { flex: none; color: var(--iw-blue); }
.iw-vessel-row div { flex: 1; min-width: 0; }
.iw-vessel-row small { display: block; overflow-wrap: anywhere; color: var(--iw-muted); font-size: 11px; }
.iw-vessel-row p { font-size: 13px; }
.iw-vessel-row p span { color: var(--iw-muted); }
.iw-plans { padding: 0 16px 12px; }
.iw-plans > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.iw-plans h3, .iw-well-list h3 { font-size: 13px; font-weight: 650; }
.iw-dashboard :is(.iw-plans,.iw-well-list) ul { padding: 0; list-style: none; }
.iw-dashboard :is(.iw-plans,.iw-well-list) li { border-bottom: 1px solid var(--iw-border); }
.iw-dashboard :is(.iw-plans,.iw-well-list) li:last-child { border-bottom: 0; }
.iw-dashboard :is(.iw-plans,.iw-well-list) li button {
  display: flex; align-items: center; gap: 7px; width: 100%; min-height: 40px;
  padding: 5px 4px; text-align: left; background: transparent; border: 0;
  border-radius: 5px; color: var(--iw-ink); overflow-wrap: anywhere;
}
.iw-dashboard :is(.iw-plans,.iw-well-list) li button:hover { background: var(--iw-soft); }
.iw-dashboard :is(.iw-plans,.iw-well-list) li button strong { min-width: 0; font-size: 13px; }
.iw-dashboard :is(.iw-plans,.iw-well-list) li button span { min-width: 0; font-size: 11px; color: var(--iw-muted); }
.iw-dashboard :is(.iw-plans,.iw-well-list) li button b { margin-left: auto; flex: none; font-size: 12px; font-weight: 600; }
.iw-dashboard :is(.iw-plans,.iw-well-list) li .ops-icon { flex: none; width: 13px; color: var(--iw-muted); }
.iw-well-list li .ops-icon { margin-left: auto; }
.iw-dashboard :is(.iw-plans,.iw-well-list) > :is(p,small) { display: block; color: var(--iw-muted); font-size: 12px; margin-block: 7px 0; }
.iw-bars { display: grid; gap: 2px; padding: 0 12px 11px; }
.iw-dashboard .iw-bars button { display: grid; grid-template-columns: 47px 1fr minmax(22px,auto); align-items: center; gap: 8px; min-height: 38px; padding: 5px 8px; color: var(--iw-ink); background: transparent; border: 1px solid transparent; border-radius: 7px; text-align: left; font-size: 12px; }
.iw-dashboard .iw-bars button:hover { background: var(--iw-soft); }
.iw-dashboard .iw-bars button[aria-pressed="true"] { background: var(--iw-green-wash); border-color: #c7e5da; }
.iw-bars button strong { text-align: right; font-size: 14px; }
.iw-track { overflow: hidden; height: 6px; background: #e6eef0; border-radius: 4px; }
.iw-track i { display: block; height: 100%; background: #6e98a7; border-radius: 4px; }
.iw-bars button[aria-pressed="true"] .iw-track { background: #c9e5db; }
.iw-bars button[aria-pressed="true"] .iw-track i { background: #18735f; }
.iw-well-list { padding: 10px 16px 12px; border-top: 1px solid var(--iw-border); }
.iw-well-list h3 span { margin-left: 5px; color: var(--iw-green); font-weight: 650; }
.iw-queue-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; justify-content: space-between; padding: 0 16px 12px; }
.iw-dashboard .ops-queue-filters button { min-height: 38px; }
.iw-queue-foot { border-top: 1px solid var(--iw-border); padding: 9px 16px; color: var(--iw-muted); font-size: 12px; }
.iw-queue-table td, .iw-queue-table th { padding-inline: 10px; }
.iw-queue-table .iw-mobile-stage { display: none; }
.iw-queue-table table { min-width: 0; }
.iw-shortcuts > div:last-child { padding: 0 12px 11px; }
.iw-dashboard .iw-shortcuts button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 45px; padding: 5px 8px; color: var(--iw-ink); border: 1px solid transparent; border-radius: 7px; background: #fff; text-align: left; }
.iw-dashboard .iw-shortcuts button:hover { background: var(--iw-soft); border-color: var(--iw-border); }
.iw-shortcuts button strong { font-size: 13px; flex: 1; }
.iw-shortcuts button > .ops-icon { width: 15px; color: var(--iw-muted); }
.iw-dashboard .ops-loading { color: var(--iw-muted); }
@media (max-width: 1100px) {
  .ops-shell:not(.ops-nav-open) .ops-sidebar { visibility: hidden; }
  .ops-shell.ops-nav-open .ops-main-wrap { pointer-events: none; }
  .ops-shell .iw-nav-close { position: absolute; display: inline-flex; top: 12px; right: 10px; color: #b7cbd5; }
  .ops-shell .ops-sidebar .ops-brand { padding-right: 58px; }
  .ops-shell .ops-topbar .ops-mobile-toggle,
  .ops-shell .ops-topbar .ops-icon-button { height: 44px; width: 44px; }
  .ops-shell .ops-nav-item { min-height: 44px; }
}
@media (max-width: 760px) {
  .ops-shell [data-ops-page="dashboard"] { padding-top: 18px; }
  .ops-shell .ops-topbar .ops-search-trigger { width: 44px; height: 44px; }
  .iw-heading { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 0; }
  .iw-heading-actions .ghost-btn, .iw-dashboard :is(.primary-btn,.secondary-btn,.ghost-btn) { min-height: 44px; }
  .iw-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .iw-dashboard .iw-metric { min-height: 104px; padding: 10px; gap: 5px; }
  .iw-metric > strong { font-size: 27px; }
  .iw-metric-icon { width: 23px; height: 24px; }
  .iw-metric-top { font-size: 12px; gap: 4px; }
  .iw-metric-top .iw-metric-arrow { width: 12px; }
  .iw-metric-note { font-size: 11px; }
  .iw-middle, .iw-bottom { grid-template-columns: minmax(0,1fr); }
  .iw-panel-head { padding: 12px 12px 9px; }
  .iw-days { padding-inline: 12px; gap: 5px; }
  .iw-dashboard .iw-days button { padding: 6px 7px; grid-template-columns: repeat(2,auto); justify-content: start; gap: 4px; }
  .iw-vessel-row, .iw-movements { margin-inline: 12px; }
  .iw-well-list, .iw-plans { padding-inline: 12px; }
  .iw-dashboard :is(.iw-plans,.iw-well-list) li button,
  .iw-dashboard .iw-bars button,
  .iw-dashboard .ops-queue-filters button,
  .iw-dashboard .ops-queue-sort select { min-height: 44px; }
  .iw-queue-controls { padding-inline: 12px; }
  .ops-shell .iw-queue-table table { min-width: 0; }
}
@media (max-width: 500px) {
  .iw-queue-table :is(th,td):nth-child(4) { display: none; }
  .iw-queue-table .iw-mobile-stage { display: block; }
  .iw-queue-table :is(th,td) { padding-inline: 6px; }
  .iw-queue-table .ops-text-link { min-height: 44px; }
}
@media (max-width: 365px) {
  .iw-dashboard .iw-days button { grid-template-columns: 1fr; }
  .iw-days button span { grid-column: 1; }
  .iw-metric-top .iw-metric-arrow { display: none; }
  .iw-heading-actions { gap: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .ops-shell .ops-sidebar { transition: none; }
}
