.data-container {
    display: flex;
    margin: auto;
    width: 100%;
}

.data-values > div {
    display: flex;
}

.grow-wrap {
    display: grid;
    font-size: 1.75rem;
    max-width: 170px;
}

.grow-wrap::after {
content: attr(data-replicated-value) " ";
white-space: pre-wrap;
visibility: hidden;
}

.grow-wrap > textarea {
resize: none;
background-image: linear-gradient(#FFF 50%, #F7F7F7 50%);
background-size: 100% 6rem;
border: 1px solid #CCC;
line-height: 3rem;
border-radius: 0px;
min-height: 192px;
padding: 0px 16px;
max-height: 384px;
max-width: 188px;
height: inherit;
min-width: 188px;
margin-bottom: 0px;
overflow: auto;
}

.grow-wrap > textarea,
.grow-wrap::after {
border: 1px solid #D1D1D1;
text-transform: uppercase;
grid-area: 1 / 1 / 2 / 2;
}

.tails .grow-wrap > textarea {
    max-width: 132px;
    height: auto;
}

.month-container  {
    padding: 0px;
    display: flex;
}
.tails {
    padding: 0px 4px;    
}

.month-container > div  {
    padding: 0px 4px;
}


.data-values p {
    text-align: center;
}

.month-container .rotor-select,
.month-container select.rotor-select {
    max-width: 100px;
    padding-right: 2px;
    background-position: calc(100% - 0.5rem) 50%;
}

.panel-heading p, .data-values > p {
    color: #000;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 28px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cpal-page h1 {
    font-size: 2rem;
    color: #000;
    font-weight: 600;
    margin: 0 0 1rem;
    line-height: 1.2;
    font-family: "RotorFont", Arial, Helvetica, sans-serif;
}

.cpal-btn-selector .rotor-btn {
    padding: 6px 16px 4px 16px;
    background-color: #e6e6e6;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: black;
    font-weight: 600;
    border: 1px solid #e6e6e6;
    height: 3rem;
}

.cpal-btn-selector .rotor-btn.rotor-btn--active {
    background-color: #2D6BFF;
    border: 1px solid #2D6BFF;
    color: #fff;
}

.panel-selector {
    display: flex;
}

.cpal-page {
    /* max-width: 90rem; */
    margin: 0px 80px 40px;
    color: #000;
}

.utas-page:has(.cpal-page) {
    max-width: 100%;
}

.cpal-page .rotor-btn-grp-container .rotor-btn {
    margin: 0px;
}

.cpal-page .rotor-btn-grp-container {
    display: flex;
}

.cpal-page .main-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#cpalDataUpload,
#cpalReporting {
    padding: 32px 0px;
}

#cpalReporting {
    display: none;
}

.body-heading {
    margin-bottom: 16px;
}

.data-values > p, .data-container > div > p {
    margin-bottom: 32px;
}

.month-name {
    font-size: 16px;
    margin-bottom: 8px;
}


.main-container textarea:focus-visible, .main-container input:focus-visible {
    border-radius: 0px;
    outline: 0px;
}

.cpal-page .section-body ul {
    line-height: 1.5;
}

body.page-cpalDashboardPage:has(.rotor-header) #page {
    overflow: unset;
}

.cpal-page * {
    font-family: "RotorFont", Helvetica, Arial, sans-serif;
}

.cpal-upload-error-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.cpal-upload-error-popup-container {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 14px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    min-height: 180px;
    width: 500px;
    display: flex;
    flex-direction: column;
}

.cpal-upload-error-popup-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-family: "RotorFont500", Helvetica, Arial, sans-serif;
    height: 48px;
    font-size: 16px;
    line-height: 2.5;
    color: #000;
}

.cpal-upload-error-popup-content {
    text-align: left;
    flex-grow: 1;
}

.cpal-upload-error-popup-content ul {
    list-style: disc;
    padding-left: 16px;
}

.cpal-upload-error-popup-footer {
    text-align: center;
}

.cpal-upload-error-popup-footer .rotor-btn {
    margin: 0px;
}

.close-cpal-upload-error-popup {
    font-size: 32px;
    cursor: pointer;
    color: #000;
    line-height: 1;
    font-weight: 400;
    padding: 0;
}

.close-cpal-upload-error-popup:hover {
    color: #333;
}

.cpal-error-text{
    color: #000;
}

.cpal-page .rotor-btn {
    margin: 0px;
}

#add-new-month {
    min-width: 175px;
}

.cpal-page textarea:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.display-none{
display:none;
}

#cpalSpinner {
    display: none;
}
@keyframes rotate-s-loader {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinning-loader {
    width: 25px;
    height: 25px;
    border: 3px solid rgba(228, 85, 31, 0.2);
    border-left-color: rgb(228, 85, 31);
    border-radius: 50%;
    background: transparent;
    animation-name: rotate-s-loader;
    animation-iteration-count: infinite;
    animation-duration: 1s;
    animation-timing-function: linear;
    position: relative;
    top: 40%;
    left: 40%;
}

.spinner-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    background: #fff;
    height: 152px;
    width: 152px;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    box-shadow: 0 24px 40px -8px rgba(26, 26, 26, 0.16);
}

