:root {
    --adex-navy: #0b2f5c;
    --adex-navy-deep: #062342;
    --adex-navy-soft: #173f6d;
    --adex-amber: #f3ba03;
    --adex-amber-soft: #fff7dc;
    --ink: #142238;
    --muted: #66758a;
    --line: #e4e9ef;
    --surface: #ffffff;
    --canvas: #f3f6f9;
    --green: #16845b;
    --green-soft: #e8f7f1;
    --blue: #2d6fd4;
    --blue-soft: #eaf2ff;
    --red: #c44040;
    --red-soft: #fff0f0;
    --violet: #7356b6;
    --violet-soft: #f1edfb;
    --shadow: 0 8px 30px rgba(24, 46, 74, 0.07);
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--canvas); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
body { font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
.preview-banner { margin-bottom: 24px; border: 1px solid var(--adex-amber); border-radius: 9px; background: var(--adex-amber-soft); padding: 14px 18px; line-height: 1.6; }
.preview-banner strong { display: block; color: var(--adex-navy); }
h1, h2, p { margin-top: 0; }
h1:focus { outline: none; }

.app-shell { display: flex; min-height: 100vh; }
.desktop-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: 254px; flex-direction: column; background: linear-gradient(180deg, var(--adex-navy-deep), var(--adex-navy)); color: white; }
.app-main { width: calc(100% - 254px); min-width: 0; margin-left: 254px; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; height: 76px; align-items: center; gap: 22px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .96); padding: 0 34px; backdrop-filter: blur(15px); }
.content-shell { width: 100%; max-width: 1700px; margin: 0 auto; padding: 30px 34px 56px; }

