/* =========================================================
   MACHINE OVERVIEW
   ========================================================= */

.machine-overview {
    flex: 1;
}

.machine-information {
    width: 620px;
    margin-bottom: 45px;
}

.machine-info-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 20px;

    margin-bottom: 14px;

    font-size: 15px;
}

.machine-info-label {
    font-weight: 600;
}

.machine-section {
    margin-top: 35px;
}

.machine-section h2 {
    margin: 0 0 16px;

    font-size: 17px;
    font-weight: 600;
}

.machine-history-table {
    width: 100%;
    border-collapse: collapse;
}

.machine-history-table th {
    padding: 10px 14px;

    background: #4f5fa8;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.machine-history-table td {
    padding: 10px 14px;

    border-bottom: 1px solid rgba(23, 32, 51, 0.12);

    font-size: 14px;
    vertical-align: middle;
}

.machine-overview-actions {
    margin-top: auto;

    display: flex;
    justify-content: center;
    gap: 30px;

    padding-top: 40px;
}

.machine-overview-actions .button-secondary {
    display: inline-block;

    width: 210px;
    padding: 11px 18px;

    border: 1px solid #52606f;
    border-radius: 2px;

    background: transparent;
    color: #172033;

    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.machine-overview-actions .button-secondary:hover {
    background: rgba(255, 255, 255, 0.35);
}

.machine-overview-link {
    color: #172033;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.machine-overview-link:hover {
    color: #4f5fa8;
}

/* =========================================================
   SERVICE HISTORY
   ========================================================= */

.service-history-page {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-history-machine h2 {
    margin: 0 0 10px;

    font-size: 22px;
    font-weight: 600;
}

.service-history-machine p {
    margin: 0;
    font-size: 15px;
}


/* Search */

.service-history-search {
    margin-top: 35px;
}

.service-history-search label {
    display: block;
    margin-bottom: 8px;

    font-size: 15px;
    font-weight: 600;
}

.service-history-search-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-history-search-row input {
    width: 600px;
    max-width: 100%;
    height: 40px;

    padding: 6px 10px;

    border: 1px solid #6f7885;
    background: #ffffff;

    font-family: inherit;
    font-size: 15px;
}

.service-history-search-row .button-primary,
.service-history-search-row .button-secondary {
    display: inline-block;

    min-width: 110px;
    padding: 10px 16px;

    border: 1px solid #52606f;
    border-radius: 2px;

    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.service-history-search-row .button-secondary {
    background: transparent;
    color: #172033;
}


/* Results table */

.service-history-results {
    margin-top: 35px;
}

.service-history-table {
    width: 100%;
    border-collapse: collapse;
}

.service-history-table th {
    padding: 12px 16px;

    background: #4f5fa8;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    text-align: left;
}

.service-history-table td {
    padding: 12px 16px;

    border-bottom: 1px solid rgba(23, 32, 51, 0.12);

    font-size: 14px;
    vertical-align: middle;
}

.service-history-view-button {
    display: inline-block;

    min-width: 90px;
    padding: 7px 12px;

    border: 1px solid #52606f;
    border-radius: 2px;

    color: #172033;

    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.service-history-view-button:hover {
    background: rgba(255, 255, 255, 0.35);
}


/* Bottom action */

.service-history-actions {
    margin-top: auto;

    display: flex;
    justify-content: center;

    padding-top: 40px;
}

.service-history-actions .button-secondary {
    display: inline-block;

    width: 210px;
    padding: 11px 18px;

    border: 1px solid #52606f;
    border-radius: 2px;

    background: transparent;
    color: #172033;

    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.service-history-actions .button-secondary:hover {
    background: rgba(255, 255, 255, 0.35);
}



/* Add Machine extras */

.customer-form-row select,
.customer-form-row textarea {
    width: 100%;
    padding: 6px 8px;

    border: 1px solid #6f7885;
    background: #ffffff;

    font-family: inherit;
    font-size: 15px;
}

.customer-form-row select {
    height: 34px;
}

.customer-form-row textarea {
    min-height: 120px;
    resize: vertical;
}

.customer-form-row-textarea {
    align-items: start;
}

.form-static-value {
    min-height: 34px;
    display: flex;
    align-items: center;

    font-size: 15px;
}

/* =========================================================
   EDIT MACHINE
   ========================================================= */

.machine-edit-errors {
    width: 620px;
    margin-bottom: 25px;
    padding: 10px 14px;

    border: 1px solid #a94442;
    background: rgba(255, 255, 255, 0.45);

    font-size: 14px;
}

.machine-edit-errors div {
    margin-top: 5px;
}

.machine-edit-divider {
    width: 620px;
    margin: 12px 0 26px;

    border-top: 1px solid rgba(23, 32, 51, 0.15);
}
