
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* NavMenu global styles */
.sidebar {
    border: none !important;
    font-size: 0.78rem;
    background: linear-gradient(180deg, #5a5a5a, #3f3f3f) !important;
    color: #ffffff !important;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 100vh;
    width: 260px;
    transition: width 0.2s ease;
    position: relative;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.35);
    z-index: 1000;
}

.sidebar.collapsed {
    width: 74px;
}

.sidebar-brand {
    min-height: 64px;
    padding-right: 2.2rem !important;
}

.sidebar-brand-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.sidebar-toggle {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.3rem;
    padding: 0;
    min-width: 22px;
    flex: 0 0 22px;
}

.sidebar-toggle-icon {
    font-size: 0.68rem;
}

.sidebar-floating-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    border-color: rgba(255, 255, 255, 0.75) !important;
}

.sidebar-company-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.78rem;
    line-height: 1.1;
    max-width: 100%;
    color: #ffffff;
}

.sidebar-nav {
    flex: 1 1 auto;
    min-height: auto;
    overflow: visible;
}

.sidebar .nav-link {
    font-size: 0.74rem;
    color: #ffffff !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.4rem;
    transition: background-color 0.2s, transform 0.1s;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    font-weight: 600;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
    text-decoration: none;
}

.sidebar .icons {
    font-size: 0.84rem;
    margin-right: 0 !important;
    color: #ffffff !important;
}

.menu-section {
    opacity: 0.8;
    letter-spacing: 0.5px;
    font-size: 0.66rem;
    color: #9aa3ad !important;
}

.logout-btn {
    font-size: 0.76rem;
    color: #ffffff !important;
}

.sidebar.collapsed .sidebar-company-text,
.sidebar.collapsed .sidebar-label,
.sidebar.collapsed .menu-section,
.sidebar.collapsed .logout-label {
    display: none;
}

.sidebar.collapsed .sidebar-brand {
    justify-content: center !important;
}

.sidebar.collapsed .sidebar-brand-content {
    justify-content: center;
}

.sidebar.collapsed nav .nav-link {
    justify-content: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
    transform: none !important;
}

.sidebar.collapsed .icons {
    margin: 0 !important;
}

.sidebar.collapsed .menu-section + .nav-link {
    margin-top: 0.5rem;
}

