/* Portal styles (cloud, 2026-10-04). Two jobs:
   A. the new pages (login, requests, admin, sync status, progress) - classes pt-*
   B. MOBILE for every page, old report pages too: left panel slides in, top bar wraps, wide tables scroll in
      their own box, no sideways page scroll. Rule (user): everything must be mobile friendly. */
:root { --pt-navy: #0b1c35; --pt-ink: #0c1b33; --pt-blue: #1565c0; --pt-accent: #29b6f6; --pt-border: #dde3ec;
        --pt-bg: #f4f6fa; --pt-text2: #546e7a; --pt-green: #1e9e6a; --pt-amber: #f39c12; --pt-red: #d64541; --pt-purple: #8e44ad;
        --pt-font: 'Inter', 'Segoe UI', Arial, sans-serif; }

/* ---------- A. new pages ---------- */
body.portal { margin: 0; background: var(--pt-bg); font-family: var(--pt-font); color: var(--pt-ink); font-size: 14px; }
body.portal * { box-sizing: border-box; }
.pt-main { padding: 22px 24px 60px; max-width: 1280px; width: 100%; }
body.portal .tb-title { font-size: 15px; }
body.portal .tb-title span { font-size: 12px; margin-left: 6px; }
.pt-back { color: var(--pt-blue); text-decoration: none; font-weight: 600; margin-right: 8px; }
.pt-card { background: #fff; border: 1px solid var(--pt-border); border-radius: 14px; padding: 20px 22px; margin-bottom: 18px;
           box-shadow: 0 1px 2px rgba(12,27,51,.04); }
