svg.plot-layout {
    /* background-color: green; */
    font-family: var(--primary-font-family);
}

svg.plot-layout .blackArea {
    fill: black;
    stroke-width: 2px;
    stroke: white;
}

svg.plot-layout .yellowFill {
    fill: yellow;
    stroke-width: 2px;
    stroke: white;
    font-size: 0.8em;

}

svg.plot-layout .redText {
    fill: red;
    font-size: 0.8em;

}

svg.plot-layout .whiteText {
    fill: white;
    font-size: 0.8em;

}

svg.plot-layout .plot , svg.plot-layout .customplot {
    stroke-width: 2px;
    stroke: white;
    fill: green;
    cursor: pointer;
}

svg.plot-layout .plot:hover , svg.plot-layout .customplot:hover {
    fill: skyblue;
    stroke: #0ea5e9;
    stroke-width: 3px;
    filter: brightness(1.08);
    transition: all 0.2s linear;
}

svg.plot-layout .booked {
    fill: red;

}

svg.plot-layout .matched {
    fill: orange;

}

svg.plot-layout .hold {
    fill: skyblue;

}

svg.plot-layout .plotNumber {

    fill: white;
    font-weight: bolder;
    font-size: 0.8em;
}

.plots-layout-container {
    margin: 0 auto 0 auto;
    width: 99%;
    overflow-x: hidden;
    /* background: white !important; */


}

.plots-layout-container.full-screen {
    left: 0;
    top: 0;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 5;
}

svg.digital-plot-layout .plot , svg.digital-plot-layout .customplot {
    fill: transparent !important;
    cursor: pointer;

}


.high-z-index {
    z-index: 500;

}

.fixed-things-bg {
    background: #f7ff00;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #db36a4, #f7ff00);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #db36a4, #f7ff00); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */


}

.project-custom-things-bg{
    background: #ff00cc;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #333399, #ff00cc);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #333399, #ff00cc); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */


}

.project-custom-things-bg .card-text{
    color: white;
}

.full-layout-box {
    height: calc(80vh - 0px);
    /* min-height: 80vh !important;
    max-height: 80vh !important;
    min-width: 100vw !important;
    max-width: 100vw !important; */
    overflow: hidden !important;
}

