/**
 * Geodis Shipping - Admin Styles
 */

.geodis-shipping-admin {
    max-width: 1200px;
}

/* Tabs */
.geodis-shipping-tabs .nav-tab-wrapper {
    margin-bottom: 20px;
}

.tab-content {
    display: none;
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-top: none;
}

.tab-content.active {
    display: block;
}

/* Forms */
.geodis-form .form-table th {
    width: 200px;
}

.geodis-form .submit {
    display: flex;
    align-items: center;
    gap: 10px;
}

.geodis-form .spinner {
    float: none;
    margin: 0;
}

/* Rates Table */
.geodis-rates-table-wrapper {
    margin: 20px 0;
    overflow-x: auto;
}

.geodis-rates-table {
    border-collapse: collapse;
    min-width: 800px;
}

.geodis-rates-table th,
.geodis-rates-table td {
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}

.geodis-rates-table thead th {
    background: #23282d !important;
    color: #fff !important;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
}

.geodis-col-weight {
    text-align: left !important;
    white-space: nowrap;
    min-width: 180px;
}

.geodis-col-rate {
    min-width: 100px;
}

.geodis-rate-input {
    width: 90px;
    text-align: right;
    padding: 4px 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.geodis-rate-input:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
    outline: none;
}

.geodis-rates-table tbody tr:hover {
    background: #f0f6fc;
}

.geodis-rates-table tbody tr:last-child {
    background: #fef8e7;
    font-style: italic;
}

.geodis-rates-table tbody tr:last-child:hover {
    background: #fdf0c8;
}

/* Zones Grid */
.geodis-zones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.geodis-zone-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.geodis-zone-card h4 {
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    color: #23282d;
}

.geodis-zone-card textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    font-family: monospace;
    font-size: 12px;
}

/* Notifications */
.geodis-notice {
    padding: 10px 15px;
    margin: 10px 0;
    border-left: 4px solid;
    background: #fff;
}

.geodis-notice.success {
    border-color: #46b450;
}

.geodis-notice.error {
    border-color: #dc3232;
}

/* Responsive */
@media screen and (max-width: 960px) {
    .geodis-zones-grid {
        grid-template-columns: 1fr;
    }

    .geodis-rates-table-wrapper {
        margin-left: -20px;
        margin-right: -20px;
        padding: 0 20px;
    }
}
