/* ============================
   BASE FORM – Product page style
   ============================ */
#divioseo_model_form {
    background: #fff;
}

#divioseo_model_form .p-0 { padding: 0 !important; }

.admindivioseomodeles #main{
    padding-bottom: 0 !important;
}

/* Panel — flat, no border */
#divioseo_model_form > .panel {
    border: none !important;
    box-shadow: none;
    padding: 0px !important;
    border-radius: 0;
    margin-bottom: 0 !important;
    background: #fff;
}

/* Panel heading — hidden (title not needed) */
#divioseo_model_form > .panel > .panel-heading {
    display: none;
}

/* Form wrapper */
#divioseo_model_form .form-wrapper {
    width: 100%;
    max-width: 100%;
}

/* ============================
   TAB FULL-WIDTH (déclinaisons, pièces, médias, calibration, seo)
   ============================ */
.tab-full-width > .control-label { display: none !important; }
.tab-full-width > .col-lg-12 {
    width: 100% !important;
    float: none;
    padding-left: 0;
    padding-right: 0;
}

/* ============================
   NAV-TABS (scoped to main form tabs only)
   ============================ */
#divioseo_model_form .form-wrapper > .nav-tabs {
    border-bottom: 2px solid #dee2e6;
    padding: 0px;
    background: #fff;
    margin: 0;
    display: flex;
    align-items: center;
}

/* Import button inside tab bar */
#divioseo_model_form .form-wrapper > .nav-tabs > .tab-bar-actions {
    margin-left: auto;
    padding: 0 16px;
    flex-shrink: 0;
}
#divioseo_model_form .form-wrapper > .nav-tabs > .tab-bar-actions .btn {
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 4px;
    margin-bottom: 0;
}

#divioseo_model_form .form-wrapper > .nav-tabs > li {
    margin-bottom: -2px;
}

#divioseo_model_form .form-wrapper > .nav-tabs > li > a {
    border: none !important;
    border-bottom: 3px solid transparent !important;
    border-radius: 0;
    padding: 14px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #6c7a89;
    transition: color .15s, border-color .15s;
    background: transparent;
}

#divioseo_model_form .form-wrapper > .nav-tabs > li > a:hover {
    background: transparent;
    color: #363a41;
    border-bottom-color: #adb5bd !important;
}

#divioseo_model_form .form-wrapper > .nav-tabs > li.active > a,
#divioseo_model_form .form-wrapper > .nav-tabs > li.active > a:hover,
#divioseo_model_form .form-wrapper > .nav-tabs > li.active > a:focus {
    background: transparent;
    color: #25b9d7;
    border: none !important;
    border-bottom: 3px solid #25b9d7 !important;
    font-weight: 600;
}

/* ============================
   TAB CONTENT
   ============================ */
#divioseo_model_form .form-wrapper > .tab-content.panel {
    border: none;
    box-shadow: none;
    padding: 28px;
    margin: 0;
    background: #fff;
}

/* ============================
   FORM FIELDS – aéré, labels visibles
   ============================ */
#divioseo_model_form .form-group {
    margin-bottom: 22px;
}

#divioseo_model_form .control-label {
    font-weight: 600;
    font-size: 14px;
    color: #363a41;
    padding-top: 8px;
}

#divioseo_model_form .form-control {
    border-radius: 4px;
    border: 1px solid #c7cfd6;
    height: 38px;
    font-size: 14px;
    transition: border-color .15s;
}

#divioseo_model_form textarea.form-control {
    height: auto;
}

#divioseo_model_form .form-control:focus {
    border-color: #25b9d7;
    box-shadow: 0 0 0 2px rgba(37, 185, 215, .15);
}

#divioseo_model_form select.form-control {
    height: 38px;
}

#divioseo_model_form .help-block {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
}

/* ============================
   PANEL FOOTER – sticky, bouton primaire
   ============================ */
#divioseo_model_form .panel-footer {
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding: 16px 28px;
    position: sticky;
    bottom: 0;
    z-index: 50;
    box-shadow: 0 -2px 8px rgba(0,0,0,.04);
}

#divioseo_model_form .panel-footer .btn-default {
    background: #25b9d7;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
    transition: background .15s;
}

#divioseo_model_form .panel-footer .btn-default:hover {
    background: #1ea2bd;
}

#divioseo_model_form .panel-footer .btn-default i {
    color: #fff;
}

/* ============================
   PIECES CONTAINER
   ============================ */
