/* =========================================
   DEVIS.CSS — Styles pages Devis & Services
   Palette : Vert #64b22a, Blanc, Gris, Noir, Orange
   ========================================= */

/* ===== PAGE DEVIS CRÉER ===== */
.devis-page {
    background: #f5f6f5;
    min-height: 100vh;
}

/* En-tête page */
.devis-page-header {
    background: #fff;
    border-bottom: 3px solid #64b22a;
    padding: 0;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
}

.devis-page-header-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.devis-header-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.devis-breadcrumbs .mud-breadcrumb-item,
.devis-breadcrumbs .mud-breadcrumb-separator {
    color: #888 !important;
    font-size: 12px;
}

.devis-page-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.devis-title-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: #64b22a;
    border-radius: 7px;
    color: #fff;
}

.devis-title-icon .mud-icon-root {
    font-size: 17px !important;
}

.devis-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 7px;
    border: 1px solid #ddd;
    color: #444;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.18s;
    background: #f7f7f7;
}

.devis-back-btn:hover {
    background: #e8f5e0;
    border-color: #64b22a;
    color: #64b22a;
}

/* Corps de page */
.devis-page-body {
    max-width: 1600px;
    margin: 0 auto;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ===== SECTIONS ===== */
.devis-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.devis-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #64b22a 0%, #5ba526 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.devis-section-header .mud-icon-root {
    font-size: 18px !important;
    opacity: 0.9;
}

.devis-section-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
}

.devis-add-pneus-btn {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1.5px dashed rgba(255, 255, 255, 0.65);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.2px;
    background: rgba(255, 255, 255, 0.12);
    transition: all 0.18s;
    text-transform: none;
}

.devis-add-pneus-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    border-color: #fff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.devis-section-body {
    padding: 20px;
}

.devis-section-body.no-pad {
    padding: 0;
}

/* ===== TABLEAU PNEUS ===== */
.devis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
}

.devis-table thead tr {
    background: #f8faf6;
}

.devis-table thead th {
    padding: 10px 10px;
    text-align: center;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
    border-bottom: 2px solid #e8f5e0;
    white-space: nowrap;
}

.devis-table thead th:nth-child(2) {
    text-align: left;
}

.devis-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.12s;
}

.devis-table tbody tr:hover {
    background: #fafdf7;
}

.devis-table tbody tr:nth-child(even) {
    background: #f9fdf7;
}

.devis-table tbody tr:nth-child(even):hover {
    background: #f2fae9;
}

.devis-td-logo {
    padding: 8px 12px;
    text-align: center;
    min-width: 75px;
}

.devis-td-center {
    padding: 8px 6px;
    text-align: center;
    vertical-align: middle;
}

.devis-td-total {
    padding: 8px 14px;
    text-align: right;
    white-space: nowrap;
    font-size: 0.95rem;
    color: #2e7d32;
}

.devis-tr-subtotal td {
    background: #1a2a3a;
    color: #ccc;
    font-size: 0.82em;
    padding: 5px 16px;
    text-align: right;
    border-top: none;
}

.devis-tr-subtotal strong {
    color: #fff;
}

.devis-subtotal-sep {
    margin: 0 12px;
    color: #4a6070;
}

.devis-ref {
    color: #64b22a;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.devis-dim {
    color: #aaa;
    font-size: 11px;
}

.devis-prix-readonly {
    display: inline-block;
    font-weight: 600;
    font-size: 0.95em;
    color: #333;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    min-width: 80px;
    text-align: right;
}

.devis-ecotaxe {
    font-size: 10px;
    color: #bbb;
    margin-top: 2px;
}

/* Alerte marge négative */
.devis-td-alerte {
    background: #fff5f5 !important;
}
.devis-td-alerte input {
    color: #c62828 !important;
    font-weight: 700;
}

/* Badges délai */
.devis-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.devis-badge-success {
    background: #e8f5e9;
    color: #2e7d32;
}

.devis-badge-warning {
    background: #fff3e0;
    color: #e65100;
}

