:root{--navy:#001f3f;--accent:#0b69d6;--light:#f5f7fb; --yellow-light: #fffbe6; --blue-light: #e7f3ff; --header-height: 35px;}
body{font-family:Segoe UI, Roboto, Arial; background:var(--light); margin:0; color:#0b2944;}
.header{background:var(--navy); color:white; padding:12px 20px; display:flex;align-items:center;justify-content:space-between;}
.title{font-weight:700;font-size:18px;}
.toolbar{padding:14px 20px; display:flex; gap:8px; align-items:center; background:white; box-shadow:0 1px 4px rgba(2,6,23,0.06); flex-wrap: wrap;}
.btn{background:var(--accent); color:white; border:none; padding:8px 12px; border-radius:6px; cursor:pointer; font-weight:600;}
.btn:disabled{background:#aab8c9; cursor:not-allowed;}
.btn.secondary{background:#0a84ff;}
.container{max-width:1200px;margin:18px auto;padding:0 16px;}
.card{background:white;border-radius:8px;padding:12px;margin-bottom:16px;box-shadow:0 2px 8px rgba(2,6,23,0.04);}
.flex{display:flex;gap:12px;align-items:center;}
.small{font-size:13px;color:#475569;}
.table-wrap{overflow:auto; max-height:420px;border-radius:6px;border:1px solid #eef2ff;}
.full-page-table-wrap { overflow: auto; max-height: calc(100vh - 250px); border-radius:6px;border:1px solid #eef2ff; }
table{width:100%;border-collapse:collapse;font-size:13px; table-layout: auto;}
th,td{padding:8px;border-bottom:1px solid #eef2ff;text-align:left; white-space: nowrap; vertical-align: middle; background-color: white;}
th{background:#f1f7ff; position: sticky; top: 0; z-index: 2; cursor: pointer;}
thead tr:first-child th { top: 0; }
thead tr:nth-child(2) th { top: var(--header-height); } /* Sub-header */
thead tr:nth-child(3) th { top: calc(var(--header-height) * 2); } /* Filter row */

/* Sticky Columns styles */
.sticky-col { position: sticky; left: 0; z-index: 1; border-right: 1px solid #eef2ff;}
th.sticky-col { z-index: 3; }

td.sticky-col, th.sticky-col {
    left: var(--sticky-offset, 0);
}

.sticky-col-last { position: sticky; right: 0; z-index: 1; border-left: 2px solid #d0d8e8;}
th.sticky-col-last { z-index: 3; }


th .sort-indicator { margin-left: 5px; color: #999; }
th.sorted-asc .sort-indicator, th.sorted-desc .sort-indicator { color: #333; }
.checkbox-cent{text-align:center;}
.vendor-list{display:flex;gap:8px;flex-wrap:wrap;}
.pill{background:#eef2ff;padding:6px 10px;border-radius:999px;color:#03396c;font-weight:600;}
.input{padding:8px;border:1px solid #e6eef8;border-radius:6px;}
.filter-input { width: 100%; box-sizing: border-box; padding: 4px; border: 1px solid #ccc; border-radius: 4px; }
.right{margin-left:auto;}
.badge{background:#fde68a;padding:4px 8px;border-radius:6px;font-weight:600;}
.note{font-size:13px;color:#64748b;}
#appRoot { display: none; }
#loginOverlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--navy); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.login-box { background: #fff; padding: 32px; border-radius: 8px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.login-box h2 { margin-top: 0; color: var(--navy); }
.login-box .user-btn { display: block; width: 280px; margin: 8px 0; padding: 12px; font-size: 16px; }
.view { display: none; }
.view.active { display: block; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.report-card { background: white; border-radius: 8px; padding: 16px; box-shadow: 0 2px 8px rgba(2,6,23,0.04); }

/* Price comparison specific styles */
.price-cell { display: flex; align-items: center; gap: 8px; }
td.min-price { background-color: var(--yellow-light) !important; }
td.selected-price { background-color: var(--blue-light) !important; }