.pieces-container {
    padding: 5px 0;
}

/* ============================
   TABS - Déclinaison parts (pieces tab)
   ============================ */
.decl-nav-tabs {
    margin-bottom: 0;
    border-bottom: 2px solid #e0e0e0;
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
}
.decl-nav-tabs > li > a {
    display: block;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #718096;
    transition: all 0.2s;
    border-radius: 0;
    text-decoration: none;
    cursor: pointer;
}
.decl-nav-tabs > li > a:hover {
    background: #f7f9fc;
    color: #2d3748;
    border-bottom-color: #cbd5e0;
}
.decl-nav-tabs > li.active > a,
.decl-nav-tabs > li.active > a:hover,
.decl-nav-tabs > li.active > a:focus {
    background: #fff;
    color: #25b9d7;
    border: none;
    border-bottom: 2px solid #25b9d7;
    font-weight: 600;
}
#decl-tabs-container .decl-tab-panels {
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 16px;
    background: #fff;
    border-radius: 0 0 6px 6px;
}

/* ============================
   DÉCLINAISONS MANAGER
   ============================ */
#declinaisons-manager {
    background: #fff;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 20px;
    overflow: hidden;
}
.decl-manager-header {
    background: linear-gradient(135deg, #363a41 0%, #4a5568 100%);
    padding: 16px 20px;
    color: #fff;
}
.decl-manager-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}
.decl-manager-title i {
    font-size: 18px;
    opacity: 0.85;
}
.decl-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    padding: 0 8px;
}
.decl-manager-help {
    color: rgba(255,255,255,0.7);
    font-size: 12.5px;
    margin: 6px 0 0 0;
}
#declinaisons-list {
    padding: 16px 20px 0 20px;
}
.declinaison-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px 14px;
    background: #f7f9fc;
    border-radius: 6px;
    border: 1px solid #e8ecf1;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.declinaison-row:hover {
    border-color: #25b9d7;
    box-shadow: 0 0 0 3px rgba(37,185,215,0.08);
}
.decl-row-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #25b9d7;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.decl-field {
    position: relative;
}
.decl-field-name {
    flex: 1;
}
.decl-field.form-floating {
    position: relative;
}
.decl-field.form-floating .form-control {
    height: 44px;
    padding: 18px 12px 6px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 13px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.decl-field.form-floating .form-control:focus {
    border-color: #25b9d7;
    box-shadow: 0 0 0 3px rgba(37,185,215,0.12);
}
.decl-field.form-floating label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 13px;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.15s ease;
    margin: 0;
    padding: 0 2px;
    background: transparent;
    line-height: 1;
}
.decl-field.form-floating .form-control:focus ~ label,
.decl-field.form-floating .form-control:not(:placeholder-shown) ~ label {
    top: 8px;
    transform: translateY(0);
    font-size: 10px;
    font-weight: 600;
    color: #25b9d7;
    letter-spacing: 0.3px;
}
.decl-field.form-floating .form-control:not(:focus):not(:placeholder-shown) ~ label {
    color: #8c9bb5;
}
.decl-ref { width: 160px; }
.decl-name { width: 100%; }
.declinaison-row .copy-declinaison,
.declinaison-row .remove-declinaison {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #ccc;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}
.declinaison-row .copy-declinaison:hover {
    background: #eff6ff;
    color: #25b9d7;
}
.declinaison-row .remove-declinaison:hover {
    background: #fef2f2;
    color: #ef4444;
}
#add-declinaison {
    margin: 4px 20px 16px 20px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 13px;
    padding: 8px 16px;
    transition: all 0.2s;
}
#add-declinaison i {
    margin-right: 6px;
}
#declinaisons-preview {
    background: #f0f9ff;
    border-top: 1px solid #e0e0e0;
    padding: 12px 20px;
    font-size: 13px;
    color: #4a5568;
    display: flex;
    align-items: center;
    gap: 8px;
}
#declinaisons-preview i {
    color: #25b9d7;
}
#declinaisons-preview-text {
    color: #1a202c;
}

/* ============================
   TABS - Déclinaison parts (products tab)
   ============================ */