/* ===== EMPTY STATE PNEUS ===== */
.devis-empty-pneus {
    background: #fff;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #aaa;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.devis-empty-pneus p {
    margin: 12px 0 0;
    font-size: 14px;
}

.devis-empty-pneus a {
    color: #64b22a;
    text-decoration: none;
    font-weight: 600;
}

/* ===== SERVICES GRID ===== */
.devis-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 12px;
}

.devis-service-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e8e8e8;
    background: #fafafa;
    transition: all 0.18s;
}

.devis-service-card:hover {
    border-color: #c8e6a0;
    background: #f7fbf2;
}

.devis-service-card--selected {
    border-color: #64b22a;
    background: #f0f9e8;
    box-shadow: 0 2px 8px rgba(100, 178, 42, 0.12);
}

.devis-service-card-left {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex: 1;
}

.devis-service-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.devis-service-name {
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.devis-service-desc {
    font-size: 12px;
    color: #999;
}

.devis-service-card-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.devis-service-price {
    font-size: 13px;
    font-weight: 700;
    color: #64b22a;
    white-space: nowrap;
    background: #e8f5e0;
    padding: 4px 10px;
    border-radius: 6px;
}

/* Options PDF */
.devis-pdf-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 20px;
    padding: 10px 14px;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
}

.devis-pdf-options-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-right: 4px;
}

/* ===== TOTAUX + ACTIONS ===== */
.devis-bottom-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

/* Actions */
.devis-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    flex: 1;
    min-width: 280px;
    align-self: stretch;
    align-content: center;
}

.devis-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
    border: 2px solid transparent;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0.3px;
}

.devis-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.devis-btn-outline {
    background: transparent;
    border-color: #ccc;
    color: #555;
}

.devis-btn-outline:hover:not(:disabled) {
    border-color: #64b22a;
    color: #64b22a;
    background: #f0f9e8;
}

.devis-btn-primary {
    background: #64b22a;
    border-color: #64b22a;
    color: #fff;
}

.devis-btn-primary:hover:not(:disabled) {
    background: #5ba526;
    border-color: #5ba526;
    box-shadow: 0 4px 14px rgba(100, 178, 42, 0.35);
}

.devis-btn-pdf {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}

.devis-btn-pdf:hover:not(:disabled) {
    background: #333;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Totaux */
.devis-totaux {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    padding: 20px 28px;
    min-width: 300px;
}

.devis-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 5px 0;
    font-size: 13px;
    color: #555;
    border-bottom: 1px solid #f5f5f5;
}

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

.devis-total-ttc {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid #64b22a !important;
    border-bottom: none !important;
    font-size: 1.15rem;
    font-weight: 800;
    color: #2e7d32;
}

/* ===== PAGES HISTORIQUE DEVIS / SERVICES ===== */
.jmj-list-page {
    background: #f5f6f5;
    min-height: 100vh;
}

.jmj-list-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 3px solid #64b22a;
    padding: 22px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.jmj-list-header h1 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jmj-list-header h1 .mud-icon-root {
    background: #64b22a;
    border-radius: 7px;
    padding: 4px;
    font-size: 20px !important;
}

.jmj-list-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 28px;
}

.jmj-list-cta {
    background: #64b22a;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    transition: all 0.18s;
    font-family: 'Poppins', Arial, sans-serif;
}

.jmj-list-cta:hover {
    background: #5ba526;
    box-shadow: 0 4px 14px rgba(100, 178, 42, 0.35);
    color: #fff;
}

