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

::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 */
    height: 25px !important;
    line-height: 1 !important;
    margin-left: 4px !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: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5M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48L3N2Zz4=) 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;
}

button.nav-link {
    display: block;
    padding: 0.5rem 1rem;
    color: black !important;
    text-decoration: none;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

    button.nav-link.active {
        color: black !important;
    }

.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 */
    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: 120px !important;
    margin-left: 4px !important;
    height: 32px !important;
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    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: .375rem .75rem;
    font-size: 1rem;
    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;
}

.icons {
    font-size: 1.3rem !important;
    margin-right: 10px !important;
}

.row-paid {
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 4px !important;
    /*color: green !important;*/ /* Grön bakgrund för betalda */
}

.custom-row {
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 4px !important;
    /*color: green !important;*/ /* Grön bakgrund för betalda */
}

.row-unpaid {
    border-radius: 4px !important;
    font-weight: 500 !important;
    padding: 4px !important;
    color: red !important; /* Röd bakgrund för obetalda */
}

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

.status-pending {
    background-color: #fff3cd; /* gulaktig, som "warning" */
    color: #856404;
}

.status-processing {
    background-color: #cce5ff; /* blå, typisk "info" */
    color: #004085;
}

.status-completed {
    background-color: #d4edda; /* grön, som "success" */
    color: #155724;
}

.status-failed {
    background-color: #f8d7da; /* röd/rosa, som "danger" */
    color: #721c24;
    font-weight: bold;
}

.status-cancelled {
    background-color: #f5c6cb; /* rosa-röd, lite svagare än failed */
    color: #721c24;
    font-weight: bold;
}
