.rma-wrap{background:#f8fafc;border-radius:22px;padding:24px;margin:10px 0;color:#0f172a}.rma-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.rma-header h1,.rma-wrap h1{font-weight:800;letter-spacing:-.03em;margin:0 0 8px}.rma-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:18px 0}.rma-kpis>div,.rma-card,.rma-panel{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 12px 35px rgba(15,23,42,.08);padding:18px}.rma-kpis span{display:block;color:#64748b;font-size:13px}.rma-kpis strong{display:block;font-size:30px;margin-top:6px}.rma-panels{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.rma-panel canvas{max-height:280px}.rma-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.rma-filters{display:flex;gap:10px;flex-wrap:wrap}.rma-filters .form-select,.rma-filters .form-control{max-width:260px}.rma-alert{padding:12px;border-left:5px solid #f59e0b;background:#fff7ed;border-radius:12px;margin-bottom:10px}.rma-alert.success{border-color:#16a34a;background:#f0fdf4}.rma-timeline{border-left:4px solid #2563eb;padding:8px 0 8px 12px;margin:8px 0}.rma-timeline span{display:block;color:#64748b;font-size:13px}@media(max-width:1000px){.rma-kpis{grid-template-columns:repeat(2,1fr)}.rma-panels,.rma-form-grid{grid-template-columns:1fr}.rma-header{display:block}}@media print{.btn,.rma-filters{display:none!important}.rma-wrap{background:white;padding:0}.rma-card,.rma-panel{box-shadow:none}}


.rma-button-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.rma-button-grid .btn {
    padding: 14px 18px;
    font-weight: 700;
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 800px) {
    .rma-button-grid {
        grid-template-columns: 1fr;
    }
}

.rma-card .btn-danger{margin-left:8px;}


.rma-popup-select {
    min-height: 44px;
    border-radius: 12px;
}


.rma-wrap label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}


.rma-wrap label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}

.rma-accessories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.rma-check {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

@media (max-width: 800px) {
    .rma-accessories-grid {
        grid-template-columns: 1fr;
    }
}


.rma-search-form {
    border-left: 4px solid #2563eb;
}

.rma-search-form .btn {
    min-width: 100px;
}


.rma-field-plus {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.rma-field-plus .form-select,
.rma-field-plus .form-control {
    flex: 1;
}

.rma-plus-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 42px;
    text-align: center;
    border-radius: 12px;
}


.rma-wrap .btn.disabled {
    opacity: .55;
    pointer-events: none;
}


.rma-company-header {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.rma-company-logo img {
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
}

.rma-company-data {
    line-height: 1.45;
    color: #334155;
}

.rma-system-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-top: 22px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.35;
}

.rma-system-footer span:last-child {
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .rma-system-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .rma-system-footer span:last-child {
        text-align: left;
        white-space: normal;
    }
}

@media print {
    .rma-company-header {
        border: none;
        border-bottom: 1px solid #999;
        border-radius: 0;
        padding: 0 0 10px 0;
        margin-bottom: 18px;
    }

    .rma-company-logo img {
        max-width: 160px;
        max-height: 65px;
    }

    .rma-system-footer {
        color: #666;
        font-size: 9px;
        margin-top: 12px;
    }
}


.rma-status-block {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 16px;
    margin-top: 8px;
}


.rma-status-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.rma-status-actions .btn {
    width: fit-content;
}


.rma-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rma-detail-grid > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
}

@media (max-width: 900px) {
    .rma-detail-grid {
        grid-template-columns: 1fr;
    }
}


.rma-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.rma-pagination-actions {
    display: flex;
    gap: 8px;
}

.rma-pagination .disabled {
    opacity: .55;
    pointer-events: none;
}

@media (max-width: 700px) {
    .rma-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ms-2{margin-left:.5rem;}


.rma-dashboard-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0 24px 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.rma-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    transition: all .15s ease-in-out;
}

