/* =============================================
   QuickQuote App Styles — D6 Labs Theme
   ============================================= */

html, body {
    font-family: 'Roboto', Arial, sans-serif;
    color: #454F50;
    font-size: 16px;
}

h1:focus { outline: none; }

a, .btn-link { color: #E93725; }
a:hover { color: #c92d1d; }

.btn-primary {
    color: #fff;
    background-color: #E93725;
    border-color: #E93725;
}

.btn-primary:hover {
    background-color: #c92d1d;
    border-color: #c92d1d;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(233, 55, 37, 0.4);
}

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid red; }
.validation-message { color: red; }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #E93725;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code { color: #c02d76; }

/* =============================================
   D6 Contact Bar, Header, Nav, Footer
   ============================================= */

.d6-contact-bar {
    background: #fff;
    height: 32px;
    max-height: 32px;
    display: flex;
    align-items: center;
}

.d6-contact-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
}

.d6-contact-bar a {
    color: #000;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: normal;
    letter-spacing: 1px;
}
.d6-contact-bar a:hover { color: #E93725; text-decoration: underline; }

.d6-header {
    background: #fff;
    box-shadow: 0px 6px 12px rgba(69, 79, 80, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 116px;
}

.d6-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.d6-header-logo img { height: 80px; }

.d6-header-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
}

.d6-menu-checkbox { display: none; }

.d6-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.d6-nav-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.d6-nav-menu > li { position: relative; }

.d6-nav-menu > li > a, .d6-nav-menu > li > a:visited {
    display: block;
    padding: 0.5rem 1rem;
    color: #454F50;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 21px;
    transition: color 0.15s;
}

.d6-nav-menu > li > a:hover, .d6-nav-menu > li > a.active { color: #E93725; }

/* Dropdown menus */
.d6-has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #454F50;
}

.d6-has-dropdown:hover > a::after { border-top-color: #E93725; }

.d6-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 180px;
    z-index: 1001;
}

.d6-has-dropdown:hover > .d6-dropdown { display: block; }

.d6-dropdown li a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: #454F50;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.d6-dropdown li a:hover { color: #E93725; background: #f8f9fa; }

/* Sub-dropdown (flyout) */
.d6-has-subdropdown { position: relative; }
.d6-has-subdropdown > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 4px solid #454F50;
}
.d6-has-subdropdown:hover > a::after { border-left-color: #E93725; }

.d6-subdropdown {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 160px;
    z-index: 1002;
}

.d6-has-subdropdown:hover > .d6-subdropdown { display: block; }

.d6-subdropdown li a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: #454F50;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

.d6-subdropdown li a:hover { color: #E93725; background: #f8f9fa; }

.d6-nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 0.5rem;
}

.d6-nav-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #454F50;
    font-size: 1.1rem;
    text-decoration: none;
}

.d6-nav-cart:hover { color: #E93725; }

.d6-cart-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: #E93725;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.1rem 0.35rem;
    border-radius: 10px;
    line-height: 1;
}

/* Request Info pill button — matches D6 v5 site */
.d6-nav-btn-request {
    display: inline-block;
    background: #E93725;
    color: #fff !important;
    border: 2px solid #E93725;
    border-radius: 24px;
    padding: 0 20px;
    line-height: 28px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 19px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
}

