/**
 * Table Calculator Styles
 */

/* Table calculator wrapper */
.wcpt-table .lumber-calculator-wrapper,
.table-dual-qty-inputs .lumber-calculator-wrapper {
    display: none; /* Will be shown by JS */
    background: transparent;
    border: none;
    margin: 0;
    padding: 10px 0;
}

/* Calculator inputs */
.wcpt-table .calculator-inputs,
.table-dual-qty-inputs .calculator-inputs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 10px;
}

/* Input groups */
.wcpt-table .input-group,
.table-dual-qty-inputs .input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.wcpt-table .input-group label,
.table-dual-qty-inputs .input-group label {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Input controls */
.wcpt-table .input-controls,
.table-dual-qty-inputs .input-controls {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: visible;
    height: 34px;
}

.wcpt-table .input-controls:focus-within,
.table-dual-qty-inputs .input-controls:focus-within {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* Input fields */
.wcpt-table .custom-qty-input,
.table-dual-qty-inputs .custom-qty-input {
    border: none;
    outline: none;
    text-align: center;
    width: 100%;
    font-size: 14px;
    padding: 5px;
    background: transparent;
}

/* Remove spinners from m³ input */
.table-m3-input::-webkit-inner-spin-button,
.table-m3-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.table-m3-input {
    -moz-appearance: textfield;
}

/* Keep spinners for pieces input */
.table-pieces-input::-webkit-inner-spin-button,
.table-pieces-input::-webkit-outer-spin-button {
    opacity: 1;
    cursor: pointer;
}

/* Input suffix */
.wcpt-table .input-suffix,
.table-dual-qty-inputs .input-suffix {
    display: flex;
  	align-items: center;
    height: 100%;
  	padding: 0 5px;
    color: #999;
    font-size: 12px;
    border-left: 1px solid #ddd;
}

/* Summary section */
.wcpt-table .quantity-summary,
.table-dual-qty-inputs .quantity-summary {
    padding: 8px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    font-size: 13px;
    text-align: center;
}

.wcpt-table .summary-row,
.table-dual-qty-inputs .summary-row {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
}

.table-dual-qty-inputs .summary-row:last-child {
    display: none;
}

/* Disabled state */
.wcpt-table .custom-qty-input:disabled,
.table-dual-qty-inputs .custom-qty-input:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Hide default quantity input */
.wcpt-table .lumber-calculator-wrapper ~ .quantity,
.table-dual-qty-inputs .lumber-calculator-wrapper ~ .quantity {
    display: none !important;
}