﻿html {
    font-size: 14px;
    scroll-behavior: smooth;

}
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

body {
    margin-bottom: 60px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background: var(--lf-lightgray);
}
@font-face {
    font-family: 'bahnschriftregular';
    src: url('/Content/bahnschrift.ttf') format('truetype'), 
        url('/Content/bahnschrift-webfont.woff2') format('woff2'), 
        url('/Content/bahnschrift-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}
:root {
    --blue-base: #0E1D2F; /*dark Header*/
    --blue-light: #0D3B6B; /*Lighter emphasis, white text*/
    --blue-lightest: #1F4E7E; /*White text, lighest version*/
    --blue-lightest_border: #6082A3;
    --lf-lightgray: #F5F7FA;
    --lf-lightblue: #ECF5FE;
    --lf_yellow: #FFC036; /*Black text*/
    --lf_good: #23B09C;
    --lf_bad: #ff4444;
}
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}
#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.dark{
    color:white;
}
#loadingOverlay .loading-box {
    background: var(--lf_good);
    padding: 20px 40px;
    bottom:0px;
    position:absolute;
    width:100%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    font-size: 1.5rem;
    font-weight: 500;
    text-align: center;
}

.loading-text .dot {
    animation: blink 1.5s infinite;
    opacity: 0;
}

    .loading-text .dot:nth-child(1) {
        animation-delay: 0s;
    }

    .loading-text .dot:nth-child(2) {
        animation-delay: 0.3s;
    }

    .loading-text .dot:nth-child(3) {
        animation-delay: 0.6s;
    }

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}

.receipt-bootbox .modal-footer{
    justify-content:space-between;
}
.receipt-bootbox .form-control{
    margin-bottom:5px;
}
.hide{
    display:none !important;
}
.user-e{
    padding-left:5px;
    border-left:5px solid var(--blue-base);
}
.user-n {
    padding-left: 5px;
    border-left: 5px solid var(--blue-lightest);
}
.user-d {
    padding-left: 5px;
    border-left: 5px solid var(--lf_bad);
}
.progress-empty {
    background-color: darkgray !important;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}


