/* Subsea100 Offshore: additions on top of the shared Subsea100 style */
.badge.os-Offshore { background: var(--accent-soft); color: var(--accent); }
.badge.os-Planned { background: var(--warn-soft); color: var(--warn); }
.badge.os-Back { background: #eceef0; color: #4b5661; }
.badge.os-Draft { background: #eceef0; color: #4b5661; }
.badge.os-Submitted { background: var(--warn-soft); color: var(--warn); }
.badge.os-Approved { background: var(--accent-soft); color: var(--accent); }
.badge.os-Paid, .badge.os-Fully-paid, .badge.os-FULLY-PAID { background: var(--pos-soft); color: var(--pos); }
.badge.os-Partly-paid, .badge.os-PARTIALLY-PAID { background: var(--warn-soft); color: var(--warn); }
.badge.os-Unpaid, .badge.os-UNPAID { background: var(--neg-soft); color: var(--neg); }
.badge.os-Unrun { background: #fff; color: var(--warn); border: 1px solid #e6d3ad; }
tr.os-late td { background: #fff6f4; }
.os-v { font-size: 17px !important; line-height: 1.3; }
.os-list { display: flex; flex-direction: column; gap: 10px; }
.os-list .sub, .sub { font-size: 12px; color: var(--muted); }
.os-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.os-inline input, .os-inline select { width: auto; height: 34px; }
.os-back { display: flex; gap: 4px; justify-content: flex-end; align-items: center; } .os-back input { width: 140px; height: 30px; font-size: 12.5px; }
.os-back-big { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .os-back-big input { width: auto; }
.os-ov { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; } .os-ov input { height: 30px; font-size: 12.5px; }
.os-part { display: flex; gap: 4px; align-items: center; } .os-part input { height: 30px; font-size: 12px; } .os-part input[type=date] { width: 132px; }
.os-steps form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 6px 0; }
.os-steps p { margin: 0 0 6px; }
table tr.os-band td { background: #dce6f1; color: #0f243e; font-weight: 700; font-size: 13px; }
table tr.os-sub td { background: #f4f6f8; font-weight: 700; }
table tr.os-grand td { background: #dce6f1; font-weight: 800; }
.os-person { vertical-align: top; background: #fbfcfe; }
.os-pick { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: #fbfcfe; }
.os-pick input[type=search] { margin-bottom: 6px; }
.os-pick-list { max-height: 260px; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 12px; }
.os-pick-list label { margin: 0; padding: 4px 2px; }
.os-side { background: linear-gradient(160deg, #0f243e 0%, #17406b 60%, #1d5a8c 100%); }
.mb-s { margin-bottom: 10px; }
.tw-who { display: inline-flex; align-items: center; gap: 8px; }
.avatar { display: inline-grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv .k { color: var(--muted); } .kv .sep { grid-column: 1 / -1; border-top: 1px solid var(--line-2); }

/* home page: one card per part of the Offshore Management System (same look as the Operations Suite home) */
.h-mods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.h-mod { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: box-shadow .15s, transform .15s; }
.h-mod:hover { box-shadow: 0 6px 22px rgba(16,28,38,.10); transform: translateY(-1px); }
.h-mod-head { display: flex; gap: 16px; align-items: flex-start; padding: 24px 26px 20px; border-bottom: 1px solid var(--line-2); color: inherit; }
.h-mod-head:hover { text-decoration: none; }
.h-mod-head:hover h2 { color: var(--accent); }
.h-ic { width: 48px; height: 48px; border-radius: 11px; display: grid; place-items: center; flex: none; background: #0b5c7a; }
.h-ic svg { width: 25px; height: 25px; stroke: #fff; }
.h-mod h2 { font-size: 19px; font-weight: 600; margin: 0; }
.h-desc { display: block; color: var(--muted); margin-top: 5px; font-size: 13px; line-height: 1.5; }
.h-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 26px; }
.h-stats b { display: block; font-size: 23px; font-weight: 600; font-variant-numeric: tabular-nums; }
.h-stats b.hot { color: var(--accent); }
.h-stats span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.h-foot { margin-top: auto; padding: 14px 26px; background: #fafbfc; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn.h-btn { background: #0b5c7a; color: #fff; border-color: #0b5c7a; }
.btn.h-btn:hover { filter: brightness(1.12); }
.h-quick { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; }
.h-quick svg { width: 15px; height: 15px; }
.h-more { border: 1.5px dashed var(--line); border-radius: 12px; display: flex; gap: 14px; align-items: center; justify-content: center; padding: 26px; color: var(--muted); }
.h-more svg { width: 26px; height: 26px; flex: none; }
.h-more b { display: block; color: var(--ink-2, #333); font-weight: 600; }
.h-more span span { display: block; font-size: 12.5px; margin-top: 2px; }
.nav a.os-suite { color: #a9b6c1; font-size: 13px; }
@media (max-width: 899px) { .h-mods { grid-template-columns: 1fr; } }
@media (max-width: 639px) { .h-mod-head { padding: 18px; } .h-stats { padding: 14px 18px; } .h-stats b { font-size: 19px; } .h-foot { padding: 12px 18px; } }

/* Crew Change Planner */
.h-mod.cc .h-ic { background: #1d6b4f; }
.flash svg, p.small svg, .os-list .small svg { width: 15px; height: 15px; vertical-align: -3px; }
.cc-legend { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.cc-legend span { display: inline-block; width: 14px; height: 12px; border-radius: 2px; border: 1px solid #c9ced4; margin-right: -4px; vertical-align: -1px; }
.cc-wrap { overflow-x: auto; max-height: 70vh; overflow-y: auto; }
.cc-grid { border-collapse: separate; border-spacing: 0; font-size: 11px; }
.cc-grid th, .cc-grid td { padding: 0; border-right: 1px solid #eef0f2; border-bottom: 1px solid #eef0f2; }
.cc-grid thead th { position: sticky; background: var(--surface); z-index: 3; font-weight: 600; text-align: center; color: #3b4652; }
.cc-grid tr.cc-m th { top: 0; height: 24px; background: #0f243e; color: #fff; border-right: 1px solid #2c4463; white-space: nowrap; }
.cc-grid tr.cc-d th { top: 24px; min-width: 24px; width: 24px; height: 34px; line-height: 1.15; font-size: 11px; }
.cc-grid tr.cc-d th i { display: block; font-style: normal; font-weight: 400; color: var(--muted); font-size: 10px; }
.cc-grid th.cc-pos { position: sticky; left: 0; z-index: 4; min-width: 200px; max-width: 200px; text-align: left; padding: 6px 10px; background: var(--surface);
  border-right: 2px solid #d5dae0; font-weight: 400; }
.cc-grid thead th.cc-pos { z-index: 5; background: #0f243e; color: #fff; }
.cc-grid tbody th.cc-pos b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-grid tbody th.cc-pos span { display: block; font-size: 11px; color: var(--muted); }
.cc-grid td { height: 38px; position: relative; }
.cc-grid .we { background: #f3f4f6; }
.cc-grid td.r1, .cc-legend .r1 { background: #bdd7ee; }
.cc-grid td.r2, .cc-legend .r2 { background: #c6e0b4; }
.cc-grid td.r1.lg { background: #8fb9e0; } .cc-grid td.r2.lg { background: #9ccb7e; }
.cc-legend .lg { background: linear-gradient(90deg, #8fb9e0 50%, #9ccb7e 50%); }
.cc-grid td.cc, .cc-legend .cc { background: #f4a96b; }
.cc-grid td.cc::after { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: #7a3d0c; font-size: 13px; }
.cc-grid td.we.r1, .cc-grid td.we.r2 { background-image: linear-gradient(rgba(0,0,0,.05), rgba(0,0,0,.05)); }
.cc-grid .td, .cc-legend .td { box-shadow: inset 2px 0 0 #d9480f, inset -2px 0 0 #d9480f; }
.cc-grid thead th.td { background: #ffe8d9; color: #b03a07; }
.cc-legend .we { background: #f3f4f6; }
.cc-lab { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); white-space: nowrap; z-index: 1; font-size: 11.5px; font-weight: 600;
  color: #1f3550; pointer-events: none; }
@media (max-width: 639px) { .cc-grid th.cc-pos { min-width: 120px; max-width: 120px; } }
.cc-grid tbody th.cc-pos { text-transform: none; letter-spacing: 0; color: var(--ink, #1c2530); }
select.cc-rp { min-width: 210px; }
.os-cert-up label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; margin: 0; }
td[data-l="File"] svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.os-inline input[type=file] { height: auto; font-size: 12px; max-width: 220px; }
