/* --- iOS Toggle Switch Styles --- */
.ios-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    font-size: 0.9em;
    margin: 10px 0;
}

.ios-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 30px;
}

.ios-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.ios-toggle .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.ios-toggle .slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.ios-toggle input:checked + .slider {
    background-color: #4CAF50;
}

.ios-toggle input:checked + .slider:before {
    transform: translateX(20px);
}
/* --- End iOS Toggle Switch Styles --- */

/* --- Data Grid Table Styles (No Borders + Zebra Striping) --- */
.machine-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.machine-specs-table th,
.machine-specs-table td {
    padding: 8px;
    border: none;
    text-align: left;
}

.machine-specs-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.machine-specs-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.machine-specs-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.machine-specs-table .external-link {
    text-decoration: none;
}

.machine-specs-table .external-link:after {
    content: " ↗";
    font-size: 0.8em;
}

/* Special rules for compare shortcode tables */
.compare-details-column .machine-specs-table th {
    width: 50%;
}

.compare-details-column .machine-specs-table td {
    width: 50%;
}

.historical-pricing-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.historical-pricing-table th,
.historical-pricing-table td {
    padding: 8px;
    border: none;
    text-align: left;
}

.historical-pricing-table th {
    background-color: #c7c7c7;
}

.historical-pricing-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.historical-pricing-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.historical-prices-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.historical-prices-table th,
.historical-prices-table td {
    padding: 8px;
    border: none;
    text-align: left;
    vertical-align: middle;
}

.historical-prices-table th {
    background-color: #c5c5c5;
}

.historical-prices-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.historical-prices-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

.historical-prices-table .notes-column {
    max-width: 300px;
    word-wrap: break-word;
}

.historical-prices-table .delete-column {
    width: 50px;
    text-align: center;
}
/* --- End Data Grid Table Styles --- */

/* Optional: You might want to add styles for the filter-controls container if needed elsewhere */
/* .filter-controls { ... } */