.controls-container {
    position: fixed;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.controls-container .controls-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.controls-container .btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 14px;
    transition: all 0.2s ease;
    padding: 0;
    margin: 0;
    cursor: pointer;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.controls-container .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.controls-container .btn:active {
    transform: scale(0.95);
    background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .controls-container {
        right: 6px;
    }

    .controls-container .controls-content {
        padding: 6px;
        gap: 5px;
    }

    .controls-container .btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .controls-container {
        right: 5px;
    }

    .controls-container .controls-content {
        padding: 5px;
        gap: 4px;
    }

    .controls-container .btn {
        width: 30px;
        height: 30px;
        font-size: 11px;
        border-radius: 6px;
    }
}

.top-fixed-project-title {

    /* position: fixed; */
    display: block;


    margin: 0 auto 0 auto;
    width: 100%;
    text-align: left;
    padding-left: 10px;
    padding-top: 4px;
    padding-bottom: 4px;

}

.fixed-reload-btn,
.all-plots-info-filters {
    color: black;
    width: 30px;
    height: 30px;
    margin-left: 10px;
    font-size: 12px;
}

.fixed-filter-btn,
.fixed-filter-re-center,
.fixed-zoom-in-btn,
.fixed-zoom-out-btn {
    /* Styles handled by .controls-container .btn */
}


.bg-paper-grid{
    background:
    linear-gradient(-90deg, rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(-90deg, rgba(0, 0, 0, .04) 1px, transparent 1px),
    linear-gradient(rgba(0,0,0,.04) 1px, transparent 1px),
    linear-gradient(transparent 3px, #f2f2f2 3px, #f2f2f2 78px, transparent 78px),
    linear-gradient(-90deg, #aaa 1px, transparent 1px),
    linear-gradient(-90deg, transparent 3px, #f2f2f2 3px, #f2f2f2 78px, transparent 78px),
    linear-gradient(#aaa 1px, transparent 1px),
    #f2f2f2;
background-size:
    4px 4px,
    4px 4px,
    80px 80px,
    80px 80px,
    80px 80px,
    80px 80px,
    80px 80px,
    80px 80px;
}


    /* Styling for the cart list */
    #cart-list {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    /* Cart item styling */
    #cart-list li {
        font-size: 16px;
        padding: 10px;
        margin-bottom: 8px;
        background-color: #f9f9f9;
        border-radius: 5px;
        border: 1px solid #eee;
        display: flex;
        justify-content: space-between;
        align-items: center;
        transition: background-color 0.3s ease;
    }

    #cart-list li:hover {
        background-color: #f1f1f1;
    }

    /* Remove button styling */
    #cart-list li button {
        background-color: #ff4d4d;
        color: white;
        border: none;
        padding: 5px 10px;
        font-size: 14px;
        cursor: pointer;
        border-radius: 4px;
        transition: background-color 0.3s ease;
    }

    #cart-list li button:hover {
        background-color: #e60000;
    }


/* =========================================================
   Sales-desk plot booking/holding popup styles

   ========================================================= */
.popup-info-container {
    padding: 10px;
}
.booking-table, .holding-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.booking-table thead, .holding-table thead {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
}
.booking-table thead th, .holding-table thead th {
    color: #fff !important;
    font-weight: 600;
    padding: 12px 10px;
    border-color: rgba(255,255,255,0.1) !important;
    font-size: 13px;
}
.booking-table tbody td, .holding-table tbody td {
    padding: 10px;
    vertical-align: middle;
    background-color: #fafbfc;
}
.booking-table tbody tr:hover td, .holding-table tbody tr:hover td {
    background-color: #f0f7ff;
}
.clickable-id {
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 700;
    color: #2980b9 !important;
    padding: 4px 8px;
    background-color: #e8f4fd;
    border-radius: 4px;
    display: inline-block;
    transition: all 0.2s ease;
}
.clickable-id:hover {
    background-color: #3498db;
    color: #fff !important;
    text-decoration: none !important;
}
.stage-header {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%) !important;
    padding: 12px 15px !important;
}
.stage-header a {
    color: #fff !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.stage-header a:hover {
    text-decoration: underline;
}
.stage-header i {
    color: #fff;
    margin-right: 5px;
}
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}
.status-booked {
    background-color: #d4edda;
    color: #155724;
}
.status-balance {
    background-color: #fff3cd;
    color: #856404;
}
.status-paid {
    background-color: #cce5ff;
    color: #004085;
}
.customer-link, .agent-link {
    color: #8e44ad !important;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.customer-link:hover, .agent-link:hover {
    color: #9b59b6 !important;
}
.mobile-info {
    color: #7f8c8d;
    font-size: 12px;
    margin-top: 4px;
}
.commission-info {
    color: #27ae60;
    font-weight: 600;
    font-size: 12px;
}
.holding-table thead {
    background: linear-gradient(135deg, #e67e22 0%, #f39c12 100%);
}
.last-fetched {
    text-align: right;
    color: #95a5a6;
    font-size: 11px;
    font-style: italic;
    margin-top: 10px;
    padding-right: 5px;
}
.price-amount {
    font-weight: 600;
    color: #2c3e50;
}
.date-info {
    color: #34495e;
    font-size: 13px;
}
.created-by-info {
    color: #7f8c8d;
    font-size: 12px;
}

/* Unit search: outline on matched plot (layouts use .fit-svg-container, not always .plot-layout on <svg>) */
@keyframes plot-unit-search-stroke-pulse {
    0%,
    100% {
        stroke-width: 3.5px;
        stroke: #b91c1c;
    }
    50% {
        stroke-width: 5.5px;
        stroke: #ef4444;
    }
}

.fit-svg-container svg path.plot.plot-unit-search-highlight,
.fit-svg-container svg path.plot-unit-search-highlight,
.plots-layout-container svg path.plot.plot-unit-search-highlight,
.plots-layout-container svg path.plot-unit-search-highlight,
svg.plot-layout path.plot.plot-unit-search-highlight,
svg.plot-layout path.plot-unit-search-highlight,
svg.plot-layout .plot.plot-unit-search-highlight {
    stroke: #b91c1c !important;
    stroke-width: 3.5px !important;
    animation: plot-unit-search-stroke-pulse 0.85s ease-in-out infinite;
    paint-order: stroke fill;
}