.sidebar.collapsed .logout-wrap {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.sidebar.collapsed .logout-btn {
    width: 42px !important;
    min-width: 42px;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.sidebar.collapsed .logout-form {
    justify-content: center;
}

@media (max-width: 991px) {
    .sidebar {
        width: 230px;
    }

    .sidebar.collapsed {
        width: 64px;
    }
}
::deep .quickgrid[theme=default] {
    --col-gap: 0 !important; /* �ndra v�rdet till 0 */
}
a, .btn-link {
    color: #006bb7;
}
.btn {
    border-radius: 0.375rem !important; /* Rounded corners */
    min-height: 25px !important;
    line-height: 1.1 !important;
    padding: 0.2rem 0.55rem !important;
    font-size: 0.85rem !important;
}
.table > :not(caption) > * > * {
    padding: .2rem .2rem !important;

}

.pointer{
    cursor:pointer;
}
.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: none !important;
}

.invalid {
    outline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MgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
/* Customer Icon */
.bi-customer-nav-menu {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-people' viewBox='0 0 16 16'%3E%3Cpath d='M15 14s1 0 1-1-1-4-5-4-5 3-5 4 1 1 1 1zm-7.978-1A.261.261 0 0 1 7 12.996c.001-.264.167-1.03.76-1.72C8.312 10.629 9.282 10 11 10c1.717 0 2.687.63 3.24 1.276.593.69.758 1.457.76 1.72l-.008.002a.274.274 0 0 1-.014.002H7.022ZM11 7a2 2 0 1 0 0-4 2 2 0 0 0 0 4m3-2a3 3 0 1 1-6 0 3 3 0 0 1 6 0M6.936 9.28a5.88 5.88 0 0 0-1.23-.247A7.35 7.35 0 0 0 5 9c-4 0-5 3-5 4 0 .667.333 1 1 1h4.216A2.238 2.238 0 0 1 5 13c0-1.01.377-2.042 1.09-2.904.243-.294.526-.569.846-.816M4.92 10A5.493 5.493 0 0 0 4 13H1c0-.26.164-1.03.76-1.724.545-.636 1.492-1.256 3.16-1.275ZM1.5 5.5a3 3 0 1 1 6 0 3 3 0 0 1-6 0m3-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4'/%3E%3C/svg%3E");
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: gray !important;
    margin: 5px;
}

/* Global tab style aligned with BankPayments */
.nav-tabs {
    border-bottom: 1px solid #d6dde6;
    gap: 0.2rem;
}

.nav-tabs .nav-link {
    display: block;
    border: 1px solid transparent;
    border-top-left-radius: 0.45rem;
    border-top-right-radius: 0.45rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    background: #f8f9fb;
    color: #425466 !important;
    font-weight: 500;
    font-size: 0.88rem;
    line-height: 1.1;
    padding: 0.32rem 0.62rem;
    min-height: 30px;
    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.nav-tabs .nav-link:hover {
        color: #2f3e4c !important;
        background: #f1f4f8;
        border-color: #dbe2ea;
    }

.nav-tabs .nav-link.active {
        background: #eceff3;
        border-color: #c9d1db;
        border-bottom-color: #eceff3;
        color: #1f2d3a !important;
    }

.nav-tabs .nav-link h5 {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.tab-content {
    margin-top: 0.6rem;
}

.custom-nav-link {
    padding: .5rem 1rem;
    color: #d7d7d7; /* Gr� text som standard */
    text-decoration: none;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out;
    background: none;
    border: none;
    border-radius: 4px;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    width: 100%;
    margin: 5px;
}

    /* Hover-effekt: L�nken blir svart n�r anv�ndaren hovrar */
    .custom-nav-link:hover {
        color: black !important;
        background-color: #e0e0e0; /* L�tt gr� bakgrund p� hover */

    }

    /* Aktiva l�nken f�r gr� bakgrund och vit text */
    .custom-nav-link.active {
        color: white; /* Vit text */
        background-color: #808080; /* Gr� bakgrund */
    }

        /* Hover-effekt f�r den aktiva l�nken ska inte �ndra bakgrunden */
        .custom-nav-link.active:hover {
            color: white !important; /* S�kerst�ll att texten f�rblir vit */
            background-color: #808080; /* Gr� bakgrund f�rblir �ven p� hover */
        }

.custom-small-input {
    position: relative;
    margin-bottom: 1rem !important; /* Ensure margin is applied */
}

    /* Custom input field */
    .custom-small-input .custom-form-control {
        font-size: 0.8rem !important; /* Smaller font size */
        padding: 1rem 0.5rem 0.25rem !important; /* Add padding to make room for the label */
        height: 40px !important; /* Set height of input */
        line-height: 1.2 !important; /* Ensure proper vertical alignment */
        border: 1px solid #ced4da !important; /* Input border */
        border-radius: 0.375rem !important; /* Rounded corners */
        background-color: #fff !important; /* Input background */
        transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important; /* Smooth transition */
        width: 100%;
    }

        /* Input focused state */
        .custom-small-input .custom-form-control:focus {
            border-color: #80bdff !important; /* Blue border when focused */
            outline: 0 !important; /* Remove outline */
            box-shadow: 0 0 0 0.25rem rgba(38, 143, 255, 0.25) !important; /* Add focus shadow */
            padding-top: 1rem !important; /* Adjust padding when focused to make space for the label */
        }

    /* Label inside the input field */
    .custom-small-input label {
        font-size: 0.8rem !important; /* Smaller font size */
        color: #495057 !important; /* Standard label color */
        position: absolute !important;
        top: 0.8rem !important; /* Move the label above the input border */
        left: 0.4rem !important; /* Keep label aligned */
        pointer-events: none !important; /* Prevent label from being clickable */
        transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out !important; /* Smooth transition */
        transform: translateY(0) !important; /* Keep label at the top */
        opacity: 0.65 !important; /* Label opacity when not focused */
    }

    /* Floating label effect when input is focused or filled */
    .custom-small-input .custom-form-control:focus + label,
    .custom-small-input .custom-form-control:not(:placeholder-shown) + label {
        font-size: 0.8rem !important; /* Keep label smaller */
        top: 0.8rem !important; /* Move the label above the input border */
        left: 0.2rem !important; /* Keep label aligned */
        color: dimgray !important; /* Change label color when focused or filled */
        transform: scale(0.85) translateY(-1rem) translateX(0.1rem) !important; /* Floating effect */
        opacity: 1 !important; /* Full opacity when floating */
    }
.text-danger{
    font-size:12px !important;
}
.form-control {
    font-size: 0.8rem !important; /* Keep label smaller */
    min-height: 25px !important;
}
.float-right {
    margin:1px;
    float: right;
}
label {
    font-size: small !important;

}


/* Hide the search icon in the filter input field */
.blazor-bootstrap-table .filter-input .search-icon {
    display: none !important;
}
.custom-btn {
    min-width: 90px !important;
    margin-left: 4px !important;
    height: 25px !important;
    min-height: 25px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-weight: 500;
    line-height: 1.1;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: .2rem .55rem;
    font-size: 0.85rem;
    border-radius: .25rem;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.custom-btn.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.custom-btn.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.custom-btn.btn-secondary {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.custom-btn.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

.custom-btn.btn-success {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

.custom-btn.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.custom-btn.btn-danger {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.custom-btn.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.custom-btn.btn-warning {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.custom-btn.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}

.custom-btn.btn-outline-secondary {
    color: #6c757d;
    background-color: transparent;
    border-color: #6c757d;
}

.custom-btn.btn-outline-secondary:hover {
    color: #fff;
    background-color: #6c757d;
    border-color: #6c757d;
}

.icons {
    font-size: 1.3rem !important;
    margin-right: 10px !important;
   
}
/* Basstil f�r alla rader */
.custom-row,
.row-paid,
.row-unpaid,
.row-info,
.row-warning,
.row-danger,
.row-signed,
.row-paused,
.row-warning-payment {
    border-radius: 4px !important;
    font-weight: 600 !important;
    padding: 4px !important;
}

/* ?? Betald � gr�n text */
.row-paid {
    color: #198754 !important; /* Bootstrap gr�n text */
}

/* ? Obetald */
.row-unpaid {
    color: #dc3545 !important; /* r�d text */
}

/* ?? Info � 'v�ntar fil', 'f�rberedd', etc. */
.row-info {
    color: black !important; /* bl� text */
}

/* ?? Varning � fil h�mtad, fil uppladdad etc */
.row-warning {
    color: #fd7e14 !important; /* orange text */
}

/* ?? Misslyckad � fel i fil eller swish */
.row-danger {
    color: #bb2d3b !important; /* m�rkr�d text */
}

/* ? Kund har signerat */
.row-signed {
    border-left: 4px solid #0d6efd !important; /* bl� markering */
}

/* ? Parkerad */
.row-paused {
    color: #6c757d !important; /* gr� text */
}

/* ? Betalningsavvikelse */
.row-warning-payment {
    color: #d97706 !important; /* amber text */
}

.paid {
    position: relative; /* Viktigt f�r att pseudo-element ska placeras relativt till denna container */
}

    .paid::before {
        content: "Betald"; /* Text som ska visas */
        position: absolute;
        top: 40%; /* Centrera vertikalt */
        left: 60%; /* Centrera horisontellt */
        transform: translate(-50%, -50%) ; /* Snedst�lld text */
        font-size: 100px; /* St�rre textstorlek */
        font-weight: bold;
        color: rgba(0, 25, 0, 0.1); /* Gr�n f�rg med transparens */
        z-index: 1; /* Se till att texten inte t�cker inneh�llet */
        pointer-events: none; /* G�r texten klickbar */
    }


.unpaid {
    position: relative; /* Viktigt f�r att pseudo-element ska placeras relativt till denna container */
}

    .unpaid::before {
        content: "Obetald"; /* Text som ska visas */
        position: absolute;
        top: 40%; /* Centrera vertikalt */
        left: 60%; /* Centrera horisontellt */
        transform: translate(-50%, -50%); /* Snedst�lld text */
        font-size: 100px; /* St�rre textstorlek */
        font-weight: bold;
        color: rgba(255, 0, 0, 0.1); /* R�d f�rg med transparens */
        z-index: 1; /* Se till att texten inte t�cker inneh�llet */
        pointer-events: none; /* G�r texten klickbar */
    }



.row-signed {
    color: blue;
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 4px !important;
}
.row-paused {
    color: orange;
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 4px !important;
}
.row-warning-payment {
    color: red;
    background-color: orange !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 4px !important;
}
.row-voucher-approved {
    color: green;
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 4px !important;
}
.row-unreconciled-payment {
    color: #6b4f00;
    background-color: #fff3cd !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 4px !important;
}
