html, body {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}


input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
textarea,
select {
    background-color: #f3f4f6;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
    border-radius: 0.25rem;
    width: 100%;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: none;
    border: none;
    background-color: #e5e7eb;
}

table th {
    background-color: #ffffff;
    color: #6b7280;
}

table {
    width: 100%;
    border-collapse: collapse;
}

/*
td input {
    width: 100%;
    min-width: 120px;
}
*/

input {
    width: 100%;
    min-width: 0 !important;   /* ganz wichtig */
}

@media (max-width: 640px) {
    td input {
        min-width: 120px;
    }

    table th,
    table td {
        padding: 0.5rem;
    }

    .form-input {
        padding: 0.5rem 0.75rem;
    }
}

select.currency-dropdown {
    width: auto;
    max-width: 250px;
    padding: 5px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    cursor: pointer;
}
select.currency-dropdown:hover {}


.flatpickr-day.selected {
    background-color: #2563EB !important;
    color: white !important;
    border-radius: 50%;
}

.flatpickr-day.today.selected {
    background-color: #2563EB !important;
    color: white !important;
}

.ingen_select_currency{
    flex: 0 1 auto;
}
.invoice-last-action-row {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ededed;
    padding:1em 0 0;
}
.invoice-last-action-row > * {
    margin: 1em 0;
}

.invoice-last-action-row .invoice-styles-selector-section{
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    margin: 0;
}
.invoice-styles-selector-section label {
    margin: 0 10px 0 0;
}
.invoice-styles-selector-section select {
    min-width: 140px;
}
.invoice-last-action-row  #reset-form {
    margin-left:auto;
    margin-right: 10px;
}
.invoice-styles-row {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    margin-top: 2rem !important;
    background: #f9f9f9;
    padding: 10px 20px;
    border-radius: 12px;
}
.invoice-styles-selector-section {
    flex: 0 1 auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
    margin-right: 1em;
}
.invoice-logo-selector-section {
    flex: 0 1 auto;
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start;
    align-items: center;
}
.invoice-logo-selector-section  #logo_preview {
    margin: 0 20px;
}
.invoice-logo-selector-section  #logo_preview img {
    border: 0;
}


/* added by dip  */
#invoiceForm input:not([type="file"]),
#invoiceForm select,
#invoiceForm textarea {
    background-color: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    border-radius: .375rem !important;
    padding: .5rem !important;
}


.required-error {
    background-color: #ffecec !important;      /* soft red */
    border-color: #ff9a9a !important;          /* soft red */
    position: relative;
}

.required-error::after {
    content: "⚠";
    color: #c00;
    font-size: 18px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Tooltip */
.required-error[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    right: 0;
    top: -32px;
    white-space: nowrap;
    z-index: 20;
}










/* Menge schmal */
.qty-field {
    max-width: 80px !important;
    text-align: center;
}

/* Einheit sehr schmal */
.unit-field {
    max-width: 90px !important;
}

/* Preis schmal */
.price-field {
    max-width: 110px !important;
    text-align: right;
}

/* Summe breit */
.sum-field {
    text-align: right;
    font-weight: bold;
    white-space: nowrap;
}

/* Aktion super schmal */
.action-field {
    width: 28px !important;
    text-align: center;
    padding: 0;
}

/* Spinbuttons entfernen */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}


.tax-mini {
    width: 2.5rem;            /* ~40px */
    min-width: 2.5rem;
    padding: 0;
    text-align: center;
}