table {
    width: 100%;
}
th{
    border-right:1px solid #ddd;
}
th, td {
    border-bottom: 1px solid #ddd;
}
.user-info-container {
    position: relative;
    color: white;
    display: inline-block;
    padding:20px 0px;
}
.user-info-container select{
    border:0;
}
/* Dropdown (hidden by default) */
.user-info-container input {
    position: absolute;
    top: 100%; /* just below the container */
    left: 0;
    padding: 8px 60px;
    font-size: 16px;
    font-weight: bold;
    color: black;
    background-color: var(--lf_yellow);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    margin:0 auto;
    visibility: hidden;
    transform: translateY(5px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.user-info-container:hover input,
.user-info-container:focus-within input {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.user-info-container input:hover {
    transform: translateY(-2px);
}


.centralize {
    text-align: center;
    margin: 0 auto;
}

.logo-container img {
    clear: both;
}

.logo-container p {
    margin-bottom: -10px;
    text-align: center;
    width: 100%;
    transition: 0s !important;
}

/* Container div for the login form */
.login-form-container {
    width: 100%;
    max-width: 600px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.login-form-container-specs {
    width: 100%;
    margin: 20px auto;
    max-width: 600px;
}
    .login-form-container-specs small, .page-container-style small {
        color: #666;
    }
        .login-form-container-specs a, .page-container-style a {
            text-decoration: none;
        }
    .modal-heading {
        color: var(--blue-base);
        font-weight: bold;
    }
.login-form-container-specs .modal-container {
    margin: 20px 0px;
    border-radius: 20px;
    background:white;
}
    .login-form-container-specs .modal-container .content{
        border-radius:20px;
        background:none;
        box-shadow:none;
    }
    .login-form-container:hover {
        box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
    }

    .login-form-container label, .login-form-container-specs label {
        display: block;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 8px;
        color: #333;
    }
.customer-selector select, .customer-selector option{
    padding: 10px;
    border-radius:20px;
}
.login-form-container input, .login-form-container-specs input {
    width: 100%;
    margin-bottom: 16px;
}

    body main input:focus, .login-form-container input:focus, .login-form-container-specs input:focus {
        border-color: var(--blue-lightest_border);
        outline: none;
        background-color: #fff;
    }
.field-validation-error{
    display:block;
    margin-bottom:20px;
}
body main input {
    padding: 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 12px;
    background-color: var(--lf-lightgray);
    transition: border-color 0.3s ease;
}
.listing-item {
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    padding: 5px 20px;
}
.listing-item-s {
    border-bottom: 1px solid #ddd;
    padding: 5px 20px
}
.listing-hover-highlight{
    transition:0.2s;
}
.listing-hover-highlight:hover{
    background-color: RGB(230,230,230);
}

.red-button {
    padding: 5px 10px;
    font-size: 18px;
    font-weight: bold;
    font-variant-caps:all-petite-caps;
    color: white;
    background-color: var(--lf_bad);
    border: 2px solid red;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .red-button:hover {
        transform: translateY(-2px);
        color:white;
    }
.hidden-button {
    display: none;
}
.btn-success{
    background-color:var(--lf_good);
}
.btn {
    border: none;
    border-radius: 30px;
}
.green-button {
    padding: 5px 20px 8px 20px;
    font-size: 1.2em;
    font-weight: bold;
    font-variant-caps: all-petite-caps;
    color: #ffffff;
    display:block;
    background-color: var(--lf_good);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.basic-button, .utility-button {
    padding: 5px 20px 10px 20px;
    font-size: 1.3em;
    font-weight: bold;
    font-variant-caps:all-petite-caps;
    color: black;
    background-color: var(--lf_yellow);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    display:block;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.lf-btn-risky:hover{
    color:white;
}
body .utility-button{
    background-color:var(--lf-lightblue);
    color:var(--blue-base);
    border:1px solid var(--blue-base);
}
    .basic-button:hover, .utility-button:hover {
        transform: translateY(-3px);
    }
.attachment-container {
    display: block;
    overflow-y: hidden;
    max-height: 5000px;
    transition: 0.5s ease;
}
.login-form-container button, .login-form-container-specs button, .login-form-container-specs input[type=button] {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: black;
    background-color: var(--lf_yellow);
    border: none;
    margin: 10px 20px 10px 0px;
    display: inline-block;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
main .alert {
    border-radius:50px;
}
main .alert-success{
    color:black;
    background-color:var(--lf-lightblue);
    border:1px solid var(--blue-lightest_border);
}

main .content .btn-light {
    background-color: var(--lf-lightgray);
    border: 1px solid var(--blue-lightest_border);
    color: var(--blue-base);
    width:auto;
}

.login-form-container button:hover, .login-form-container-specs button:hover, .login-form-container-specs input[type=button]:hover{
    transform: translateY(-2px);
}

.login-form-container .form-footer, .login-form-container-specs .form-footer {
    margin-top: 10px;
    font-size: 12px;
    color: #555;
}
.customer-name-tag {
    position: fixed;
    top: 0px;
    left: 0px;
    background-color: var(--lf-lightblue);
    z-index: 1;
    color: black;
    padding:5px 10px;
    margin:10px;
    border:1px solid var(--blue-lightest_border);
    box-shadow:0px 0px 10px 0px rgba(0,0,0,0.3);
    border-radius:30px;
}
    .customer-name-tag p{
        margin:0px;
        font-weight:bold;
        font-size:1.4em;
        padding-bottom:4px;
        font-variant-caps:all-petite-caps;
    }
    .login-form-container .form-footer a, .login-form-container-specs .form-footer a {
        color: #007bff;
        text-decoration: none;
        cursor: pointer;
        transition: color 0.3s ease;
    }

        .login-form-container .form-footer a:hover, .login-form-container-specs .form-footer a:hover {
            color: #0056b3;
            text-decoration: underline;
        }

.current-page-navigation {
    transition: 0.3s ease;
    background-color:var(--blue-light);
    border-radius:2px;
    font-weight:lighter;
    color:white !important;
}

    .current-page-navigation:hover {
        transform: scale(1.05);
        text-decoration:none;
    }



.navbar > .container > .navbar-brand {
    text-decoration: none;
    transform: scale(1);
    background-color:unset;
}
nav {
    background: var(--blue-base) !important;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
    z-index: 2;
}
.navbar-light .navbar-nav .nav-link, .navbar-dark .navbar-nav .nav-link {
    color: white;
    font-weight: normal;
    font-variant-caps: all-petite-caps;
}
nav a {
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s ease !important;
}

.navbar-light .navbar-nav .nav-link:hover, .navbar-dark .navbar-nav .nav-link:hover {
    transform: scale(1.05);
    color: white;
    text-decoration: none;
    background-color: var(--blue-light);
    border-radius: 2px;
}


/* Footer styles */
footer {
    width: 100%;
    padding: 0px;
    background: var(--blue-light);
    border-top: 1px solid #ddd;
    text-align: center;
    color: white;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}
footer span{color:white;}

    footer a {
        color: white;
        text-decoration: none;
        font-weight: bold;
        transition: color 0.3s ease, transform 0.2s ease;
    }

        footer a:hover {
            color: #0056b3;
            text-decoration: underline;
            transform: scale(1.05);
        }

    footer small {
        display: block;
        margin-top: 8px;
        font-size: 12px;
        color: white;
    }

/* Modal container */
.modal-container.dark div:has(h3){
    padding:10px;
}

.modal-container {
    width: 100%;
    margin: 25px auto;
    border-radius: 20px;
    background-color:white;
    box-shadow: 0px 2px 20px 0px rgba(100, 100, 100, 0.3);
}
.modal-container div:has(h3){
    padding:20px 20px 2px 20px;

}

.modal-container h3 {
    margin: 0px;
    padding: 5px 20px 3px 13px;
    font-size: 0.9em;
    font-weight: bold;
    background: var(--lf-lightblue);
    border-radius: 50px !important;
    border: 1px solid var(--blue-lightest_border);
    color: var(--blue-light);
    display: inline-block;
    border-radius: 3px 3px 0 0;
    text-align: left;
}
.modal-container h3 img{
    margin-left:10px;
    margin-top:-4px
}
.modal-container .content h4{
    color:var(--blue-base);
    font-size:1.4em;
}
.modal-container .content {
    padding: 10px 25px;
    font-size: 14px;
    color: #555;
    min-width: 100%;
}
/* Table styles */
.customer-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    color: #333;
    text-align: left;
}

    .customer-table th,
    .customer-table td {
        padding: 5px 7px;
        border-bottom: 1px solid #ddd;
    }

    .customer-table th {
        background-color: #f5f5f5;
        font-weight: bold;
        text-align: center;
        text-transform: uppercase;
    }

    .customer-table tr:hover {
        background-color: #f9f9f9;
    }

    .customer-table tbody tr:nth-child(odd) {
        background-color: #fcfcfc;
    }

    .customer-table tbody tr:nth-child(even) {
        background-color: #ffffff;
    }

    .customer-table td {
        color: #555;
    }

    .customer-table th {
        color: #333;
    }
.vertical-sep{
    opacity:0.5;
}
/* Progress bar container */
.progress-bar {
    width: 100%;
    background-color: var(--lf_bad);
    overflow: hidden;
    height: 18px;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

    /* Progress bar fill */
    .progress-bar .progress {
        height: 100%;
        background-color: var(--blue-light);
        color: #fff;
        text-align: center;
        line-height: 18px;
        font-size: 12px;
        font-weight: bold;
        border-radius:0px;
        white-space: nowrap; /* Prevents text overflow */
    }
    .progress-bar span{
        margin-left:5px;
        position:absolute;
    }
    .main-box{
        padding-bottom:50px;
    }
.api-status {
    margin: 0 auto;
    text-align: center;
    display:block;
    width:100%;
    font-weight:bold;
    font-variant-caps:all-petite-caps
}
    .api-status span {
        padding: 3px 3px 5px 3px;
        display:inline-block;
        border-radius:5px;
        width:80px;
    }
    .api-status .api-ok {
        background-color: var(--lf_good);
        color: white;
    }
    .api-status .api-warning {
        background-color: orange;
    }
    .api-status .api-nok {
        background-color: var(--lf_bad);
        color:white;
    }
.lf-form-container {
    max-width: 400px;
    padding: 10px;
    border: 1px solid #fafafa;
    border-radius: 8px;
    margin: 40px 0px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.lf-form-container-rest {
    width: 100%;
    padding: 10px;
    border: 1px solid #fafafa;
    border-radius: 8px;
    margin: 40px 40px 40px 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.label-headline{
    background-color:var(--blue-base);
    padding:5px 10px;
}

.lf-form-group {
    margin-bottom: 15px;
}

.lf-form-control {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    box-sizing: border-box;
}
input[type=checkbox]{
    scale:1.4;
}
.lf-btn {
    display: block;
    width: 100%;
    border-radius:30px;
    border:none;
    padding: 10px;
    transition:0.3s;
}
.lf-btn:hover{
    transform:translateY(-2px);
}
.lf-btn-risky{
    background-color:var(--lf_bad);
    color:white;
}

.lf-btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

    .lf-btn-primary:hover {
        background-color: #0056b3;
    }
.content textarea {
    border: 1px solid var(--blue-lightest_border);
    border-radius: 8px;
    padding:10px;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.1);
}
.setting-table th{
    background-color:white;
    border: none;
}
.setting-table .lf-form-control{
    display:inline-block;
    width:auto;
    margin-left:15px;
}
/* Container for each file upload item */
.multifile-upload-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px 20px;
    margin-bottom: 12px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    background: #fafafa;
    transition: background-color 0.3s ease, border 0.3s ease;
}

    /* Filename section */
    .multifile-upload-item .file-info .filename {
        font-weight: 600;
        font-size: 15px;
        color: #333;
        margin-bottom: 6px;
        word-break: break-all;
    }

    /* Field layout */
    .multifile-upload-item .file-fields {
        display: flex;
        flex-direction:column;
        gap: 10px;
    }

        .multifile-upload-item .file-fields input {
            flex: 1;
        }

    /* Action area */
    .multifile-upload-item .file-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .multifile-upload-item .upload-btn {
        padding: 8px 16px;
        font-size: 14px;
        margin-top: 4px;
    }

    /* Status message */
    .multifile-upload-item .status {
        font-size: 14px;
        font-weight: 500;
    }

    /* Success + Error backgrounds */
    .multifile-upload-item.success {
        background: #e8f7ee;
        border-color: #b9e5c7;
    }

    .multifile-upload-item.error {
        background: #fdeaea;
        border-color: #f5b5b5;
    }

.setting-table label {
    padding: 5px;
}
.setting-table input[type=checkbox] {
    transform:scale(1.5);
}
.email-custom {
    width: 100%;
    height: auto;
}
#usc-btn {
    position: fixed;
    left:0px;
    text-align:center;
    bottom: -150px;
    transition:0.3s;
    width: 100%;
    padding:20px;
    font-size:1.4em;
    background-color: var(--lf_good);
    z-index:5;
}
#chosen-attachment {
    position: fixed;
    left: 0px;
    text-align: center;
    bottom: -150px;
    transition: 0.3s;
    width: 100%;
    padding: 20px;
    font-size: 1.4em;
    color: #ffffff;
    background-color: var(--blue-base);
    z-index: 5;
}
#usc-btn.usc-peek, #chosen-attachment.usc-peek {
    bottom: 0px;
    cursor: pointer;
}
#chosen-attachment p {
    margin-bottom: 0px;
}
.sbs-containers {
    display:flex; 
    gap:25px;
}
.dashboard-controls {
    float: right;
    margin-top: -2px;
    margin-left:20px;
}
.dashboard-controls a, .dashboard-controls input {
    text-decoration:none;
    font-size:16px;
}
/* Slide-up collapse animation */
.multifile-upload-item .file-fields {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin 0.35s ease;
}
.delete-file-btn {
    background: transparent;
    border: none;
    color: #888;
    font-size: 18px;
    cursor: pointer;
    padding: 0 6px;
    line-height: 1;
    transition: color 0.2s ease;
}

    .delete-file-btn:hover {
        color: #d9534f; /* bootstrap danger red */
    }

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Summary line after upload */
.upload-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    padding-top: 5px;
}

    .upload-summary .checkmark {
        font-size: 18px;
        font-weight: bold;
        color: green;
    }

.summary-desc {
    font-weight: 500;
    color: #333;
}

.summary-amount {
    color: #444;
}

.summary-filename {
    color: #777;
    font-style: italic;
}

.form-control-file {
    cursor: pointer;
    opacity: 0.0;
    /* IE 8 */
    -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    /* IE 5-7 */
    filter: alpha(opacity=0);
    /* Netscape or and older firefox browsers */
    -moz-opacity: 0.0;
    /* older Safari browsers */
    -khtml-opacity: 0.0;
    position: absolute;
    width: 100%;
    z-index:5;
    height: 100%;
}
.file-selector-box {
    width: 100%;
    display: block;
    height: 130px;
    background-color: var(--lf-lightblue);
    cursor: pointer;
    padding: 5px;
    opacity:0.6;
    position: relative;
    color:black;
    transition:0.5s;
}
.file-selector-box:hover{
    opacity:1;
}
.file-selector-box:hover span {
    opacity:0.7;
}
.selected {
    height: 100px !important;
}
#attachment-form .file-selector-box::before{
    font-size:1.3em;
    top:37%;
}
#attachment-form .file-selector-box{
    margin-bottom:10px;
}
.bootbox-body .remove-attachment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: red;
    color: white;
    padding:5px 10px;

    border: none;
    border-radius: 30px;;
    cursor: pointer;
    position: relative;
}

