/* ============================================================================
   UNIFIED STYLESHEET FOR AD SERVER ADMIN PANEL
   All styles consolidated in one file for better performance and maintainability
   ============================================================================ */

/* ============================================================================
   GENERAL STYLES
   ============================================================================ */


:root {
    --primary-color: #417690;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #ba2121;
    --warning-color: #f0ad4e;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333;
    --text-secondary: #666;
    --transition-speed: 0.2s;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-color);
}

/* ============================================================================
   FILTER PANEL STYLES - Used across Campaign, Zone, Website, Banner lists
   ============================================================================ */

/* Reduce spacing in admin content area for tighter layout */
#content-main {
    padding-top: 0 !important;
}

#changelist {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove excessive padding from object-tools block */
#changelist .object-tools {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Compact breadcrumb area */
div.breadcrumbs {
    padding: 8px 15px !important;
    margin-bottom: 0 !important;
}

.campaign-filter-panel,
.zone-filter-panel,
.website-filter-panel,
.banner-filter-panel,
.publisher-filter-panel,
.advertiser-filter-panel,
.admin-filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    margin-top: 0;
}

.campaign-filter-panel .filter-group,
.zone-filter-panel .filter-group,
.website-filter-panel .filter-group,
.banner-filter-panel .filter-group,
.admin-filter-panel .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.campaign-filter-panel label,
.zone-filter-panel label,
.website-filter-panel label,
.banner-filter-panel label,
.admin-filter-panel label {
    font-weight: bold;
    font-size: 12px;
    color: #333;
    white-space: nowrap;
}

.campaign-filter-panel select,
.zone-filter-panel select,
.website-filter-panel select,
.banner-filter-panel select,
.admin-filter-panel select {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 180px;
    font-size: 12px;
    background: #fff;
}

.add-campaign-btn,
.add-zone-btn,
.add-website-btn,
.add-banner-btn,
.add-publisher-btn,
.add-advertiser-btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: #28a745;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
}

.add-campaign-btn:hover,
.add-zone-btn:hover,
.add-website-btn:hover,
.add-banner-btn:hover,
.add-publisher-btn:hover,
.add-advertiser-btn:hover {
    background: #218838;
}

/* Search button in filter panels */
.search-btn,
.filter-group input[type="submit"] {
    padding: 6px 15px;
    background: #417690;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.search-btn:hover,
.filter-group input[type="submit"]:hover {
    background: #205067;
}

/* Search input in filter panels */
.filter-group input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 12px;
}

/* ============================================================================
   BANNER MODULE STYLES
   ============================================================================ */

/* Hide all type-specific fieldsets by default */
.banner-type-web,
.banner-type-sql,
.banner-type-url,
.banner-type-html,
.banner-type-html5,
.banner-type-video,
.banner-type-overlay,
.banner-type-text {
    display: none;
}

/* Show fieldsets with type-specific class when banner type is selected */
body.banner-type-active-web .banner-type-web,
body.banner-type-active-sql .banner-type-sql,
body.banner-type-active-url .banner-type-url,
body.banner-type-active-html .banner-type-html,
body.banner-type-active-html5 .banner-type-html5,
body.banner-type-active-video .banner-type-video,
body.banner-type-active-overlay .banner-type-overlay,
body.banner-type-active-text .banner-type-text {
    display: block;
}

/* Hide all creative fields by default - DISABLED: Handled by banner_form_v2.js
#id_creative_file,
#id_creative_url,
#id_creative_html,
#id_creative_text,
#id_video_file,
#id_video_url,
#id_vast_url,
#id_video_type,
#id_description_url,
#id_impression_tracking_url,
#id_duration,
#id_width,
#id_height,
#id_destination_url,
#id_target,
#id_alt_text,
#id_status_text,
#id_text_below_image {
    display: none !important;
}
*/

