/*
 * Title: MLC v1.30 – PLC Loan Management System
 * Date/time: Jan 25, 2026, 5:10 PM
 * Author: Rachel Ploski all rights reserved
 * Description: Base MLC page styles, pipeline layout, table styling, and status coloring.
 */

/* ========== Page title and wrapper layout ========== */
/* Hide visible page titles while preserving the browser tab title. */
.block-page-title-block,
.page-title,
h1.page-title,
.region-content h1.page-title {
    display: none !important;
}

/* Base wrapper for all non-modal MLC pages. */
.plc-mlc-wrapper {
    --mlc-top: 0px;
    padding-top: var(--mlc-top, 0px);
}

/* Normal pages are centered; wide pages opt out with .mlc-wide-page. */
.plc-mlc-wrapper:not(.mlc-wide-page) {
    --mlc-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Account for Drupal toolbar spacing when present. */
.plc-mlc-wrapper {
    padding-top: calc(var(--mlc-top, 0px) + 79px);
}
body.toolbar-fixed .plc-mlc-wrapper {
    padding-top: calc(var(--mlc-top, 0px) + 39px);
}
body.toolbar-fixed.toolbar-tray-open .plc-mlc-wrapper {
    padding-top: calc(var(--mlc-top, 0px) + 79px);
}

/* Legacy theme positioning that only applies while the MLC library is loaded. */
.menu--account {
    position: absolute;
    right: 30px;
}
.page-node-type-pipeline .tabs {
    max-width: 1200px;
    margin: 75px auto -25px auto;
}

/* ========== Pipeline controls and fixed-header table ========== */
/* These layout rules mirror the previously working theme CSS from styles-old.css. */
.scrolling-table-container {
    height: 745px;
}

.scrolling-table {
    position: absolute;
    left: 25px;
    width: 100%;
    padding-right: 65px;
    overflow: auto;
}

/* Beat Bootstrap's .container max-width on the active pipeline table wrapper. */
.plc-mlc-wrapper.mlc-wide-page .container.scrolling-table {
    position: absolute;
    left: 25px;
    width: 100%;
    max-width: none;
    padding-right: 65px;
    overflow: auto;
}

.points_table {
    min-width: 1000px;
    font-size: 0.8925em;
    border-radius: 6px;
    overflow: hidden;
}

.points_table thead {
    width: 100%;
}

.points_table tbody {
    height: 600px;
    overflow-y: auto;
    width: 100%;
}

.points_table tr {
    width: 100%;
    border-bottom: solid #000000 1px;
}

.points_table tr:hover {
    filter: none;
}

.points_table tbody tr:hover > td {
    box-shadow: inset 0 0 0 9999px rgba(255, 255, 255, 0.32);
    color: #000000;
}

.points_table thead tr {
    width: 100%;
    border: none;
}

.points_table thead,
.points_table tbody,
.points_table tr,
.points_table td,
.points_table th {
    display: inline-block;
}

.points_table thead {
    background: #30343a;
    color: #ffffff;
    border-bottom: solid 1px #555c65;
}

.points_table tbody > tr > td,
.points_table thead > tr > th {
    float: left;
    border-bottom-width: 0;
}

.points_table > tbody > tr > td,
.points_table > tbody > tr > th,
.points_table > tfoot > tr > td,
.points_table > tfoot > tr > th,
.points_table > thead > tr > td,
.points_table > thead > tr > th {
    padding: 8px;
    height: 30px;
    line-height: 13px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.points_table > tbody > tr > td a,
.points_table > tbody > tr > th a,
.points_table > tfoot > tr > td a,
.points_table > tfoot > tr > th a,
.points_table > thead > tr > td a,
.points_table > thead > tr > th a {
    color: inherit;
}

.points_table > tbody > tr > td {
    font-weight: bold;
}

.points_table_scrollbar {
    height: 612px;
    overflow-y: scroll;
}

.points_table_scrollbar::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.9);
    border-radius: 10px;
    background-color: #444444;
}

.points_table_scrollbar::-webkit-scrollbar {
    width: 1%;
    min-width: 10px;
    background-color: #f5f5f5;
}

.points_table_scrollbar::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background-color: #555555;
    background-image: -webkit-linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.4) 50%,
        transparent,
        transparent
    );
}

.points_table tbody th,
.points_table tbody td {
    float: inline-start;
    border-right: solid 1px #000000;
}

.points_table tbody td {
    font-weight: bold;
}

.pipeline-dealinfo {
    background: #33363a;
    color: #ffffff;
}

.pipeline-neg {
    background-color: #802828;
    color: #ffffff;
}

.pipeline-open {
    background-color: #ffc43c;
    color: #ffffff;
}

.pipeline-pos {
    background-color: #0e611f;
    color: #ffffff;
}

