/* ==========================
   Tempersona Modern Theme
   ========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    background: #f4f6f9;
    color: #333;
    padding: 30px;
    line-height: 1;
}


/* ==========================
   Logo
   ========================== */

img {
    margin-bottom: 30px;
}


/* ==========================
   Links
   ========================== */

a {
    color: #1565c0;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    color: #0d47a1;
    text-decoration: underline;
}


/* ==========================
   Navigation
   ========================== */

body > table:first-of-type,
body > table:nth-of-type(2) {
    border-collapse: separate;
    border-spacing: 8px;
    margin-bottom: -20px;
}

body > table:first-of-type th,
body > table:nth-of-type(2) th {
    background: white;
    border-radius: 8px;
    padding: 12px 24px;
    border: 1px solid #d7dde5;
    transition: .2s;
    box-shadow: 0 2px 6px rgba(0,0,0,.05);
}

body > table:first-of-type th:hover,
body > table:nth-of-type(2) th:hover {
    background: #1976d2;
}

body > table:first-of-type th:hover a,
body > table:nth-of-type(2) th:hover a {
    color: white;
}

th[bgcolor] {
    background: #1976d2 !important;
}

th[bgcolor] a {
    color: white;
}


/* ==========================
   Überschriften
   ========================== */

font {
    font-size: 16px;
    font-weight: bold;
    color: #1f2937;
}


/* ==========================
   Tabellen
   ========================== */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}


/* ==========================
   Tabellen-Schrift
   ========================== */

table th,
table td {
    font-size: 16px;
}


/* ==========================
   Kopfzeile
   ========================== */

table tr:first-child {
    background: #1976d2;
    color: white;
}


/* ==========================
   Tabellenzellen
   ========================== */

table th,
table td {
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    text-align: left;
}


/* ==========================
   Zebra
   ========================== */

table tr:nth-child(even) {
    background: #f8fafc;
}

table tr:not(:first-child):hover {
    background: #eef5ff;
}


/* ==========================
   Buttons
   ========================== */

.edit-button {
    display: inline-block;
    padding: 6px 14px;
    background: #1976d2;
    color: white;
    border-radius: 5px;
    font-size: 16px;
    text-decoration: none;
}

.edit-button:hover {
    background: #0d47a1;
    color: white;
    text-decoration: none;
}


/* ==========================
   Umschalt-Link
   ========================== */

table th a.switch-link,
table th a.switch-link:visited,
table th a.switch-link:active {
    color: white !important;
    text-decoration: none;
}

table th a.switch-link:hover {
    color: white !important;
    text-decoration: underline;
}


/* ==========================
   Schichtzählung
   ========================== */

.shift-count-header {
    background-color: #dceeff !important;
    color: #1f2937 !important;
}

.shift-count-cell {
    background-color: #eef7ff !important;
}

.shift-count-row {
    background-color: #eef7ff !important;
}

.shift-count-row th {
    background-color: #dceeff !important;
    color: #1f2937 !important;
}


/* ==========================
   Druckbereich
   ========================== */

.print-title {
    font-size: 16px;
    font-weight: bold;
    color: #1f2937;
    margin: 0 0 15px 0;
}


/* ==========================
   Druckbutton
   ========================== */

.print-button-container {
    margin-top: 25px;
    margin-bottom: 20px;
}

.print-button {
    display: inline-block;
    padding: 10px 20px;
    background: #1976d2;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.print-button:hover {
    background: #0d47a1;
}


/* =========================================================
   DRUCK
   ========================================================= */

