@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');

body{
    background-color: #F7F7F7;
    font-family: "Manrope", sans-serif;
}

/* Print Styles for Request Form - Compact for fewer pages */
@media print {
    /* Hide navigation, buttons, and other non-essential elements */
    .navbar, .ecommerceNavbar, 
    button, .btn, 
    .spinner-border,
    #contractRepresentativesPreview,
    .alert,
    .d-print-none,
    .form-check,
    .form-check-input,
    .form-check-label {
        display: none !important;
    }
    
    /* Remove background colors and images */
    body, .container, form, .bg-light {
        background-color: white !important;
        background-image: none !important;
    }
    
    /* Compact font sizes */
    body {
        font-size: 10px !important;
        line-height: 1.2 !important;
    }
    
    h1 { font-size: 16px !important; margin: 8px 0 4px 0 !important; }
    h2 { font-size: 14px !important; margin: 6px 0 4px 0 !important; page-break-after: avoid; }
    h3 { font-size: 12px !important; margin: 8px 0 4px 0 !important; page-break-after: avoid; }
    h4, h5, h6 { font-size: 11px !important; margin: 4px 0 2px 0 !important; }
    
    /* Ensure all text is black for print */
    body, .form-control, textarea, input, select, label, h1, h2, h3, h4, h5, h6, p, td, th {
        color: black !important;
    }
    
    /* Compact form controls */
    .form-control, input, textarea, select {
        border: 1px solid #000 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background-color: white !important;
        padding: 2px 4px !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
        height: auto !important;
        min-height: 20px !important;
    }
    
    textarea {
        min-height: 40px !important;
        padding: 2px 4px !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        resize: none !important;
        white-space: pre-wrap !important;
        word-wrap: break-word !important;
    }
    
    /* Make disabled inputs visible and styled */
    input:disabled, textarea:disabled, select:disabled {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        opacity: 1 !important;
        background-color: #f5f5f5 !important;
        border: 1px solid #999 !important;
    }
    
    /* Compact spacing - minimize margins and padding */
    .row {
        margin-bottom: 4px !important;
        margin-left: -5px !important;
        margin-right: -5px !important;
    }
    
    .row.g-3 {
        margin-bottom: 6px !important;
    }
    
    .col-12, .col-sm-12, .col-md-12, .col-6, .col-sm-6, .col-md-6, .col-4, .col-sm-4, .col-md-4 {
        margin-bottom: 3px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    /* Compact table layout */
    .table {
        border-collapse: collapse !important;
        width: 100% !important;
        font-size: 9px !important;
        margin-bottom: 8px !important;
    }
    
    .table td, .table th {
        border: 1px solid #000 !important;
        padding: 3px 4px !important;
        font-size: 9px !important;
        line-height: 1.2 !important;
    }
    
    .table th {
        font-weight: bold !important;
        background-color: #f0f0f0 !important;
    }
    
    /* Compact sections */
    .legal-representative-section {
        margin-bottom: 6px !important;
        padding: 4px !important;
    }
    
    /* Compact section headers */
    h3 {
        page-break-after: avoid;
        page-break-before: auto;
        margin-top: 8px !important;
        margin-bottom: 4px !important;
        font-size: 12px !important;
        font-weight: bold !important;
        border-bottom: 1px solid #000 !important;
        padding-bottom: 2px !important;
    }
    
    /* Compact labels */
    label, .col-form-label {
        font-weight: bold !important;
        margin-bottom: 1px !important;
        display: block !important;
        font-size: 10px !important;
        line-height: 1.2 !important;
    }
    
    /* Form floating labels - compact */
    .form-floating {
        margin-bottom: 3px !important;
    }
    
    .form-floating > label {
        position: static !important;
        transform: none !important;
        padding: 0 !important;
        margin-bottom: 1px !important;
        font-size: 10px !important;
    }
    
    .form-floating > .form-control {
        padding: 2px 4px !important;
        font-size: 10px !important;
    }
    
    /* Minimize all spacing */
    .mb-5, .my-5 { margin-bottom: 8px !important; }
    .mb-4, .my-4 { margin-bottom: 6px !important; }
    .mb-3, .my-3 { margin-bottom: 4px !important; }
    .mb-2, .my-2 { margin-bottom: 3px !important; }
    .mb-1, .my-1 { margin-bottom: 2px !important; }
    
    .mt-5, .my-5 { margin-top: 8px !important; }
    .mt-4, .my-4 { margin-top: 6px !important; }
    .mt-3, .my-3 { margin-top: 4px !important; }
    .mt-2, .my-2 { margin-top: 3px !important; }
    .mt-1, .my-1 { margin-top: 2px !important; }
    
    .m-3, .m-2, .m-1 { margin: 3px !important; }
    
    /* Hide empty divs and containers */
    .text-center:empty,
    .text-end:empty {
        display: none !important;
    }
    
    /* Show print-only elements */
    .d-print-block {
        display: block !important;
    }
    
    /* Compact signatures section */
    .d-print-block {
        page-break-before: auto;
        margin-top: 15px !important;
    }
    
    .d-print-block h3 {
        font-size: 12px !important;
        margin: 8px 0 4px 0 !important;
        padding-bottom: 2px !important;
    }
    
    .d-print-block .row {
        margin-top: 10px !important;
    }
    
    .d-print-block .col-6 {
        margin-bottom: 30px !important;
    }
    
    /* Minimal page margins for more content */
    @page {
        margin: 1cm 1.5cm;
        size: A4;
    }
    
    /* Keep individual fields and section blocks intact on print pages */
    .row.g-3,
    .row.g-2,
    .row.m-3,
    .form-floating,
    .form-floating > .form-control,
    .form-floating > .form-select,
    .text-center.col-12,
    .text-center.col-sm-4,
    .text-center.col-sm-6,
    .text-center.col-sm-12,
    .col-12.col-sm-4,
    .col-12.col-sm-6,
    .col-12.col-sm-12,
    .legal-representative-section,
    .terminal-section,
    .financial-terms-table,
    .signatures-print-section {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* Keep section titles attached to what follows */
    .row.m-3,
    h2,
    h3 {
        page-break-after: avoid !important;
        break-after: avoid-page !important;
    }
    
    /* Tables should move as whole blocks where possible */
    .table {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    /* Compact container */
    .container {
        padding: 5px !important;
        max-width: 100% !important;
    }
    
    /* Remove extra spacing from form */
    form {
        margin-bottom: 10px !important;
    }
}
:root {
    --main-blue: #21516D;
}
.customBtn-primary{
    min-width: 100px;
    padding: .2em .5em;
    background-color: var(--main-blue);
    color: white;
    border: none;
    font-size: 18px;
    border-radius:5px;
}
.ecommerceNavbar{
    box-shadow: 0px 2px 2px 0px #00000040;
    background-color: white;
    padding: 1em 1.5em;
    margin: 0!important;
}
.ecommerceNavbarLogo{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: .25rem .75rem .25rem 0;
    text-decoration: unset!important;
    font-size: 28px;
    color: var(--main-blue);
    font-weight: 700;
}
.ecommerceNavbarLogo img{
    display: block;
    max-width: 180px;
    height: auto;
    max-height: 64px;
    object-fit: contain;
}

.ecommerceNavbar .navbar-nav .nav-item{
    font-family: Manrope, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    letter-spacing: 0em;
    text-align: left;
    color: var(--main-blue);
    padding: .5em;
}
.ecommerceNavbar .navbar-nav .nav-item .nav-link.active{
    border: 1px solid var(--main-blue) !important;
    border-radius: 35px!important;
}
@media screen and  (max-width: 991px){
    .ecommerceNavbar .navbar-nav .nav-item .nav-link.active{
        text-decoration: underline;
        font-weight: 700;
        border: none !important;
        border-radius: 0!important;
    }

}

.otpContainer{
    width: 50%;
    margin: auto;
    display: flex;
    justify-content: center;

}

.otpContainer  input{
    margin: .3em;
    background: rgba(229, 229, 229, 1);
    border: none;
    color: #000000;
    letter-spacing:10px;
    padding: 1em;
    max-width: 60px;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
}

/*LOGIN PAGE START*/

.loginContainer{
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}


.loginCard{
    margin:2em auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height:70vh;
    background-color: white;
    border-radius: 2em;
    -webkit-box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.37);
    box-shadow: 5px 5px 15px 5px rgba(0,0,0,0.37);
}
.loginCard[forPage="otp"]{

    min-height:unset;
}

.loginBg{
    /*background-image: url("../img/loginBack.jpg");*/
    background-image: url("../img/bank/4.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-radius: 2em;
    background-color: rgba(255, 255, 255, 0.87);
    background-blend-mode: darken;
    min-height:50vh;
}

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

.passwordDiv{
    flex-basis: fit-content;
}

@media screen and (max-width: 766px) {
    .loginCard{
        min-height:unset;
    }
    .loginBg{
        min-height:unset;
    }
}
@media screen and (max-width: 990px) {
    .loginBg,.registerBg{
        background-image: unset;
        min-height:unset;
    }

    .loginCard{
        min-height:unset;
    }
    .loginForm .passwordDiv{
        width: 50%;
    }

}


.loginForm{
    padding:  1em 2em  ;
    text-align: center!important;
}

.loginForm i{
    font-size:55px;
}

.loginTitle {
    /* Reserved for future styles */
    display: block;
}

.loginText {
    /* Reserved for future styles */
    display: block;
}

.loginForm input{
    border: 1px solid #000000;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
}

.signupBtnContainer{
    text-align: center;
    margin:  auto!important;
    padding: .5em;

    width: fit-content;
    transition: 0.3s ease-in-out 0s;
}

.signupBtnContainer button{
    border-radius: 15px;
    padding: .5em 3em;
    background-color: var(--main-blue);
    color: white;
    border: none;
}

.toogleEye{
    width: 98%;
    font-size: 15px;
    text-align: end;
}
.toogleEye i{
    cursor: pointer;
    font-size: 25px;
    position: relative;
    bottom: 1.2em;
}
#profilePassword .toogleEye{
    width: 99%;
}
/*LOGIN PAGE END*/

/*TRANSACTIONS PAGE START*/
.transactionsPage{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    flex-wrap: wrap;
}
.transactionSearchBox{
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
}
.transactionSearchBox .sortBox{
    display: flex;
    justify-content: space-between;
    margin:0 .3em;
    align-items: end;
}
.sortBoxBtn i{
    transition: all 0.3s ease-in-out 0s;
}
.sortBoxBtn.reverse i{
    transform: rotate(180deg);
    transition: all 0.3s ease-in-out 0s;
}
.sortBoxBtn{
    width: 40px;
    aspect-ratio: 1/1;
    display: flex;
    justify-content:center;
    align-items: center;
    background-color: var(--main-blue);
    border: none;
    color: white;
    border-radius: 5px;
}
.searchBox h3{
    color: var(--main-blue);
    font-size: 18px;
    font-weight: 700;
    line-height: 22px;
    letter-spacing: 0em;
    padding: 0;
    margin: .3em 0;
}
.priceRangeContainer,.dateRangeContainer{
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.priceRangeContainer input,.dateRangeItem{
    width: 45%;
}

.modalSearchBox{
    padding: .8em 0;
}
.modalSearchBox label{
    font-weight: 700;
}

.filterContainer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.resetFilter{
    background-color: #ef0101;
    color: white;
    border: none;
    border-radius:5px;
    padding: .3em;
}

.dateRangeContainer .dateRangeContainer{
    width: 45%;
}

.hasFilters{
    background-color: red;
    box-shadow: 0px 4px 4px 0px #00000040;
}
.resultsRowsPagination{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 1em 0;
}
.resultsRowsPagination .page-item a {
    color: var(--main-blue) !important;
}
.resultsRowsPagination .page-item.active a {
    background-color: var(--main-blue);
    color: white !important;
}

@media screen and (max-width: 531px) {
    .transactionSearchBox .searchBox,.transactionSearchBox .sortBox{
        width: 100%;
    }
    .transactionSearchBox .searchBox .customBtn-primary{
        width: 100%;
    }

    .resultsRowsPagination{
        width: 100%;
        justify-content: center;
    }
}
@media screen and (max-width: 391px) {
    .priceRangeContainer input,.dateRangeContainer .dateRangeItem{
        width:100% ;
        margin: .5em auto;
    }
}


.transactionsContainer .card{
    font-family: "Manrope", sans-serif;
    width: 100%;
    margin:1em auto;
    border-radius: 15px;
}

.transactionsContainer .card .card-title{
    font-size: 25px;
    color: var(--main-blue);
    font-weight: 700;
    line-height: 34px;
    letter-spacing: 0em;
    text-align: center;
}
.transactionTheader,.dashboardDateShort{
    color: var(--main-blue);
    font-family: "Manrope", sans-serif;
    font-size: 18px;
    font-weight: 700;
    width: 20%!important;
}

.transactionBody{
    background: #F5F5F5 !important;
    padding: .8em !important;
    color: var(--main-blue) !important;
    font-size: 16px !important;
    /*border-left: 1px solid #A8A8A8!important;*/
    /*border-right: 1px solid #A8A8A8!important;*/
}
.transactionBody td{
    background-color: rgba(220, 220, 220, 0.7);
    border-bottom: 10px solid white;

    border-left: 1px solid #a6a6a6;

}
.transactionBody td:last-child{
    border-left: none;
}

.transactionBody:first-child{
    border-left: none!important;
}
.transactionBody:last-child{
    border-right: none!important;
}
.startingStatus{
    color: #F28300!important;
    font-weight: 700;
}
.successStatus{
    color: #00A74A!important;
    font-weight: 700;
}
.failedStatus{
    color:red!important;
    font-weight: 700;
}
.transactionInfoBtn i{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    font-size: 15px;
    cursor: pointer;
    aspect-ratio: 1/1;
    background-color:var(--main-blue);
    color: white;
    border-radius: 5px;
    transition: all 0.3s ease-in-out 0s;
}
.transactionInfoBtn i:hover{
    background-color: #07b5b5;
    transition: all 0.3s ease-in-out 0s;
}
.transactionCloseBtn{
    background-color:var(--main-blue);
    color: white;
    width: 40px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.transactionModal h3,.transactionModal h4{
    text-align: center;
    color:var(--main-blue);
    font-weight: 700;
}
.transactionPaymentItem{
    color:var(--main-blue);

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .5em 1em;
    margin:.5em auto 0 auto;
    width: 100%;
    font-size: 18px;
    border: 1px solid #C4C4C4;
    border-radius: 10px;
}
.transactionPaymentItem[aria-expanded="true"]{
    border-bottom-right-radius: 0;
}
.transactionPaymentItem .counter{
    width: 10%;
    font-weight: 800;
}
.transactionPaymentItem .dateStamp{
    width: 30%;
}

.transactionPaymentItem .cardNumber {
    width: 30%;
    font-weight: 800;
}
.transactionPaymentItem .scemeid,.transactionPaymentItem .status {
    width: 10%;
}
.transactionPaymentItem .status{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.transactionPaymentItem .status i{
    color: #0F0F0F!important;
    transition: all 0.3s ease-in-out 0s;
}
.transactionPaymentItem[aria-expanded='true'] .status i{
    transform: rotate(180deg);
    transition: all 0.3s ease-in-out 0s;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.modalTransactionAction input{
    border: 1px solid #A8A8A8;
    border-radius: 10px;
    padding: .5em 1em;
    margin: .5em auto;
    width: 80px;
}
.modalTransactionAction button{
    border-radius: 10px;
    padding: .5em 1em;
    color: var(--main-blue);
    background-color: white;
    border: 1px solid #A8A8A8
}
@media screen and (max-width: 993px) {

    .transactionPaymentItem{
        font-size: 14px;
    }
}
@media screen and (max-width: 593px) {
    .transactionPaymentItem{
        font-size: 12px;
    }

}

.grayBgDetails{
    width: 95%;
}

.innerDetailsItem{
    color:var(--main-blue);
    display: flex;
    justify-content: start;
    align-items: center;
    padding: .5em 1em;
    width: 100%;
    font-size: 18px;
    border: 1px solid #C4C4C4;
    border-radius: 10px;
    background: linear-gradient(0deg, #C4C4C4, #C4C4C4),
    linear-gradient(0deg, #F5F5F5, #F5F5F5);
}
.innerDetailsItem:first-child{
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.innerDetailsItem:last-child{
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.innerDate,.innerInfo{
    padding: 0 .5em;
    text-align: start;
    width: fit-content;
    display: flex;
    justify-content: start;
    align-items: center;
}
.innerInfo span{
    font-weight: 700;
    padding: 0 .3em;
}
.innerDetailsItem .counter{
    width: 7%;
}

.innerDetailsItem .innerInfo{
    width: 25%;
    text-align: center!important;
}


@media screen and (max-width: 993px) {

    .innerDetailsItem{
        font-size: 14px;
    }
}
@media screen and (max-width: 593px) {
    .innerDetailsItem{
        font-size: 12px;
    }

}
.transactionDate{
    background-color: red !important;
}

.dataTables_filter label{
    border-radius: 25px!important;
}

/*TRANSACTIONS PAGE END*/

/*SETTINGS PAGE START*/

.settingsContainer{
    background-color: white;
    width: 80%;
    padding: 1.5em;
    margin:2em auto;
    box-shadow: 0px 4px 4px 0px #00000040;
    border-radius: 15px;
}
.settingsContainer .title{
    color: var(--main-blue);
    font-size: 25px;
    font-weight: 700;
    line-height: 34px;
    letter-spacing: 0em;
    text-align: center;

}

.chooseContainer{
    width: 80%;
    margin:2em auto;
}
.chooseContainer h4{
    color: var(--main-blue);
    font-size: 18px;
    margin-left: 10px;
    font-weight: 700;
}

.chooseRow{
    width: 100%;
    margin: .5em 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.customCheck{
    width: 25px;
    aspect-ratio: 1/1;
    margin-right: .5em;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid var(--main-blue);
}
.customCheck.active{
    background-color: var(--main-blue);
}
.chooseRow .customInputContainer{
    width: 100% !important;
}

.acceptRow{
    width: 100%;
    margin: .5em 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.customInputContainer label{
    color: var(--main-blue);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: .3em;
    margin-left: .5em;
}

.acceptRow .customInputContainer{
    width: 70% !important;
}
.acceptRow .acceptOptions{
    width: 45% !important;
    border: 1px solid var(--main-blue);
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.acceptOptions div{
    width: 50%;
    text-align: center;
    font-weight: 700;
    padding: .5em;
    cursor: pointer;
    color: var(--main-blue);
}
.acceptOptions div.active{
    color: white;
    border-radius: 10px;
    border: none;
    background-color: var(--main-blue);
}

@media screen and (max-width: 993px) {
    .acceptRow .customInputContainer{
        width: 45% !important;
    }
    .acceptRow .acceptOptions {
        width: 100% !important;
    }

}
@media screen and (max-width: 763px) {
    .acceptOptions div{
        font-size: 13px;
    }
}
.profileInputContainer{
    margin: 1em auto;
}
.profileInputContainer input{
    border: 1px solid #000000;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 15px;
}
.profileInputContainer label{
    color: var(--main-blue);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: .3em;
    margin-left: .5em;
}

.submitBtn,.submitBtn.alternative:hover{
    border-radius: 15px;
    padding: .5em 3em;
    background-color: white;
    color: var(--main-blue);
    border: 1px solid var(--main-blue);
    margin: 1em auto;
    display: block;
    width: fit-content;
    font-weight: 700;
    transition: 0.3s ease-in-out 0s;
}
.submitBtn:hover,.submitBtn.alternative{
    background-color: var(--main-blue);
    color: white;
    transition: 0.3s ease-in-out 0s;
}


/*SETTINGS PAGE END*/

/*
* DASHBOARD PAGE START
 */
.center-table {
    text-align: center;
}
/*DASHBOARD PAGE END*/

/* ==================== REQUESTS LIST (HOME) UX ==================== */
.requests-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.requests-toolbar__left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.requests-toolbar__right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.requests-search .input-group {
    min-width: 320px;
}
.requests-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
@media screen and (max-width: 576px) {
    .requests-search .input-group {
        min-width: 100%;
    }
    .requests-toolbar__right,
    .requests-toolbar__left {
        width: 100%;
        justify-content: space-between;
    }
}
.copyrightContainer {
    width: 100%;
    text-align: center;
    color: #4f4f4f;
    font-size: 17px;
}
.copyrightStatic {
    position: absolute;
    bottom: 0;

}
.copyrightScroll {
    position: relative;
    bottom: auto;
}
/* Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.invalid-warning {
    border: 2px solid red;
}

/* ==================== MODIFICATION SYSTEM STYLES ==================== */

/* Modification mode styling */
.modification-mode {
    position: relative;
}

.modification-mode::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 3px dashed #17a2b8;
    border-radius: 10px;
    pointer-events: none;
    z-index: 1;
}

/* Modification notice styling */
.modification-notice {
    border-left: 5px solid #ffc107 !important;
    background: linear-gradient(45deg, #fff3cd, #ffeaa7) !important;
    animation: pulse-warning 2s infinite;
}

@keyframes pulse-warning {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

/* Modification interface styling */
.modification-interface {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #17a2b8 !important;
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.2);
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modified field highlighting */
.modification-enabled {
    border: 2px solid #28a745 !important;
    background-color: #f8fff9 !important;
    transition: all 0.3s ease;
}

.modification-enabled:focus {
    border-color: #20c997 !important;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

/* Change item styling */
.change-item {
    border-left: 4px solid #28a745;
    transition: all 0.3s ease;
}

.change-item:hover {
    background-color: #e8f5e8 !important;
    transform: translateX(5px);
}

/* Button styling for modification interface */
.modification-interface .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.modification-interface .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Modification button styling */
.btn-info {
    background: linear-gradient(45deg, #17a2b8, #20c997);
    border: none;
    font-weight: 600;
}

.btn-info:hover {
    background: linear-gradient(45deg, #138496, #1e7e34);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* Legal Representatives Contract Selection */
.legal-representative-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.legal-representative-section:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.1);
}

.contract-inclusion-check-wrapper {
    margin: 8px 0;
    display: inline-block;
}

.contract-inclusion-check {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.contract-inclusion-check .form-check-input {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    margin-top: 0;
    margin-left: 0;
    cursor: pointer;
    flex-shrink: 0;
}

/* Consistent green checkboxes/radios across app */
.form-check-input {
    accent-color: #198754;
    /* Prevent stretched checkboxes: keep consistent square size */
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    margin-top: 0;
    flex: 0 0 auto;
    display: inline-block;
    vertical-align: middle;
    transform: none;
}

/* Better checkbox + label alignment */
.form-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.form-check-label {
    margin-bottom: 0;
    line-height: 1.2;
}

/* Highlight total POS count for readability */
.pos-number-total input#posNumber {
    font-weight: 700;
    font-size: 18px;
}

/* Financial Terms tables: better UX & stable layout */
.financial-terms-table {
    table-layout: fixed;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.financial-terms-table thead th {
    font-weight: 700;
    color: var(--main-blue);
    white-space: nowrap;
}
.financial-terms-table td,
.financial-terms-table th {
    vertical-align: middle;
}
.financial-terms-table__label-col {
    text-align: left;
    white-space: normal;
}
.financial-terms-table--commissions td:first-child,
.financial-terms-table--prices td:first-child {
    text-align: left;
    font-weight: 600;
    color: #1f2d3d;
}
.financial-terms-table--prices .pricing-input {
    max-width: 220px;
    margin: 0 auto;
}
.financial-terms-table__price-col {
    width: 220px;
}
@media screen and (max-width: 768px) {
    .financial-terms-table thead th {
        white-space: normal;
    }
    .financial-terms-table__price-col {
        width: 160px;
    }
    .financial-terms-table--prices .pricing-input {
        max-width: 160px;
    }
}

.contract-inclusion-check .form-check-label {
    font-weight: 400;
    color: #495057;
    font-size: 14px;
    cursor: pointer;
    margin: 0;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.contract-inclusion-check .form-check-label i {
    color: #6c757d;
    font-size: 14px;
    margin-right: 4px;
}

.contract-preview-container {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contract-preview-container .card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contract-preview-container .card-header {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
}

/* (Removed) Green highlighting for communication fields in preview */

/* Modification status indicators */
.modification-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.modification-status.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.modification-status.approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modification-status.rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive modifications */
@media (max-width: 768px) {
    .modification-interface .btn {
        margin-bottom: 10px;
    }
    
    .change-item {
        margin-bottom: 15px !important;
    }
    
    .modification-interface .row .col-md-4 {
        margin-bottom: 10px;
    }
}

/* Loading state for modification buttons */
.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modification history styling */
.modification-history {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.modification-history-item {
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.modification-history-item:last-child {
    border-bottom: none;
}

/* Field validation styling for modifications */
.field-validation-error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}

.field-validation-warning {
    border: 2px solid #ffc107 !important;
    background-color: #fffbf0 !important;
}

/* Mixed modification warning */
.mixed-modification-warning {
    background: linear-gradient(45deg, #f8d7da, #fff3cd);
    border: 2px solid #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}


.contract-preview-container {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contract-preview-container .card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contract-preview-container .card-header {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
}

/* (Removed) Green highlighting for communication fields in preview */

/* Modification status indicators */
.modification-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.modification-status.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.modification-status.approved {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modification-status.rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive modifications */
@media (max-width: 768px) {
    .modification-interface .btn {
        margin-bottom: 10px;
    }
    
    .change-item {
        margin-bottom: 15px !important;
    }
    
    .modification-interface .row .col-md-4 {
        margin-bottom: 10px;
    }
}

/* Loading state for modification buttons */
.btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modification history styling */
.modification-history {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.modification-history-item {
    border-bottom: 1px solid #e9ecef;
    padding: 10px 0;
}

.modification-history-item:last-child {
    border-bottom: none;
}

/* Field validation styling for modifications */
.field-validation-error {
    border: 2px solid #dc3545 !important;
    background-color: #fff5f5 !important;
}

.field-validation-warning {
    border: 2px solid #ffc107 !important;
    background-color: #fffbf0 !important;
}

/* Mixed modification warning */
.mixed-modification-warning {
    background: linear-gradient(45deg, #f8d7da, #fff3cd);
    border: 2px solid #dc3545;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Print-only fixes (keep them scoped to print) */
@media print {
    /* Signatures section - clean layout, override all table borders */
    .signatures-print-section {
        page-break-inside: avoid;
    }
    .signatures-print-section table,
    .signatures-print-section table tr,
    .signatures-print-section table td,
    .signatures-print-section table th {
        border: none !important;
        border-collapse: collapse !important;
        background: none !important;
        background-color: transparent !important;
    }
    .signatures-print-section h3 {
        border-bottom: none !important;
        font-size: 12px !important;
    }

    /* Ensure all field values show completely - no truncation in print */
    .form-control, input, textarea, select, .table td {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }

    /* Values injected from beforeprint JS must never be truncated */
    .print-value-span {
        display: block !important;
        width: 100% !important;
        white-space: pre-wrap !important;
        word-break: break-word !important;
        overflow: visible !important;
        text-overflow: clip !important;
        line-height: 1.25 !important;
    }

    .print-textarea-value {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        page-break-inside: auto !important;
        text-align: left !important;
    }

    /* Ensure pricing/commission values are fully visible in print */
    .pricing-input, input[type="number"],
    input[name*="Credit"], input[name*="Business"],
    input[name*="together"], input[name*="without"],
    input[name*="monthly"], input[name*="sim"],
    input[name*="chargeback"], input[name*="least"],
    input[name*="minimum"] {
        width: 100% !important;
        text-align: left !important;
        font-size: 10px !important;
    }

    /* App footer branding must not appear on official printouts */
    .copyrightContainer {
        display: none !important;
    }

    /* Long free-text (π.χ. Σχόλια Καταστήματος) — avoid clipping */
    textarea#commentBranch,
    textarea[name="commentBranch"],
    textarea[name="commentApprovalScale"] {
        min-height: 12rem !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