#decl-tabs-container {
    margin-top: 0;
}
#decl-tabs-container .nav-tabs {
    margin-bottom: 0;
    border-bottom: 2px solid #e0e0e0;
}
#decl-tabs-container .nav-tabs > li > a {
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: #718096;
    transition: all 0.2s;
    border-radius: 0;
}
#decl-tabs-container .nav-tabs > li > a:hover {
    background: #f7f9fc;
    color: #2d3748;
    border-bottom-color: #cbd5e0;
}
#decl-tabs-container .nav-tabs > li.active > a,
#decl-tabs-container .nav-tabs > li.active > a:hover,
#decl-tabs-container .nav-tabs > li.active > a:focus {
    background: #fff;
    color: #25b9d7;
    border: none;
    border-bottom: 2px solid #25b9d7;
    font-weight: 600;
}
#decl-tabs-container .tab-content {
    border: 1px solid #e0e0e0;
    border-top: none;
    padding: 16px;
    background: #fff;
    border-radius: 0 0 6px 6px;
}

/* ============================
   PART NUMBER SECTIONS
   ============================ */
.part-number-section {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.part-number-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f7f9fc 0%, #edf2f7 100%);
    border-bottom: 1px solid #e0e0e0;
}
.part-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #25b9d7;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 4px;
    min-width: 40px;
}
.part-number-header .product-count {
    color: #718096;
    font-size: 12px;
    flex: 1;
}
.part-number-header .remove-part-btn {
    opacity: 0.5;
    transition: opacity 0.2s;
}
.part-number-header .remove-part-btn:hover {
    opacity: 1;
}
.part-products-list {
    padding: 10px 14px;
}
.product-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    padding: 8px 10px;
    background: #fafbfc;
    border-radius: 4px;
    border: 1px solid #edf2f7;
    transition: border-color 0.2s;
}
.product-row:hover {
    border-color: #cbd5e0;
}
.product-row .product-input-group { flex: 1; }
.product-row .form-control {
    width: 100%;
    font-size: 13px;
}
.add-new-number-section {
    padding: 12px 14px;
    background: #f7f9fc;
    border-radius: 6px;
    margin-top: 10px;
    border: 1px dashed #cbd5e0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.add-new-number-section .form-control {
    max-width: 100px;
}
.decl-parts-container:empty::after {
    content: "Aucune pièce. Ajoutez un numéro ci-dessous.";
    display: block;
    padding: 30px 20px;
    text-align: center;
    color: #a0aec0;
    font-style: italic;
    font-size: 13px;
    background: #fafbfc;
    border-radius: 6px;
    border: 1px dashed #e2e8f0;
    margin-bottom: 12px;
}

/* ============================
   SCAN ACTIONS (products tab)
   ============================ */
.scan-actions { margin-top: 15px; }
#scan-results .panel-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================
   COPY MODAL
   ============================ */
.copy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: copyModalFadeIn 0.15s ease;
}
@keyframes copyModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.copy-modal {
    background: #fff;
    border-radius: 10px;
    width: 440px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    animation: copyModalSlideIn 0.2s ease;
}
@keyframes copyModalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.copy-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #363a41 0%, #4a5568 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.copy-modal-header i {
    font-size: 16px;
    opacity: 0.85;
}
.copy-modal-close {
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}
.copy-modal-close:hover {
    color: #fff;
}
.copy-modal-body {
    padding: 20px;
}
.copy-modal-target {
    margin: 0 0 16px 0;
    padding: 10px 14px;
    background: #f0f9ff;
    border-radius: 6px;
    font-size: 13px;
    color: #4a5568;
    border-left: 3px solid #25b9d7;
}
.copy-modal-target strong {
    color: #25b9d7;
}
.copy-modal-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}
.copy-modal-sources {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.copy-source-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid #e8ecf1;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    background: #fff;
}
.copy-source-option:hover {
    border-color: #cbd5e0;
    background: #f7f9fc;
}
.copy-source-option.selected {
    border-color: #25b9d7;
    background: #f0fbff;
    box-shadow: 0 0 0 3px rgba(37,185,215,0.1);
}
.copy-source-option input[type="radio"] {
    accent-color: #25b9d7;
    width: 16px;
    height: 16px;
    margin: 0;
}
.copy-source-name {
    font-size: 14px;
    font-weight: 500;
    color: #2d3748;
    flex: 1;
}
.copy-source-count {
    font-size: 12px;
    color: #718096;
    background: #edf2f7;
    padding: 2px 8px;
    border-radius: 10px;
}
.copy-modal-hint {
    margin: 14px 0 0 0;
    font-size: 12px;
    color: #a0aec0;
    font-style: italic;
}
.copy-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    background: #f7f9fc;
    border-top: 1px solid #e8ecf1;
}
.copy-modal-footer .btn {
    border-radius: 6px;
    font-size: 13px;
    padding: 8px 18px;
}