/* Hide label containers - DISABLED: Handled by banner_form_v2.js
label[for="id_creative_file"],
label[for="id_creative_url"],
label[for="id_creative_html"],
label[for="id_creative_text"],
label[for="id_video_file"],
label[for="id_video_url"],
label[for="id_vast_url"],
label[for="id_video_type"],
label[for="id_description_url"],
label[for="id_impression_tracking_url"],
label[for="id_duration"],
label[for="id_width"],
label[for="id_height"],
label[for="id_destination_url"],
label[for="id_target"],
label[for="id_alt_text"],
label[for="id_status_text"],
label[for="id_text_below_image"] {
    display: none !important;
}
*/

/* Show visible fields when class is added */
.show-field #id_creative_file,
.show-field #id_creative_url,
.show-field #id_creative_html,
.show-field #id_creative_text,
.show-field #id_video_file,
.show-field #id_video_url,
.show-field #id_vast_url,
.show-field #id_video_type,
.show-field #id_description_url,
.show-field #id_impression_tracking_url,
.show-field #id_duration,
.show-field #id_width,
.show-field #id_height,
.show-field #id_destination_url,
.show-field #id_target,
.show-field #id_alt_text,
.show-field #id_status_text,
.show-field #id_text_below_image {
    display: block !important;
}

/* ============================================================================
   REVIVE ADSERVER STYLE FORM LAYOUT
   Two-column: labels left, inputs right
   ============================================================================ */

/* Banner section visibility */
.banner-section {
    display: none;
}

.banner-section.active {
    display: block;
    background: #ffffff;
    padding: 15px;
    border: 1px solid #ccc;
    border-top: none;
}

/* Help button in module headers */
.help-button {
    margin-left: 10px;
    padding: 4px 12px;
    background: #417690;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.help-button:hover {
    background: #356078;
}

/* Sticky navigation tabs for banner edit */
.banner-tabs-nav {
    position: sticky;
    top: 0;
    background: #f0f0f0;
    padding: 0;
    border-bottom: 1px solid #ccc;
    z-index: 100;
    margin-bottom: 0;
}

.banner-tabs-nav ul {
    margin: 0 !important;
    padding: 0 20px !important;
    list-style: none !important;
    display: flex !important;
    gap: 2px !important;
}

.banner-tabs-nav .tab-item {
    margin: 0;
    padding: 0;
    list-style: none;
}

.banner-tabs-nav .tab-link {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    color: #000;
    background: #e0e0e0;
    border: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    margin: 0;
    font-weight: normal;
    white-space: nowrap;
    transition: all 0.2s;
}

.banner-tabs-nav .tab-link:hover {
    background: #d8d8d8;
    color: #000;
}

.banner-tabs-nav .tab-link.active {
    color: #000 !important;
    background: #ffffff !important;
    border: 1px solid #ccc;
    border-bottom: 1px solid #fff !important;
    font-weight: normal;
    position: relative;
    z-index: 2;
}

/* Form sections - cleaner styling like Revive */
.revive-section {
    border-top: 1px solid #e0e0e0;
    padding: 10px 0;
    margin-bottom: 0;
}

.revive-section h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

/* Two-column form row */
.revive-form-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    gap: 15px;
}

.revive-form-row label {
    flex: 0 0 160px;
    text-align: left;
    padding-top: 6px;
    font-size: 13px;
    color: #333;
}

.revive-form-row .field-input {
    flex: 0 0 350px;
}

.revive-form-row input[type="text"],
.revive-form-row input[type="number"],
.revive-form-row input[type="url"],
.revive-form-row textarea {
    width: 100%;
    max-width: 350px;
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    box-sizing: border-box;
}

.revive-form-row textarea {
    height: 80px;
    resize: vertical;
}

/* Size field inline layout */
.revive-size-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.revive-size-row input {
    width: 70px !important;
    max-width: 70px !important;
}

.revive-size-row .size-label {
    font-size: 12px;
    color: #666;
}

/* Creative file section */
.revive-file-section {
    border: 1px solid #e0e0e0;
    padding: 12px;
    background: #fafafa;
    margin-bottom: 12px;
}

.revive-file-radio {
    display: block;
    margin-bottom: 5px;
}

.revive-file-radio input[type="radio"] {
    margin-right: 8px;
}

/* Banner preview like Revive */
.revive-banner-preview {
    text-align: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}

.revive-banner-preview img {
    max-width: 100%;
    height: auto;
    max-height: 250px;
}

