.punkty-klienta-field {
    display: flex;
    flex-direction: column;
}

.punkty-klienta-wrapper {
    max-width: 900px;
    margin: 30px auto;
}



.punkty-klienta-form {
    margin-bottom: 32px;
}

.punkty-klienta-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.punkty-klienta-searchbox {
    display: inline-flex;
    align-items: stretch;
}

.punkty-klienta-searchbox input {
    width: 200px;
    height: 36px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-right: 0;
    border-radius: 3px 0 0 3px;
    box-sizing: border-box;
    margin: 0;
}

.punkty-klienta-searchbox button {
    height: 36px;
    padding: 0 18px;
    margin: 0;
    border: 1px solid #e52f32;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
    white-space: nowrap;
    line-height: 34px;
}

.punkty-klienta-searchbox input:focus {
    outline: none;
    border-color: #999;
}

.punkty-klienta-result h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 500;
}

.punkty-klienta-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}



.punkty-klienta-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.punkty-klienta-table th,
.punkty-klienta-table td {
    border: 1px solid #cfcfcf;
    padding: 9px 12px;
    text-align: center;
}

.punkty-klienta-table thead th {
    font-weight: 600;
}

.punkty-klienta-table tbody th {
    text-align: left;
    font-weight: 500;
    white-space: nowrap;
}

/*
 * Delikatne rozróżnienie:
 * Wolumen = jaśniejsze tło
 * Punkty  = trochę ciemniejsze
 *
 * Układ:
 * 1 kolumna miesiąc
 * 2 wolumen
 * 3 punkty
 * 4 wolumen
 * 5 punkty
 * ...
 */
.punkty-klienta-table tbody td:nth-child(even),
.punkty-klienta-table thead tr:nth-child(2) th:nth-child(odd) {
    background: #f6f8fa;
}

.punkty-klienta-table tbody td:nth-child(odd),
.punkty-klienta-table thead tr:nth-child(2) th:nth-child(even) {
    background: #eceff3;
}

/*
 * Pierwszy nagłówek z latami.
 */
.punkty-klienta-table thead tr:first-child th {
    background: #f3f3f3;
}

/*
 * Miesiące.
 */
.punkty-klienta-table tbody th {
    background: #fafafa;
}

/*
 * TOTAL.
 */
.punkty-klienta-total th,
.punkty-klienta-total td {
    font-weight: 700;
    border-top: 2px solid #999;
}

.punkty-klienta-total th {
    background: #eeeeee;
}

/*
 * Komunikat błędu / brak klienta.
 */
.punkty-klienta-message {
    margin-top: 20px;
    padding: 14px 16px;
    border: 1px solid #d5d5d5;
    background: #fafafa;
}

/*
 * Telefon.
 */
@media (max-width: 600px) {

    .punkty-klienta-wrapper {
        margin: 20px 0;
    }

    .punkty-klienta-form {
        display: block;
    }

    .punkty-klienta-form input {
        width: 100%;
        margin-bottom: 10px;
    }

    .punkty-klienta-form button {
        width: auto;
    }

    .punkty-klienta-table {
        font-size: 14px;
    }

    .punkty-klienta-table th,
    .punkty-klienta-table td {
        padding: 7px 9px;
    }
}



/*
 * Bardzo wąskie telefony.
 */
@media (max-width: 400px) {

    .punkty-klienta-table {
        width: 460px;
        min-width: 460px;
        font-size: 13px;
    }

    .punkty-klienta-table th,
    .punkty-klienta-table td {
        padding: 7px 8px;
    }
}


