/* ============================================================
   Steuerbeleg-Erfassung
   Gemeinsames Stylesheet
   ============================================================ */


/* ------------------------------------------------------------
   Grundeinstellungen
   ------------------------------------------------------------ */

* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;

}

:root {

    --farbe-hintergrund: #f5f5f5;
    --farbe-seite: #ffffff;

    --farbe-kopf: #fff4b3;

    --farbe-text: #202020;
    --farbe-rahmen: #bdbdbd;

    --farbe-gruen: #4CAF50;
    --farbe-gruen-hover: #43A047;

    --farbe-gelb: #FFD54F;
    --farbe-gelb-hover: #FFCA28;

    --farbe-rot: #E53935;
    --farbe-rot-hover: #D32F2F;

    --farbe-grau: #d0d0d0;
    --farbe-grau-hover: #bdbdbd;

    --farbe-fehler: #b00020;

    --seitenbreite: 900px;

}



/* ------------------------------------------------------------
   Grundlayout
   ------------------------------------------------------------ */

body {

    background: var(--farbe-hintergrund);

    color: var(--farbe-text);

    font-family: Arial, Helvetica, sans-serif;

    font-size: 18px;

    line-height: 1.5;

}



main {

    max-width: var(--seitenbreite);

    margin: auto;

    padding: 30px;

}



/* ------------------------------------------------------------
   Kopfbereich
   ------------------------------------------------------------ */

.kopfbereich {

    background: var(--farbe-kopf);

    text-align: center;

    padding: 12px 20px;

    border-bottom: 1px solid var(--farbe-rahmen);

}



.mandant {

    font-size: 1rem;

    font-weight: bold;

}



.letzte-id {

    margin-top: 10px;

    font-size: .95rem;

    color: #666666;

}



/* ------------------------------------------------------------
   Überschriften
   ------------------------------------------------------------ */

.seitenueberschrift {

    text-align: center;

    font-size: 2rem;

    margin-bottom: 20px;

}



/* ------------------------------------------------------------
   Trennlinien
   ------------------------------------------------------------ */

hr {

    width: 75%;

    margin: 2em auto;

    border: none;

    border-top: 1px solid var(--farbe-rahmen);

}



/* ------------------------------------------------------------
   Formulare
   ------------------------------------------------------------ */

label {

    display: block;

    font-weight: bold;

    font-size: 1.25rem;

    margin-bottom: .6em;

}



input,
textarea,
select {

    width: 75%;

    padding: 14px;

    font-size: 1.1rem;

    font-family: inherit;

    border: 1px solid var(--farbe-rahmen);

    border-radius: 6px;

    background: white;

}



/* Textbereiche */

textarea {

    resize: vertical;

    min-height: 6em;

}



/* Dateifeld */

input[type=file] {

    width: auto;

}

/* Einzelvorgaben für Eingabefelder */

.beleg-id {

    width: 6em;

}


/* ------------------------------------------------------------
   Zwei Spalten
   ------------------------------------------------------------ */

.zweispaltig {

    display: flex;

    gap: 40px;

}



.zweispaltig>div {

    flex: 1;

}



.zweispaltig input {

    width: 100%;

}



/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.button {

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    border: none;

    border-radius: 8px;

    cursor: pointer;

    font-family: inherit;

    font-weight: bold;

    transition: background-color .2s;

}



/* Hauptbutton */

.button-haupt {

    width: 280px;

    height: 90px;

    font-size: 1.2rem;

}



/* Standardbutton */

.button-standard {

    width: 220px;

    height: 90px;

    font-size: 1rem;

}



/* Farben */

.button-gruen {

    background: var(--farbe-gruen);

    color: white;

}



.button-gruen:hover {

    background: var(--farbe-gruen-hover);

}



.button-gelb {

    background: var(--farbe-gelb);

    color: black;

}



.button-gelb:hover {

    background: var(--farbe-gelb-hover);

}



.button-rot {

    background: var(--farbe-rot);

    color: white;

}



.button-rot:hover {

    background: var(--farbe-rot-hover);

}



.button-grau {

    background: var(--farbe-grau);

    color: black;

}



.button-grau:hover {

    background: var(--farbe-grau-hover);

}



/* ------------------------------------------------------------
   Buttonbereich Belegerfassung
   ------------------------------------------------------------ */

.formularbuttons {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-top: 40px;

}


/* ============================================================
   Auswahldialog Belegerfassung
   ============================================================ */

#auswahlDialog {

    width: min(90vw, 600px);

    margin: auto;

    padding: 25px;

    border: 3px solid var(--farbe-gruen);

    border-radius: 10px;

}


#auswahlDialog::backdrop {

    background: rgba(0, 0, 0, 0.35);

}


#dialogTitel {

    text-align: center;

    margin-bottom: 25px;

}


#dialogListe {

    display: flex;

    flex-direction: column;

    gap: 15px;

    margin-bottom: 25px;

}