/* Override main.css hiding rules for fields inside revive-section */
.revive-section #id_destination_url,
.revive-section #id_target,
.revive-section #id_alt_text,
.revive-section #id_status_text,
.revive-section #id_text_below,
.revive-section #id_width,
.revive-section #id_height,
.revive-section #id_keywords,
.revive-section #id_weight,
.revive-section #id_comments,
.revive-section #id_creative_file {
    display: inline-block !important;
}

/* Override label hiding inside revive-section */
.revive-section label[for="id_destination_url"],
.revive-section label[for="id_target"],
.revive-section label[for="id_alt_text"],
.revive-section label[for="id_status_text"],
.revive-section label[for="id_text_below"],
.revive-section label[for="id_width"],
.revive-section label[for="id_height"],
.revive-section label[for="id_keywords"],
.revive-section label[for="id_weight"],
.revive-section label[for="id_comments"],
.revive-section label[for="id_creative_file"] {
    display: inline-block !important;
}

/* Delivery Rules Table */
#delivery_rules_table {
    table-layout: fixed;
    width: 100%;
}

#delivery_rules_table th,
#delivery_rules_table td {
    vertical-align: middle;
    padding: 10px;
    box-sizing: border-box;
}

#delivery_rules_table th:nth-child(1),
#delivery_rules_table td:nth-child(1) {
    width: 60px;
    text-align: center;
}

#delivery_rules_table th:nth-child(2),
#delivery_rules_table td:nth-child(2) {
    width: 90px;
}

#delivery_rules_table th:nth-child(3),
#delivery_rules_table td:nth-child(3) {
    width: 160px;
}

#delivery_rules_table th:nth-child(4),
#delivery_rules_table td:nth-child(4) {
    width: 120px;
}

#delivery_rules_table th:nth-child(5),
#delivery_rules_table td:nth-child(5) {
    width: auto;
}

#delivery_rules_table th:nth-child(6),
#delivery_rules_table td:nth-child(6) {
    width: 140px;
    text-align: center;
}

#delivery_rules_table select {
    width: 100%;
    padding: 4px;
    box-sizing: border-box;
}

#delivery_rules_table .rule-value-display {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hidden-banner-section {
    display: none;
}

.inactive-rule {
    background: #f9f9f9;
    opacity: 0.7;
}

/* Fix scrolling issue - override dashboard.css overflow:hidden */
#container,
#content {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
}

/* Ensure body and html can scroll */
html,
body {
    overflow-y: auto !important;
    height: auto !important;
}

/* Hide Django admin default h1 title - we use tabs instead */
#content>h1,
#content-main>h1,
.content-wrapper>h1 {
    display: none !important;
}

/* ============================================================================
   FIELDSET & MODULE STYLES
   ============================================================================ */

.module>h2 {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 15px;
    margin: 0;
    font-weight: 600;
    color: var(--text-color);
}

.module {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: #ffffff;
    transition: box-shadow var(--transition-speed) ease;
}

.module:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.form-row {
    padding: 10px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.form-row:last-child {
    border-bottom: none;
}

/* ============================================================================
   FORM CONTROLS
   ============================================================================ */

/* Text inputs and selects */
.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="email"],
.form-row input[type="url"],
.form-row input[type="date"],
.form-row input[type="datetime-local"],
.form-row select,
.form-row textarea {
    width: 100%;
    max-width: 600px;
    box-sizing: border-box;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    height: auto !important;
    min-height: 38px;
    line-height: 1.5;
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

#id_banner_type {
    padding: 4px 8px !important;
    height: 35px !important;
    line-height: 25px !important;
    background-color: #fff !important;
    color: #333 !important;
}

.form-row input[type="text"]:focus,
.form-row input[type="number"]:focus,
.form-row input[type="email"]:focus,
.form-row input[type="url"]:focus,
.form-row input[type="date"]:focus,
.form-row input[type="datetime-local"]:focus,
.form-row select:focus,
.form-row textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(65, 118, 144, 0.1);
    outline: none;
}

/* Specific field widths */
.form-row input[name="name"] {
    width: 100%;
    max-width: 600px;
}