.sidebar-brand { min-height: 120px; padding: 26px 22px 20px; border-bottom: 1px solid rgba(255,255,255,.11); }
.sidebar-brand img { display: block; width: 150px; max-height: 47px; object-fit: contain; object-position: left center; }
.product-label { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.product-label strong { color: var(--adex-amber); font-size: 13px; letter-spacing: .18em; }
.product-label span { color: rgba(255,255,255,.56); font-size: 11px; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.nav-section { margin-bottom: 18px; }
.nav-section__label { display: block; padding: 7px 12px 8px; color: rgba(255,255,255,.42); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.nav-section a { position: relative; display: flex; min-height: 43px; align-items: center; gap: 12px; border-radius: 9px; color: rgba(255,255,255,.74); padding: 0 12px; font-size: 13px; font-weight: 500; transition: .18s ease; }
.nav-section a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-section a.active { background: rgba(243,186,3,.15); color: #fff; }
.nav-section a.active::before { position: absolute; left: -12px; width: 3px; height: 24px; border-radius: 0 3px 3px 0; background: var(--adex-amber); content: ""; }
.nav-section a.active .nav-glyph { color: var(--adex-amber); }
.nav-glyph { width: 20px; color: rgba(255,255,255,.58); font-size: 18px; text-align: center; }
.nav-count { margin-left: auto; border-radius: 999px; background: var(--adex-amber); color: var(--adex-navy-deep); padding: 2px 7px; font-size: 10px; font-weight: 800; }
.nav-alert { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #ff6b5e; box-shadow: 0 0 0 3px rgba(255,107,94,.15); }
.sidebar-footer { padding: 18px 24px 24px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.42); }
.sidebar-footer small { display: block; margin-top: 9px; font-size: 10px; }
.system-health { color: rgba(255,255,255,.7); font-size: 11px; }
.system-health span { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #42d694; box-shadow: 0 0 0 3px rgba(66,214,148,.12); }

.mobile-brand, .mobile-bottom-nav { display: none; }
.site-switcher { display: flex; min-width: 205px; align-items: center; gap: 10px; border: 0; background: transparent; padding: 5px 0; text-align: left; cursor: pointer; }
.site-switcher__icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 10px; background: var(--blue-soft); color: var(--adex-navy); font-size: 20px; }
.site-switcher small, .site-switcher strong { display: block; }
.site-switcher small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .07em; }
.site-switcher strong { margin-top: 2px; font-size: 13px; }
.site-switcher__chevron { margin-left: auto; color: var(--muted); }
.global-search { display: flex; max-width: 570px; height: 42px; flex: 1; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; padding: 0 12px; color: var(--muted); }
.global-search:focus-within { border-color: #9fb4cc; box-shadow: 0 0 0 3px rgba(11,47,92,.07); }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.global-search input::placeholder { color: #94a0af; }
.global-search kbd { border: 1px solid var(--line); border-radius: 5px; background: white; padding: 2px 6px; color: #7d8998; font-family: inherit; font-size: 10px; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-button { position: relative; display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; cursor: pointer; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 2px solid white; border-radius: 50%; background: #e94a4a; box-sizing: content-box; }
.profile-button { display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 0 0 0 8px; text-align: left; cursor: pointer; }
.avatar, .assignee > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--adex-navy); color: white; font-size: 11px; font-weight: 800; }
.profile-copy { min-width: 130px; }
.profile-copy strong, .profile-copy small { display: block; }
.profile-copy strong { font-size: 12px; }
.profile-copy small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-heading > div { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.page-heading h1 { margin-bottom: 6px; color: var(--adex-navy-deep); font-size: clamp(26px, 2.4vw, 36px); font-weight: 740; letter-spacing: -.035em; }
.page-heading p { max-width: 720px; margin-bottom: 0; color: var(--muted); line-height: 1.55; }
.eyebrow { display: block; margin-bottom: 7px; color: #8090a4; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.heading-actions { display: flex; gap: 9px; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 9px; padding: 0 15px; font-size: 12px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button--primary { border-color: var(--adex-navy); background: var(--adex-navy); color: white; box-shadow: 0 7px 18px rgba(11,47,92,.17); }
.button--primary:hover { background: var(--adex-navy-soft); color: white; }
.button--secondary { border-color: var(--line); background: white; color: #3e4c5f; }
.button--secondary:hover { border-color: #bec8d3; }
.button--small { min-height: 34px; padding: 0 11px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.metric-card { position: relative; overflow: hidden; min-height: 154px; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 20px; box-shadow: 0 4px 18px rgba(31,49,71,.035); }
.metric-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--accent); content: ""; }
.metric-card--navy { --accent: var(--adex-navy); --accent-soft: #eaf0f7; }
.metric-card--green { --accent: var(--green); --accent-soft: var(--green-soft); }
.metric-card--blue { --accent: var(--blue); --accent-soft: var(--blue-soft); }
.metric-card--amber { --accent: var(--adex-amber); --accent-soft: var(--adex-amber-soft); }
.metric-card__head { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; }
.metric-icon { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-size: 17px; font-weight: 800; }
.metric-card > strong { display: block; margin: 16px 0 12px; color: var(--adex-navy-deep); font-size: 31px; letter-spacing: -.04em; line-height: 1; }
.metric-card > strong small { font-size: 15px; }
.metric-card__foot { display: flex; align-items: center; gap: 8px; color: #8b97a6; font-size: 10px; }
.trend { border-radius: 5px; padding: 3px 6px; font-weight: 800; }
.trend--good { background: var(--green-soft); color: var(--green); }
.trend--urgent { background: var(--red-soft); color: var(--red); }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 4px 18px rgba(31,49,71,.03); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 0; color: var(--adex-navy-deep); font-size: 17px; letter-spacing: -.02em; }
.panel-heading .eyebrow { margin-bottom: 4px; }
.panel-heading a { color: var(--adex-navy); font-size: 11px; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(340px, .85fr); gap: 20px; margin-bottom: 20px; }
.dashboard-lower-grid { display: grid; grid-template-columns: 1.35fr .75fr; gap: 20px; }
.operations-pulse, .attention-panel, .schedule-panel, .portfolio-panel { padding: 20px; }
.segmented-control { display: flex; gap: 2px; border-radius: 8px; background: #f2f5f8; padding: 3px; }
.segmented-control button { border: 0; border-radius: 6px; background: transparent; padding: 6px 9px; color: var(--muted); font-size: 10px; cursor: pointer; }
.segmented-control button.active { background: white; color: var(--adex-navy); box-shadow: 0 2px 7px rgba(25,45,69,.08); font-weight: 800; }
.chart-legend { display: flex; gap: 17px; justify-content: flex-end; margin: 14px 0 2px; color: var(--muted); font-size: 10px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.legend-dot--navy { background: var(--adex-navy); }.legend-dot--amber { background: var(--adex-amber); }
.bar-chart { display: flex; height: 188px; align-items: flex-end; justify-content: space-around; gap: 14px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent, transparent 46px, #edf1f5 47px); padding: 10px 12px 0; }
.bar-group { display: flex; height: 100%; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.bars { display: flex; height: calc(100% - 20px); align-items: flex-end; gap: 4px; }
.bar { display: block; width: 10px; min-height: 8px; border-radius: 4px 4px 1px 1px; }
.bar--navy { background: linear-gradient(180deg, #1c527f, var(--adex-navy)); }.bar--amber { background: linear-gradient(180deg, #ffd755, var(--adex-amber)); }
.bar-group > span { color: #8793a2; font-size: 9px; }
.chart-summary { display: flex; gap: 34px; padding-top: 16px; }
.chart-summary div { display: flex; align-items: baseline; gap: 6px; }.chart-summary strong { color: var(--adex-navy-deep); font-size: 16px; }.chart-summary span { color: var(--muted); font-size: 9px; }
.attention-list { margin-top: 13px; }
.attention-list article { display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; gap: 11px; padding: 12px 0; border-top: 1px solid #edf0f4; }
.attention-list article > div strong, .attention-list article > div span { display: block; }.attention-list article > div strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }.attention-list article > div span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.attention-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; font-size: 15px; font-weight: 800; }
.attention-icon--red { background: var(--red-soft); color: var(--red); }.attention-icon--amber { background: var(--adex-amber-soft); color: #a97800; }.attention-icon--blue { background: var(--blue-soft); color: var(--blue); }.attention-icon--violet { background: var(--violet-soft); color: var(--violet); }
.priority { display: inline-flex; width: max-content; align-items: center; border-radius: 6px; padding: 4px 7px; font-size: 9px; font-weight: 800; }
.priority--critical { background: var(--red-soft); color: var(--red); }.priority--high { background: #fff3e7; color: #be6814; }.priority--medium, .priority--planned { background: var(--blue-soft); color: var(--blue); }.priority--low { background: #eef3f7; color: #6c7a8b; }.priority--review { background: var(--violet-soft); color: var(--violet); }
.schedule-list { margin-top: 12px; }
.schedule-list article { display: grid; grid-template-columns: 43px 8px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #edf0f4; }
.schedule-list time { color: var(--adex-navy); font-size: 10px; font-weight: 800; }.schedule-list strong, .schedule-list span { display: block; }.schedule-list strong { font-size: 11px; }.schedule-list div span { margin-top: 3px; color: var(--muted); font-size: 9px; }.timeline-dot { width: 7px; height: 7px; border-radius: 50%; }.timeline-dot--amber { background: var(--adex-amber); }.timeline-dot--blue { background: var(--blue); }.timeline-dot--green { background: var(--green); }.crew { color: var(--muted); font-size: 9px; }
.health-score { display: flex; align-items: center; gap: 14px; padding: 15px 0 12px; }.health-ring { display: grid; width: 64px; height: 64px; place-content: center; border: 7px solid #dff3eb; border-top-color: var(--green); border-radius: 50%; text-align: center; }.health-ring strong { color: var(--green); font-size: 17px; line-height: 1; }.health-ring span { color: var(--muted); font-size: 8px; }.health-score > div:last-child strong, .health-score > div:last-child span { display: block; }.health-score > div:last-child strong { color: var(--green); }.health-score > div:last-child span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.progress-row { display: grid; grid-template-columns: 90px 1fr 22px; align-items: center; gap: 9px; margin-top: 10px; color: var(--muted); font-size: 9px; }.progress-row > div { height: 5px; overflow: hidden; border-radius: 9px; background: #edf1f4; }.progress-row i { display: block; height: 100%; border-radius: 9px; background: var(--green); }.progress-row strong { color: var(--ink); font-size: 9px; }

.compact-metrics { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.compact-metrics article { padding: 19px 22px; border-right: 1px solid var(--line); }.compact-metrics article:last-child { border: 0; }.compact-metrics span, .compact-metrics strong, .compact-metrics small { display: block; }.compact-metrics span { color: var(--muted); font-size: 10px; }.compact-metrics strong { margin: 7px 0 5px; color: var(--adex-navy-deep); font-size: 22px; letter-spacing: -.03em; }.compact-metrics small { color: #8a96a5; font-size: 9px; }.text-green { color: var(--green) !important; }.text-amber { color: #b27c00 !important; }.text-red { color: var(--red) !important; }
.data-panel { overflow: hidden; }
.table-toolbar { display: flex; min-height: 69px; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table-search { display: flex; width: min(350px, 100%); height: 36px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; color: var(--muted); }.table-search:focus-within { border-color: #a4b5c8; }.table-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; }
.toolbar-actions { display: flex; align-items: center; gap: 7px; }.filter-button { height: 32px; border: 1px solid transparent; border-radius: 7px; background: transparent; padding: 0 9px; color: var(--muted); font-size: 10px; cursor: pointer; }.filter-button.active { border-color: #cbd6e2; background: #f7f9fb; color: var(--adex-navy); font-weight: 800; }.filter-button span { margin-left: 4px; border-radius: 9px; background: #e8eef5; padding: 1px 5px; font-size: 8px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }.data-table th { height: 42px; background: #f8fafc; color: #758397; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }.data-table th, .data-table td { padding: 9px 14px; border-bottom: 1px solid #edf0f3; }.data-table tbody tr { height: 61px; transition: .14s; }.data-table tbody tr:hover { background: #fbfcfd; }.data-table td { color: #526174; font-size: 10px; white-space: nowrap; }.data-table input[type="checkbox"] { accent-color: var(--adex-navy); }
.primary-cell { display: flex; align-items: center; gap: 10px; }.asset-thumb { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: #eef3f8; color: var(--adex-navy); font-size: 15px; }.primary-cell strong, .primary-cell small, .work-order-title strong, .work-order-title small { display: block; }.primary-cell strong, .work-order-title strong { color: var(--ink); font-size: 11px; }.primary-cell small, .work-order-title small { margin-top: 3px; color: #8a96a5; font-size: 9px; }.cell-strong, .cell-sub { display: block; }.cell-strong { color: #46566b; font-size: 10px; }.cell-sub { margin-top: 3px; color: #929dab; font-size: 9px; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 8px; font-size: 9px; font-weight: 700; }.status i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status--operational, .status--progress { background: var(--green-soft); color: var(--green); }.status--maintenance, .status--warning, .status--hold { background: var(--adex-amber-soft); color: #987000; }.status--critical { background: var(--red-soft); color: var(--red); }.status--submitted { background: var(--blue-soft); color: var(--blue); }.status--assigned { background: #fff3e7; color: #b76618; }.status--triaged { background: var(--violet-soft); color: var(--violet); }
.row-menu { border: 0; background: transparent; color: #8894a3; cursor: pointer; }.table-footer { display: flex; min-height: 58px; align-items: center; justify-content: space-between; padding: 10px 16px; color: var(--muted); font-size: 9px; }.table-footer > div { display: flex; align-items: center; gap: 4px; }.table-footer button { min-width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 6px; background: white; color: #667487; font-size: 9px; }.table-footer button.active { border-color: var(--adex-navy); background: var(--adex-navy); color: white; }.table-footer button:disabled { opacity: .4; }
.workflow-strip { display: grid; grid-template-columns: repeat(6, 1fr); overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.workflow-step { display: flex; align-items: center; gap: 10px; border: 0; border-right: 1px solid var(--line); background: white; padding: 15px 14px; text-align: left; cursor: pointer; }.workflow-step:last-child { border: 0; }.workflow-step.active { background: #f6f9fc; box-shadow: inset 0 -3px var(--adex-navy); }.workflow-step span span, .workflow-step small, .workflow-step strong { display: block; }.workflow-step small { color: var(--muted); font-size: 9px; }.workflow-step strong { margin-top: 3px; color: var(--adex-navy-deep); font-size: 15px; }.workflow-dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 4px var(--dot-soft); background: var(--dot); }.workflow-dot--navy { --dot: var(--adex-navy); --dot-soft: #e6edf5; }.workflow-dot--blue { --dot: var(--blue); --dot-soft: var(--blue-soft); }.workflow-dot--violet { --dot: var(--violet); --dot-soft: var(--violet-soft); }.workflow-dot--amber { --dot: var(--adex-amber); --dot-soft: var(--adex-amber-soft); }.workflow-dot--green { --dot: var(--green); --dot-soft: var(--green-soft); }.workflow-dot--red { --dot: var(--red); --dot-soft: var(--red-soft); }
.work-order-table th:first-child, .work-order-table td:first-child { min-width: 240px; }.assignee { display: flex; align-items: center; gap: 7px; }.assignee > span { width: 25px; height: 25px; border-radius: 7px; font-size: 8px; }.assignee strong { color: #4b5a6d; font-size: 9px; }.sla { color: #59687a; font-size: 9px; font-weight: 700; }.sla--critical { color: var(--red); }.sla--warning { color: #b76719; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(5,23,43,.38); backdrop-filter: blur(2px); }.form-drawer { position: fixed; inset: 0 0 0 auto; z-index: 80; width: min(500px, 100vw); overflow-y: auto; background: white; padding: 27px; box-shadow: -20px 0 60px rgba(5,23,43,.18); }.drawer-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 22px; }.drawer-heading h2 { color: var(--adex-navy-deep); font-size: 24px; }.drawer-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: 20px; cursor: pointer; }.form-field { margin-bottom: 16px; }.form-field label { display: block; margin-bottom: 7px; color: #405066; font-size: 11px; font-weight: 800; }.form-field input, .form-field textarea, .form-field select { width: 100%; border: 1px solid #dbe2e9; border-radius: 9px; outline: 0; background: white; padding: 10px 11px; color: var(--ink); font-size: 12px; }.form-field textarea { min-height: 105px; resize: vertical; }.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: #8da6c0; box-shadow: 0 0 0 3px rgba(11,47,92,.06); }.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.validation-message { margin-top: 4px; color: var(--red); font-size: 9px; }.upload-zone { display: grid; min-height: 116px; place-content: center; border: 1px dashed #b9c5d2; border-radius: 11px; background: #f9fbfc; padding: 18px; text-align: center; }.upload-zone > span { color: var(--adex-navy); font-size: 22px; }.upload-zone strong { margin: 5px 0; font-size: 11px; }.upload-zone small { max-width: 320px; color: var(--muted); font-size: 9px; line-height: 1.45; }.drawer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }

.ppm-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .65fr); gap: 20px; }.calendar-panel, .compliance-panel { padding: 20px; }.calendar-nav { display: flex; gap: 4px; }.calendar-nav button { height: 28px; border: 1px solid var(--line); background: white; color: var(--muted); font-size: 9px; }.week-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; margin: 18px 0 12px; }.week-row span { border: 1px solid var(--line); border-radius: 8px; padding: 8px; color: var(--muted); font-size: 8px; text-align: center; }.week-row strong { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; }.week-row .today { border-color: var(--adex-navy); background: var(--adex-navy); color: rgba(255,255,255,.7); }.week-row .today strong { color: white; }.calendar-events { display: grid; gap: 7px; }.event { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 10px; border-left: 3px solid var(--event); border-radius: 7px; background: var(--event-soft); padding: 10px 12px; }.event time { color: var(--event); font-size: 10px; font-weight: 800; }.event strong, .event div span { display: block; }.event strong { font-size: 10px; }.event div span, .event > span { margin-top: 3px; color: var(--muted); font-size: 8px; }.event--amber { --event: #b98400; --event-soft: #fff9e7; }.event--blue { --event: var(--blue); --event-soft: #f2f6fd; }.event--green { --event: var(--green); --event-soft: #eff9f5; }.event--violet { --event: var(--violet); --event-soft: #f6f3fc; }.compliance-ring { display: grid; width: 128px; height: 128px; margin: 22px auto; place-content: center; border: 13px solid #e4f4ee; border-top-color: var(--green); border-right-color: var(--green); border-bottom-color: var(--green); border-radius: 50%; text-align: center; transform: rotate(8deg); }.compliance-ring > * { transform: rotate(-8deg); }.compliance-ring strong { color: var(--green); font-size: 22px; }.compliance-ring span { color: var(--muted); font-size: 9px; }.discipline-row { display: grid; grid-template-columns: 1fr auto; gap: 5px; margin-top: 12px; color: var(--muted); font-size: 9px; }.discipline-row strong { color: var(--ink); }.discipline-row div { grid-column: 1/-1; height: 5px; border-radius: 5px; background: #edf1f4; }.discipline-row i { display: block; height: 100%; border-radius: 5px; background: var(--green); }

.foundation-badge { border-radius: 99px; background: var(--green-soft); color: var(--green); padding: 8px 12px; font-size: 10px; font-weight: 800; }.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }.module-card { display: grid; grid-template-columns: 46px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 19px; transition: .2s ease; }.module-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }.module-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 11px; background: var(--icon-soft); color: var(--icon); font-size: 20px; font-weight: 800; }.module-icon--navy { --icon: var(--adex-navy); --icon-soft: #eaf0f7; }.module-icon--green { --icon: var(--green); --icon-soft: var(--green-soft); }.module-icon--blue { --icon: var(--blue); --icon-soft: var(--blue-soft); }.module-icon--violet { --icon: var(--violet); --icon-soft: var(--violet-soft); }.module-icon--amber { --icon: #a67600; --icon-soft: var(--adex-amber-soft); }.module-icon--red { --icon: var(--red); --icon-soft: var(--red-soft); }.module-card h2 { margin-bottom: 6px; color: var(--adex-navy-deep); font-size: 14px; }.module-card p { margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.module-tags { grid-column: 1/-1; display: flex; flex-wrap: wrap; gap: 5px; }.module-tags span { border-radius: 5px; background: #f1f4f7; padding: 4px 7px; color: #6c7a8b; font-size: 8px; }.module-card > a { grid-column: 1/-1; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 11px; color: var(--adex-navy); font-size: 9px; font-weight: 800; }
.integration-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 17px; }.integration-card { display: grid; grid-template-columns: 50px 1fr; gap: 13px; border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: 20px; }.integration-card--featured { border-top: 3px solid var(--adex-amber); }.integration-logo { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 11px; color: white; font-size: 12px; font-weight: 900; }.getray-logo { background: #172a42; }.azure-logo { background: #168bca; }.erp-logo { background: var(--violet); }.bms-logo { background: var(--green); }.integration-card h2 { margin: 7px 0 5px; color: var(--adex-navy-deep); font-size: 15px; }.integration-card p { margin-bottom: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }.integration-card dl { grid-column: 1/-1; display: grid; grid-template-columns: repeat(3, 1fr); margin: 5px 0 0; border-block: 1px solid var(--line); padding: 12px 0; }.integration-card dl div { padding-right: 10px; }.integration-card dt { color: var(--muted); font-size: 8px; font-weight: 500; }.integration-card dd { margin: 4px 0 0; color: #405065; font-size: 9px; font-weight: 800; }.integration-card .button { grid-column: 1/-1; justify-self: start; }.architecture-note { display: flex; gap: 12px; align-items: center; margin-top: 17px; padding: 16px; }.architecture-note strong { font-size: 11px; }.architecture-note p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.facility-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 20px; }.facility-tree, .facility-overview { padding: 20px; }.facility-tree ul { margin: 12px 0 0; padding: 0; list-style: none; }.facility-tree li { padding: 12px 3px; border-bottom: 1px solid var(--line); color: #47566a; font-size: 10px; }.facility-tree li > span { float: right; color: var(--muted); font-size: 8px; }.facility-tree li ul { margin-left: 17px; }.facility-tree li li { border: 0; padding: 8px 2px; color: var(--muted); }.facility-visual { display: grid; height: 185px; place-items: center; margin-bottom: 20px; border-radius: 11px; background: linear-gradient(135deg, #0c315d, #235b8d); color: rgba(255,255,255,.18); font-size: 90px; font-weight: 900; }.facility-overview h2 { margin-bottom: 6px; color: var(--adex-navy-deep); }.facility-overview p { color: var(--muted); font-size: 10px; }.facility-stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 17px 0; border-block: 1px solid var(--line); padding: 15px 0; }.facility-stats strong, .facility-stats span { display: block; }.facility-stats strong { color: var(--adex-navy-deep); font-size: 18px; }.facility-stats span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.empty-state { display: grid; min-height: 280px; place-items: center; align-content: center; padding: 30px; text-align: center; }.empty-state h2 { margin: 14px 0 7px; font-size: 18px; }.empty-state p { max-width: 500px; color: var(--muted); font-size: 10px; line-height: 1.5; }.settings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }.settings-grid article { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; background: white; padding: 17px; cursor: pointer; }.settings-grid article > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: #edf3f9; color: var(--adex-navy); font-size: 18px; }.settings-grid h2 { margin: 0 0 4px; font-size: 13px; }.settings-grid p { margin: 0; color: var(--muted); font-size: 9px; }.settings-grid b { color: #94a1b0; }

#blazor-error-ui { position: fixed; right: 20px; bottom: 20px; z-index: 2000; display: none; border-radius: 9px; background: #381719; color: white; padding: 12px 16px; box-shadow: var(--shadow); font-size: 11px; } #blazor-error-ui a { color: #ffd96c; } #blazor-error-ui .dismiss { margin-left: 10px; cursor: pointer; }
.blazor-error-boundary { border-radius: 10px; background: var(--red-soft); color: var(--red); padding: 18px; }

@media (max-width: 1180px) {
    .metric-grid { grid-template-columns: repeat(2, 1fr); }
    .module-grid, .settings-grid { grid-template-columns: repeat(2, 1fr); }
    .global-search { max-width: none; }
    .profile-copy { display: none; }
    .workflow-strip { grid-template-columns: repeat(3, 1fr); }
    .workflow-step:nth-child(3) { border-right: 0; }
}

@media (max-width: 900px) {
    .desktop-sidebar { width: 78px; }
    .app-main { width: calc(100% - 78px); margin-left: 78px; }
    .sidebar-brand { min-height: 82px; padding: 20px 10px; }
    .sidebar-brand img { display: none; }
    .sidebar-brand::before { display: grid; width: 44px; height: 44px; margin: auto; place-items: center; border: 2px solid var(--adex-amber); border-radius: 12px; color: var(--adex-amber); content: "A"; font-size: 20px; font-weight: 900; }
    .product-label, .nav-section__label, .nav-section a > span:not(.nav-glyph), .sidebar-footer { display: none; }
    .nav-section a { justify-content: center; padding: 0; }
    .nav-section a.active::before { left: -12px; }
    .nav-glyph { font-size: 20px; }
    .topbar { padding: 0 22px; }
    .content-shell { padding-inline: 22px; }
    .dashboard-grid, .dashboard-lower-grid, .ppm-layout { grid-template-columns: 1fr; }
    .compact-metrics { grid-template-columns: repeat(2, 1fr); }.compact-metrics article:nth-child(2) { border-right: 0; }.compact-metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .integration-card dl { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 680px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .desktop-sidebar { display: none; }
    .app-main { width: 100%; margin-left: 0; }
    .topbar { height: 62px; gap: 10px; padding: 0 15px; }
    .mobile-brand { display: flex; align-items: center; gap: 8px; color: var(--adex-navy); font-size: 11px; font-weight: 900; letter-spacing: .06em; }
    .mobile-mark { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 8px; background: var(--adex-navy); color: var(--adex-amber); }
    .site-switcher, .global-search, .profile-button { display: none; }
    .topbar-actions { margin-left: auto; }
    .content-shell { padding: 21px 15px 35px; }
    .mobile-bottom-nav { position: fixed; inset: auto 0 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(62px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 30px rgba(20,40,65,.08); }
    .mobile-bottom-nav a { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 3px; color: #7b8898; font-size: 16px; }.mobile-bottom-nav small { font-size: 8px; }.mobile-bottom-nav a.active { color: var(--adex-navy); }.mobile-bottom-nav a.active::before { position: absolute; top: 0; width: 32px; height: 2px; border-radius: 0 0 2px 2px; background: var(--adex-amber); content: ""; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }.page-heading h1 { font-size: 27px; }.heading-actions { width: 100%; }.heading-actions .button { flex: 1; }
    .metric-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }.metric-card { min-height: 135px; padding: 15px; }.metric-card > strong { font-size: 27px; }.metric-card__foot span:last-child { display: none; }
    .dashboard-grid, .dashboard-lower-grid { gap: 12px; }.operations-pulse, .attention-panel, .schedule-panel, .portfolio-panel { padding: 16px; }.bar-chart { height: 160px; padding-inline: 3px; }.chart-summary { gap: 17px; flex-wrap: wrap; }.segmented-control button { padding-inline: 7px; }
    .attention-list article { grid-template-columns: 34px minmax(0,1fr); }.attention-list article > .priority { grid-column: 2; }.schedule-list article { grid-template-columns: 39px 7px 1fr; }.schedule-list .crew { display: none; }
    .compact-metrics { grid-template-columns: repeat(2,1fr); }.compact-metrics article { padding: 14px; }.compact-metrics strong { font-size: 18px; }
    .table-toolbar { align-items: stretch; flex-direction: column; gap: 8px; }.table-search { width: 100%; }.toolbar-actions { overflow-x: auto; }.data-table th, .data-table td { padding-inline: 10px; }.table-footer { gap: 10px; }.table-footer > span { display: none; }
    .workflow-strip { display: flex; overflow-x: auto; }.workflow-step { min-width: 125px; }.workflow-step:nth-child(3) { border-right: 1px solid var(--line); }
    .form-drawer { padding: 20px 16px calc(30px + env(safe-area-inset-bottom)); }.form-grid { grid-template-columns: 1fr; gap: 0; }
    .week-row { gap: 3px; }.event { grid-template-columns: 44px 1fr; }.event > span { grid-column: 2; }
    .module-grid, .integration-grid, .settings-grid, .facility-grid { grid-template-columns: 1fr; }.foundation-badge { align-self: flex-start; }.integration-card { padding: 16px; }.integration-card dl { grid-template-columns: 1fr 1fr; }.architecture-note { align-items: flex-start; }
}

@media (max-width: 390px) {
    .metric-grid { grid-template-columns: 1fr; }
    .metric-card { min-height: 126px; }
    .compact-metrics { grid-template-columns: 1fr; }.compact-metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
    .chart-summary div:last-child { width: 100%; }
}

/* Connected workspace forms and accessible operational feedback. */
.feedback { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; line-height: 1.6; }
.feedback p { margin: 5px 0 10px; overflow-wrap: anywhere; }
.feedback small { display: block; margin-top: 8px; }
.feedback--error { background: var(--red-soft); border-color: #edb5b5; color: #8b2525; }
.feedback--success { background: var(--green-soft); color: #116b49; }
.feedback--loading { background: var(--blue-soft); color: var(--adex-navy); }
.loading-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); margin-right: 8px; }
.editor-panel, .detail-panel { padding: 22px; margin-bottom: 20px; }
.editor-panel h2, .detail-panel h2 { color: var(--adex-navy); font-size: 20px; margin-bottom: 10px; }
.editor-panel > p, .help-text { color: var(--muted); font-size: 12px; line-height: 1.65; }
.editor-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; color: var(--ink); font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea, .filter-form input, .filter-form select { width: 100%; min-height: 42px; border: 1px solid #bdc9d6; border-radius: 8px; padding: 10px 12px; background: white; color: var(--ink); }
.field textarea { resize: vertical; min-height: 100px; }
.field--wide { grid-column: 1 / -1; }
.field small { color: var(--muted); font-weight: 400; line-height: 1.5; }
.check-field { display: flex; align-items: center; gap: 9px; padding: 10px 0; font-size: 12px; }
.check-field input { accent-color: var(--adex-navy); width: 18px; height: 18px; }
.form-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.form-actions { margin-top: 18px; }
.button--danger { background: #a92d2d; color: white; border-color: #a92d2d; }
.row-actions a:not(.button), .data-table td a:not(.button), .text-link { color: var(--adex-navy); text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.data-table td { font-size: 12px; }
.data-table th { font-size: 10px; }
.data-table td.wrap-cell { white-space: normal; min-width: 190px; }
.data-table td small { display: block; margin-top: 5px; color: var(--muted); }
.filter-form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.filter-form label { flex: 1; min-width: 140px; max-width: 340px; color: var(--muted); font-size: 11px; }
.filter-form input, .filter-form select { margin-top: 5px; }
.filter-form .check-field { flex-direction: row; flex: 0 1 auto; max-width: none; white-space: nowrap; }
.filter-form .check-field input { width: 18px; min-height: 18px; margin: 0; }
.pagination { font-size: 12px; flex-wrap: wrap; gap: 10px; }
.pagination button { padding: 6px 12px; min-width: 70px; height: 34px; font-size: 12px; cursor: pointer; }
.pagination > div { gap: 12px; }
.empty-state { padding: 32px 20px; text-align: center; color: var(--muted); line-height: 1.7; }
.delete-confirm { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; margin: 10px 0; background: var(--red-soft); border: 1px solid #edb5b5; border-radius: 8px; white-space: normal; }
.delete-confirm span { flex: 1 1 240px; font-size: 12px; }
.validation-errors, .validation-message { color: #a12424; font-size: 12px; margin: 5px 0; }
.invalid { outline: 2px solid #be3b3b; outline-offset: 1px; }
.search-submit { border: 0; border-radius: 5px; background: var(--adex-navy); color: white; padding: 5px 9px; cursor: pointer; font-size: 11px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.detail-panel, .detail-grid > div { min-width: 0; }
.detail-panel .panel-heading h2 { min-width: 0; overflow-wrap: anywhere; }
.detail-grid dt { font-size: 11px; color: var(--muted); margin-bottom: 5px; }
.detail-grid dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.workflow-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.workflow-actions .selected { background: var(--adex-amber-soft); border-color: var(--adex-amber); color: var(--adex-navy); }
.status-distribution { display: grid; gap: 13px; margin-top: 20px; }
.status-distribution a { display: grid; grid-template-columns: 160px 1fr 45px; align-items: center; gap: 12px; font-size: 12px; }
.status-distribution progress { width: 100%; height: 12px; accent-color: var(--adex-navy); }
.record-list { list-style: none; padding: 0; margin: 15px 0 0; }
.record-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.detail-panel .record-list li > * { min-width: 0; overflow-wrap: anywhere; }
.record-list strong, .record-list small { display: block; }
.record-list strong { font-size: 13px; color: var(--adex-navy); }
.record-list small { color: var(--muted); margin-top: 5px; line-height: 1.6; }
.module-link { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; transition: border-color .15s; }
.module-link:hover { border-color: var(--adex-navy); }
.module-link h2 { color: var(--adex-navy); font-size: 19px; }
.module-link p { color: var(--muted); line-height: 1.7; margin-bottom: 15px; }
.module-link span { color: var(--green); font-size: 12px; font-weight: 700; }
.unimplemented { margin-top: 20px; background: #f8fafc; }
.dashboard-scope { margin-bottom: 20px; }
.compact-metrics .report-time { font-size: 16px; line-height: 1.4; }
.empty-state { min-height: 120px; }
.status { font-size: 11px; }
.status--neutral { background: #eef2f6; color: #536276; }
.priority { font-size: 10px; }
.compact-metrics span { font-size: 11px; }
.compact-metrics small { font-size: 10px; }
:is(a, button, input, textarea, select):focus-visible { outline: 3px solid #b48a02; outline-offset: 3px; }
@media (max-width: 900px) {
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .global-search { min-width: 120px; }
    .site-switcher { min-width: 140px; }
}
@media (max-width: 680px) {
    .editor-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .editor-panel, .detail-panel { padding: 18px; }
    .detail-panel .panel-heading { flex-wrap: wrap; }
    .filter-form label { min-width: 100%; max-width: none; }
    .pagination > span { display: block; }
    .status-distribution a { grid-template-columns: 130px 1fr 30px; gap: 7px; }
    .metric-card__foot span:last-child { display: inline; }
    .topbar-actions .button { font-size: 11px; padding-inline: 8px; }
}