.dialog-eintrag {

    display: block;

    width: 100%;

    padding: 16px;

    font-size: 2rem;

    font-weight: bold;

    text-align: left;

    border: 1px solid #999;

    border-radius: 8px;

    cursor: pointer;

}


.dialog-eintrag:hover {

    background: #eef8ee;

}


#dialogFreitext {

    width: 100%;

    margin-bottom: 25px;

}

/* ------------------------------------------------------------
   Aktionsseiten
   ------------------------------------------------------------ */

.hauptaktion {

    text-align: center;

}



.belegsuche {

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;

}



.logout {

    text-align: left;

}



/* ------------------------------------------------------------
   Fehlermeldungen
   ------------------------------------------------------------ */

.error,
.fehlermeldung {

    color: var(--farbe-fehler);

    font-weight: bold;

    font-size: 1.25rem;

    text-align: center;

    min-height: 2em;

    margin-top: 20px;

}


/* ------------------------------------------------------------
   Datensatz-Navigation
   ------------------------------------------------------------ */

.datensatz-navigation {

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: stretch;

    justify-content: center;

    background-color: var(--farbe-gelb);

    font-weight: bold;

    white-space: nowrap;

    min-height: 90px;

    border-radius: 6px;

    overflow: hidden;

}



.datensatz-navigation-spalte {

    display: flex;

    align-items: center;

    justify-content: center;

    min-width: 70px;

}



.datensatz-navigation-mitte {

    padding: 0 18px;

}



.datensatz-navigation-text {

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 52px;

    font-weight: bold;

    color: black;

}



.datensatz-navigation-pfeil {

    display: flex;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 90px;

    padding: 0 18px;

    color: black;

    text-decoration: none;

    font-weight: bold;

}



.datensatz-navigation-pfeil:hover {

    background-color: var(--farbe-gelb-hover);

}



.datensatz-navigation-pfeil:visited {

    color: black;

}



/* ============================================================
   Tablet
   ============================================================ */

@media (max-width:900px) {

    main {

        padding: 25px;

    }

    input,
    textarea,
    select {

        width: 90%;

    }

    .zweispaltig {

        gap: 25px;

    }

}



/* ============================================================
   Smartphone
   ============================================================ */

@media (max-width:700px) {

    body {

        font-size: 21px;

    }


    main {

        padding: 18px;

    }


    .mandant {

        font-size: .95rem;

    }


    .letzte-id {

        font-size: .85rem;

    }


    .seitenueberschrift {

        font-size: 1.7rem;

        margin-bottom: 25px;

    }


    hr {

        width: 90%;

        margin: 2em auto;

    }


    label {

        font-size: 1.35rem;

        margin-bottom: .5em;

    }


    input,
    textarea,
    select {

        width: 100%;

        font-size: 1.3rem;

        padding: 16px;

    }


    textarea {

        min-height: 7em;

    }


    input[type=file] {

        width: 100%;

    }


    /* Datum und Betrag untereinander */

    .zweispaltig {

        display: block;

    }


    .zweispaltig>div {

        margin-bottom: 30px;

    }


    /* OTP */

    .code-container {

        justify-content: center;

    }


    .code-input {

        width: 5em;

        font-size: 2.5rem;

        text-align: center;

        letter-spacing: .35em;

    }


    /* Buttons */

    .formularbuttons {

        display: flex;

        flex-direction: column-reverse;

        gap: 20px;

        margin-top: 40px;

    }


    .button-haupt,
    .button-standard {

        width: 100%;

        height: 95px;

        font-size: 1.2rem;

    }


    /* Aktionsauswahl */

    .belegsuche {

        display: block;

    }


    .belegsuche label {

        margin-bottom: 12px;

    }


    .belegsuche input {

        width: 100%;

        margin-bottom: 20px;

    }


    .logout {

        text-align: center;

    }



    /* Dokument anzeigen */

    .button-grau {

        width: 100%;

    }



    /* Belegnavigation */

    .datensatz-navigation {

        width: 100%;

        min-height: 58px;

    }


    .datensatz-navigation-spalte {

        min-width: 0;

    }


    .datensatz-navigation-mitte {

        padding: 0 10px;

    }


    .datensatz-navigation-pfeil {

        min-height: 58px;

        padding: 0 12px;

    }


    .datensatz-navigation-text {

        min-height: 58px;

    }

}



/* ============================================================
   Desktop
   ============================================================ */

@media (min-width:701px) {

    .formularbuttons {

        display: flex;

        justify-content: space-between;

        align-items: center;

    }

}



/* ============================================================
   Desktop: schmale Felder für Belegdatum und Betrag FA
   ============================================================ */

@media (min-width:901px) {

    .zweispaltig>div {

        flex: 0 0 calc(37.5% - 20px);

    }


    .zweispaltig>div input {

        width: 50%;

    }

}