.d6-nav-btn-request:hover { background: #c92d1d; border-color: #c92d1d; color: #fff !important; }

/* Login link */
.d6-nav-btn-login {
    color: #454F50;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 16px;
    padding: 0.35rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
}

.d6-nav-btn-login:hover { border-color: #E93725; color: #E93725; }

.d6-user-dropdown { position: relative; }

.d6-user-btn {
    background: none;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.35rem 0.75rem;
    color: #454F50;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.d6-user-btn:hover { border-color: #E93725; color: #E93725; }

.d6-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    z-index: 1001;
    padding: 0.5rem 0;
}

.d6-user-dropdown.open .d6-user-menu { display: block; }

.d6-user-menu a {
    display: block;
    padding: 0.4rem 1rem;
    color: #454F50;
    text-decoration: none;
    font-size: 0.85rem;
}

.d6-user-menu a:hover { background: #f8f9fa; color: #E93725; }
.d6-user-menu hr { margin: 0.25rem 0; border-color: #dee2e6; }

.d6-menu-hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.d6-menu-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #454F50;
    margin: 5px 0;
    transition: all 0.3s;
}

.d6-page-content { min-height: 60vh; }

/* Made in USA */
.d6-made-in-usa { padding: 3rem 0; }
.d6-made-in-usa h4 { color: #454F50; margin-bottom: 0.75rem; }
.d6-made-in-usa p { color: #A2A7A7; font-size: 0.95rem; }

/* Footer */
.d6-footer {
    background: #E8EEEF;
    padding: 3rem 0 1rem;
}

.d6-footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.d6-footer-heading { color: #E93725; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.75rem; }
.d6-footer-heading-sm { font-size: 0.9rem; margin-top: 1.25rem; }

.d6-footer-links { list-style: none; padding: 0; margin: 0 0 0.5rem 0; }
.d6-footer-links li { margin-bottom: 0.25rem; }
.d6-footer-links a { color: #454F50; text-decoration: none; font-size: 0.9rem; }
.d6-footer-links a:hover { color: #E93725; }

.d6-footer-contact { margin-bottom: 0.5rem; }
.d6-footer-contact a { color: #454F50; text-decoration: none; font-size: 0.9rem; }
.d6-footer-contact a:hover { color: #E93725; }

.d6-footer-social { display: flex; gap: 0.75rem; }
.d6-footer-social img { opacity: 0.8; transition: opacity 0.2s; }
.d6-footer-social img:hover { opacity: 1; }

.d6-footer-logo { margin-top: 1.5rem; }
.d6-footer-logo img { max-width: 200px; }

.d6-footer-legal {
    border-top: 1px solid #ccc;
    padding-top: 1rem;
    font-size: 0.8rem;
    color: #A2A7A7;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.d6-footer-legal a { color: #A2A7A7; text-decoration: none; }
.d6-footer-legal a:hover { color: #E93725; }

/* Page header */
.page-header {
    background: linear-gradient(135deg, #454F50 0%, #2c3e50 100%);
    color: #fff;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 { font-weight: 700; font-size: 2.25rem; }
.page-header p { color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto; }

/* Mobile responsive */
@media (max-width: 768px) {
    .d6-menu-hamburger { display: block; }

    .d6-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        flex-direction: column;
        padding: 1rem;
        z-index: 999;
    }

    .d6-menu-checkbox:checked ~ .d6-nav { display: flex; }

    .d6-nav-menu { flex-direction: column; width: 100%; }

    .d6-nav-right { margin-left: 0; margin-top: 1rem; justify-content: center; }

    .d6-footer-grid { grid-template-columns: 1fr; }

    .d6-grid-2col { grid-template-columns: 1fr; }

    .d6-header { height: auto; }
    .d6-header-logo img { height: 50px; }
    .d6-nav-menu > li > a { font-size: 16px; }
    .d6-nav-btn-request { font-size: 14px; padding: 0 14px; }
    .d6-dropdown { position: static; box-shadow: none; }
    .d6-has-dropdown:hover > .d6-dropdown { display: block; }
}

/* =============================================
   BOM Drawer Panel
   ============================================= */

/* BOM Toggle Bar */
.bom-toggle-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem -1rem -0.5rem -1rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #E93725 0%, #c92d1d 100%);
    color: #fff;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    border-radius: 0 0 0.375rem 0.375rem;
}

.bom-toggle-bar.has-preview {
    border-radius: 0;
    margin-bottom: 0;
}

.bom-toggle-bar:hover {
    background: linear-gradient(135deg, #c92d1d 0%, #a82318 100%);
    box-shadow: 0 2px 8px rgba(233, 55, 37, 0.35);
}

.bom-toggle-bar.needs-attention {
    background: linear-gradient(135deg, #E93725 0%, #9b2d9b 100%);
    animation: bom-pulse 2s ease-in-out infinite;
}

@keyframes bom-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(233, 55, 37, 0); }
    50% { box-shadow: 0 0 0 4px rgba(233, 55, 37, 0.25); }
}

.bom-toggle-bar.needs-attention:hover {
    animation: none;
    box-shadow: 0 2px 8px rgba(233, 55, 37, 0.4);
}

.bom-toggle-bar.open {
    background: linear-gradient(135deg, #212529 0%, #343a40 100%);
    border-radius: 0;
    box-shadow: none;
}

.bom-toggle-bar.open:hover {
    background: linear-gradient(135deg, #2c3136 0%, #3d444b 100%);
    box-shadow: none;
}

.bom-toggle-bar.imported:not(.open) {
    background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.bom-toggle-bar.imported:not(.open):hover {
    background: linear-gradient(135deg, #157347 0%, #0f5132 100%);
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.35);
}

.bom-toggle-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bom-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.bom-toggle-text {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bom-toggle-title {
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.bom-toggle-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bom-toggle-price {
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
}

@keyframes issue-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.bom-toggle-issues-btn {
    padding: 0.2rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    background: #dc3545;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.3rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    animation: issue-flash 1.5s ease-in-out infinite;
}

.bom-toggle-issues-btn:hover {
    background: #bb2d3b;
    border-color: rgba(255, 255, 255, 0.6);
    animation: none;
}

.bom-toggle-hint {
    font-size: 0.825rem;
    opacity: 0.85;
    font-style: italic;
}

.bom-toggle-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.bom-toggle-bar:hover .bom-toggle-chevron {
    background: rgba(255, 255, 255, 0.25);
}

/* BOM Inline Preview */
.bom-inline-preview {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe69c 100%);
    border-top: none;
    padding: 0.3rem 1rem;
    margin: 0 -1rem -0.5rem -1rem;
    border-radius: 0 0 0.375rem 0.375rem;
}

.bom-inline-preview-content {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.825rem;
    flex-wrap: wrap;
}

.bom-inline-ref { font-weight: 700; color: #664d03; font-family: monospace; font-size: 0.85rem; }
.bom-inline-pn { font-weight: 600; color: #E93725; }
.bom-inline-desc { color: #495057; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bom-inline-qty { color: #664d03; font-weight: 600; }
.bom-inline-price { color: #198754; font-weight: 700; }
.bom-inline-label { color: #664d03; font-size: 0.8rem; white-space: nowrap; }

.bom-inline-toggles { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; flex-shrink: 0; }
.bom-inline-toggle-gap { width: 0.35rem; }

.bom-inline-toggle-btn {
    padding: 0.1rem 0.5rem;
    font-size: 0.725rem;
    font-weight: 600;
    border: 1.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 0.25rem;
    background: rgba(255, 255, 255, 0.7);
    color: #495057;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.bom-inline-toggle-btn:hover { background: rgba(255, 255, 255, 0.95); border-color: rgba(0, 0, 0, 0.35); }
.bom-inline-toggle-btn.active.smt { background: #0d6efd; color: #fff; border-color: #0d6efd; }
.bom-inline-toggle-btn.active.th { background: #0dcaf0; color: #000; border-color: #0dcaf0; }
.bom-inline-toggle-btn.active.dnp { background: #6c757d; color: #fff; border-color: #6c757d; }
.bom-inline-toggle-btn.active.cust { background: #6f42c1; color: #fff; border-color: #6f42c1; }

.bom-inline-sep { display: inline-block; width: 1px; height: 14px; background-color: rgba(0, 0, 0, 0.2); flex-shrink: 0; }

.bom-dropdown-drawer {
    background: #fff;
    border-top: 2px solid #212529;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 0.375rem 0.375rem;
}

.bom-dropdown-body { padding: 1rem; }

/* =============================================
   PCB Viewer
   ============================================= */

.pcb-viewer-card {
    background: #1e1e1e;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #dee2e6;
    margin-bottom: 1rem;
}

.pcb-viewer-wrapper { position: relative; width: 100%; }
.pcb-canvas-area { width: 100%; height: 100%; }

.pcb-overlay-controls {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 200px;
    background: rgba(33, 37, 41, 0.92);
    border-radius: 0.375rem;
    color: #e9ecef;
    font-size: 0.8rem;
    z-index: 10;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.pcb-overlay-header {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.6rem;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    user-select: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.15s ease;
}

.pcb-overlay-header:hover { background: rgba(255, 255, 255, 0.08); }
.pcb-overlay-controls.collapsed .pcb-overlay-header { border-bottom: none; }

.pcb-overlay-body { padding: 0.5rem 0.6rem; max-height: 450px; overflow-y: auto; }
.pcb-overlay-body .form-check-sm { padding-left: 1.4em; margin-bottom: 0.1rem; }
.pcb-overlay-body .form-check-sm .form-check-input { width: 0.85em; height: 0.85em; margin-top: 0.2em; }
.pcb-overlay-body .form-check-sm .form-check-label { font-size: 0.75rem; line-height: 1.3; }
.pcb-layer-list { max-height: 160px; overflow-y: auto; }

.pcb-overlay-zoom {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    z-index: 10;
}

.pcb-zoom-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(33, 37, 41, 0.92);
    color: #e9ecef;
    border: none;
    border-radius: 0.3rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.15s ease;
    backdrop-filter: blur(6px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.pcb-zoom-btn:hover { background: rgba(55, 60, 66, 0.95); color: #fff; }

.pcb-zoom-label {
    font-size: 0.7rem;
    color: #adb5bd;
    background: rgba(33, 37, 41, 0.85);
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    backdrop-filter: blur(6px);
}