.form-row input[name="start_date"],
.form-row input[name="end_date"] {
    width: 200px;
}

.form-row input[name="impressions"],
.form-row input[name="clicks"],
.form-row input[name="priority"] {
    width: 150px;
}

/* Select dropdowns */
.form-row select[name="advertiser"],
.form-row select[name="campaign_type"] {
    width: 100%;
    max-width: 400px;
}

/* Textarea */
.form-row textarea[name="comments"] {
    width: 100%;
    max-width: 600px;
    min-height: 100px;
    resize: vertical;
}

/* Checkbox alignment */
.form-row input[type="checkbox"] {
    width: auto;
    margin-right: 5px;
    cursor: pointer;
}

/* ============================================================================
   HELP TEXT & LABELS
   ============================================================================ */

.help-text {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
    display: block;
}

/* Creative field labels */
label[for="id_creative_file"],
label[for="id_creative_url"],
label[for="id_creative_html"],
label[for="id_creative_text"],
label[for="id_video_file"],
label[for="id_video_url"],
label[for="id_vast_url"] {
    font-weight: 600;
    color: var(--text-color);
}

/* ============================================================================
   BUTTONS & ACTIONS
   ============================================================================ */

.button,
input[type="submit"],
input[type="button"],
button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background-color: #5a6268;
    transform: translateY(-1px);
}

.button:active,
input[type="submit"]:active,
input[type="button"]:active,
button:active {
    transform: translateY(0);
}

/* Primary button variant */
.button.default,
input[type="submit"].default {
    background-color: var(--primary-color);
}

.button.default:hover,
input[type="submit"].default:hover {
    background-color: #2f5270;
}

/* Danger button variant */
.button.deletelink {
    background-color: var(--danger-color);
}

.button.deletelink:hover {
    background-color: #9a1a1a;
}

/* Success button variant */
.button.add-another {
    background-color: var(--success-color);
}

.button.add-another:hover {
    background-color: #218838;
}

/* ============================================================================
   NOTIFICATIONS & ALERTS
   ============================================================================ */

.dimension-notification,
.success-notification,
.error-notification {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 4px;
    border-left: 4px solid;
}

.dimension-notification {
    color: #155724;
    background: #d4edda;
    border-left-color: var(--success-color);
}

.success-notification {
    color: #155724;
    background: #d4edda;
    border-left-color: var(--success-color);
}

.error-notification {
    color: #721c24;
    background: #f8d7da;
    border-left-color: var(--danger-color);
}

.warning-notification {
    color: #856404;
    background: #fff3cd;
    border-left-color: var(--warning-color);
}

/* ============================================================================
   TABLES
   ============================================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 4px 0;
}

table th {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 4px 6px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-color);
}

table td {
    border: 1px solid var(--border-color);
    padding: 3px 6px;
    font-size: 12px;
}

table tbody tr:hover {
    background-color: #f9f9f9;
}

table tbody tr:nth-child(even) {
    background-color: #f5f5f5;
}

/* ============================================================================
   DELIVERY RULES STYLES
   ============================================================================ */

.delivery-rule-row {
    border-bottom: 1px solid var(--border-color);
}

.delivery-rule-row:hover {
    background-color: #f9f9f9;
}

.rule-comparison,
.rule-operator {
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    width: 100%;
}

.add-rule-btn,
.delete-rule-btn,
.edit-rule-btn {
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.add-rule-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.add-rule-btn:hover {
    background: #2f5270;
}

.delete-rule-btn {
    background: var(--danger-color);
    color: white;
    border: none;
}

.delete-rule-btn:hover {
    background: #9a1a1a;
}

.edit-rule-btn {
    background: var(--info-color);
    color: white;
    border: none;
}

.edit-rule-btn:hover {
    background: #138496;
}

/* ============================================================================
   TABS & NAVIGATION
   ============================================================================ */

.tabs-container {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 15px;
    gap: 5px;
}

.tab-button {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 3px solid transparent;
    transition: all var(--transition-speed) ease;
}

.tab-button:hover {
    color: var(--primary-color);
}

.tab-button.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
}

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

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-10 {
    margin-top: 8px;
}