/* ============================
   MEDIA MANAGER
   ============================ */
.mm { padding: 10px 0; }
.mm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 16px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.mm-header-left { display: flex; align-items: center; gap: 12px; }
.mm-header-left h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0px !important;
}
.mm-badge {
    background: #25b9d7;
    color: #fff;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}
.mm-header-right {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}
.mm-header-right i { font-size: 14px; }
.mm-list { display: flex; flex-direction: column; gap: 8px; }
.mm-empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
}
.mm-empty i { font-size: 28px; display: block; margin-bottom: 10px; color: #cbd5e1; }
.mm-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.mm-card:hover { border-color: #cbd5e1; }
.mm-card.mm-saving { border-color: #f59e0b; }
.mm-card.mm-error { border-color: #ef4444; }
.mm-card-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s;
}
.mm-card-head:hover { background: #f8fafc; }
.mm-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #d1d5db;
    transition: background 0.3s;
}
.mm-status.saved { background: #22c55e; }
.mm-status.saving { background: #f59e0b; animation: mm-pulse 1s infinite; }
.mm-status.error { background: #ef4444; }
.mm-status.unsaved { background: #d1d5db; }
@keyframes mm-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.mm-chevron {
    color: #94a3b8;
    font-size: 12px;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.mm-card.open .mm-chevron { transform: rotate(180deg); }
.mm-type {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.mm-type-pdf { background: #dc3545; }
.mm-type-video { background: #0d6efd; }
.mm-type-youtube { background: #ff0000; }
.mm-type-link { background: #198754; }
.mm-type-document { background: #6c757d; }
.mm-card-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mm-card-file-info {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mm-card-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.mm-card-actions .btn { padding: 4px 8px; }
.mm-card-body {
    display: none;
    padding: 0 16px 16px;
    border-top: 1px solid #f1f5f9;
}
.mm-card.open .mm-card-body { display: block; }
.mm-row {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}
.mm-field {
    flex: 1;
    min-width: 0;
}
.mm-field-sm { flex: 0 0 110px; }
.mm-field-full { flex: 0 0 100%; }
.mm-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 4px;
}
.mm-field input[type="text"],
.mm-field input[type="url"],
.mm-field textarea,
.mm-field select {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 13px;
    color: #1e293b;
    transition: border-color 0.2s;
    background: #fff;
}
.mm-field input:focus,
.mm-field textarea:focus,
.mm-field select:focus {
    border-color: #25b9d7;
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 185, 215, 0.15);
}
.mm-field textarea { height: 70px; resize: vertical; }
.mm-upload {
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
}
.mm-upload:hover { border-color: #25b9d7; background: #f8fafc; }
.mm-upload.dragover { border-color: #25b9d7; background: #eff6ff; }
.mm-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.mm-upload-label {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.mm-upload-label i { font-size: 20px; color: #cbd5e1; }
.mm-file-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.mm-file-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.mm-file-icon.pdf { background: #fee2e2; color: #dc3545; }
.mm-file-icon.video { background: #dbeafe; color: #0d6efd; }
.mm-file-icon.image { background: #d1fae5; color: #198754; }
.mm-file-icon.doc { background: #e0e7ff; color: #4f46e5; }
.mm-file-icon.other { background: #f1f5f9; color: #64748b; }
.mm-file-info {
    flex: 1;
    min-width: 0;
}
.mm-file-name {
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mm-file-size { font-size: 11px; color: #94a3b8; }
.mm-file-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: #fee2e2;
    color: #dc3545;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: background 0.2s;
}
.mm-file-remove:hover { background: #fecaca; }
.mm-thumb-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}
.mm-thumb-img {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    object-fit: cover;
    background: #e2e8f0;
}
.mm-add {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 8px;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    justify-content: center;
}
.mm-add:hover {
    border-color: #25b9d7;
    color: #25b9d7;
    background: #f0fdfa;
}
.mm-add i { font-size: 14px; }
.mm-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    z-index: 9999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s;
    pointer-events: none;
}
.mm-toast.show { opacity: 1; transform: translateY(0); }
.mm-toast.success { background: #22c55e; }
.mm-toast.error { background: #ef4444; }
.mm-no-model {
    padding: 30px 20px;
    text-align: center;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
}

/* ============================
   IMPORT WIZARD
   ============================ */
.import-steps { display: flex; gap: 4px; margin-bottom: 20px; }
.import-step { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 6px; background: #f0f0f0; color: #999; font-size: 13px; font-weight: 600; }
.import-step.active { background: #25b9d7; color: #fff; }
.import-step .step-number { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.3); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.import-step-content { display: none; }
.import-step-content.active { display: block; }
.import-dropzone { border: 2px dashed #dee2e6; border-radius: 12px; padding: 40px; text-align: center; cursor: pointer; transition: border-color 0.2s; }
.import-dropzone:hover, .import-dropzone.dragover { border-color: #25b9d7; background: #f0faff; }
.import-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.import-image-item { text-align: center; }
.import-image-item img { max-width: 100%; height: 80px; object-fit: cover; border-radius: 4px; border: 2px solid transparent; }
.import-image-item input:checked + img { border-color: #25b9d7; }
.import-section { margin-bottom: 15px; }
.import-section .panel-heading { font-weight: 600; font-size: 13px; }
.import-section .panel-heading i { margin-right: 6px; }
.import-decl-panel { margin-bottom: 10px; }
.import-decl-heading { padding: 8px 12px !important; }
.import-decl-heading .badge { background: #25b9d7; font-size: 11px; }
.import-decl-chevron { transition: transform 0.2s; margin-right: 4px; }
.import-parts-table { margin-bottom: 5px; }
.import-parts-table input.form-control { padding: 4px 8px; height: 30px; font-size: 12px; }
.import-add-part-btn { margin-top: 5px; }

/* ============================
   LIST VIEW – Name column badges
   ============================ */
td .decl-badge { display: inline-block; background: #f0f4f8; border: 1px solid #e2e8f0; border-radius: 3px; padding: 1px 6px; margin: 1px 2px; font-size: 11px; color: #555; line-height: 1.4; }
td .decl-badge .decl-ref { color: #888; font-size: 10px; }

/* ============================
   SEO TAB
   ============================ */
#seo-tab { max-width: 800px; }
#seo-tab > h4 { margin: 0 0 4px; font-size: 16px; font-weight: 600; }
#seo-tab > p { margin-bottom: 24px; font-size: 13px; }

/* SERP Preview */
.seo-serp-wrapper { margin-bottom: 28px; }
.seo-serp-label { font-size: 12px; font-weight: 600; color: #6c757d; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; display: block; }
.seo-serp-card { background: #fff; border: 1px solid #dfe3e8; border-radius: 8px; padding: 18px 22px; box-shadow: 0 1px 4px rgba(0,0,0,.06); max-width: 620px; }
.seo-serp-url { font-family: arial, sans-serif; font-size: 13px; color: #70757a; margin-bottom: 4px; display: flex; align-items: center; gap: 6px; }
.seo-serp-favicon { flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: #f1f3f4; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.seo-serp-favicon img { width: 14px; height: 14px; }
.seo-serp-domain { color: #202124; font-size: 13px; }
.seo-serp-path { color: #70757a; font-size: 13px; }
.seo-serp-title { font-family: arial, sans-serif; font-size: 20px; line-height: 1.3; color: #1a0dab; cursor: pointer; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-serp-title:hover { text-decoration: underline; }
.seo-serp-desc { font-family: arial, sans-serif; font-size: 14px; line-height: 1.5; color: #4d5156; word-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* SEO Fields */
.seo-field { margin-bottom: 22px; }
.seo-field > label { font-weight: 600; font-size: 14px; color: #363a41; margin-bottom: 6px; display: block; }
.seo-field .help-block { font-size: 12px; color: #6c757d; margin-top: 4px; }
.seo-field-inner { position: relative; }
.seo-field-inner .form-control { font-size: 14px; }
.seo-field-inner textarea.form-control { resize: vertical; }

/* Character counter */
.seo-counter { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: #6c757d; }
.seo-counter-bar { flex: 1; max-width: 200px; height: 4px; background: #e9ecef; border-radius: 2px; overflow: hidden; }
.seo-counter-fill { height: 100%; background: #25b9d7; border-radius: 2px; transition: width .2s, background .2s; }
.seo-counter-fill.warn { background: #f39c12; }
.seo-counter-fill.over { background: #e74c3c; }

/* URL row */
.seo-url-row { display: flex; gap: 8px; }
.seo-url-row .form-control { flex: 1; }
.seo-url-row .btn { white-space: nowrap; }
