/* BuildTrack – company & subscription (2026-11-22) */
.bt-company-chip { display: flex; align-items: center; gap: 0.6rem; margin: 0 1.1rem 0.5rem; padding: 0.55rem 0.7rem; border: 1px solid var(--border-color); border-radius: 14px; background: var(--card-bg, #fff); color: var(--text-main); text-decoration: none; min-width: 0; cursor: default; }
.bt-company-chip.is-link { cursor: pointer; transition: border-color .15s, background .15s; }
.bt-company-chip.is-link:hover { border-color: var(--primary-color); background: var(--sidebar-hover); color: var(--text-main); }
.bt-cc-logo { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: rgba(15, 65, 112, 0.08); color: var(--bt-navy, #0f4170); font-weight: 800; }
.bt-cc-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bt-cc-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.bt-cc-text b { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bt-cc-text small { color: var(--text-muted); font-size: 0.7rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 0.3rem; }
.bt-cc-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; background: #94a3b8; }
.bt-cc-dot.is-success { background: #10b981; } .bt-cc-dot.is-warning { background: #f59e0b; } .bt-cc-dot.is-danger { background: #ef4444; }
body.sidebar-collapsed .bt-company-chip { margin: 0 0.85rem 0.5rem; padding: 0.45rem; justify-content: center; }

.bt-sub-banner { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.6rem 1.25rem; font-size: 0.85rem; font-weight: 700; border-bottom: 1px solid transparent; }
.bt-sub-banner.is-warning { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.bt-sub-banner.is-danger { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.bt-sub-banner span { flex: 1; min-width: 200px; }
.bt-sub-banner-link { color: inherit; text-decoration: underline; white-space: nowrap; }

.bt-company-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 991.98px) { .bt-company-grid { grid-template-columns: 1fr; } }
.bt-company-logo-row { display: flex; gap: 1rem; align-items: center; }
.bt-company-logo { width: 84px; height: 84px; flex-shrink: 0; border-radius: 18px; border: 1px dashed var(--border-color); display: flex; align-items: center; justify-content: center; overflow: hidden; background: rgba(15, 65, 112, 0.05); font-size: 2rem; font-weight: 800; color: var(--bt-navy, #0f4170); }
.bt-company-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.bt-company-logo.is-loading { opacity: .5; }
.bt-sub-plan { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; }
.bt-sub-plan-name { font-size: 1.35rem; font-weight: 800; }
.bt-sub-days { font-size: 1.05rem; font-weight: 800; }
.bt-sub-days.is-warning { color: #b45309; } .bt-sub-days.is-danger { color: #dc2626; } .bt-sub-days.is-success { color: #059669; }
.bt-sub-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1rem 0 0.25rem; }
.bt-sub-dates > div { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0.75rem; border-radius: 12px; background: rgba(100, 116, 139, 0.07); }
.bt-sub-renew { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 1rem; padding: 0.7rem 0.8rem; border-radius: 12px; background: rgba(15, 65, 112, 0.06); font-size: 0.85rem; }
.bt-sub-renew i { color: var(--primary-color); margin-top: 0.2rem; }
.bt-usage-list { display: flex; flex-direction: column; gap: 1.1rem; }
.bt-usage-label { font-weight: 700; font-size: 0.85rem; display: flex; gap: 0.45rem; align-items: center; }
.bt-usage-label i { color: var(--text-muted); width: 16px; text-align: center; }
.bt-usage-val { font-weight: 800; font-size: 0.95rem; margin: 0.25rem 0 0.35rem; }
.bt-usage-val .text-muted { font-weight: 600; font-size: 0.8rem; }
.bt-usage-bar { height: 8px; border-radius: 99px; background: rgba(100, 116, 139, 0.15); overflow: hidden; }
.bt-usage-bar span { display: block; height: 100%; border-radius: inherit; background: var(--primary-color); }
.bt-usage-bar.is-warning span { background: #f59e0b; } .bt-usage-bar.is-danger span { background: #ef4444; }
.bt-co-muted { color: var(--text-muted) !important; }
.bt-company-grid .bt-co-muted.small, .bt-sub-dates .bt-co-muted { font-size: 0.75rem; font-weight: 600; }
[data-theme="dark"] .bt-sub-banner.is-warning, body.dark-mode .bt-sub-banner.is-warning { background: rgba(245, 158, 11, 0.12); color: #fcd34d; border-color: rgba(245, 158, 11, 0.3); }
[data-theme="dark"] .bt-sub-banner.is-danger, body.dark-mode .bt-sub-banner.is-danger { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
[data-theme="dark"] .bt-company-logo, body.dark-mode .bt-company-logo, [data-theme="dark"] .bt-cc-logo, body.dark-mode .bt-cc-logo { background: rgba(129, 140, 248, 0.12); color: #c4d7ea; }

/* getting-started guide */
.bt-guide { margin-bottom: 1.25rem; }
.bt-guide-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1.2rem 0.75rem; }
.bt-guide-head h6 { display: flex; align-items: center; gap: 0.5rem; font-size: var(--fs-md, 1rem); }
.bt-guide-steps { list-style: none; margin: 0.75rem 0 0; padding: 0 0.6rem 0.6rem; }
.bt-guide-step { border-radius: 12px; }
.bt-guide-step + .bt-guide-step { margin-top: 2px; }
.bt-guide-step.is-open { background: rgba(100, 116, 139, 0.07); }
.bt-guide-row { display: flex; align-items: center; gap: 0.75rem; width: 100%; padding: 0.6rem 0.6rem; border: 0; background: none; color: var(--text-main); text-align: right; font-weight: 700; }
.bt-guide-num { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; border: 2px solid var(--border-color); color: var(--text-muted); }
.bt-guide-step.is-current .bt-guide-num { border-color: var(--primary-color); color: var(--primary-color); }
.bt-guide-step.is-done .bt-guide-num { background: #10b981; border-color: #10b981; color: #fff; }
.bt-guide-step.is-done .bt-guide-title { color: var(--text-muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.bt-guide-title { flex: 1; display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; }
.bt-guide-title i { color: var(--text-muted); width: 18px; text-align: center; }
.bt-guide-caret { color: var(--text-muted); font-size: 0.75rem; transition: transform .2s; }
.bt-guide-step.is-open .bt-guide-caret { transform: rotate(180deg); }
.bt-guide-body { display: none; padding: 0 3.35rem 0.85rem 0.75rem; }
.bt-guide-step.is-open .bt-guide-body { display: block; }
.bt-guide-body p { margin: 0 0 0.6rem; font-size: 0.87rem; line-height: 1.8; color: var(--text-main); }
@media (max-width: 575.98px) { .bt-guide-body { padding-right: 0.75rem; } }

/* per-project permissions (access.js) */
.bt-perm-hide { display: none !important; }
.bt-access-pill { font-weight: 700; }
.bt-acc-note { background: rgba(16, 185, 129, 0.1); color: #047857; border-radius: 12px; padding: 0.6rem 0.85rem; margin-bottom: 1rem; font-weight: 700; font-size: 0.87rem; }
.bt-acc-scopes { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-bottom: 1rem; }
@media (max-width: 767.98px) { .bt-acc-scopes { grid-template-columns: 1fr; } }
.bt-acc-scope { display: flex; gap: 0.6rem; align-items: flex-start; padding: 0.8rem 0.9rem; border: 1px solid var(--border-color); border-radius: 14px; cursor: pointer; }
.bt-acc-scope:has(input:checked) { border-color: var(--primary-color); background: rgba(15, 65, 112, 0.06); }
.bt-acc-scope input { margin-top: 0.3rem; }
.bt-acc-scope b { display: block; }
.bt-acc-scope small { color: var(--text-muted); font-size: 0.78rem; line-height: 1.6; }
.bt-acc-tools { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; }
.bt-acc-tools input { max-width: 320px; }
.bt-acc-count { color: var(--text-muted); font-size: 0.82rem; font-weight: 700; }
.bt-acc-table th { font-size: 0.75rem; white-space: nowrap; vertical-align: top; }
.bt-acc-table th div { margin-top: 0.3rem; }
.bt-acc-table tr:not(.is-on) td:not(:first-child) { opacity: 0.45; }
.bt-acc-proj { display: flex; gap: 0.55rem; align-items: center; cursor: pointer; margin: 0; }
.bt-acc-proj span { display: flex; flex-direction: column; line-height: 1.3; }
.bt-acc-proj small { color: var(--text-muted); font-size: 0.75rem; }
.bt-acc-table .form-check-input { width: 1.15em; height: 1.15em; cursor: pointer; }