.remove-attachment::before {
    content: "✕"; 
    transition: 0.2s ease-in;
    transform: scale(1);
    font-weight: bold;
}

.remove-attachment:hover::before {
    transform: scale(1.2);
}
.file-selector-box::before {
    content: var(--file-selector-text, "Tiputa tiedosto t\00E4h\00E4n tai klikkaa ladataksesi");
    position: absolute;
    z-index: 1;
    width: 100%;
    top: 35%;
    font-size: 1.7em;
    opacity: 0.5;
    text-align: center;
}
.file-selector-box::after {
    content: "";
    width: 100%;
    height: 100%;
    border: 3px dotted var(--blue-base);
    z-index: 1;
    display: block;
}
#attachmentToBank-form button[type=submit] {
    width:100%;
    transition:0.2s;
}
#attachmentToBank-form .gray-button {
    background-color: lightgray;
    opacity: 0.7;
}
#attachmentToBank-form button[type=submit]:hover {
    color: white;
    opacity: 0.9;
}
#attachmentToBank-form .controls-container {
    display: flex;
    flex-direction:column;
    gap: 8px;
    align-items: center;
}
.hr-lf-style{
    height:5px !important;
    color:var(--blue-base);
    margin:20px;
}
.attachment-bootbox-container{
    border-radius:50px;
    border:1px solid var(--blue-lightest_border);
    margin-bottom:10px;
    background-color:var(--lf-lightblue);
    padding:10px;
    display:flex;
    justify-content:space-between;
}
.bootbox-body button:not(.remove-attachment){
    background:none;
    text-align:left;
    width:100%;
    border:none;
}

