/* ==========================================================
   ATLAS WHITE LABEL V4
   Superficies nativas continuam tecnicamente Frappe/ERPNext,
   mas a experiencia visual e verbal pertence ao ATLAS.
   ========================================================== */

.atlas-hidden-upstream-brand { display:none!important; visibility:hidden!important; }

html.atlas-white-label-v4 body {
    --atlas-v4-blue:#1D4ED8;
    --atlas-v4-midnight:#0B1020;
    --atlas-v4-graphite:#1F2937;
    --atlas-v4-steel:#64748B;
    --atlas-v4-line:#E2E8F0;
    --atlas-v4-cloud:#F1F5F9;
    --atlas-v4-cyan:#06B6D4;
    --atlas-v4-amber:#F59E0B;
    --atlas-v4-red:#EF4444;
}

/* Rodapes e assinaturas de upstream nunca aparecem na experiencia. */
.powered-by,
.footer-powered,
.web-footer .powered-by,
.web-footer a[href*="frappe.io"],
.web-footer a[href*="erpnext.com"],
a[href*="frappeframework.com"],
a[href*="docs.frappe.io"],
a[href*="docs.erpnext.com"] {
    display:none!important;
}

/* Dialog / prompt / uploader nativos recebem a mesma linguagem ATLAS. */
.atlas-native-surface.modal .modal-content,
.atlas-native-surface .modal-content,
.modal.atlas-native-surface .modal-content {
    border:1px solid var(--atlas-v4-line)!important;
    border-radius:16px!important;
    background:#fff!important;
    color:var(--atlas-v4-graphite)!important;
    box-shadow:0 24px 70px rgba(11,16,32,.18)!important;
    overflow:hidden!important;
}

.atlas-native-surface.modal .modal-header,
.modal.atlas-native-surface .modal-header {
    min-height:64px!important;
    padding:18px 22px!important;
    border-bottom:1px solid var(--atlas-v4-line)!important;
    background:#fff!important;
}

.atlas-native-surface.modal .modal-title,
.modal.atlas-native-surface .modal-title {
    color:var(--atlas-v4-midnight)!important;
    font-size:18px!important;
    line-height:1.25!important;
    font-weight:750!important;
    letter-spacing:-.015em!important;
}

.atlas-native-surface.modal .modal-body,
.modal.atlas-native-surface .modal-body {
    padding:22px!important;
    background:#fff!important;
    color:var(--atlas-v4-graphite)!important;
    font-size:13px!important;
}

.atlas-native-surface.modal .modal-footer,
.modal.atlas-native-surface .modal-footer {
    padding:14px 22px!important;
    border-top:1px solid var(--atlas-v4-line)!important;
    background:#F8FAFC!important;
}

.atlas-native-surface.modal .btn-primary,
.modal.atlas-native-surface .btn-primary {
    border-color:var(--atlas-v4-blue)!important;
    background:var(--atlas-v4-blue)!important;
    color:#fff!important;
}

.atlas-native-surface.modal .btn-danger,
.modal.atlas-native-surface .btn-danger {
    border-color:#FCA5A5!important;
    background:#FEF2F2!important;
    color:#B91C1C!important;
}

.atlas-native-surface.modal .control-label,
.modal.atlas-native-surface .control-label {
    color:#475569!important;
    font-size:12px!important;
    font-weight:650!important;
}

.atlas-native-surface.file-uploader,
.atlas-native-surface.file-upload-area,
.file-uploader.atlas-native-surface,
.file-upload-area.atlas-native-surface {
    border-color:var(--atlas-v4-line)!important;
    border-radius:14px!important;
    background:#F8FAFC!important;
    color:var(--atlas-v4-graphite)!important;
}

.file-uploader .file-upload-area,
.file-uploader .upload-area {
    border:1px dashed #CBD5E1!important;
    border-radius:12px!important;
    background:#fff!important;
    color:#475569!important;
}

.file-uploader .file-upload-area:hover,
.file-uploader .upload-area:hover {
    border-color:var(--atlas-v4-blue)!important;
    background:#EFF6FF!important;
}

/* Loading/freeze sem identidade visual do framework. */
.freeze-message.atlas-native-surface,
.atlas-native-surface.freeze-message,
.freeze-message {
    border:1px solid rgba(255,255,255,.14)!important;
    border-radius:12px!important;
    background:rgba(11,16,32,.94)!important;
    color:#fff!important;
    box-shadow:0 18px 55px rgba(11,16,32,.28)!important;
    font-size:13px!important;
    font-weight:650!important;
}

.freeze-message .loading-text,
.freeze-message .text-muted { color:#CBD5E1!important; }

/* Dropdowns / popovers / autocomplete. */
.dropdown-menu.atlas-native-surface,
.popover.atlas-native-surface,
.awesomplete.atlas-native-surface,
.atlas-native-surface.dropdown-menu,
.atlas-native-surface.popover,
.atlas-native-surface.awesomplete {
    border:1px solid var(--atlas-v4-line)!important;
    border-radius:12px!important;
    background:#fff!important;
    color:var(--atlas-v4-graphite)!important;
    box-shadow:0 16px 45px rgba(11,16,32,.14)!important;
}

.dropdown-menu .dropdown-item { color:#334155!important; }
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus { background:#EFF6FF!important; color:var(--atlas-v4-midnight)!important; }

/* Elementos nativos de lista/formulario que escapem do shell. */
.page-head,
.layout-main-section,
.form-page,
.list-view-container { color:var(--atlas-v4-graphite); }

.page-head .title-text,
.page-title .title-text { color:var(--atlas-v4-midnight)!important; font-weight:750!important; }

.page-head .btn-primary,
.layout-main-section .btn-primary { background:var(--atlas-v4-blue)!important; border-color:var(--atlas-v4-blue)!important; color:#fff!important; }

/* Sem verde visual em superficies nativas residuais. */
.atlas-white-label-v4 .indicator.green,
.atlas-white-label-v4 .indicator-pill.green,
.atlas-white-label-v4 .text-green,
.atlas-white-label-v4 .text-success {
    color:#0E7490!important;
}

.atlas-white-label-v4 .indicator.green::before,
.atlas-white-label-v4 .indicator-pill.green::before {
    background:var(--atlas-v4-cyan)!important;
}

/* Link de ajuda externo de upstream nao deve deixar espaco vazio. */
.dropdown-menu li:has(> .atlas-hidden-upstream-brand),
.dropdown-menu .dropdown-item.atlas-hidden-upstream-brand { display:none!important; }