@media print {

    /* ==========================
       A4 Querformat
       ========================== */

    @page {
        size: A4 landscape;
        margin: 5mm;
    }


    /* ==========================
       Grundsätzlich nichts drucken
       ========================== */

    html,
    body {
        width: 100% !important;
        min-width: 0 !important;

        margin: 0 !important;
        padding: 0 !important;

        background: white !important;

        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }


    /* ==========================
       Alles ausser Printbereich
       ========================== */

    body > * {
        visibility: hidden;
    }


    /* ==========================
       Nur Printbereich sichtbar
       ========================== */

    #print-area,
    #print-area * {
        visibility: visible;
    }


    /* ==========================
       PRINT AREA OHNE SCHATTEN

       Wichtig:
       Hier wird der graue Rand /
       Schatten vollständig entfernt.
       ========================== */

    #print-area {
        position: absolute;

        left: 0;
        top: 0;

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        background: white !important;

        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;

        outline: none !important;

        filter: none !important;
    }


    /* ==========================
       ALLES IM PRINT-AREA
       OHNE SCHATTEN
       ========================== */

    #print-area *,
    #print-area table,
    #print-area tr,
    #print-area th,
    #print-area td {
        box-shadow: none !important;
        text-shadow: none !important;
        filter: none !important;
    }


    /* ==========================
       Titel
       ========================== */

    #print-area .print-title {
        display: block !important;

        font-size: 14pt !important;
        font-weight: bold !important;

        color: black !important;

        margin: 10mm 0 3mm 0 !important;

        padding: 0 !important;

        background: white !important;

        box-shadow: none !important;
        border: none !important;
    }


    /* =========================================================
       NORMALES PICT != 1
       ========================================================= */

    #print-area:not(.print-portrait-plan) {
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
    }


    /* ==========================
       Normale Tabelle
       ========================== */

    #print-area:not(.print-portrait-plan) table {

        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        border-collapse: collapse !important;

        box-shadow: none !important;
        border-radius: 0 !important;

        border: none !important;

        outline: none !important;

        table-layout: auto !important;

        background: white !important;

        filter: none !important;
    }


    /* ==========================
       Normale Tabellenzellen
       ========================== */

    #print-area:not(.print-portrait-plan) table th,
    #print-area:not(.print-portrait-plan) table td {

        font-size: 8pt !important;

        padding: 3px 5px !important;

        border: 1px solid #000 !important;

        color: black !important;

        background: white !important;

        white-space: nowrap !important;

        box-shadow: none !important;

        text-shadow: none !important;
    }


    /* =========================================================
       ACTION-SPALTE AUSBLENDEN
       ========================================================= */

    #print-area .action-column {

        display: none !important;

        visibility: hidden !important;
    }


    /* =========================================================
       PICT = 1

       Mitarbeiter = Zeilen
       Tage = Spalten
       ========================================================= */

    #print-area.print-portrait-plan {

        width: 100% !important;
        max-width: 100% !important;

        overflow: visible !important;

        margin: 0 !important;
        padding: 0 !important;

        background: white !important;

        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;

        outline: none !important;

        filter: none !important;
    }


    /* ==========================
       PICT1 Tabelle
       ========================== */

    #print-area.print-portrait-plan table {

        display: table !important;

        width: auto !important;

        min-width: 0 !important;

        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        border-collapse: collapse !important;

        table-layout: auto !important;

        box-shadow: none !important;

        border: none !important;

        outline: none !important;

        border-radius: 0 !important;

        background: white !important;

        filter: none !important;

        transform-origin: top left !important;
    }


    /* =========================================================
       PICT1 ZELLEN
       ========================================================= */

    #print-area.print-portrait-plan table th,
    #print-area.print-portrait-plan table td {

        font-size: 5pt !important;

        line-height: 0.95 !important;

        padding: 0.5px 1px !important;

        border: 1px solid #000 !important;

        color: black !important;

        background: white !important;

        height: auto !important;

        min-height: 0 !important;

        white-space: normal !important;

        word-break: normal !important;

        overflow-wrap: anywhere !important;

        box-shadow: none !important;

        text-shadow: none !important;
    }


    /* ==========================
       Mitarbeitername
       ========================== */

    #print-area.print-portrait-plan table th:first-child {

        min-width: 30px !important;

        width: auto !important;

        white-space: nowrap !important;

        text-align: left !important;

        padding-left: 2px !important;

        padding-right: 2px !important;
    }


    /* ==========================
       Tages-Spalten
       ========================== */

    #print-area.print-portrait-plan table th {

        min-width: 0 !important;

        max-width: none !important;

        width: auto !important;

        text-align: center !important;

        padding-left: 1px !important;

        padding-right: 1px !important;
    }


    /* ==========================
       PICT1 Kopfzeile
       ========================== */

    #print-area.print-portrait-plan table tr:first-child th {

        background: #eeeeee !important;

        color: black !important;

        font-weight: bold !important;

        font-size: 5pt !important;

        line-height: 0.9 !important;

        padding: 0.5px 1px !important;

        white-space: normal !important;

        text-align: center !important;

        box-shadow: none !important;
    }


    /* ==========================
       Tag Kopf

       DI
       05
       ========================== */

    #print-area.print-portrait-plan .pict1-day-header {

        white-space: normal !important;

        line-height: 0.9 !important;

        text-align: center !important;

        vertical-align: middle !important;

        padding: 0.5px 1px !important;

        box-shadow: none !important;
    }


    /* ==========================
       PICT1 Schichtzellen
       ========================== */

    #print-area.print-portrait-plan .pict1-shift-cell {

        white-space: normal !important;

        word-break: normal !important;

        overflow-wrap: anywhere !important;

        line-height: 0.9 !important;

        text-align: center !important;

        vertical-align: middle !important;

        padding: 0.5px 1px !important;

        box-shadow: none !important;
    }


    /* ==========================
       Samstag / Sonntag
       ========================== */

    #print-area.print-portrait-plan table th[bgcolor] {

        background: #dddddd !important;

        color: black !important;

        box-shadow: none !important;
    }


    /* ==========================
       Schichtzählungen
       ========================== */

    #print-area .shift-count-header,
    #print-area .shift-count-cell,
    #print-area .shift-count-row,
    #print-area .shift-count-row th {

        background: #eeeeee !important;

        color: black !important;

        box-shadow: none !important;
    }


    /* ==========================
       EDIT / Umschalter
       ========================== */

    #print-area .edit-button,
    #print-area .switch-link {

        display: none !important;

        visibility: hidden !important;
    }


    /* ==========================
       Links
       ========================== */

    #print-area a {

        color: black !important;

        text-decoration: none !important;

        box-shadow: none !important;
    }


    /* ==========================
       Hover ausschalten
       ========================== */

    #print-area table tr:hover {

        background: inherit !important;

        box-shadow: none !important;
    }


    /* ==========================
       Seitenumbrüche vermeiden
       ========================== */

    #print-area.print-portrait-plan table {

        page-break-before: avoid !important;

        page-break-after: avoid !important;

        box-shadow: none !important;
    }


    #print-area.print-portrait-plan tr {

        page-break-inside: avoid !important;

        break-inside: avoid !important;
    }


    /* ==========================
       Druckbutton ausblenden
       ========================== */

    .print-button-container,
    .print-button {

        display: none !important;

        visibility: hidden !important;
    }
}


/* ==========================
   Mobile
   ========================== */

@media (max-width: 900px) {

    body {
        padding: 15px;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    body > table:first-of-type,
    body > table:nth-of-type(2) {
        display: block;
        overflow-x: auto;
    }
}