.spinner-overlay {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    cursor: pointer;
    overflow-y: auto;
}

#cpalSuccessPopup .cpal-success-text {
    color: green;
}

#cpalErrorPopup .cpal-error-text {
    color: red;
}

.cpal-upload-popup-header {
    display: flex;
    justify-content: flex-end;
    font-weight: 700;
    font-family: "RotorFont500", Helvetica, Arial, sans-serif;
    height: 48px;
    font-size: 16px;
    line-height: 2.5;
    color: #000;
    padding: 10px;
}

.cpal-heading-container {
    display: flex;
    justify-content: space-between;
}

.cpal-page .rotor-btn.cpal-export-excel {
    margin-top: 32px;
}

.cpal-rate-info {
    color: #000;
    font-weight: 700;
}

/* Main Table Container */
#cpalReporting .table-container {
    display: flex;
    flex-direction: column;
    width: fit-content;
    border: 1px solid #ccc;
    max-height: 500px;
    position: relative;
}

/* Sticky Table Header */
#cpalReporting .table-header {
    display: grid;
    grid-template-columns: 200px repeat(12, 100px) 120px;
    background: #D1D1D1;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
    font-weight: 400;
}

/* Scrollable Table Body */
#cpalReporting .table-scroll {
    max-height: 270px; /* Adjust based on space */
    overflow-y: auto;
    flex-grow: 1;
}

/* Table Rows */
#cpalReporting .table-body .table-row {
    display: grid;
}
#cpalReporting .table-body .table-row:nth-child(even),
#cpalReporting .table-body .first-column:nth-child(even) {
background-color: #F7F7F7;
}

#cpalReporting .month-column,
#cpalReporting .last-column {
    color: #000;
}

#cpalReporting .month-column, 
#cpalReporting .first-column, .last-column {
    padding: 10px;
    text-align: right;
    font-size: 14px;
}

#cpalReporting .month-column {
    width: 84px;
}

#cpalReporting .table-header .first-column,
#cpalReporting .table-footer .first-column,
#cpalReporting .table-header .month-column,
#cpalReporting .table-footer .month-column,
#cpalReporting .table-header .last-column,
#cpalReporting .table-footer .last-column {
    border-right: 0px;
    font-weight: 400;
    font-family: "RotorFont500", Helvetica, Arial, sans-serif;
}

/* Sticky Footer */
#cpalReporting .table-footer > div {
    display: grid;
    grid-template-columns: 200px repeat(12, 100px) 120px;
    background: #D1D1D1;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* Sticky Last Row */
#cpalReporting .total-row {
    background: #e0e0e0;
    font-weight: bold;
}

#cpalReporting .first-column {
    /* background-color: #ccc; */
    color: #000;
    border-right: 1px #D1D1D1 solid;
    text-align: left;
}

#cpalReporting .table-header, 
#cpalReporting .table-row,
#cpalReporting .table-footer > div {
    grid-template-columns: 160px repeat(12, 85px) 120px;
}

.month-container .grow-wrap > textarea,
.month-container  select.rotor-select.monthSelector {
    min-width: 140px;
    max-width: 140px;
}

.panel-heading span {
    width: 188px;
}

/* Responsive Design */
@media (max-width: 1600px) {
    #cpalReporting .table-header, 
    #cpalReporting .table-row,
    #cpalReporting .table-footer > div {
        grid-template-columns: 150px repeat(12, 74px) 110px;
    }
    .month-container .grow-wrap > textarea,
    .month-container select.rotor-select.monthSelector {
        max-width: 120px;
        min-width: 120px;
    }
}

@media (max-width: 1440px) {
    #cpalReporting .table-header, 
    #cpalReporting .table-row,
    #cpalReporting .table-footer > div {
        grid-template-columns: 150px repeat(12, 72px) 100px;
    }
    .month-container .grow-wrap > textarea,
    .month-container select.rotor-select.monthSelector {
        max-width: 120px;
        min-width: 120px;
    }
    .panel-heading span {
        width: 140px;

    }
    .tails .grow-wrap > textarea {
        min-width: 140px;
        max-width: 140px;
    }
}

@media (max-width: 1380px) {
    #cpalReporting .table-header, 
    #cpalReporting .table-row,
    #cpalReporting .table-footer > div {
        grid-template-columns: 150px repeat(12, 67px) 100px;
    }
    .month-container .grow-wrap > textarea,
    .month-container select.rotor-select.monthSelector {
        max-width: 106px;
        min-width: 106px;
    }
    .panel-heading span {
        width: 120px;

    }
    .tails .grow-wrap > textarea {
        min-width: 120px;
        max-width: 120px;
    }
}


