/* qualityb2b custom styles */
.qb-logo { font-size: 20px; font-weight: 600; letter-spacing: .3px; color: var(--vz-heading-color, #212529); line-height: 70px; }
.qb-logo b { color: var(--vz-primary); font-weight: 700; }
.qb-logo-sm { display: inline-flex; width: 30px; height: 30px; border-radius: 8px; background: var(--vz-primary); color: #fff; font-weight: 700; align-items: center; justify-content: center; }
.kpi-card .kpi-value { font-size: 22px; font-weight: 600; }
.table-nowrap td, .table-nowrap th { white-space: nowrap; }

/* Operations calendar */
.qb-cal { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 6px; }
.qb-cal .dow { text-align: center; font-weight: 600; color: var(--vz-secondary-color); padding: 4px 0;background: var(--vz-gray-100);border-radius: 8px;}
.qb-cal .day { background: var(--vz-secondary-bg, #fff); border: 1px solid var(--vz-border-color); border-radius: 8px; min-height: 118px; padding: 8px; cursor: pointer; transition: box-shadow .15s; }
.qb-cal .day:hover { box-shadow: 0 0 0 2px var(--vz-primary); }
.qb-cal .day.muted { opacity: .45; }
.qb-cal .day.today { border-color: var(--vz-primary); }
.qb-cal .day .num { font-weight: 700; display: flex; justify-content: space-between; }
.qb-cal .metric { font-size: 11px; border-radius: 6px; padding: 3px 6px; margin-top: 4px; background: var(--vz-light); }
.qb-cal-wrap { overflow-x: auto; }

/* Hotel timeline */
.qb-tl-wrap { overflow-x: auto; }
.qb-tl { border-collapse: separate; border-spacing: 0; min-width: 100%; }
.qb-tl th, .qb-tl td { border-right: 1px solid var(--vz-border-color); border-bottom: 1px solid var(--vz-border-color); padding: 0; }
.qb-tl th { text-align: center; font-size: 12px; padding: 6px 2px; background: var(--vz-light); min-width: 92px; }
.qb-tl .gname { position: sticky; left: 0; background: var(--vz-secondary-bg, #fff); z-index: 2; min-width: 190px; padding: 6px 8px; font-size: 12px; }
.qb-tl td.cell { height: 54px; vertical-align: middle; }
.qb-tl .seg { margin: 4px 1px; border-radius: 6px; padding: 3px 5px; font-size: 11px; line-height: 1.25; min-height: 44px; }
.qb-tl .seg.ok { background: #dff2e5; color: #1f5f35; }
.qb-tl .seg.part { background: #fff1d5; color: #7a5208; }
.qb-tl .seg.none { background: #ffe3e3; color: #8a2020; }
.qb-tl .seg.travel { background: var(--vz-light); color: var(--vz-secondary-color); }
[data-bs-theme=dark] .qb-tl .seg.ok { background: #1d3b29; color: #b8e6c7; }
[data-bs-theme=dark] .qb-tl .seg.part { background: #4a3a14; color: #ffe2a8; }
[data-bs-theme=dark] .qb-tl .seg.none { background: #4d1f1f; color: #ffc9c9; }
.peak-row { background: rgba(240, 101, 72, .08); }

/* Executive icon calendar */
.qb-cal .day { min-height: 150px; }
.qb-icons { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 6px; }
.qb-icons .metric { margin-top: 0; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qb-icons .metric b { font-size: 12.5px; }
.metric.m-group { background: #eaf5ff; } .metric.m-hotel { background: #edf3ff; } .metric.m-bus { background: #eef8f1; }
.metric.m-place { background: #fff5df; } .metric.m-flight { background: #f1edff; } .metric.m-meal { background: #fff0f2; } .metric.m-guide { background: #eefaf7; }
[data-bs-theme=dark] .qb-icons .metric { background: var(--vz-light); }
.qb-alert { margin-top: 5px; font-size: 10.5px; background: rgba(240, 101, 72, .12); color: #b63a24; padding: 3px 6px; border-radius: 6px; }
.qb-tl .seg { min-height: 44px; }
.qb-tl .tl-line { font-size: 10px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.qb-tl .tl-wait { color: #b76e00; }
.qb-tl th { min-width: 120px; }
