/**
 * Dynamic Number Insertion - Admin Styles (backward compatible)
 */

/* wrappers */
.dynin-admin-wrap {
    max-width: 1200px;
}

/* sections */
.dynin-rules-section,
.dynin-help-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 20px 0;
    padding: 20px;
}

/* headings */
.dynin-rules-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

/* rules table */
.dynin-rules-table {
    margin-top: 20px;
}

.dynin-rules-table th {
    font-weight: 600;
}

.dynin-rules-table .column-original,
.dynin-rules-table .column-replacement {
    width: 30%;
}

.dynin-rules-table .column-url {
    width: 25%;
}

.dynin-rules-table .column-actions {
    width: 15%;
}

.dynin-rules-table td {
    vertical-align: middle;
}

/* add row */
.dynin-add-row {
    background-color: #f6f7f7 !important;
}

.dynin-add-row td {
    padding-top: 15px;
    padding-bottom: 15px;
}

.dynin-add-row input[type="text"] {
    width: 100%;
    max-width: 100%;
}

.dynin-rules-table .regular-text {
    width: 100%;
}

/* edit mode */
.dynin-rule-row.editing {
    background-color: #fff3cd !important;
}

.dynin-rule-row.editing td {
    padding-top: 10px;
    padding-bottom: 10px;
}

.dynin-rule-row.editing input[type="text"] {
    width: 100%;
}

/* buttons */
.dynin-rules-table .button {
    margin-right: 5px;
}

.dynin-rules-table .button-link-delete {
    color: #a00;
}

.dynin-rules-table .button-link-delete:hover {
    color: #dc3232;
    border-color: #dc3232;
}

/* responsive */
@media screen and (max-width: 782px) {
    .dynin-rules-table .regular-text {
        width: 100%;
    }

    .dynin-rules-table .button {
        margin-bottom: 5px;
    }
}

/* help section */
.dynin-help-section {
    background: #f1f1f1;
}

.dynin-help-section h3 {
    margin-top: 0;
}

.dynin-help-section ul {
    margin-left: 20px;
    list-style-type: disc;
}

.dynin-help-section li {
    margin: 8px 0;
    line-height: 1.5;
}

/* empty state */
.dynin-rules-table + .description {
    font-style: italic;
    color: #666;
}

.dynin-input-error { border-color: #d63638 !important; }
.dynin-input-ok {  }

.dynin-row-highlight { background-color: #d4edda !important; transition: background-color 2s ease; }