@media only screen and (max-width: 600px) {
    .sbs-containers {
        flex-direction: column;
        width: 100%;
    }

    .cview-table table {
        min-width: 1000px;
    }

    .modal-container .preview-mail {
        overflow-x: scroll;
        position: relative;
    }
}
@media only screen and (max-width: 1000px) {
    .dashboard-controls {
        float: none;
        margin-top: 10px;
        margin-right: 0px;
    }

    .modal-container .content {
        overflow-x: scroll;
    }
    .navbar-nav .nav-link {
        padding: 10px 20px;
        margin-top:15px;
    }
    .customer-name-tag{
        margin:0px;
        width:100%;
    }
}
@media only screen and (max-width: 850px) {
    .navbar-expand-sm .navbar-collapse{
        flex-direction:column;
        flex-direction:column-reverse;
    }

    .file-selector-box::before, #attachment-form .file-selector-box::before {
        font-size: 1em;
        overflow-wrap: anywhere;
        width: 95%;
        top:43%;
    }
    .f-column {
        position: sticky;
        left: -20px;
        border-left: 1px solid lightgray;
        border-right: 1px solid lightgray;
        padding:2px;
        background-color: white;
    }
}
::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}

::-webkit-scrollbar-thumb {
    border-radius: 30px;
    background-color: var(--blue-light);
    -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}