.pt-card h2 { font-size: 16px; margin: 0 0 10px; font-weight: 700; }
.pt-card-ok { border-color: #b7e3cf; background: #f3fbf7; }
.pt-card-action { border-color: #f7d9a4; background: #fffaf0; }
.pt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pt-narrow { max-width: 620px; }
.pt-muted { color: var(--pt-text2); }
.pt-hint { color: var(--pt-text2); font-size: 12.5px; margin: 6px 0 14px; }
.pt-center { text-align: center; }
.pt-mt { margin-top: 16px; }
.pt-note { margin: -4px 0 14px; font-size: 12.5px; }
.pt-empty { text-align: center; color: var(--pt-text2); padding: 34px 20px; }
.pt-big { font-size: 20px; letter-spacing: .5px; }
code { background: #eef2f8; border-radius: 6px; padding: 3px 8px; font-family: ui-monospace, Consolas, monospace; }

.pt-lb { display: block; font-size: 11.5px; font-weight: 700; color: var(--pt-text2); text-transform: uppercase; letter-spacing: .5px; margin: 14px 0 6px; }
.pt-in { width: 100%; border: 1.5px solid var(--pt-border); border-radius: 9px; padding: 11px 12px; font: inherit; font-size: 15px;
         color: var(--pt-ink); background: #fff; outline: none; }
.pt-in:focus { border-color: var(--pt-blue); box-shadow: 0 0 0 3px rgba(21,101,192,.12); }
textarea.pt-in { resize: vertical; line-height: 1.5; }
.pt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.pt-checks { display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; padding: 34px 0 4px; }
.pt-checks label, .pt-ticks label { display: flex; align-items: center; gap: 9px; cursor: pointer; min-height: 30px; }
.pt-checks input, .pt-ticks input { width: 18px; height: 18px; accent-color: var(--pt-blue); flex: none; }
.pt-ticks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px 22px; margin-bottom: 16px; }
.pt-tick-head { font-weight: 700; font-size: 12.5px; margin-bottom: 4px; color: var(--pt-ink); }

.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 18px;
          border-radius: 9px; border: 1.5px solid var(--pt-border); background: #fff; color: var(--pt-ink); font: inherit;
          font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.pt-btn:hover { border-color: var(--pt-blue); color: var(--pt-blue); }
.pt-btn-primary, .pt-btn-ok { background: var(--pt-blue); border-color: var(--pt-blue); color: #fff; }
.pt-btn-primary:hover, .pt-btn-ok:hover { background: #0d4f9c; color: #fff; }
.pt-btn-danger { color: var(--pt-red); border-color: #efc4c2; }
.pt-btn-danger:hover { background: var(--pt-red); border-color: var(--pt-red); color: #fff; }
.pt-btn-warn { color: #9a5b00; border-color: #f1d19a; background: #fff8ea; }
.pt-btn-block { width: 100%; margin-top: 20px; min-height: 48px; font-size: 15px; }
.pt-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pt-actions form { margin: 0; }
body.portal .tb .pt-btn { min-height: 36px; font-size: 13px; padding: 0 14px; }
body.portal .tb .pt-btn-primary { color: #fff; border-color: var(--pt-blue); }

.pt-flash { border-radius: 10px; padding: 11px 14px; margin: 0 0 16px; font-weight: 500; border: 1px solid; }
.pt-flash-ok { background: #f0faf5; border-color: #b7e3cf; color: #14724c; }
.pt-flash-err { background: #fdf2f1; border-color: #f2c5c2; color: #a52a27; }
.pt-flash-warn { background: #fff8ea; border-color: #f1d19a; color: #8a5200; }

.pt-chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap;
           background: #eef2f8; color: var(--pt-text2); }
.pt-chip-green { background: #e6f6ee; color: #14724c; } .pt-chip-amber { background: #fff3db; color: #8a5200; }
.pt-chip-red { background: #fde9e8; color: #a52a27; } .pt-chip-blue { background: #e5f0fc; color: #0d4f9c; }
.pt-chip-purple { background: #f3e8fa; color: #6c2d91; } .pt-chip-navy { background: #e7ebf2; color: var(--pt-ink); }
.pt-chip-grey { background: #eceff3; color: #6b7a90; } .pt-chip-solid { background: var(--pt-amber); color: #fff; }

.pt-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.pt-card .pt-list { margin-bottom: 0; }
.pt-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--pt-border);
          border-radius: 12px; padding: 14px 16px; text-decoration: none; color: inherit; }
a.pt-row:hover { border-color: var(--pt-blue); box-shadow: 0 2px 8px rgba(21,101,192,.08); }
.pt-row-off { opacity: .55; }
.pt-row-main { min-width: 0; }
.pt-row-title { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-row-sub { color: var(--pt-text2); font-size: 12.5px; margin-top: 3px; }
.pt-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; flex: none; max-width: 48%; }
.pt-id { color: var(--pt-text2); font-weight: 700; }
.pt-req-todo { border-left: 4px solid var(--pt-amber); }

.pt-tabs { display: flex; gap: 8px; margin-bottom: 16px; overflow-x: auto; padding-bottom: 2px; }
.pt-tab { flex: none; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--pt-border); color: var(--pt-text2);
          text-decoration: none; font-weight: 600; font-size: 13px; }
.pt-tab.active { background: var(--pt-navy); border-color: var(--pt-navy); color: #fff; }
.pt-count { display: inline-block; min-width: 20px; text-align: center; background: rgba(0,0,0,.08); border-radius: 999px; padding: 0 6px; margin-left: 4px; font-size: 11.5px; }
.pt-tab.active .pt-count { background: rgba(255,255,255,.22); }
.pt-seg { display: inline-flex; border: 1.5px solid var(--pt-border); border-radius: 9px; overflow: hidden; }
.pt-seg a { padding: 7px 13px; text-decoration: none; color: var(--pt-text2); font-weight: 600; font-size: 12.5px; }
.pt-seg a.active { background: var(--pt-navy); color: #fff; }

.pt-flow .pt-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.pt-steps div { background: #f4f6fa; border-radius: 9px; padding: 8px 12px; font-size: 12.5px; color: var(--pt-text2); }
.pt-steps b { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 50%; background: var(--pt-navy); color: #fff; font-size: 11px; margin-right: 6px; }
.pt-req-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pt-req-head h2 { margin: 0; font-size: 18px; }
.pt-body { white-space: pre-wrap; line-height: 1.6; margin: 14px 0 6px; padding: 14px; background: #f8fafc; border-radius: 10px; overflow-wrap: anywhere; }
.pt-track { display: flex; margin-top: 18px; }
.pt-dot { flex: 1; text-align: center; font-size: 11.5px; color: #9aa7b8; position: relative; padding-top: 22px; font-weight: 600; }
.pt-dot i { position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 3px solid #cfd8e3; z-index: 1; }
.pt-dot::before { content: ''; position: absolute; top: 6px; left: -50%; width: 100%; height: 3px; background: #dfe5ee; }
.pt-dot:first-child::before { display: none; }
.pt-dot.done { color: var(--pt-green); } .pt-dot.done i { background: var(--pt-green); border-color: var(--pt-green); } .pt-dot.done::before { background: var(--pt-green); }
.pt-dot.now { color: #8a5200; } .pt-dot.now i { border-color: var(--pt-amber); } 
.pt-track-stop .pt-dot.now { color: var(--pt-red); } .pt-track-stop .pt-dot.now i { border-color: var(--pt-red); background: var(--pt-red); }
.pt-timeline { border-left: 2px solid #e3e8f0; margin-left: 6px; padding-left: 18px; display: flex; flex-direction: column; gap: 14px; }
.pt-ev { position: relative; }
.pt-ev::before { content: ''; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--pt-blue); border: 2px solid #fff; }
.pt-ev-note { white-space: pre-wrap; background: #f8fafc; border-radius: 9px; padding: 9px 12px; margin-top: 6px; overflow-wrap: anywhere; }
.pt-ev-admin .pt-ev-note { background: #f7effc; } .pt-ev-admin::before { background: var(--pt-purple); }

.pt-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }
.pt-kpi { background: #fff; border: 1px solid var(--pt-border); border-radius: 14px; padding: 16px 18px; border-top: 4px solid var(--pt-navy); }
.pt-kpi b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.pt-kpi span { color: var(--pt-text2); font-size: 12.5px; }
.pt-kpi-green { border-top-color: var(--pt-green); } .pt-kpi-orange { border-top-color: var(--pt-amber); } .pt-kpi-red { border-top-color: var(--pt-red); }
.pt-light { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.pt-light-green { background: var(--pt-green); box-shadow: 0 0 0 4px rgba(30,158,106,.15); }
.pt-light-orange { background: var(--pt-amber); box-shadow: 0 0 0 4px rgba(243,156,18,.18); }
.pt-light-red { background: var(--pt-red); box-shadow: 0 0 0 4px rgba(214,69,65,.15); }
.pt-sync-red { border-left: 4px solid var(--pt-red); } .pt-sync-orange { border-left: 4px solid var(--pt-amber); } .pt-sync-green { border-left: 4px solid var(--pt-green); }
.pt-sync-time { font-weight: 700; }

.pt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.pt-chart { border: 1px solid #eef1f6; border-radius: 10px; padding: 8px; background: #fff; }
.pt-chart svg { display: block; }
.pt-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.pt-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--pt-text2); padding: 8px 10px; border-bottom: 2px solid var(--pt-border); white-space: nowrap; }
.pt-table td { padding: 9px 10px; border-bottom: 1px solid #eef1f6; white-space: nowrap; }
.pt-legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 4px 0 10px; font-size: 12.5px; color: var(--pt-text2); }
.pt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.pt-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 50%; }
.lg-done { background: var(--pt-green); } .lg-open { border: 3px solid var(--pt-amber); } .lg-none { border: 2px solid #c5cedb; }
.lg-it { background: #0b5fa5; border-radius: 4px !important; } .lg-ca { background: var(--pt-green); border-radius: 4px !important; }
.lg-ad { background: var(--pt-purple); border-radius: 4px !important; } .lg-plan { border: 1.5px dashed #9aa7b8; border-radius: 4px !important; }
.lg-num { display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 50%; background: var(--pt-green); color: #fff; font-size: 10.5px; }
.pt-natures { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 16px; }
.pt-nature { background: #fff; border: 1px solid var(--pt-border); border-radius: 14px; padding: 14px 16px; border-left: 4px solid #6b7a90; }
.pt-nature-name { font-weight: 800; font-size: 15px; }
.pt-nature-num { color: var(--pt-text2); font-size: 12.5px; margin: 3px 0 9px; } .pt-nature-num b { color: var(--pt-ink); font-size: 14px; }
.pt-bar { height: 7px; border-radius: 99px; background: #eef1f6; overflow: hidden; } .pt-bar i { display: block; height: 100%; border-radius: 99px; background: #6b7a90; }
.pt-nature-petroleum { border-left-color: #0b5fa5; } .pt-nature-petroleum .pt-bar i { background: #0b5fa5; }
.pt-nature-agro { border-left-color: #1e9e6a; } .pt-nature-agro .pt-bar i { background: #1e9e6a; }
.pt-nature-transport { border-left-color: #b9770e; } .pt-nature-transport .pt-bar i { background: #b9770e; }
.pt-table tr.pt-group td { background: #f1f4f9; font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px; padding: 7px 10px; border-left: 4px solid #6b7a90; }
.pt-table tr.pt-group-petroleum td { border-left-color: #0b5fa5; color: #0b5fa5; } .pt-table tr.pt-group-agro td { border-left-color: #1e9e6a; color: #14724c; }
.pt-table tr.pt-group-transport td { border-left-color: #b9770e; color: #8a5200; }
.lg-target { background: #c0392b; border-radius: 2px !important; transform: rotate(45deg) scale(.8); }
.pt-targets { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pt-target { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--pt-border); border-left: 4px solid #c0392b;
             border-radius: 14px; padding: 14px 16px; }
.pt-target-done { border-left-color: var(--pt-green); } .pt-target-late { background: #fdf2f1; }
.pt-target-date { flex: none; width: 62px; text-align: center; font-size: 11px; color: var(--pt-text2); text-transform: uppercase; letter-spacing: .4px; }
.pt-target-date b { display: block; font-size: 26px; line-height: 1; color: var(--pt-ink); font-weight: 800; }
.pt-target-main { flex: 1; min-width: 0; } .pt-target-left { flex: none; }
.pt-h3 { font-size: 13px; margin: 18px 0 8px; color: var(--pt-text2); text-transform: uppercase; letter-spacing: .5px; }
.pt-donelist { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-donelist span { background: #f0faf5; border: 1px solid #cfeadd; border-radius: 9px; padding: 6px 11px; font-size: 12.5px; }
.pt-donelist b { color: var(--pt-green); margin-right: 4px; }
.pt-steps-about { margin-top: 12px; font-size: 12.5px; color: var(--pt-text2); display: grid; gap: 4px; }

/* ---------- compact desktop look: the usual screen is a 14-inch laptop (user, 2026-10-04) ---------- */
body.portal { font-size: 13px; }
.pt-main { padding: 14px 20px 40px; max-width: 1400px; }
.pt-card { padding: 14px 16px; margin-bottom: 12px; border-radius: 10px; }
.pt-card h2 { font-size: 13.5px; margin: 0 0 6px; letter-spacing: .1px; }
.pt-card > .pt-muted, .pt-card p.pt-muted { font-size: 12px; margin: 0 0 8px; }
.pt-card-flush { padding: 4px 6px; }
.pt-lb { font-size: 10.5px; margin: 10px 0 4px; }
.pt-in { padding: 7px 10px; font-size: 13px; border-radius: 7px; }
.pt-btn { min-height: 32px; padding: 0 13px; font-size: 12.5px; border-radius: 7px; }
.pt-btn-block { min-height: 42px; font-size: 14px; }
.pt-chip { font-size: 10.5px; padding: 2px 8px; }
.pt-row { padding: 9px 13px; border-radius: 9px; gap: 12px; }
.pt-list { gap: 6px; margin-bottom: 12px; }
.pt-row-title { font-size: 13px; } .pt-row-sub { font-size: 11.5px; margin-top: 1px; }
.pt-tabs { margin-bottom: 10px; gap: 6px; } .pt-tab { padding: 6px 12px; font-size: 12px; }
.pt-seg a { padding: 5px 11px; font-size: 11.5px; }
.pt-flash { padding: 8px 12px; margin-bottom: 10px; border-radius: 8px; }
.pt-legend { font-size: 11.5px; gap: 14px; margin: 2px 0 8px; } .pt-legend i { width: 11px; height: 11px; }
.lg-num { width: 15px; height: 15px; line-height: 15px; font-size: 9.5px; }
.pt-table { font-size: 12px; } .pt-table th { font-size: 10px; padding: 6px 9px; } .pt-table td { padding: 5px 9px; }
.pt-chart { padding: 6px; border-radius: 8px; }
.pt-steps-about { font-size: 11.5px; margin-top: 8px; }
.pt-donelist span { font-size: 11.5px; padding: 4px 9px; } .pt-h3 { font-size: 11px; margin: 12px 0 6px; }
.pt-body { padding: 10px 12px; margin: 10px 0 4px; } .pt-req-head h2 { font-size: 15px; }
.pt-steps div { padding: 5px 10px; font-size: 11.5px; } .pt-steps b { width: 17px; height: 17px; line-height: 17px; font-size: 10px; }
.pt-ticks { gap: 8px 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.pt-checks label, .pt-ticks label { min-height: 24px; } .pt-checks input, .pt-ticks input { width: 15px; height: 15px; }
.pt-checks { padding-top: 24px; gap: 6px; }

/* stat strip: small tiles in one row */
.pt-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.pt-stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 760px; }
.pt-stat { background: #fff; border: 1px solid var(--pt-border); border-radius: 10px; padding: 9px 12px 10px; position: relative;
           border-top: 3px solid var(--pt-navy); box-shadow: 0 1px 2px rgba(12,27,51,.04); min-width: 0; }
.pt-stat b { font-size: 21px; font-weight: 800; line-height: 1.1; margin-right: 6px; }
.pt-stat span { font-weight: 700; font-size: 12px; }
.pt-stat em { display: block; font-style: normal; color: var(--pt-text2); font-size: 11px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-stat .pt-bar { height: 4px; margin-top: 7px; } .pt-stat .pt-bar i { background: var(--pt-navy); }
.pt-stat-petroleum { border-top-color: #0b5fa5; } .pt-stat-petroleum .pt-bar i { background: #0b5fa5; }
.pt-stat-agro, .pt-stat-green { border-top-color: var(--pt-green); } .pt-stat-agro .pt-bar i { background: var(--pt-green); }
.pt-stat-transport { border-top-color: #b9770e; } .pt-stat-transport .pt-bar i { background: #b9770e; }
.pt-stat-orange { border-top-color: var(--pt-amber); } .pt-stat-red { border-top-color: var(--pt-red); }
/* targets: slim */
.pt-targets { gap: 10px; margin-bottom: 12px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.pt-target { padding: 8px 12px; border-radius: 10px; gap: 12px; }
.pt-target-date { width: 46px; font-size: 9.5px; } .pt-target-date b { font-size: 20px; }
/* sync table */
.pt-sync-table .pt-light { width: 9px; height: 9px; margin-right: 9px; vertical-align: middle; position: relative; top: -1px; }
.pt-sync-table tr.pt-sync-red td:first-child { box-shadow: inset 3px 0 0 var(--pt-red); }
.pt-sync-table tr.pt-sync-orange td:first-child { box-shadow: inset 3px 0 0 var(--pt-amber); }
.pt-sync-table tr.pt-sync-green td:first-child { box-shadow: inset 3px 0 0 var(--pt-green); }
.pt-sync-table tbody tr:hover td { background: #f8fafc; }

/* sign-in pages */
body.pt-auth { margin: 0; min-height: 100vh; background: linear-gradient(160deg, #0b1c35 0%, #12305c 60%, #1565c0 130%);
               font-family: var(--pt-font); color: var(--pt-ink); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
body.pt-auth * { box-sizing: border-box; }
.pt-auth-wrap { width: 100%; max-width: 400px; }
.pt-auth-brand { color: #fff; text-align: center; margin-bottom: 22px; }
.pt-auth-brand .brand { font-size: 24px; font-weight: 800; }
.pt-auth-brand .sub { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 4px; }
.pt-auth-card { background: #fff; border-radius: 16px; padding: 28px 26px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.pt-auth-card h1 { font-size: 21px; margin: 0 0 4px; }
.pt-auth-card a { color: var(--pt-blue); text-decoration: none; font-weight: 600; }
.pt-auth-foot { color: rgba(255,255,255,.5); font-size: 11.5px; text-align: center; margin-top: 18px; }

/* left panel additions (all pages) */
.sb-user-role { font-size: 10.5px; color: rgba(255,255,255,.45); margin-top: 2px; }
.sb-user-links { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.sb-user-links a { color: rgba(255,255,255,.65); font-size: 11px; text-decoration: none; }
.sb-user-links a:hover { color: #fff; }
.sb-user-links form { margin: 0; }
button.sb-logout { background: none; cursor: pointer; font-family: inherit; }

/* ---------- B. mobile, every page ---------- */
.pt-burger { display: none; }
.pt-backdrop { display: none; }
@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body.shell, body.shell-dash { display: block; }
  .sb { transform: translateX(-105%); transition: transform .22s ease; width: 264px !important; z-index: 1000; box-shadow: 8px 0 30px rgba(0,0,0,.3); }
  body.pt-menu-open .sb { transform: none; }
  .sb .nav-i { padding: 13px 18px; font-size: 14px; }
  .sb .nav-sec { font-size: 10.5px; padding-top: 14px; }
  .sb .sb-logo .brand { font-size: 18px; }
  .pt-backdrop { position: fixed; inset: 0; background: rgba(8,18,36,.5); z-index: 900; }
  body.pt-menu-open .pt-backdrop { display: block; }
  .shell-main, .main { margin-left: 0 !important; width: 100%; min-width: 0; }
  .pt-burger { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px;
               border: 1.5px solid var(--pt-border); background: #fff; font-size: 20px; cursor: pointer; flex: none; color: var(--pt-ink); order: -1; }
  .tb { padding: 8px 12px !important; gap: 8px 10px !important; min-height: 0 !important; position: sticky; }
  .tb-title { white-space: normal !important; flex: 1 1 60%; min-width: 0; }
  .tb .fl { flex: 1 1 140px; min-width: 0; }
  .tb select.fs { min-width: 0; width: 100%; min-height: 38px; font-size: 13px; }
  .tb .btn { min-height: 36px; display: inline-flex; align-items: center; }
  .pt-tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  /* old report sheets: the name column may wrap so the amounts stay on screen; wider tables scroll in their box */
  body.shell .report-sheet { padding: 12px 10px !important; margin: 10px 8px !important; min-width: 0 !important;
                             width: auto !important; max-width: calc(100vw - 16px) !important; box-sizing: border-box; }
  body.shell .tb-table { font-size: 12.5px !important; width: 100% !important; }
  body.shell .tb-table th, body.shell .tb-table td { padding: 7px 6px !important; }
  body.shell .tb-table td.col-particulars, body.shell .tb-table th.col-particulars { white-space: normal !important; min-width: 130px; overflow-wrap: anywhere; }
  body.shell .tb-table td.col-amount, body.shell .tb-table th.col-amount { white-space: nowrap !important; }
  body.shell .tb-table td.col-particulars.indent { padding-left: 18px !important; }
  body.shell .tab-strip { overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  body.pt-no-manual .manual-entry-form, body.pt-no-manual .me-actions { display: none !important; }
  /* new pages: touch sizes back on phones */
  body.portal { font-size: 14px; }
  .pt-in { padding: 11px 12px; font-size: 16px; } .pt-btn { min-height: 42px; font-size: 14px; padding: 0 16px; }
  .pt-row { padding: 12px 14px; } .pt-row-title { font-size: 14px; } .pt-row-sub { font-size: 12.5px; }
  .pt-tab { padding: 9px 14px; font-size: 13px; } .pt-chip { font-size: 11.5px; padding: 3px 10px; }
  .pt-stats, .pt-stats-3 { grid-template-columns: 1fr 1fr; gap: 8px; }
  .pt-stats-3 { grid-template-columns: 1fr; }
  .pt-table-cards thead { display: none; }
  .pt-table-cards, .pt-table-cards tbody, .pt-table-cards tr, .pt-table-cards td { display: block; width: 100%; }
  .pt-table-cards tr { border: 1px solid var(--pt-border); border-radius: 10px; padding: 8px 10px; margin: 8px 0; background: #fff; }
  .pt-table-cards td { border: 0; padding: 3px 4px; white-space: normal; display: flex; justify-content: space-between; gap: 12px; text-align: right; box-shadow: none !important; }
  .pt-table-cards td::before { content: attr(data-th); color: var(--pt-text2); font-size: 11px; text-transform: uppercase; letter-spacing: .4px; text-align: left; flex: none; }
  .pt-table-cards td:first-child { font-size: 15px; justify-content: flex-start; align-items: center; gap: 0; padding-bottom: 6px; } .pt-table-cards td:first-child::before { display: none; }
  .pt-card-flush { padding: 0; border: 0; background: none; box-shadow: none; }
  .pt-main { padding: 14px 12px 50px; }
  .pt-card { padding: 16px 14px; border-radius: 12px; }
  .pt-grid2 { grid-template-columns: 1fr; }
  .pt-checks { padding-top: 14px; }
  .pt-kpis { grid-template-columns: 1fr; gap: 10px; }
  .pt-kpi { display: flex; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .pt-kpi b { font-size: 24px; }
  .pt-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .pt-row-side { align-items: flex-start; text-align: left; max-width: none; flex-direction: row; flex-wrap: wrap; gap: 6px 10px; }
  .pt-sync .pt-row-side { flex-direction: column; gap: 2px; }
  .pt-actions .pt-btn { flex: 1 1 auto; }
  .pt-dot { font-size: 10px; }
  .pt-target { flex-wrap: wrap; } .pt-target-left { width: 100%; padding-left: 76px; }
}
@media print { .pt-burger, .pt-backdrop { display: none !important; } }

/* ---------- Fuel Dashboard V2 (2026-10-04; design: changes/dashboard-v2/ANALYSIS.md) ---------- */
.v2-cur { font-size: 10.5px; font-weight: 700; color: var(--pt-text2); border: 1.5px solid var(--pt-border); border-radius: 6px; padding: 4px 8px; }
.v2-metrics { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.v2-chip { border: 1.5px solid var(--pt-border); background: #fff; color: var(--pt-text2); border-radius: 999px; padding: 5px 13px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.v2-chip:hover { border-color: var(--pt-blue); color: var(--pt-blue); }
.v2-chip.active { background: var(--pt-navy); border-color: var(--pt-navy); color: #fff; }
.v2-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.v2-kpi { cursor: pointer; border-top-color: #cfd8e3; transition: border-color .12s, box-shadow .12s; }
.v2-kpi:hover { box-shadow: 0 3px 10px rgba(12,27,51,.08); }
.v2-kpi.active { border-top-color: var(--pt-blue); box-shadow: 0 0 0 1.5px var(--pt-blue) inset; }
.v2-kpi > span { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--pt-text2); }
.v2-kpi-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 0 1px; }
.v2-kpi-row b { font-size: 20px; margin: 0; white-space: nowrap; }
.v2-spark { flex: none; }
.v2-up { color: #14724c; font-weight: 700; } .v2-down { color: var(--pt-red); font-weight: 700; } .v2-neg { color: var(--pt-red); }
.v2-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; }
.v2-card { position: relative; }
.v2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 6px; }
.v2-head h2 { margin: 0; } .v2-sub { color: var(--pt-text2); font-size: 11px; margin-top: 1px; }
.v2-zoom { border: 1.5px solid var(--pt-border); background: #fff; border-radius: 7px; width: 28px; height: 28px; cursor: pointer; color: var(--pt-text2); font-size: 15px; line-height: 1; flex: none; }
.v2-zoom:hover { border-color: var(--pt-blue); color: var(--pt-blue); }
.v2-canvas { position: relative; height: 232px; cursor: zoom-in; } .v2-canvas.big { height: min(62vh, 560px); cursor: default; }
.v2-compare { display: flex; gap: 6px; flex-wrap: wrap; min-height: 0; margin-bottom: 2px; }
.v2-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; border: 1px solid var(--pt-border); border-radius: 999px; padding: 2px 9px; cursor: pointer; background: #fff; }
.v2-tag i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.v2-rank { display: flex; flex-direction: column; gap: 3px; max-height: 250px; overflow-y: auto; }
.v2-rank.big { max-height: none; gap: 8px; font-size: 14px; }
.v2-rrow { display: grid; grid-template-columns: 128px minmax(0, 1fr) 76px 34px 16px; align-items: center; gap: 8px; padding: 2px 4px; border-radius: 6px; }
.v2-rank.big .v2-rrow { grid-template-columns: 190px minmax(0, 1fr) 110px 48px 20px; padding: 4px 6px; }
.v2-rrow.on { background: #eef4fc; }
.v2-rname { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.v2-rank.big .v2-rname { font-size: 14px; }
.v2-rname i, .v2-mname i { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; margin-right: 6px; }
.v2-rname i { margin-right: 0; }
.v2-rbar { height: 14px; background: #f1f4f9; border-radius: 4px; position: relative; overflow: hidden; }
.v2-rank.big .v2-rbar { height: 22px; }
.v2-rbar span { position: absolute; top: 0; bottom: 0; border-radius: 4px; min-width: 2px; }
.v2-rbar u { position: absolute; top: 0; bottom: 0; width: 1px; background: #9aa7b8; }
.v2-wide-names .v2-rrow { grid-template-columns: 178px minmax(0, 1fr) 76px 34px 0; }
.v2-rval { text-align: right; font-weight: 700; font-size: 12px; white-space: nowrap; } .v2-rank.big .v2-rval { font-size: 14px; }
.v2-rshare { text-align: right; color: var(--pt-text2); font-size: 11px; }
.v2-ropen { text-decoration: none; color: var(--pt-text2); font-weight: 800; font-size: 15px; text-align: center; } .v2-ropen:hover { color: var(--pt-blue); }
.v2-matrix td, .v2-matrix th, .v2-monthly td, .v2-monthly th, .v2-summary td, .v2-summary th, .v2-companies td, .v2-companies th { text-align: right; }
.v2-matrix td:first-child, .v2-matrix th:first-child, .v2-monthly td:first-child, .v2-monthly th:first-child, .v2-summary td:first-child, .v2-summary th:first-child, .v2-companies td:first-child, .v2-companies th:first-child { text-align: left; }
.v2-matrix td { padding: 4px 8px; border-bottom: 2px solid #fff; border-right: 2px solid #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.v2-matrix tbody tr { cursor: pointer; } .v2-matrix tbody tr:hover td.v2-mname { color: var(--pt-blue); }
.v2-matrix th.sel { color: var(--pt-blue); } .v2-matrix td.sel { outline: 2px solid rgba(21,101,192,.55); outline-offset: -2px; }
.v2-mname { white-space: nowrap; font-weight: 700 !important; background: #fff !important; }
.v2-ytd { border-left: 2px solid var(--pt-border) !important; font-weight: 800 !important; background: #fff; }
.v2-total td { border-top: 2px solid var(--pt-border); font-weight: 800 !important; background: #f6f8fb; cursor: default; }
.v2-monthly td, .v2-summary td, .v2-companies td { font-variant-numeric: tabular-nums; }
.v2-monthly tr.v2-hl-core td { background: #eaf2fb; font-weight: 700; } .v2-monthly tr.v2-hl-key td { font-weight: 700; }
.v2-companies tbody tr { cursor: pointer; } .v2-companies tbody tr:hover td { background: #f8fafc; }
.pt-scroll.big .pt-table { font-size: 14px; } .pt-scroll.big .pt-table td { padding: 8px 12px; } .pt-scroll.big .pt-table th { font-size: 11.5px; padding: 8px 12px; }
.v2-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(8,18,36,.55); display: flex; align-items: center; justify-content: center; padding: 24px; }
.v2-modal[hidden] { display: none; }
.v2-modal-box { background: #fff; border-radius: 14px; width: min(1180px, 100%); max-height: 100%; overflow: auto; padding: 18px 20px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.v2-modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.v2-modal-head h2 { font-size: 17px; margin: 0; }
.v2-close { border: 1.5px solid var(--pt-border); background: #fff; border-radius: 8px; width: 34px; height: 34px; cursor: pointer; font-size: 15px; color: var(--pt-text2); flex: none; }
.v2-close:hover { border-color: var(--pt-red); color: var(--pt-red); }
body.v2-modal-open { overflow: hidden; }
@media (max-width: 900px) {
  .v2-kpis { grid-template-columns: 1fr 1fr; } .v2-grid { grid-template-columns: 1fr; }
  .v2-chip { padding: 8px 14px; font-size: 13px; } .v2-rank { max-height: none; }
  .v2-rrow { grid-template-columns: 96px minmax(0, 1fr) 70px 16px; } .v2-rshare { display: none; }
  .v2-modal { padding: 8px; } .v2-modal-box { padding: 14px 12px; } .v2-canvas.big { height: 58vh; }
  .v2-rank.big .v2-rrow { grid-template-columns: 110px minmax(0, 1fr) 80px 16px; }
  .v2-zoom { width: 36px; height: 36px; }
}

.v2-kpi em { white-space: normal; line-height: 1.35; }
.v2-keylines tbody tr { cursor: pointer; }
/* left panel: a little tighter on laptops so the whole menu + user block fit a 768 px high screen */
@media (min-width: 901px) and (max-height: 820px) {
  .sb .nav-i { padding-top: 6px; padding-bottom: 6px; } .sb .nav-sec { padding-top: 8px; } .sb .sb-logo { padding-top: 12px; padding-bottom: 10px; }
}
@media (max-width: 900px) { .v2-wide-names .v2-rrow { grid-template-columns: 130px minmax(0, 1fr) 70px 0; } }
