﻿/* Grundläggande styling från normalize.css */
*,
:after,
:before {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    line-height: 1.15;
}

.logo {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 150px;
    height: auto;
}

body {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    background-image: linear-gradient(to right, rgba(47, 77, 114, 0.8), rgba(90, 60, 120, 0.9));
    color: white;
}

/* Tabellstil */
table {
    width: 100%;
    border-collapse: collapse;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
    font-size: 18px;
    text-align: left;
    color: white;
}

th, td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

th {
    background: rgba(0, 0, 0, 0.5);
    font-weight: bold;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

td:nth-child(3) input {
    font-size: 14px;
    width: 100%;
}

td:nth-child(3) {
    width: 30%;
}

/* Knappstil */
button {
    margin-top: 20px;
    padding: 10px 15px;
    font-size: 16px;
    background-color: #2F5D9A;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease;
}

    button:hover {
        background: #1F4D8A;
    }

.small-button {
    padding: 5px 10px;
    font-size: 12px;
    background-color: #2F5D9A;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

    .small-button:hover {
        background-color: #1F4D8A;
    }

.white-bold-link {
    color: white;
    font-weight: bold;
}

/* Fakturabehållare */
.invoice-container {
    max-width: 98%;
    margin: 20px auto;
    padding: 20px;
    background-color: #2F4D72;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

/* Formulärsektion */
.form-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.customer-section {
    padding: 30px 15px 15px; /* Ökar top-padding så knappen får plats */
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .customer-section p {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-weight: bold;
        margin-bottom: 5px;
    }

    .customer-section .small-button {
        position: absolute;
        right: 15px;
        top: 5px;
    }

.customer-dropdown {
    position: absolute;
    background: white;
    color: black;
    border: 1px solid #ccc;
    margin-top: 5px;
    padding: 0;
    width: 100%;
    list-style-type: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    border-radius: 5px;
    top: 100%;
}

    .customer-dropdown li {
        padding: 8px;
        cursor: pointer;
        border-bottom: 1px solid #ddd;
    }

        .customer-dropdown li:hover {
            background: lightgray;
        }

.form-group {
    display: flex;
    flex-direction: column;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
}

input, .mud-datepicker {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.2);
    color: white;
}
