/* =========================================================
   PRODUCTION OVERVIEW PAGE
========================================================= */

.production-overview-page {
    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding: 30px 20px 40px;

    box-sizing: border-box;
}


/* =========================================================
   DATE CARD
========================================================= */

.production-date-card {
    width: 100%;
    max-width: 1045px;

    margin: 0 auto 35px auto;

    padding: 35px 36px 36px;

    box-sizing: border-box;

    background: #ffffff;

    border: 1px solid #eeeeee;

    border-radius: 5px;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   DATE FORM
========================================================= */

.production-date-form {

    display: grid;

    /*
     * All 3 fields have exactly the same width.
     */
    grid-template-columns: 1fr 1fr 1fr;

    column-gap: 35px;

    row-gap: 0;

    align-items: end;

    width: 100%;
    margin-top: .3rem;
    margin-bottom: .3rem;
}


/* =========================================================
   TITLE
========================================================= */

.production-overview-title {

    grid-column: 1 / -1;

    width: 100%;

    margin: 0 0 35px 0;

    padding: 0;

    text-align: center;

    font-size: 40px;

    line-height: 1.2;

    font-weight: 400;

    color: #333333;
}


/* =========================================================
   DATE FIELD
========================================================= */

.date-field {

    width: 100%;

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}


/* =========================================================
   LABEL
========================================================= */

.date-field label {

    display: block;

    width: 100%;

    margin: 0 0 9px 0;

    padding: 0;

    font-size: 16px;

    line-height: 1.3;

    font-weight: 400;

    color: #333333;
}


/* =========================================================
   DATE INPUT
========================================================= */

/*
 * Flatpickr creates a second visible input when
 * altInput: true is used.
 *
 * This rule styles that visible input.
 */

.date-field .flatpickr-input:not([type="hidden"]) {

    display: block;

    width: 100% !important;

    height: 46px;

    margin: 0;

    padding: 0 22px;

    box-sizing: border-box;

    border: 1px solid #777777;

    border-radius: 4px;

    background: #e9ecef;

    color: #333333;

    font-size: 16px;

    font-weight: 400;

    line-height: 46px;

    outline: none;

    cursor: pointer;
}


/*
 * Flatpickr altInput itself does not always
 * keep the .flatpickr-input class in every setup,
 * so also target the generated visible input.
 */

.date-field .flatpickr-alt-input {

    width: 100% !important;

    height: 46px;

    box-sizing: border-box;
}


/* =========================================================
   ORIGINAL FLATPICKR INPUT
========================================================= */

/*
 * The original input is hidden by Flatpickr.
 * Do not allow our normal input styling to affect it.
 */

.date-field input[type="hidden"] {
    display: none !important;
}


/* =========================================================
   DATE INPUT FOCUS
========================================================= */

.date-field input:focus {

    border-color: #555555;

    outline: none;

    box-shadow: none;
}


/* =========================================================
   DATE INPUT PLACEHOLDER
========================================================= */

.date-field input::placeholder {

    color: #60758a;

    opacity: 1;
}


/* =========================================================
   SEARCH FIELD
========================================================= */

.date-search-field {

    width: 100%;

    margin: 0;

    padding: 0;

    box-sizing: border-box;
}


/* =========================================================
   SEARCH BUTTON
========================================================= */

.production-search-btn {

    display: block;

    width: 100%;

    height: 46px;

    margin: 0;

    padding: 0 15px;

    box-sizing: border-box;

    border: 1px solid #222222;

    border-radius: 4px;

    background: #ffffff;

    color: #111111;

    font-size: 16px;

    font-weight: 400;

    line-height: 46px;

    text-align: center;

    cursor: pointer;

    appearance: none;
}


/* =========================================================
   SEARCH HOVER
========================================================= */

.production-search-btn:hover {

    background: #f7f7f7;

    border-color: #222222;

    color: #111111;
}


/* =========================================================
   SEARCH FOCUS
========================================================= */

.production-search-btn:focus {

    outline: none;

    box-shadow: none;
}


/* =========================================================
   TABLE AREA
========================================================= */

.production-overview-table-wrapper {

    width: 100%;

    margin-top: 5px;

    box-sizing: border-box;
}


/* =========================================================
   FLATPICKR
========================================================= */

.flatpickr-calendar {

    border-radius: 4px;
}


/* =========================================================
   FLATPICKR FOOTER
========================================================= */

.flatpickr-footer {

    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 6px;

    padding: 8px 10px;

    border-top: 1px solid #e5e5e5;

    background: #ffffff;
}


/* =========================================================
   FOOTER BUTTON
========================================================= */

.flatpickr-footer .cal-btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 50px;

    height: 30px;

    padding: 0 9px;

    border-radius: 3px;

    color: #444444;

    font-size: 12px;

    text-decoration: none;

    cursor: pointer;
}


/* =========================================================
   FOOTER HOVER
========================================================= */

.flatpickr-footer .cal-btn:hover {

    background: #f2f2f2;

    text-decoration: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .production-date-card {

        max-width: 95%;
    }

    .production-date-form {

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

        column-gap: 25px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .production-overview-page {

        padding: 25px 12px 30px;
    }


    .production-date-card {

        max-width: 100%;

        padding: 25px 20px 30px;
    }


    .production-date-form {

        grid-template-columns: 1fr;

        row-gap: 18px;
    }


    .production-overview-title {

        grid-column: 1;

        font-size: 32px;

        margin-bottom: 25px;
    }


    .date-field,
    .date-search-field {

        width: 100%;
    }


    .date-field .flatpickr-input:not([type="hidden"]),
    .production-search-btn {

        width: 100% !important;
    }

}