.mb-10 {
    margin-bottom: 8px;
}

.p-10 {
    padding: 10px;
}

.rounded {
    border-radius: 4px;
}

.shadow {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {

    .form-row input[type="text"],
    .form-row input[type="number"],
    .form-row select,
    .form-row textarea {
        max-width: 100%;
    }

    .button,
    input[type="submit"],
    input[type="button"] {
        padding: 10px 12px;
        font-size: 13px;
    }

    table {
        font-size: 13px;
    }

    table th,
    table td {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .module {
        margin-bottom: 15px;
    }

    .form-row {
        padding: 8px 10px;
    }

    .tabs-container {
        flex-wrap: wrap;
    }

    .tab-button {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* ============================================================================
   ZONE FORM STYLES - Light Theme Matching Revive Adserver
   ============================================================================ */

/* Zone Edit Form - Revive-style tabs */
.revive-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.revive-tab {
    padding: 10px 20px;
    background: #e0e0e0;
    color: #333 !important;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    cursor: pointer;
    font-weight: normal;
    margin-right: 2px;
}

.revive-tab:hover {
    background: #d8d8d8;
}

.revive-tab.active {
    background: #f8b133;
    color: #fff !important;
    font-weight: bold;
}

/* Zone Add Form - Single tab styling */
.zone-add-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1em;
    padding: 0;
    list-style: none;
}

.zone-add-tab {
    padding: 10px 20px;
    background: #f8b133;
    color: #f70505 !important;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    font-weight: bold;
    cursor: default;
}

/* Tab content visibility - hide inactive tabs, show only active */
.revive-tab-content {
    display: none !important;
}

.revive-tab-content.active {
    display: block !important;
}

/* Zone form content containers */
.zone-add-content,
.revive-tab-content,
.revive-tab-content.active,
#tab-zone-properties,
#tab-advanced,
#tab-linked-banners,
#tab-probability,
#tab-invocation-code {
    background: #ffffff !important;
    color: #333333 !important;
}

/* Zone form tables - transparent backgrounds */
.zone-add-content table,
.zone-add-content table tr,
.zone-add-content table tbody tr,
.revive-tab-content table,
.revive-tab-content table tr,
.revive-tab-content table tbody tr,
.revive-tab-content table tr:nth-child(odd),
.revive-tab-content table tr:nth-child(even),
.revive-tab-content table tr:nth-child(2n),
.revive-tab-content table tr:nth-child(2n+1) {
    background: transparent !important;
    background-color: transparent !important;
}

/* Zone form text elements */
.zone-add-content table td,
.zone-add-content table th,
.zone-add-content label,
.zone-add-content span,
.zone-add-content p,
.zone-add-content div,
.revive-tab-content table td,
.revive-tab-content table th,
.revive-tab-content label,
.revive-tab-content span,
.revive-tab-content p,
.revive-tab-content div,
.revive-section-title {
    color: #333333 !important;
    background: transparent !important;
}

/* Zone form inputs */
.zone-add-content input[type="text"],
.zone-add-content input[type="number"],
.zone-add-content textarea,
.zone-add-content select,
.revive-tab-content input[type="text"],
.revive-tab-content input[type="number"],
.revive-tab-content textarea,
.revive-tab-content select {
    background: #ffffff !important;
    border: 1px solid #cccccc !important;
    color: #333333 !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    padding: 4px 8px !important;
}

/* Section title styling */
.revive-section-title {
    color: #333333 !important;
    font-weight: bold !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding-bottom: 8px !important;
    margin-bottom: 12px !important;
}

/* Tag settings and bannercode boxes */
.tag-settings-box,
.bannercode-box {
    background: #f5f5f5 !important;
    border: 1px solid #cccccc !important;
}

.tag-settings-table td,
.tag-settings-table label {
    color: #333333 !important;
}

/* Button group styling */
.button-group {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.save-button {
    background: #417690;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 8px;
}

.save-button:hover {
    background: #205067;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {

    .button,
    input[type="submit"],
    input[type="button"],
    button {
        display: none;
    }

    .module {
        page-break-inside: avoid;
    }
}