/* ===== STATUT CHIPS DEVIS ===== */
.statut-chip {
    display: inline-block;
    padding: 3px 11px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.statut-brouillon {
    background: #f5f5f5;
    color: #888;
}

.statut-finalise {
    background: #e8f5e0;
    color: #2e7d32;
}

.statut-envoye {
    background: #fff3e0;
    color: #e65100;
}

/* ===== STATUT CHIPS COMMANDES ===== */
.statut-cmd-envoyee {
    background: #e3f2fd;
    color: #1565c0;
}

.statut-cmd-livree {
    background: #e8f5e0;
    color: #2e7d32;
}

.statut-cmd-non_envoyee {
    background: #fce4ec;
    color: #b71c1c;
}

.statut-cmd-echec_ftp {
    background: #e3f2fd;
    color: #1565c0;
}

.statut-cmd-michelin {
    background: #e3f2fd;
    color: #1565c0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .devis-page-header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .devis-bottom-row {
        flex-direction: column-reverse;
    }

    .devis-totaux {
        width: 100%;
    }

    .devis-services-grid {
        grid-template-columns: 1fr;
    }

    .jmj-list-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {

    .devis-page-body,
    .jmj-list-body {
        padding: 14px 12px;
    }

    .devis-page-header-inner {
        padding: 14px 16px;
    }

    .jmj-list-header {
        padding: 14px 16px;
    }
}

/* ===== SEARCH CARD (historique devis / commandes) ===== */
.jmj-search-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    border-left: 4px solid #64b22a;
    padding: 20px 24px;
    margin-bottom: 20px;
}

.jmj-search-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #64b22a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.jmj-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

.jmj-search-btn {
    background: #64b22a;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', Arial, sans-serif;
    transition: all 0.18s;
    white-space: nowrap;
}

.jmj-search-btn:hover {
    background: #5ba526;
    box-shadow: 0 4px 12px rgba(100,178,42,0.3);
}

.jmj-search-reset {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Poppins', Arial, sans-serif;
    transition: all 0.18s;
}

.jmj-search-reset:hover {
    background: #ffe0e0;
    border-color: #e57373;
    color: #c62828;
}

/* ===== TABLE HISTORIQUE ===== */
.jmj-hist-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.jmj-hist-table thead tr {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 3px solid #64b22a;
}

.jmj-hist-table thead th {
    padding: 11px 14px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.jmj-hist-table thead th.col-right {
    text-align: right;
}

.jmj-hist-table thead th.col-center {
    text-align: center;
}

.jmj-hist-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.12s;
}

.jmj-hist-table tbody tr:hover {
    background: #f9fdf5 !important;
}

.jmj-hist-table tbody tr.cmd-first-row {
    border-top: 2px solid #e0e0e0;
}

.jmj-hist-table tbody tr.cmd-even {
    background: #fff;
}

.jmj-hist-table tbody tr.cmd-odd {
    background: #f8f9f8;
}

.jmj-hist-table td {
    padding: 9px 14px;
    vertical-align: middle;
}

.jmj-hist-table td.col-right {
    text-align: right;
}

.jmj-hist-table td.col-center {
    text-align: center;
}

