﻿/*** Spinner ***/
.page-loader {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.25s ease;
}

    .page-loader.hidden {
        opacity: 0;
        pointer-events: none;
    }

/* Spinner container */
.multi-orbit-loader {
    width: 120px;
    height: 120px;
}

/* Base animation */
.arc {
    transform-origin: 50% 50%;
    animation: spin linear infinite;
}

/* Individual orbital speeds */
.arc-blue {
    animation-duration: 1.6s;
}

.arc-yellow {
    animation-duration: 2.2s;
}

.arc-red {
    animation-duration: 2.9s;
}

.arc-cyan {
    animation-duration: 3.4s;
}

@keyframes spin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.02); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Subtle depth */
.arc circle {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.1));
}

@media (max-width: 768px) {
    .loader-svg {
        width: 90px;
        height: 90px;
    }
}
/*** End Spinner ***/


/*DEV NOTE: Disabled 4-1-26 until we can confirm current usage*/
/*** Collapse Panel ***/
/*.collapsible-body {
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    max-height: 0;
    padding: 0 16px;
}

    .collapsible-body.open {
        max-height: 2000px;*/
        /*padding: 16px;*/
        /*padding-bottom: 24px;
    }

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
    font-size: 14px;
}

    .arrow.open {
        transform: rotate(90deg);
    }*/

/* PANEL WRAPPER */
/*.collapsible-panel {
    margin-bottom: 24px;
}*/

/* HEADER POSITIONING */
/*.collapsible-header {
    position: relative;
}*/

    /* TOP LINE (ALWAYS PRESENT) */
    /*.collapsible-header::after {
        content: "";
        position: absolute;
        left: 48px;*/ /* starts just after arrow */
        /*right: 0;
        top: 50%;*/ /* vertical center */
        /*transform: translateY(-50%);
        height: 1px;
        background-color: #ddd;
    }*/

/* BOTTOM LINE (ONLY WHEN OPEN) */
/*.collapsible-body.open::after {
    content: "";
    display: block;
    height: 1px;
    background-color: #ddd;
    margin-top: 16px;
    opacity: 1;
}*/

/* OPTIONAL: SLIGHT INDENT FOR BODY CONTENT */
/*.collapsible-body {
    padding-left: 16px;
    padding-right: 16px;
}

.collapsible-body.open {
    padding-left: 0;
    padding-right: 0;
}

    .collapsible-body::after {
        opacity: 0;
        transition: opacity 0.3s ease;
    }*/
/*** End Collapse Panel ***/
/*DEV NOTE: Disabled 4-1-26 until we can confirm current usage*/


/*DEV NOTE: Added 4-1-26*/
/*** Collapse Panel ***/
.collapse-section {
    margin-bottom: 20px;
}

/* Header (your horizontal separator replacement) */
.collapse-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

/* Title */
.collapse-header .title {
    font-weight: 600;
    margin-left: 8px;
}

    /* The horizontal lines */
    .collapse-header .line {
        flex: 1;
        height: 1px;
        background-color: #ccc;
    }

    /* Center content (arrow + title) */
    .collapse-header .header-content {
        display: flex;
        align-items: center;
        padding: 0 12px;
        white-space: nowrap;
    }

    /* Arrow (▶ default) */
    .collapse-header .arrow {
        width: 0;
        height: 0;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
        border-left: 8px solid #333;
        transition: transform 0.35s ease;
    }

/* Rotated (open state) */
.collapse-section.open .arrow {
    transform: rotate(90deg); /* ▼ */
}

/* Content animation */
.collapse-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease; /* slower expand */
}

/* Optional spacing inside */
.collapse-content > * {
    padding-top: 10px;
}

/* Expanded */
.collapse-section.open .collapse-content {
    max-height: 500px; /* adjust as needed */
}
/*** End Collapse Panel ***/


/*** Price Book ***/
.pricebook-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(675px, 1fr));
    gap: 2rem;
}

.pricebook-grid-wrapper h3 {
    margin-bottom: 0.5rem;
}

.table-responsive {
    overflow-x: auto;
}

.pricebook-grid {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
    .pricebook-grid th,
    .pricebook-grid td {
        padding: 8px;
        border: 1px solid #ccc;
        text-align: center;
        white-space: nowrap;
    }

    .pricebook-grid .row-header,
    .pricebook-grid .col-header,
    .pricebook-grid .corner {
        background: #f4f4f4;
        font-weight: 600;
    }

    /* Hover states */
    .pricebook-grid td.hover,
    .pricebook-grid th.hover {
        background-color: #e3f2fd;
    }

@media (max-width: 768px) {
    .pricebook-grid th,
    .pricebook-grid td {
        font-size: 0.85rem;
    }
}

/* PAGE WRAPPER */
.pricebook-options-page {
    padding: 20px;
}

/* MAIN FLEX CONTAINER */
.pricebook-options-dropdown-container {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

/* COLUMNS */
.pricebook-options-dropdown-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* DIVIDER (DESKTOP DEFAULT = VERTICAL) */
.pricebook-options-divider {
    width: 1px;
    background-color: #ccc;
}

/* FORM STYLING */
/*.form-group label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 6px 8px;
}*/

/* ============================= */
/* MOBILE / SMALL SCREENS        */
/* ============================= */
@media (max-width: 768px) {

    .pricebook-options-dropdown-container {
        flex-direction: column;
    }

    /* CHANGE DIVIDER TO HORIZONTAL */
    .pricebook-options-divider {
        width: 100%;
        height: 1px;
        margin: 10px 0;
    }
}
/*** End Price Book ***/


/*** Vendor Material Costs Table ***/
.table-scroll {
    overflow-x: auto;
    max-width: 100%;
}

.excel-table {
    border-collapse: collapse;
    min-width: 1200px;
}

    .excel-table th,
    .excel-table td {
        border: 1px solid #ccc;
        padding: 6px 8px;
        white-space: nowrap;
        max-width: 170px;
    }

.sticky-header {
    position: sticky;
    top: 0;
    background: #f2f2f2;
    z-index: 3;
}

.sticky-col {
    position: sticky;
    left: 0;
    background: #fafafa;
    z-index: 2;
    font-weight: 600;
}

.edit-section {
    background: #e9f3df;
}

.section-header {
    font-style: italic;
    font-weight: bold;
    text-indent: 10px;
}

.excel-data-row:hover td {
    background: #eef6ff;
}

/* Column hover */
/*.excel-table td:hover::before {
    content: "";
    position: absolute;
    top: -10000px;
    bottom: -10000px;
    left: 0;
    right: 0;
    background: rgba(200, 225, 255, 0.35);
    z-index: -1;
}*/
/*** End Vendor Material Costs Table ***/


/*** Generals ***/
.separator-with-title {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

    .separator-with-title::before,
    .separator-with-title::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #ccc;
    }

    .separator-with-title span {
        margin: 0 1rem;
        font-weight: 600;
    }
/*** End Generals ***/