@media (max-width: 1280px) { 
    #cpalReporting .table-header, 
    #cpalReporting .table-row,
    #cpalReporting .table-footer > div {
        grid-template-columns: 150px repeat(12, 65px) 100px;
    }
}

.rotor-btn#cpal-download-report  {
    height:48px;
    font-weight:700;
    display: none;
    font-size: 14px;
    padding: 12px 16px 6px;
}

#cpal-download-report svg {
    margin-right: 6px;
    margin-top: 2px;
}

#cpal-download-report:hover svg path {
    fill: #fff;
}

.page-cpalDashboardPage {
    background-color: #F9FBFF;
}

.page-cpalDashboardPage .utas-page {
    background-color: transparent;
}

.cpal-page {
    background: #fff;
    border: 1px solid #D1D1D1;
    padding: 32px 64px;
    margin-bottom: 128px;
    margin: 0px 80px 40px;
}

.cpal-section h1 {
    font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 34px;
}

.cpal-btn-selector button.rotor-btn {
    height: 42px;
    font-weight: 400;
    font-family: "RotorFont", Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    vertical-align: middle;
    text-transform: none;
}

.cpal-page span {
    font-family: "RotorFont", Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;
    vertical-align: middle;
    color: #000;
}

.cpal-page .red-text {
    color: #D20532;
    text-transform: capitalize;
}

.cpal-page .link-text {
    font-size: inherit;
    font-family:inherit;
}
.cpal-page .reporting-text {
    font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif;
}

.cpal-page ul li {
    font-family: "IBM Plex Sans", Arial, Helvetica, sans-serif; 
    color: #000;
    font-weight: 400;
    font-size: 16px;
    line-height: 34px;
    letter-spacing: 0px;
}

.cpal-page ul li .step {
    font-family: "IBM Plex Sans 500", Arial, Helvetica, sans-serif; 
    font-weight: 500;
}

.cpal-page h2 {
    font-family: "IBM Plex Sans 500", Arial, Helvetica, sans-serif; 
    font-weight: 500;
    font-style: Medium;
    font-size: 24px;
    line-height: 34px;
    letter-spacing: 0px;
}

.panel-heading span {
    background-color:  #F0F0F0;
    border: 1px solid #D1D1D1;
    font-family: "IBM Plex Sans 500", Arial, Helvetica, sans-serif; 
    line-height: 48px;
    height: 48px;
    font-size: 14px;
    display: block;
    padding: 0px 16px;
    margin-bottom: 12px;
    margin-top: 12px;
    letter-spacing: 0px;
}

.cpal-page select,
::picker(select) {
appearance: base-select;
transition: 0.4s;
}

.cpal-page label {
width: fit-content;
align-self: center;
}

.cpal-page select {
flex: 1;
min-width: 188px;
}

.cpal-page select {
    font-family: "IBM Plex Sans 500", Arial, Helvetica, sans-serif; 
    border: 1px solid #D1D1D1;
    border-radius: 0px;
    background: #F7F7F7;
    padding: 10px;
    position: relative;
    height: 48px;
    margin: 12px 0px;
    font-size: 14px;
    letter-spacing: 0px;
}

.cpal-page select.monthSelector {
    background: #F3F8FF;
}

.cpal-page select:focus {
    -webkit-box-shadow: none;
    box-shadow: none;
}

.cpal-page select::picker(select) {
    border: 1px  solid #D1D1D1;
    border-top: 0px;
    transition: 0.4s;
    opacity: 0;
}

.cpal-page select:open::picker(select) {
    border: 1px  solid #D1D1D1;
    transition: 0.4s;
    opacity: 1;
}

.cpal-page select::picker-icon {
    content: "";
    height: 20px;
    width: 20px;
    background:  url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.99662 6L9.66329 1.33333L8.32996 0L4.99662 3.33333L1.66329 0L0.329956 1.33333L4.99662 6Z" fill="%23666666"/></svg>') no-repeat;
    /* background-position: right 5px top 50%; */
    transition: 0.4s;  
    background-position: center; 
}

.cpal-page select:open::picker-icon {
    transform: rotate(-180deg);
}
.cpal-page select option {
    transition: 0.4s;
    opacity: 0;
}

.cpal-page select:open option {
    transition: 0.4s;
    opacity: 1;
}

.cpal-page select:hover,
.cpal-page select:focus {
background: #F7F7F7;;
}

.cpal-page select:not(:-internal-list-box):not([multiple]) option::checkmark {
    content: "";
}

.cpal-page select option::checkmark {
    content: "";
    visibility: hidden;
}

.cpal-page select option {
    padding: 8px 4px;
    background-color: #F7F7F7;   
}
.cpal-page select option:hover {
    background-color: #E8E8E8;   
}


#add-new-month {
    margin-top: 18px;
    margin-left: 8px;
}

#upload-cpal {
    margin-top: 64px;
}
