/* ========================================
   CALCULATOR LAYOUT
======================================== */

.lx-calculator {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.lx-section {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lx-section__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--lx-primary);
}

/* ========================================
   GRID
======================================== */

.lx-grid {
    display: grid;
    gap: 18px;
}

.lx-grid--2 {
    grid-template-columns: 1fr;
}

.lx-grid--3 {
    grid-template-columns: 1fr;
}

/* ========================================
   FORM FIELDS
======================================== */

.lx-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.lx-label {
    font-size: .9rem;
    font-weight: 600;
}

.lx-input,
.lx-select,
.lx-textarea {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid var(--lx-border);

    border-radius: var(--lx-radius);

    background: white;

    color: var(--lx-text);

    transition: border-color .2s;

}

.lx-input:focus,
.lx-select:focus,
.lx-textarea:focus {

    outline: none;

    border-color: var(--lx-primary);

}

/* ========================================
   BUTTON ROW
======================================== */

.lx-actions {

    display: flex;

    flex-direction: column;

    gap: 12px;

}

.lx-actions .lx-button {

    width: 100%;

}

/* ========================================
   OUTPUT
======================================== */

.lx-output {

    padding: 18px;

    border-radius: var(--lx-radius);

    background: #eef7f0;

    border-left: 4px solid var(--lx-primary);

}

/* ========================================
   TABLES
======================================== */

.lx-table-wrap {

    overflow-x: auto;

}

.lx-table {

    width: 100%;

    border-collapse: collapse;

    min-width: 700px;

}

.lx-table th {

    background: var(--lx-primary);

    color: white;

    text-align: left;

    padding: 12px;

}

.lx-table td {

    padding: 12px;

    border-bottom: 1px solid var(--lx-border);

}

.lx-table tr:nth-child(even) {

    background: #fafafa;

}

/* ========================================
   HELP TEXT
======================================== */

.lx-help {

    color: var(--lx-text-light);

    font-size: .85rem;

}

/* ========================================
   STATUS
======================================== */

.lx-success {

    color: var(--lx-success);

}

.lx-warning {

    color: var(--lx-warning);

}

.lx-danger {

    color: var(--lx-danger);

}

/* ========================================
   DESKTOP
======================================== */

@media (min-width: 768px) {

    .lx-grid--2 {

        grid-template-columns: repeat(2, 1fr);

    }

    .lx-grid--3 {

        grid-template-columns: repeat(3, 1fr);

    }

    .lx-actions {

        flex-direction: row;

    }

    .lx-actions .lx-button {

        width: auto;

    }

}