.jmj-hist-num {
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.jmj-hist-date {
    color: #555;
    white-space: nowrap;
    font-size: 12px;
}

.jmj-hist-comment {
    color: #888;
    font-size: 12px;
    font-style: italic;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.jmj-hist-ref {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #2e7d32;
    font-weight: 600;
}

.jmj-hist-libelle {
    color: #333;
    font-size: 12px;
}

.jmj-hist-prix {
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
    white-space: nowrap;
}

.jmj-hist-qty {
    text-align: center;
    font-weight: 600;
    color: #555;
}

.jmj-hist-statut {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    background: #e8f5e0;
    color: #2e7d32;
}

/* Devis list table */
.jmj-devis-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.jmj-devis-table thead tr {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-bottom: 3px solid #64b22a;
}

.jmj-devis-table thead th {
    padding: 11px 16px;
    text-align: left;
    color: #fff;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.jmj-devis-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.12s;
}

.jmj-devis-table tbody tr:hover {
    background: #f9fdf5;
}

.jmj-devis-table tbody tr:nth-child(even) {
    background: #f8f9f8;
}

.jmj-devis-table td {
    padding: 11px 16px;
    vertical-align: middle;
}

.jmj-devis-num {
    font-weight: 700;
    color: #2e7d32;
    font-family: 'Courier New', monospace;
    font-size: 12px;
}

.jmj-devis-societe {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}

.jmj-devis-contact {
    color: #888;
    font-size: 11px;
}

.jmj-devis-date {
    color: #555;
    font-size: 12px;
    white-space: nowrap;
}

.jmj-devis-expir {
    color: #e65100;
    font-size: 12px;
    white-space: nowrap;
}

.jmj-devis-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.jmj-icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 16px;
    color: #666;
    background: #f5f5f5;
    text-decoration: none;
}

.jmj-icon-btn:hover { background: #e8f5e0; color: #2e7d32; }
.jmj-icon-btn.danger:hover { background: #fde8e8; color: #c62828; }
.jmj-icon-btn.pdf:hover { background: #f3e5f5; color: #7b1fa2; }

.jmj-devis-commander-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: #2e7d32;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, transform 0.1s;
    line-height: 1;
    height: 28px;
}
.jmj-devis-commander-btn:hover {
    background: #1b5e20;
    transform: translateY(-1px);
}
.jmj-devis-commander-btn:active {
    transform: translateY(0);
}

.jmj-devis-expire-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: #f5f5f5;
    color: #9e9e9e;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: default;
    white-space: nowrap;
    height: 28px;
    user-select: none;
}

/* ===== DEVIS PREVIEW DIALOG ===== */
.dpv-body {
    padding: 4px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dpv-client-card {
    display: flex;
    gap: 20px;
    background: #f9fafb;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.dpv-client-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 160px;
}

.dpv-client-societe {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.97rem;
    font-weight: 700;
    color: #1a1a1a;
}

.dpv-client-contact {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #555;
}

.dpv-client-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    font-size: 0.82rem;
    color: #666;
    align-items: center;
}

.dpv-client-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dpv-section-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2e7d32;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: -6px;
}

.dpv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.87rem;
}

.dpv-table thead th {
    background: #f5f6f5;
    border-bottom: 2px solid #e0e0e0;
    padding: 7px 10px;
    color: #555;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.dpv-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
}

.dpv-table tbody tr:hover {
    background: #fafafa;
}

.dpv-table tbody td {
    padding: 8px 10px;
    vertical-align: middle;
}

.dpv-comment {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.83rem;
    color: #666;
    background: #fffde7;
    border-left: 3px solid #ffd54f;
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    font-style: italic;
}

.dpv-totaux {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-end;
    padding: 10px 0 0;
    border-top: 1px solid #eee;
}

.dpv-total-row {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    font-size: 0.87rem;
    color: #555;
    min-width: 240px;
}

.dpv-total-ttc {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1a1a1a;
    border-top: 2px solid #eee;
    padding-top: 6px;
    margin-top: 2px;
}

/* ===== INFO SOCIETE PAGE ===== */
.jmj-settings-page {
    background: #f5f6f5;
    min-height: 100vh;
}

.jmj-settings-body {
    max-width: 900px;
    margin: 0 auto;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.jmj-settings-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    overflow: hidden;
}

.jmj-settings-section-header {
    background: linear-gradient(90deg, #f8fef4 0%, #fff 100%);
    border-bottom: 2px solid #f0f0f0;
    border-left: 4px solid #64b22a;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    gap: 9px;
}

.jmj-settings-section-header .mud-icon-root {
    color: #64b22a;
    font-size: 20px !important;
}

.jmj-settings-section-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.jmj-settings-section-body {
    padding: 22px;
}

.jmj-settings-logo-preview {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.jmj-settings-logo-img {
    max-width: 160px;
    max-height: 100px;
    object-fit: contain;
    border: 1px dashed #ccc;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
}

.jmj-settings-logo-placeholder {
    width: 160px;
    height: 100px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 13px;
    flex-direction: column;
    gap: 6px;
}

.jmj-settings-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 24px;
    background: #64b22a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Poppins', Arial, sans-serif;
    transition: all 0.18s;
    margin-top: 10px;
}

.jmj-settings-save-btn:hover {
    background: #5ba526;
    box-shadow: 0 4px 14px rgba(100,178,42,0.3);
}

.jmj-settings-save-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .jmj-search-row { flex-direction: column; }
    .jmj-settings-body { padding: 14px 12px; }
    .jmj-hist-comment { display: none; }
}