.pipeline-phase-cell.pipeline-neg {
    box-shadow: inset 3px 0 #bd5555;
}

.pipeline-phase-cell.pipeline-open {
    box-shadow: inset 3px 0 #ffe08a;
}

.pipeline-phase-cell.pipeline-pos {
    box-shadow: inset 3px 0 #55a864;
}

.pipeline-dead {
    background-color: #4b4d50;
    color: #ffffff;
}

.pipeline-funded {
    background-color: #60666c;
    color: #ffffff;
}

.points_table tr.pipeline-review > td {
    background-color: #6c4f16;
    color: #ffffff;
}

/* Preserve current module link behavior while using the old table layout. */
.points_table td.pipeline-dealinfo a,
.points_table td.pipeline-neg a,
.points_table td.pipeline-open a,
.points_table td.pipeline-pos a,
.points_table td.pipeline-dead a,
.points_table td.pipeline-funded a,
.points_table tr.pipeline-review > td a,
.points_table tr.pipeline-dealinfo > td a,
.points_table tr.pipeline-neg > td a,
.points_table tr.pipeline-open > td a,
.points_table tr.pipeline-pos > td a,
.points_table tr.pipeline-dead > td a,
.points_table tr.pipeline-funded > td a {
    color: inherit;
    text-decoration: none;
}

.points_table td.pipeline-dealinfo a:hover,
.points_table td.pipeline-neg a:hover,
.points_table td.pipeline-open a:hover,
.points_table td.pipeline-pos a:hover,
.points_table td.pipeline-dead a:hover,
.points_table td.pipeline-funded a:hover,
.points_table tr.pipeline-review > td a:hover,
.points_table tr.pipeline-dealinfo > td a:hover,
.points_table tr.pipeline-neg > td a:hover,
.points_table tr.pipeline-open > td a:hover,
.points_table tr.pipeline-pos > td a:hover,
.points_table tr.pipeline-dead > td a:hover,
.points_table tr.pipeline-funded > td a:hover {
    text-decoration: underline;
}

.pipeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 17px;
    margin: 20px 0 0 25px;
}

.pipeline-header-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    padding-bottom: 5px;
}

.pipeline-header-title {
    min-width: 0;
}

/* Keep the Admin Tools/My Settings links grouped with the requested spacing. */
.pipeline-tools-links {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding-right: 20px;
}

.pipeline-settings-link {
    color: #d1d1d1;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.pipeline-settings-link:hover,
.pipeline-settings-link:focus {
    color: #d1d1d1;
    text-decoration: underline;
}

.plctopbuttons {
    margin-top: 20px;
    padding-left: 75px;
    text-align: center;
}

.plctopbuttons .btn-top-pipeline {
    display: inline-flex;
    box-sizing: border-box;
    width: 175px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border: 1px solid #555c65;
    border-radius: 6px;
    padding: 2px 10px;
    margin: 0 0 2px 7px;
    background-color: #d5d8dc;
    color: #20242a;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.btn-top-pipeline:hover,
.btn-clearfilters-pipeline:hover {
    background-color: #e4e7ea;
    color: #20242a;
}

input.search {
    width: 260px;
    border: 1px solid #555;
    padding: 1px 4px 1px 40px;
    background: #ffffff url("/images/search.svg") no-repeat 13px;
    margin-top: 10px;
    color: #000000;
    height: 24px;
    font-size: 0.9em;
}

.pipeline-dropdown {
    width: 200px;
    border: 1px solid #555;
    padding: 1px 4px 1px 5px;
    margin: 10px 0 0 10px;
    color: #000000;
    height: 24px;
    font-size: 0.9em;
}

#lead-source-dropdown {
    margin-left: 7px;
    font-size: 0.9em;
}

.plctopbuttons .btn-clearfilters-pipeline {
    display: inline-flex;
    box-sizing: border-box;
    width: 120px;
    height: 25px;
    align-items: center;
    justify-content: center;
    border: 1px solid #555c65;
    border-radius: 6px;
    padding: 2px 10px;
    margin: 0 0 2px 7px;
    background-color: #d5d8dc;
    color: #20242a;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.pipeline-show-num {
    font-size: 0.7em;
    padding-right: 20px;
}

.pipeline-show-num select {
    border: 1px solid #555;
    color: #000000;
}

.pagination {
    display: inline-block;
    font-size: 0.95em;
    position: absolute;
    right: 35px;
    top: 775px;
}

.pagination a {
    color: black;
    float: left;
    padding: 4px 10px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: 1px solid #ddd;
    background-color: #fff;
}

.pagination a.active {
    border: 1px solid #555555;
    background-color: #555555;
    color: white;
    padding: 4px 12px;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

@media (max-width: 1000px) {
    .pagination {
        top: 815px;
    }
}