.rma-menu-button:hover,
.rma-menu-button:focus {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

.rma-system-menu .rma-menu-button.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.rma-menu .rma-menu-button.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.rma-system-logo {
    display: block;
    max-width: 220px;
    max-height: 100px;
    object-fit: contain;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    background: #fff;
    margin: 8px 0;
}

.rma-permission-column-toggle {
    margin-top: 6px;
    white-space: nowrap;
}

.rma-inline-association-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rma-inline-association-form .form-select {
    min-width: 240px;
}

@media (max-width: 800px) {
    .rma-inline-association-form {
        align-items: stretch;
        flex-direction: column;
    }
}

.rma-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 900px) {
    .rma-dashboard-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .rma-menu-button {
        width: 100%;
    }

    .rma-dashboard-grid {
        grid-template-columns: 1fr;
    }
}


.rma-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.rma-kpi {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.rma-kpi strong {
    display: block;
    font-size: 28px;
    color: #1e293b;
}

.rma-kpi span {
    color: #64748b;
    font-weight: 600;
}

.rma-status-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rma-status-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rma-status-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.rma-status-bar-bg {
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.rma-status-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
}

@media (max-width: 900px) {
    .rma-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.rma-timeline { display:flex; flex-direction:column; gap:12px; }
.rma-timeline-item { display:grid; grid-template-columns: 170px 1fr; gap:12px; padding:12px; border-left:4px solid #2563eb; background:#f8fafc; border-radius:12px; }
.rma-timeline-date { font-weight:700; color:#475569; }
.rma-timeline-content p { margin:.3rem 0; }
.rma-sla-block { background:#fff7ed; border:1px solid #fed7aa; border-radius:16px; padding:16px; }


.rma-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}
@media (max-width: 900px) {
    .rma-admin-grid { grid-template-columns: 1fr; }
}


.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 700;
    border-radius: .375rem;
}
.bg-info { background: #0ea5e9; color: #fff; }
.bg-primary { background: #2563eb; color: #fff; }


.rma-unread { font-weight: 700; background: #eff6ff; }
.rma-notification-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rma-notification-list li { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; }
.rma-notification-list small { display: block; color: #64748b; margin-top: 3px; }


.rma-qr-print {
    float: right;
    text-align: center;
    margin: 0 0 12px 18px;
}
.rma-qr-print img {
    border: 1px solid #cbd5e1;
    padding: 4px;
    background: #fff;
}
@media print {
    .rma-qr-print {
        display: block !important;
        page-break-inside: avoid;
    }
}


.rma-readonly {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.rma-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}
.rma-client-portal .rma-card h3 {
    margin-top: 0;
}


/* v3.1.8 — Dados da Empresa backend */
.rma-company-admin-layout label,
.rma-company-admin-layout .control-label,
.rma-company-admin-layout .form-label {
    display: block !important;
    margin-bottom: 7px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}
.rma-company-admin-layout .control-group,
.rma-company-admin-layout .form-group,
.rma-company-admin-layout .mb-3,
.rma-company-admin-layout .row > div,
.rma-company-admin-layout .rma-form-field {
    margin-bottom: 18px !important;
}
.rma-company-logo-area,
.rma-company-admin-layout input[type="file"] {
    display: block !important;
    clear: both !important;
}
.rma-company-logo-area img,
.rma-company-admin-layout img[src*="logo"],
.rma-company-admin-layout img[alt*="logo"],
.rma-company-admin-layout img[alt*="Logo"] {
    display: block !important;
    max-width: 220px !important;
    max-height: 120px !important;
    width: auto !important;
    height: auto !important;
    margin: 8px 0 !important;
}
.rma-company-logo-area small,
.rma-company-logo-area .form-text,
.rma-company-logo-area .help-block,
.rma-company-logo-area .text-muted {
    display: block !important;
    clear: both !important;
    margin-top: 8px !important;
    margin-left: 0 !important;
}

/* RMA_FIELD_LIMIT_333 */
.rma-long-field {
    width: 100%;
    min-height: 42px;
}
textarea.rma-long-field {
    min-height: 105px;
    resize: vertical;
}

/* RMAFORM_REBUILD_336 */
.rma-form-page .rma-actions-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.rma-form-grid-wide {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.rma-long-field {
    width: 100%;
    min-height: 105px;
    resize: vertical;
}
.rma-card-sub {
    padding: 12px;
    border: 1px solid #dfe3ea;
    border-radius: 10px;
    background: #fafafa;
}
.rma-timeline {
    display: grid;
    gap: 10px;
}
.rma-timeline-item {
    border-left: 3px solid #c7ced8;
    padding-left: 12px;
}

/* EQUIP_SEARCH_347 */
.rma-table th,
.rma-table td {
    vertical-align: middle;
}
.rma-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

/* SLA_POPUP_351 */
.rma-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.rma-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.rma-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

/* EQUIPMENT_FORM_352 */
.rma-equipment-form h2 {
    margin-top: 1rem;
}
.rma-equipment-form .text-muted {
    margin-top: -0.25rem;
}

/* EQUIP_LIST_353 */
.rma-table th,
.rma-table td {
    vertical-align: middle;
}
.rma-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* DASHBOARD_DETAILED_357 */
.rma-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
.rma-stat-card{background:#fff;border:1px solid #dfe3ea;border-radius:12px;padding:16px;box-shadow:0 2px 8px rgba(0,0,0,.04)}
.rma-stat-card span{display:block;color:#5f6b7a;font-size:.9rem}
.rma-stat-card strong{display:block;font-size:2rem;margin:6px 0}
.rma-stat-card a{font-size:.9rem}

/* DASHBOARD_303_RESTORE_358 */
.rma-wrap{background:#f8fafc;border-radius:22px;padding:24px;margin:10px 0;color:#0f172a}.rma-header{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.rma-header h1,.rma-wrap h1{font-weight:800;letter-spacing:-.03em;margin:0 0 8px}.rma-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin:18px 0}.rma-kpis>div,.rma-card,.rma-panel{background:#fff;border:1px solid #e2e8f0;border-radius:18px;box-shadow:0 12px 35px rgba(15,23,42,.08);padding:18px}.rma-kpis span{display:block;color:#64748b;font-size:13px}.rma-kpis strong{display:block;font-size:30px;margin-top:6px}.rma-panels{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.rma-panel canvas{max-height:280px}.rma-form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.rma-filters{display:flex;gap:10px;flex-wrap:wrap}.rma-filters .form-select,.rma-filters .form-control{max-width:260px}.rma-alert{padding:12px;border-left:5px solid #f59e0b;background:#fff7ed;border-radius:12px;margin-bottom:10px}.rma-alert.success{border-color:#16a34a;background:#f0fdf4}.rma-timeline{border-left:4px solid #2563eb;padding:8px 0 8px 12px;margin:8px 0}.rma-timeline span{display:block;color:#64748b;font-size:13px}@media(max-width:1000px){.rma-kpis{grid-template-columns:repeat(2,1fr)}.rma-panels,.rma-form-grid{grid-template-columns:1fr}.rma-header{display:block}}@media print{.btn,.rma-filters{display:none!important}.rma-wrap{background:white;padding:0}.rma-card,.rma-panel{box-shadow:none}}


.rma-button-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.rma-button-grid .btn {
    padding: 14px 18px;
    font-weight: 700;
    border-radius: 12px;
    text-align: center;
}

@media (max-width: 800px) {
    .rma-button-grid {
        grid-template-columns: 1fr;
    }
}

.rma-card .btn-danger{margin-left:8px;}


.rma-popup-select {
    min-height: 44px;
    border-radius: 12px;
}


.rma-wrap label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}


.rma-wrap label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #334155;
}

.rma-accessories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.rma-check {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px;
}

@media (max-width: 800px) {
    .rma-accessories-grid {
        grid-template-columns: 1fr;
    }
}


.rma-search-form {
    border-left: 4px solid #2563eb;
}

.rma-search-form .btn {
    min-width: 100px;
}


.rma-field-plus {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.rma-field-plus .form-select,
.rma-field-plus .form-control {
    flex: 1;
}

.rma-plus-btn {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    font-size: 24px;
    font-weight: 800;
    line-height: 42px;
    text-align: center;
    border-radius: 12px;
}


.rma-wrap .btn.disabled {
    opacity: .55;
    pointer-events: none;
}


.rma-company-header {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.rma-company-logo img {
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
}

.rma-company-data {
    line-height: 1.45;
    color: #334155;
}

@media print {
    .rma-company-header {
        border: none;
        border-bottom: 1px solid #999;
        border-radius: 0;
        padding: 0 0 10px 0;
        margin-bottom: 18px;
    }

    .rma-company-logo img {
        max-width: 160px;
        max-height: 65px;
    }
}


.rma-status-block {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 16px;
    margin-top: 8px;
}


.rma-status-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.rma-status-actions .btn {
    width: fit-content;
}


.rma-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rma-detail-grid > div {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
}

@media (max-width: 900px) {
    .rma-detail-grid {
        grid-template-columns: 1fr;
    }
}


.rma-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.rma-pagination-actions {
    display: flex;
    gap: 8px;
}

.rma-pagination .disabled {
    opacity: .55;
    pointer-events: none;
}

@media (max-width: 700px) {
    .rma-pagination {
        flex-direction: column;
        align-items: flex-start;
    }
}

.ms-2{margin-left:.5rem;}


.rma-dashboard-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0 24px 0;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.rma-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    transition: all .15s ease-in-out;
}

.rma-menu-button:hover,
.rma-menu-button:focus {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    text-decoration: none;
}

.rma-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 900px) {
    .rma-dashboard-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .rma-menu-button {
        width: 100%;
    }

    .rma-dashboard-grid {
        grid-template-columns: 1fr;
    }
}


.rma-dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.rma-kpi {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    text-align: center;
}

.rma-kpi strong {
    display: block;
    font-size: 28px;
    color: #1e293b;
}

.rma-kpi span {
    color: #64748b;
    font-weight: 600;
}

.rma-status-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rma-status-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rma-status-label {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-weight: 600;
}

.rma-status-bar-bg {
    height: 12px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.rma-status-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 999px;
}

@media (max-width: 900px) {
    .rma-dashboard-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.rma-timeline { display:flex; flex-direction:column; gap:12px; }
.rma-timeline-item { display:grid; grid-template-columns: 170px 1fr; gap:12px; padding:12px; border-left:4px solid #2563eb; background:#f8fafc; border-radius:12px; }
.rma-timeline-date { font-weight:700; color:#475569; }
.rma-timeline-content p { margin:.3rem 0; }
.rma-sla-block { background:#fff7ed; border:1px solid #fed7aa; border-radius:16px; padding:16px; }


.rma-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}
@media (max-width: 900px) {
    .rma-admin-grid { grid-template-columns: 1fr; }
}


.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 700;
    border-radius: .375rem;
}
.bg-info { background: #0ea5e9; color: #fff; }
.bg-primary { background: #2563eb; color: #fff; }


.rma-unread { font-weight: 700; background: #eff6ff; }
.rma-notification-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rma-notification-list li { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; }
.rma-notification-list small { display: block; color: #64748b; margin-top: 3px; }


.rma-qr-print {
    float: right;
    text-align: center;
    margin: 0 0 12px 18px;
}
.rma-qr-print img {
    border: 1px solid #cbd5e1;
    padding: 4px;
    background: #fff;
}
@media print {
    .rma-qr-print {
        display: block !important;
        page-break-inside: avoid;
    }
}


.rma-readonly {
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.rma-status-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-weight: 700;
}
.rma-client-portal .rma-card h3 {
    margin-top: 0;
}

/* RMA_MODULE_REBUILD_360 */
.rma-modal-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9999;align-items:center;justify-content:center;padding:20px}
.rma-modal{background:#fff;border-radius:12px;max-width:900px;width:100%;max-height:85vh;overflow:auto;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.rma-modal-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:12px}
.rma-form-grid-wide{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.rma-long-field{width:100%;min-height:105px;resize:vertical}

/* RMA_ATTACHMENTS_365 */
.rma-attachments-list {
    margin: 0;
    padding-left: 1.2rem;
}
.rma-attachments-list li {
    margin: .35rem 0;
}

/* RMA_TIMELINE_368 */
.rma-timeline{display:grid;gap:10px;margin-top:10px}
.rma-timeline-item{border-left:3px solid #c7ced8;padding:8px 0 8px 12px;background:#fafafa;border-radius:6px}
.rma-timeline-item strong{display:block}
.rma-timeline-item span{display:block;color:#6c757d;font-size:.9rem;margin:2px 0}

/* RMA_SECTION_CARD_370 */
.rma-main-form-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
.rma-section-card {
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.rma-section-card > h2:first-child,
.rma-section-card > .mt-4:first-child {
    margin-top: 0 !important;
}
.rma-section-card h2 {
    border-bottom: 1px solid #edf0f4;
    padding-bottom: 10px;
    margin-bottom: 16px;
}
.rma-section-card .rma-form-grid {
    margin-top: 0;
}
 
/*RMA_BUTTON_ENABLE_371*/
.rma-action-disabled{
opacity:.5;
pointer-events:auto;
filter:grayscale(.4);
}

/*TIMELINE_LINE_372*/
.rma-timeline-item-line{
padding:8px 0;
border-bottom:1px solid #eceff3;
font-size:.95rem;
}

/* RMA_EQUIPMENT_READONLY_DATA_377 */
.rma-form-page .readonly,
.rma-form-page input[readonly],
.rma-form-page select[disabled] {
    background-color: #f5f6f8;
    cursor: not-allowed;
}

/* EQUIP_SECTION_CARD_379 */
.equip-main-form-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}
.equip-section-card {
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.equip-section-card > h2:first-child,
.equip-section-card > .mt-4:first-child {
    margin-top: 0 !important;
}
.equip-section-card h2 {
    border-bottom: 1px solid #edf0f4;
    padding-bottom: 10px;
    margin-bottom: 16px;
}

/* RMA_READONLY_SLA_383 */
.rma-form-page .readonly,
.rma-form-page input[readonly],
.rma-form-page select[disabled] {
    background-color: #f5f6f8;
    cursor: not-allowed;
}
.rma-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.rma-modal {
    background: #fff;
    border-radius: 12px;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow: auto;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.rma-modal-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

/* RMA_EQUIPMENT_PLUS_POPUP_385 */
#rma_new_equipment_popup {
    min-width: 42px;
    font-weight: 700;
}

/* v3.8.6 alinhamento botão + equipamento */
.rma-equip-select-row{
    align-items:center!important;
}
#rma_new_equipment_popup{
    height:38px;
    min-width:38px;
    margin-top:24px;
    padding:0 12px;
    display:flex;
    align-items:center;
    justify-content:center;
}
#product_code_display{
    max-width:75%;
}

/* RMA_EQUIP_BRAND_387 */
#product_code_display {
    max-width: 70%;
}
#product_brand_display {
    max-width: 85%;
}

/* RMA_AUTO_FIELDS_READONLY_388 */
.rma-form-page .readonly,
.rma-form-page input[readonly],
.rma-form-page select[disabled] {
    background-color: #f5f6f8 !important;
    color: #495057;
    cursor: not-allowed;
}

/* v3.8.9 alinhamento botão + */
.rma-equip-select-row{
 display:grid !important;
 grid-template-columns:1fr auto auto;
 gap:10px;
 align-items:end !important;
 width:100%;
}
#rma_new_equipment_popup{
 margin-top:0 !important;
 height:40px;
 min-width:40px;
 border-radius:6px;
 background: var(--template-bg-primary,#0d6efd);
 color:#fff;
 border:1px solid var(--template-bg-primary,#0d6efd);
 font-weight:700;
}
#rma_new_equipment_popup:hover{
 opacity:.9;
}
#product_code_display{
 width:100%;
 max-width:none !important;
}

/* CLIENT_FIELDS_397 */
.rma-client-grid-397 {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
}
.rma-client-grid-397 > div {
    width: 100%;
}
@media (max-width: 768px) {
    .rma-client-grid-397 {
        grid-template-columns: 1fr;
    }
}

/* RMA_CLOSURE_MODULE_398 */
.rma-closure-page .readonly,.rma-view-page .readonly{background-color:#f5f6f8!important;cursor:not-allowed;}

/* RMA_LIST_ACTIONS_401 */
.rma-list-actions-inline {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
}
.rma-actions-cell {
    white-space: nowrap;
}
.rma-list-action-btn,
.rma-list-actions-inline .btn {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}
.rma-list-action-btn:hover,
.rma-list-actions-inline .btn:hover {
    background-color: #0b5ed7 !important;
    border-color: #0a58ca !important;
    color: #fff !important;
}

/* RMA_EDIT_VIEW_GROUP_403 */
.RMA_EDIT_VIEW_GROUP_403,
.rma-list-actions-inline {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
}
.RMA_EDIT_VIEW_GROUP_403 .btn,
.rma-list-action-btn {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: #fff !important;
}

/* RMA_STATUS_DATE_VIEW_404 */
.rma-view-page .readonly,
.rma-view-page input[readonly],
.rma-view-page textarea[readonly] {
    background-color:#f5f6f8!important;
    cursor:not-allowed;
}

/* RMA_SELECTION_ACTIONS_406 */
.rma-selected-id-406 { transform: scale(1.15); }
#rma_view_selected_406,
#rma_edit_selected_406 {
    background-color:#0d6efd!important;
    border-color:#0d6efd!important;
    color:#fff!important;
}

/* RMA_SELECTION_ACTIONS_409 */
.RMA_SELECTION_ACTIONS_409 {
    display:flex;
    justify-content:flex-end;
    gap:8px;
}
.rma-selected-id-409 {
    transform:scale(1.15);
}
#rma_view_selected_409,
#rma_edit_selected_409 {
    background-color:#0d6efd!important;
    border-color:#0d6efd!important;
    color:#fff!important;
}

/* RMA_SELECTION_ACTIONS_410 */
.RMA_SELECTION_ACTIONS_410 {
    display:flex;
    justify-content:flex-end;
    gap:8px;
}
.rma-selected-id-410 {
    transform:scale(1.15);
}
#rma_view_selected_410,
#rma_edit_selected_410 {
    background-color:#0d6efd!important;
    border-color:#0d6efd!important;
    color:#fff!important;
}

/* RMA_SELECTION_ACTIONS_411 */
.RMA_SELECTION_ACTIONS_411 {
    display:flex;
    justify-content:flex-end;
    gap:8px;
}
.rma-selected-url-411 {
    transform:scale(1.15);
}
#rma_view_selected_411,
#rma_edit_selected_411 {
    background-color:#0d6efd!important;
    border-color:#0d6efd!important;
    color:#fff!important;
}

/* RMA_SELECTION_ACTIONS_412 */
.RMA_SELECTION_ACTIONS_411,
.RMA_SELECTION_ACTIONS_412 {
    display:flex;
    justify-content:flex-end;
    gap:8px;
}

/* RMAFORM_READONLY_VIEW_413 */
.rma-form-page .readonly,
.rma-view-page .readonly,
input[readonly],
textarea[readonly],
select[disabled] {
    background-color:#f5f6f8!important;
}

/* RMA_SELECTION_ACTIONS_414 */
.RMA_SELECTION_ACTIONS_414 { display:flex; justify-content:flex-end; gap:8px; }
.rma-selected-url-414 { transform:scale(1.15); }
#rma_view_selected_414, #rma_edit_selected_414 {
    background-color:#0d6efd!important; border-color:#0d6efd!important; color:#fff!important;
}

.RMA_REQUIRED_NOTICE_416{margin-top:10px;color:#b02a37;font-size:.95rem;font-style:italic}
/* RMA_REQUIRED_NOTICE_417_STYLE */
.rma-required-note {
    margin: -4px 0 14px 0;
    padding: 8px 10px;
    border-left: 4px solid #b02a37;
    background: #fff5f5;
    color: #842029;
    font-size: 0.95rem;
    font-style: italic;
}

/* RMA_REQUIRED_NOTICE_418_STYLE */
.rma-required-note{margin:6px 0 14px 0;padding:8px 10px;border-left:4px solid #b02a37;background:#fff5f5;color:#842029;font-size:.95rem;font-style:italic;}

/* RMA_DELETED_STYLE_421 */
.RMA_DELETED_BANNER_421 { font-size:1.1rem; margin:12px 0; }
.RMA_DELETED_LIST_MARKER_421 strong,.text-danger{ color:#b02a37!important; }
.RMA_DELETE_BUTTON_421{ background-color:#dc3545!important; border-color:#dc3545!important; color:#fff!important; }

/* RMA_DELETED_VISIBLE_423_STYLE */
.RMA_DELETED_VISIBLE_423 strong,
.RMA_DELETED_LIST_MARKER_421 strong {
    color:#b02a37!important;
    font-weight:700;
}

/* RMA_PDF_BUTTON_424_STYLE */
.RMA_PDF_BUTTON_424 {
    background-color:#0d6efd!important;
    border-color:#0d6efd!important;
    color:#fff!important;
}

/* RMA_LIST_ALIGNMENT_425_STYLE */
.RMA_PDF_BUTTON_425 { display:inline-block!important; background-color:#0d6efd!important; border-color:#0d6efd!important; color:#fff!important; }
.RMA_DELETED_LIST_HEAD_425, .RMA_DELETED_LIST_MARKER_425, .RMA_SELECT_HEADER_425, .RMA_SELECT_VALUE_425 { text-align:center!important; vertical-align:middle!important; white-space:nowrap; }
.rma-table th, .rma-table td { vertical-align:middle!important; }

/* RMA_REPAIR_CONTROL_610 */
.rma-repair-control {
    margin-top: 16px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
}
.rma-repair-labels,
.rma-repair-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.rma-repair-labels {
    margin-bottom: 8px;
    color: #334155;
    font-weight: 700;
}
.rma-repair-progress {
    flex: 1;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}
.rma-repair-progress-fill {
    height: 100%;
    border-radius: 999px;
}
.rma-repair-days {
    min-width: 150px;
    text-align: right;
}
.rma-repair-green .rma-repair-progress-fill,
.rma-repair-dot.rma-repair-green {
    background: #16a34a;
}
.rma-repair-brown .rma-repair-progress-fill,
.rma-repair-dot.rma-repair-brown {
    background: #8b5e34;
}
.rma-repair-red .rma-repair-progress-fill,
.rma-repair-dot.rma-repair-red {
    background: #dc2626;
}
.rma-repair-green .rma-repair-days { color: #166534; }
.rma-repair-brown .rma-repair-days { color: #6b3f16; }
.rma-repair-red .rma-repair-days { color: #991b1b; }
.rma-repair-overdue {
    margin-top: 10px;
    color: #991b1b;
    font-weight: 800;
}
.rma-repair-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px #cbd5e1;
}
.rma-repair-login-alert ul {
    margin: 8px 0 0 18px;
}
.rma-report-conditions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 14px;
}
.rma-results-table th,
.rma-results-table td {
    vertical-align: top;
}
.rma-results-table td:nth-child(11),
.rma-results-table td:nth-child(12) {
    max-width: 220px;
    white-space: normal;
}
.rma-dashboard-kpis-620 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.rma-kpi-danger strong {
    color: #dc2626;
}
.rma-kanban-620 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
}
.rma-kanban-col-620 {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
    background: #fff;
}
.rma-kanban-col-620:hover {
    border-color: #2563eb;
    text-decoration: none;
}
.rma-kanban-dot-620 {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.rma-calendar-list-620 {
    display: grid;
    gap: 10px;
}
.rma-calendar-item-620 {
    display: grid;
    grid-template-columns: 110px 120px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #bbf7d0;
    border-left: 5px solid #16a34a;
    border-radius: 8px;
    color: #0f172a;
    text-decoration: none;
}
.rma-calendar-item-620.is-overdue {
    border-color: #fecaca;
    border-left-color: #dc2626;
}
.rma-signature-pad-620 {
    width: 100%;
    max-width: 520px;
    height: 140px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    touch-action: none;
}
.rma-signature-preview-620 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 520px;
    min-height: 140px;
    margin: 8px 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
}
.rma-signature-preview-620 img {
    max-width: 100%;
    max-height: 140px;
    object-fit: contain;
}
.rma-qr-reader-620 video {
    width: 100%;
    max-width: 520px;
    min-height: 260px;
    background: #0f172a;
    border-radius: 8px;
}
@media (max-width: 700px) {
    .rma-dashboard-kpis-620 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .rma-calendar-item-620 {
        grid-template-columns: 1fr;
    }
    .rma-repair-labels,
    .rma-repair-progress-row {
        align-items: flex-start;
        flex-direction: column;
    }
    .rma-repair-days {
        min-width: 0;
        text-align: left;
    }
}

.rma-workflow-table textarea {
    min-width: 220px;
}
.rma-workflow-table .form-select {
    min-width: 180px;
}
.rma-archive-panel {
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

@media (max-width: 640px) {
    .rma-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }
    .rma-header {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }
    .rma-header .btn,
    .rma-actions .btn,
    .rma-system-admin button,
    .rma-system-admin .btn {
        width: 100%;
    }
    .rma-system-menu {
        grid-template-columns: 1fr;
    }
    .rma-form-grid,
    .rma-admin-grid {
        grid-template-columns: 1fr;
    }
    .rma-card {
        padding: 14px;
    }
    .rma-workflow-table-wrap,
    .rma-system-admin .table-responsive {
        overflow-x: auto;
    }
    .rma-inline-association-form {
        align-items: stretch;
        flex-direction: column;
    }
}
/* MOBILE_RESULTS_SCROLL_7027 */
@media (max-width: 768px) {
    .rma-wrap,
    .rma-card,
    .rma-panel {
        max-width: 100%;
        box-sizing: border-box;
    }

    .rma-card,
    .rma-panel {
        overflow: hidden;
    }

    .rma-wrap .table-responsive,
    .rma-wrap .rma-table-responsive {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .rma-wrap table.table,
    .rma-wrap table.rma-table,
    .rma-wrap table.rma-results-table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .rma-wrap table.table th,
    .rma-wrap table.table td {
        white-space: nowrap;
        vertical-align: middle;
    }

    .rma-wrap table.rma-table,
    .rma-wrap table.rma-results-table {
        min-width: 780px;
    }

    .rma-search-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .rma-search-actions .btn,
    .rma-search-form .btn {
        flex: 1 1 auto;
        min-width: 120px;
    }
}

/* FIXED_SOLID_HEADER_MENU_937 */
.rma-company-header {
    position: relative !important;
    top: auto !important;
    z-index: 1040;
    background: #ffffff !important;
    opacity: 1 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .12);
}

.rma-dashboard-menu,
.rma-system-menu {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 92px !important;
    z-index: 1030;
    background: #f8fafc !important;
    opacity: 1 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .rma-dashboard-menu,
    .rma-system-menu {
        top: 118px !important;
    }
}

@media print {
    .rma-company-header,
    .rma-dashboard-menu,
    .rma-system-menu {
        position: static !important;
        box-shadow: none !important;
    }
}

/* MAIN_MENU_SOLID_STICKY_938 */
.rma-system-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin: 18px 0 24px 0;
    padding: 14px;
}

/* MAIN_MENU_OPAQUE_LAYER_939 */
.rma-dashboard-menu,
.rma-system-menu {
    position: -webkit-sticky !important;
    position: sticky !important;
    background-color: #ffffff !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    isolation: isolate;
    overflow: visible;
}

.rma-dashboard-menu::before,
.rma-system-menu::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .10);
}

body .container-header,
body header.header,
body .navbar,
body .navbar-collapse,
body .site-header,
body .main-menu,
body .mod-menu {
    background-color: #ffffff !important;
    background-image: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* MAIN_MENU_FULL_OPAQUE_FIX_9310 */
html body .container-header,
html body .container-header .grid-child,
html body .container-header .container-nav,
html body .container-header nav,
html body .container-header .navbar,
html body .container-header .navbar-collapse,
html body .container-header .mod-menu,
html body .container-header .metismenu,
html body .container-header .metismenu.mod-menu,
html body .container-header .metismenu.mod-menu .mm-collapse,
html body .container-header .metismenu.mod-menu .mm-collapsing,
html body .container-header .metismenu.mod-menu .mm-show,
html body .site-grid .container-header,
html body header.header {
    background-color: #ffffff !important;
    background-image: none !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

html body .container-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 1300 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .14) !important;
}

.rma-company-header,
.rma-dashboard-menu,
.rma-system-menu {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    opacity: 1 !important;
    background-clip: padding-box !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.rma-dashboard-menu::before,
.rma-system-menu::before {
    z-index: 0;
    background: #ffffff !important;
}

.rma-dashboard-menu > *,
.rma-system-menu > * {
    position: relative;
    z-index: 1;
}

/* COMPANY_HEADER_BEHIND_SITE_HEADER_9311 */
.rma-company-header {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
}

/* COMPANY_HEADER_NOT_STICKY_9312 */
.rma-company-header {
    position: relative !important;
    top: auto !important;
    z-index: 1 !important;
}

.rma-system-menu,
.rma-dashboard-menu {
    z-index: 1100 !important;
}
