/*
 * Tema do AdmCenter (Central de Administração) sobre o Ace — layouts/admcenter.
 *
 * Barra superior branca, menu lateral branco com o item ativo em azul-claro,
 * fundo cinza-azulado e as peças "ds-" usadas nas telas (cartões, tabelas de
 * listagem, selos, botões, menus de ação, modais). Também reestiliza os
 * botões, campos e alertas padrão do Bootstrap/Ace dentro do conteúdo e do
 * #modal-generic — o Ace usa !important nos botões, daí os !important aqui.
 * Espaçamento do menu só no desktop; no mobile segue o Ace.
 */

body.no-skin {
    background: linear-gradient(120deg, #eaf2fd 0%, #f4f8fe 45%, #ffffff 100%) fixed;
}


body.no-skin,
.no-skin .main-container,
.no-skin .main-content,
.no-skin .page-content {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color: #0b2a4a;
}

/* Barra superior (azul-escuro da Datasafer) */
.no-skin #navbar.ds-topbar {
    min-height: 64px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: #033158;
    box-shadow: 0 2px 10px rgba(3, 49, 88, .25);
}

.ds-topbar-container {
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 22px;
}

.ds-brand,
.ds-brand:hover,
.ds-brand:focus {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.ds-brand-logo {
    display: block;
    height: 28px;
    width: auto;
}

.ds-brand-separator {
    width: 2px;
    height: 30px;
    margin: 0 14px;
    border-radius: 2px;
    background: linear-gradient(180deg, #60a5fa, #1463f3);
}

.ds-brand-title {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}

.ds-brand-title-kicker {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
}

.ds-brand-title-main {
    margin-top: 1px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: -.01em;
    color: #fff;
}

.ds-topbar-divider {
    width: 1px;
    height: 22px;
    margin: 0 16px;
    background: rgba(255, 255, 255, .18);
}

.ds-brand-client {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .7);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ds-topbar-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.ds-topbar-link,
.ds-topbar-link:visited,
.ds-topbar-link:focus {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.ds-topbar-link i {
    margin-right: 8px;
    font-size: 16px;
}

.ds-topbar-link:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
}

.ds-user-toggle,
.ds-user-toggle:visited,
.ds-user-toggle:focus {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px 6px 6px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    outline: none;
    transition: background .15s;
}

.ds-user-toggle:hover,
.ds-user.open .ds-user-toggle {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    text-decoration: none;
}

.ds-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-width: 34px;
    border: 2px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: #1463f3;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.ds-user-text {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
    line-height: 1.25;
}

.ds-user-name {
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.ds-user-caption {
    font-size: 12px;
    color: rgba(255, 255, 255, .6);
}

.ds-user-caret {
    margin-left: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, .7);
}

.ds-user .ds-menu {
    margin-top: 8px;
}

.ds-topbar-close,
.ds-topbar-close:visited,
.ds-topbar-close:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: rgba(255, 255, 255, .85);
    font-size: 17px;
    text-decoration: none;
}

.ds-topbar-close:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

/* Botão do menu no mobile */
.no-skin #navbar.ds-topbar .menu-toggler {
    margin: 12px 0 0 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
}

.no-skin #navbar.ds-topbar .menu-toggler>.icon-bar {
    background: #fff;
}

@media (max-width: 991px) {
    .ds-topbar-container {
        padding: 0 14px;
    }

    .ds-brand-logo {
        height: 22px;
    }

    .ds-brand-separator {
        margin: 0 12px;
    }

    .ds-brand-title-main {
        font-size: 14px;
    }
}

/* Menu lateral: coluna branca; item ativo em azul-claro com a barrinha
   azul à esquerda */
.no-skin .sidebar,
.no-skin .sidebar:before {
    background: #fff;
    border-color: #e6edf6;
}

.no-skin .nav-list>li,
.no-skin .nav-list>li+li {
    border: 0;
}

.no-skin .main-container,
.no-skin .main-content,
.no-skin .page-content,
.no-skin .main-container:before {
    background: transparent;
}

.no-skin .nav-list>li:before,
.no-skin .nav-list>li.active:after,
.no-skin .nav-list>li>a:before,
.no-skin .nav-list>li>a:after {
    display: none !important;
}

/* O Ace fixa "Open Sans" nos títulos, e a cópia local dela só tem 300/400 */
.no-skin h1,
.no-skin h2,
.no-skin h3,
.no-skin h4,
.no-skin h5,
.no-skin h6 {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

.no-skin .page-content h1,
.no-skin .page-content h2,
.no-skin .page-content h3 {
    font-weight: 800;
}

.no-skin .nav-list>li>a {
    background: transparent;
    color: #334155;
    transition: background .15s, color .15s;
}

.no-skin .nav-list>li>a>.menu-icon {
    color: #64748b;
}

.no-skin .nav-list>li:hover>a {
    background: #f4f7fc;
    color: #0b2a4a;
}

.no-skin .nav-list>li.active>a,
.no-skin .nav-list>li.active>a:focus,
.no-skin .nav-list>li.active>a:hover {
    background: #eef4ff;
    box-shadow: none;
    color: #1d4ed8;
    font-weight: 700;
}

.no-skin .nav-list>li.active>a>.menu-icon {
    color: #1463f3;
}

.no-skin .sidebar-toggle {
    background: #fff;
    border-color: #e6edf6;
}

/* Barrinha azul do item ativo */
.no-skin .nav-list>li.active>a:before {
    content: '';
    display: block !important;
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 0;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #1463f3;
}

.no-skin .sidebar-toggle>.ace-icon {
    background: #fff;
    border-color: #dbe2ea;
    color: #94a3b8;
}

@media (min-width: 992px) {
    .no-skin .sidebar:not(.menu-min),
    .no-skin .sidebar:not(.menu-min):before {
        width: 266px;
    }

    .no-skin .sidebar:not(.menu-min)+.main-content {
        margin-left: 266px;
    }

    .no-skin .sidebar {
        min-height: calc(100vh - 64px);
    }

    /* Coluna branca do menu até o fim da janela, mesmo rolando */
    .no-skin .sidebar:before {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: -1;
        background: #fff;
        border-right: 1px solid #e6edf6;
        box-shadow: 4px 0 18px rgba(11, 42, 74, .04);
    }

    .no-skin .sidebar .nav-list>li>a>.menu-text {
        white-space: nowrap;
    }

    /* Recolhido: só os ícones, em quadrados arredondados como o item
       ativo do menu expandido; o nome aparece no popup do Ace ao passar
       o mouse (.menu-text), reposicionado para a nova largura. */
    .no-skin .sidebar.menu-min,
    .no-skin .sidebar.menu-min:before {
        width: 68px;
    }

    .no-skin .sidebar.menu-min+.main-content {
        margin-left: 68px;
    }

    .no-skin .sidebar.menu-min .nav-list {
        padding-top: 10px;
    }

    .no-skin .sidebar.menu-min .nav-list>li>a {
        height: 44px;
        margin: 2px 10px;
        padding: 0;
        line-height: 44px;
        border-radius: 10px;
        text-align: center;
    }

    .no-skin .sidebar.menu-min .nav-list>li>a>.menu-icon {
        width: 48px;
        margin: 0;
        font-size: 19px;
        vertical-align: baseline;
    }

    .no-skin .sidebar.menu-min .nav-list>li>a>.menu-text {
        top: 0;
        left: 66px;
        height: 44px;
        width: auto;
        min-width: 180px;
        padding: 0 16px;
        line-height: 42px;
        border: 1px solid #d3e1f7;
        border-radius: 10px;
        background: #fff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, .12);
        color: #0b2a4a;
        font-size: 15px;
        font-weight: 600;
    }

    .no-skin .sidebar.menu-min .nav-list>li.active>a>.menu-text {
        color: #1d4ed8;
    }

    .no-skin .sidebar.menu-min .sidebar-toggle {
        width: 68px;
    }

    .no-skin .sidebar:not(.menu-min) .nav-list {
        padding-top: 10px;
    }

    .no-skin .sidebar:not(.menu-min) .nav-list>li>a {
        height: auto;
        margin: 2px 10px;
        padding: 11px 14px;
        line-height: 22px;
        border-radius: 10px;
        font-size: 14.5px;
    }

    .no-skin .sidebar:not(.menu-min) .nav-list>li>a>.menu-icon {
        width: 30px;
        min-width: 30px;
        margin-right: 10px;
        font-size: 19px;
        vertical-align: -2px;
    }

    .no-skin .page-content {
        padding: 24px 32px;
    }
}

/* Título das páginas */
.no-skin .ds-page-title {
    margin: 6px 0 6px;
    font-size: 34px;
    font-weight: 800;
    color: #0b2a4a;
    letter-spacing: -.02em;
}

.ds-page-subtitle {
    margin-bottom: 26px;
    font-size: 16px;
    color: #64748b;
}

/* Tabelas de listagem (class="table ds-table"). Cantos arredondados nas
   células, não overflow: hidden, para não cortar os menus suspensos. */
.no-skin .table.ds-table {
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #d3e1f7;
    border-radius: 12px;
}

.no-skin .table.ds-table>thead>tr>th {
    padding: 14px 18px;
    border: 0;
    border-bottom: 1px solid #d3e1f7;
    background: #f5f9ff;
    background-image: none;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
}

.no-skin .table.ds-table>thead>tr>th:first-child {
    border-top-left-radius: 12px;
}

.no-skin .table.ds-table>thead>tr>th:last-child {
    border-top-right-radius: 12px;
}

.no-skin .table.ds-table>tbody>tr>td,
.no-skin .table.ds-table>tbody>tr>th,
.no-skin .table.ds-table>tfoot>tr>td,
.no-skin .table.ds-table>tfoot>tr>th {
    padding: 16px 18px;
    border: 0;
    border-top: 1px solid #eef1f5;
    background: transparent;
    background-image: none;
    color: #0b2a4a;
    font-size: 15px;
    vertical-align: middle;
}

.no-skin .table.ds-table>tbody:first-of-type>tr:first-child>td,
.no-skin .table.ds-table>tbody:first-of-type>tr:first-child>th {
    border-top: 0;
}

.no-skin .table.ds-table>tbody:last-child>tr:last-child>td:first-child,
.no-skin .table.ds-table>tfoot>tr:last-child>*:first-child {
    border-bottom-left-radius: 12px;
}

.no-skin .table.ds-table>tbody:last-child>tr:last-child>td:last-child,
.no-skin .table.ds-table>tfoot>tr:last-child>*:last-child {
    border-bottom-right-radius: 12px;
}

.no-skin .table.ds-table>tbody>tr:nth-of-type(odd) {
    background: transparent;
}

.no-skin .table.ds-table>tbody>tr {
    transition: background .12s;
}

.no-skin .table.ds-table>tbody>tr:hover {
    background: #f8fafc;
}

.ds-muted {
    color: #94a3b8;
}

/* Selos (status, documentos) */
.ds-pill,
.ds-pill:hover,
.ds-pill:focus,
.ds-pill:visited {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
}

.ds-pill i {
    margin-right: 6px;
}

.ds-pill-success {
    background: #e7f8ee;
    color: #15803d;
}

a.ds-pill-success:hover {
    background: #d3f2e0;
    color: #166534;
}

.ds-pill-warning {
    background: #fef3c7;
    color: #b45309;
}

.ds-pill-danger {
    background: #fee2e2;
    color: #dc2626;
}

.ds-pill-info {
    background: #e8f0fe;
    color: #1d4ed8;
}

.ds-pill-neutral {
    background: #f1f5f9;
    color: #475569;
}

.ds-chip,
.ds-chip:visited,
.ds-chip:focus {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    margin-right: 4px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    color: #1463f3;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .03em;
    text-decoration: none;
    transition: background .12s, border-color .12s;
}

.ds-chip i {
    margin-right: 5px;
    font-size: 13px;
}

.ds-chip:hover {
    border-color: #1463f3;
    background: #eef4ff;
    color: #0f53d4;
    text-decoration: none;
}

.ds-button,
.ds-button:visited,
.ds-button:focus {
    display: inline-flex;
    align-items: center;
    border: 0;
    outline: none;
    padding: 9px 16px;
    border-radius: 8px;
    background: #1463f3;
    box-shadow: 0 4px 12px rgba(20, 99, 243, .25);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: background .15s, box-shadow .15s;
}

.ds-button i {
    margin-right: 8px;
}

.ds-button:focus-visible {
    box-shadow: 0 0 0 3px rgba(20, 99, 243, .3);
}

.ds-button:hover {
    background: #0f53d4;
    box-shadow: 0 6px 16px rgba(20, 99, 243, .35);
    color: #fff;
    text-decoration: none;
}
/* Botão ⋮ e menu de ações das listagens */
.ds-more,
.ds-more:visited,
.ds-more:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d3e1f7;
    border-radius: 8px;
    background: #f8fafc;
    color: #334155;
    font-size: 18px;
    text-decoration: none;
    outline: none;
}

.ds-more:hover,
.dropdown.open .ds-more {
    background: #eef2f7;
    color: #0b2a4a;
    text-decoration: none;
}

.ds-menu {
    min-width: 220px;
    padding: 8px 0;
    margin-top: 6px;
    border: 1px solid #d3e1f7;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}

.ds-menu>li>a {
    padding: 9px 18px;
    font-size: 15px;
    color: #0b2a4a;
}

.ds-menu>li>a i {
    width: 20px;
    margin-right: 10px;
    font-size: 16px;
    color: #475569;
    text-align: center;
}

.ds-menu>li>a:hover {
    background: #f1f5f9;
    color: #0b2a4a;
}

.ds-menu>li>a.ds-menu-primary,
.ds-menu>li>a.ds-menu-primary i {
    font-weight: 700;
    color: #1463f3;
}

.ds-menu>li>a.ds-menu-primary:hover {
    background: #eef4ff;
}

.ds-menu>li>a.ds-menu-danger,
.ds-menu>li>a.ds-menu-danger i {
    color: #dc2626;
}

.ds-menu>li>a.ds-menu-danger:hover {
    background: #fef2f2;
}

/* Modais (#modal-generic, ver components/modal) */
#modal-generic .modal-content {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}

#modal-generic .modal-header {
    position: relative;
    padding: 26px 28px 6px;
    border: 0;
    background: #fff !important;
    border-radius: 18px 18px 0 0;
}

#modal-generic .modal-title {
    margin: 0;
    padding-right: 30px;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    font-size: 21px;
    color: #0b2a4a;
}

#modal-generic .modal-title b {
    font-weight: 800;
}

#modal-generic .modal-header .close {
    position: absolute;
    top: 24px;
    right: 24px;
    margin: 0;
    color: #334155;
    font-size: 28px;
    font-weight: 400;
    opacity: .7;
    text-shadow: none;
}

#modal-generic .modal-header .close:hover {
    opacity: 1;
}

#modal-generic .modal-body {
    padding: 18px 28px 26px;
    color: #0b2a4a;
}

@media (min-width: 768px) {
    #modal-generic .modal-dialog.modal-sm {
        width: 420px;
    }
}

/* Formulários dos modais */
.ds-field {
    margin-bottom: 18px;
}

.ds-field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
    color: #0b2a4a;
}

.ds-readonly {
    padding: 12px 16px;
    border-radius: 10px;
    background: #f1f5fb;
    font-size: 16px;
    font-weight: 600;
    color: #0b2a4a;
}

.ds-readonly-hint {
    margin-top: 6px;
    font-size: 13px;
    color: #64748b;
}

.no-skin #modal-generic .form-control:not(.btn) {
    height: 48px;
    padding: 10px 16px;
    border: 1px solid #d6dde6;
    border-radius: 10px;
    background: #fff !important;
    box-shadow: none;
    color: #0b2a4a;
    font-size: 16px;
}

.no-skin #modal-generic .form-control:focus {
    border-color: #1463f3;
    box-shadow: 0 0 0 3px rgba(20, 99, 243, .15);
}

/* Seletor de quantidade (jQuery UI spinner): +/− dentro do campo */
#modal-generic .ui-spinner {
    display: block;
    position: relative;
    width: 100%;
    border: 0;
    background: transparent;
}

#modal-generic .ui-spinner .ui-spinner-input {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-right: 104px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

#modal-generic .ui-spinner .ui-spinner-button {
    position: absolute;
    top: 7px;
    width: 34px;
    height: 34px;
    margin: 0;
    padding: 0;
    border: 1px solid #dbe4f0 !important;
    border-radius: 8px;
    background: #f8fafc;
    color: #1463f3 !important;
    font-size: 13px;
    line-height: 32px;
    text-shadow: none !important;
    text-align: center;
    cursor: pointer;
}

#modal-generic .ui-spinner .ui-spinner-button:hover {
    border-color: #1463f3 !important;
    background: #eef4ff;
}

#modal-generic .ui-spinner .ui-spinner-up {
    top: 7px;
    right: 8px;
}

#modal-generic .ui-spinner .ui-spinner-down {
    top: 7px;
    bottom: auto;
    right: 48px;
}

.ds-button-block,
.ds-button-block:visited,
.ds-button-block:focus {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 13px 18px;
    border: 0;
    font-size: 16px;
}

.ds-button-secondary,
.ds-button-secondary:visited,
.ds-button-secondary:focus {
    border: 1px solid #1463f3;
    background: #fff;
    box-shadow: none;
    color: #1463f3;
}

.ds-button-secondary:hover {
    background: #eef4ff;
    box-shadow: none;
    color: #0f53d4;
}

.ds-price-card {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #dbe8ff;
    border-radius: 12px;
    background: #f5f9ff;
}

.ds-price-card .ds-field-label {
    margin-bottom: 2px;
    font-size: 12px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #64748b;
}

.ds-price {
    font-size: 28px;
    font-weight: 800;
    color: #0b2a4a;
    font-variant-numeric: tabular-nums;
}

.ds-price-detail {
    font-size: 14px;
    color: #64748b;
}

.ds-alert {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
}

.ds-alert-danger {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.ds-modal-actions {
    margin-top: 22px;
}

.ds-icon-button,
.ds-icon-button:visited,
.ds-icon-button:focus {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 6px;
    border: 1px solid #dbe4f0;
    border-radius: 8px;
    background: #fff;
    color: #1463f3;
    font-size: 13px;
    text-decoration: none;
    vertical-align: middle;
}

.ds-icon-button:hover {
    border-color: #1463f3;
    background: #eef4ff;
    text-decoration: none;
}

/* ===== Elementos padrão (Bootstrap/Ace) no conteúdo e nos modais ===== */

/* Botões: azul (principal), contorno neutro, vermelho (destrutivo) */
.no-skin .main-content .btn,
#modal-generic .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #1463f3 !important;
    border-radius: 8px !important;
    background: #1463f3 !important;
    box-shadow: 0 4px 12px rgba(20, 99, 243, .22) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: none !important;
    transition: background .15s, box-shadow .15s, border-color .15s, color .15s;
}

.no-skin .main-content .btn .fa,
.no-skin .main-content .btn .ace-icon,
#modal-generic .btn .fa,
#modal-generic .btn .ace-icon {
    margin-right: 8px;
}

.no-skin .main-content .btn:hover,
#modal-generic .btn:hover {
    border-color: #0f53d4 !important;
    background: #0f53d4 !important;
    box-shadow: 0 6px 16px rgba(20, 99, 243, .32) !important;
}

.no-skin .main-content .btn-sm,
.no-skin .main-content .btn-xs,
#modal-generic .btn-sm,
#modal-generic .btn-xs {
    padding: 6px 12px;
    font-size: 13px;
}

.no-skin .main-content .btn-lg,
#modal-generic .btn-lg {
    padding: 13px 22px;
    font-size: 16px;
}

.no-skin .main-content .btn.form-control,
.no-skin .main-content .btn-block,
#modal-generic .btn.form-control,
#modal-generic .btn-block {
    display: flex;
    width: 100%;
    height: auto;
}

.no-skin .main-content .btn-default,
.no-skin .main-content .btn-white,
.no-skin .main-content .btn-grey,
#modal-generic .btn-default,
#modal-generic .btn-white,
#modal-generic .btn-grey {
    border-color: #d6dde6 !important;
    background: #fff !important;
    box-shadow: none !important;
    color: #334155 !important;
}

.no-skin .main-content .btn-default:hover,
.no-skin .main-content .btn-white:hover,
.no-skin .main-content .btn-grey:hover,
#modal-generic .btn-default:hover,
#modal-generic .btn-white:hover,
#modal-generic .btn-grey:hover {
    border-color: #1463f3 !important;
    background: #eef4ff !important;
    color: #1463f3 !important;
}

.no-skin .main-content .btn-danger,
#modal-generic .btn-danger {
    border-color: #dc2626 !important;
    background: #dc2626 !important;
    box-shadow: 0 4px 12px rgba(220, 38, 38, .22) !important;
}

.no-skin .main-content .btn-danger:hover,
#modal-generic .btn-danger:hover {
    border-color: #b91c1c !important;
    background: #b91c1c !important;
}

.no-skin .main-content .btn-link,
#modal-generic .btn-link {
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #475569 !important;
}

.no-skin .main-content .btn-link:hover,
#modal-generic .btn-link:hover {
    border-color: transparent !important;
    background: #f1f5f9 !important;
    color: #0b2a4a !important;
}

/* Campos */
.no-skin .page-content label,
#modal-generic .modal-body label {
    font-size: 14px;
    font-weight: 700;
    color: #0b2a4a;
}

.no-skin .page-content .form-control:not(.btn),
.no-skin .page-content select,
.no-skin #modal-generic .form-control:not(.btn) {
    height: 46px;
    padding: 10px 14px;
    border: 1px solid #d6dde6;
    border-radius: 10px !important;
    background: #fff;
    box-shadow: none;
    color: #0b2a4a;
    font-size: 15px;
    transition: border-color .15s, box-shadow .15s;
}

.no-skin .page-content textarea.form-control:not(.btn),
.no-skin #modal-generic textarea.form-control:not(.btn) {
    height: auto;
}

.no-skin .page-content .form-control:focus,
.no-skin .page-content select:focus,
.no-skin #modal-generic .form-control:focus {
    border-color: #1463f3;
    box-shadow: 0 0 0 3px rgba(20, 99, 243, .15);
    outline: none;
}

.no-skin .page-content .form-control:not(.btn)[readonly],
.no-skin .page-content .form-control:not(.btn)[disabled],
.no-skin #modal-generic .form-control:not(.btn)[disabled] {
    border-color: #d3e1f7;
    background: #f8fafc !important;
    color: #475569;
    cursor: default;
}

.no-skin .page-content .form-group,
#modal-generic .form-group {
    margin-bottom: 18px;
}

/* Campo com ícone à esquerda (input-group do Bootstrap) */
.no-skin .page-content .input-group-addon,
#modal-generic .input-group-addon {
    min-width: 46px;
    border: 1px solid #d6dde6;
    border-right: 0;
    border-radius: 10px 0 0 10px !important;
    background: #f8fafc;
    color: #64748b;
}

.no-skin .page-content .input-group .form-control:not(.btn),
.no-skin #modal-generic .input-group .form-control:not(.btn) {
    border-radius: 0 10px 10px 0 !important;
}

/* Alertas */
.no-skin .page-content .alert,
#modal-generic .alert {
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
}

.no-skin .page-content .alert-warning,
#modal-generic .alert-warning {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.no-skin .page-content .alert-danger,
#modal-generic .alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.no-skin .page-content .alert-info,
.no-skin .page-content .alert-success,
#modal-generic .alert-info,
#modal-generic .alert-success {
    border-color: #dbe8ff;
    background: #f5f9ff;
    color: #1e3a8a;
}

/* Separadores */
.no-skin .page-content hr,
#modal-generic hr {
    border-color: #eef1f5;
}

/* ===== Peças das páginas ===== */

.ds-card {
    margin-bottom: 20px;
    padding: 24px 28px;
    border: 1px solid #d3e1f7;
    border-radius: 12px;
    background: #fff;
}

.ds-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.ds-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-width: 56px;
    margin-right: 16px;
    border-radius: 10px;
    background: #e3edfd;
    color: #1463f3;
    font-size: 24px;
}

.ds-card-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0b2a4a;
}

.ds-card-subtitle {
    margin-top: 2px;
    font-size: 14px;
    color: #64748b;
}

.ds-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.ds-value {
    font-size: 16px;
    font-weight: 600;
    color: #0b2a4a;
}

.ds-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ds-option {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 16px;
    border: 1px solid #d6dde6;
    border-radius: 10px;
    background: #fff;
    font-weight: 600 !important;
    cursor: pointer;
}

.ds-option input {
    margin: 0 10px 0 0;
}

.ds-option.is-checked {
    border-color: #1463f3;
    background: #eef4ff;
    color: #1d4ed8 !important;
}

.ds-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.ds-page-header .ds-button {
    margin-top: 14px;
}

.ds-back,
.ds-back:visited,
.ds-back:focus {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
}

.ds-back i {
    margin-right: 8px;
}

.ds-back:hover {
    color: #1463f3;
    text-decoration: none;
}

/* Celular: só a logo no topo — o título não cabe ao lado do avatar */
@media (max-width: 520px) {
    .ds-brand-separator,
    .ds-brand-title {
        display: none;
    }
}

/* ===== Páginas públicas (layouts/minimal: faturas; layouts/terms: termos) ===== */

.ds-public-container {
    max-width: 1080px;
    margin: 0 auto;
}

.ds-topbar-container.ds-public-container {
    padding: 0 24px;
}

.ds-public .page-content,
body.no-skin>.main-content>.page-content {
    padding: 28px 20px 40px;
}

.ds-parties {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: space-between;
    font-size: 14px;
    color: #475569;
}

.ds-party {
    flex: 1 1 260px;
    line-height: 1.6;
}

.ds-party+.ds-party {
    text-align: right;
}

.ds-party-label {
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #94a3b8;
}

.ds-party-name {
    font-size: 16px;
    font-weight: 800;
    color: #0b2a4a;
}

@media (max-width: 600px) {
    .ds-party+.ds-party {
        text-align: left;
    }
}

.public-table {
    border: 0;
}

.public-overdue {
    color: #dc2626;
    font-weight: 700;
}

.public-overdue-pill {
    margin-left: 6px;
    padding: 3px 9px;
    font-size: 11px;
}

.public-amount {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* Termos e políticas: texto longo dentro de um cartão */
.ds-document {
    padding: 32px 40px;
    font-size: 15px;
    line-height: 1.75;
    color: #334155;
}

.ds-document h1,
.ds-document h2,
.ds-document h3,
.ds-document h4,
.ds-document h5 {
    margin: 26px 0 10px;
    font-weight: 800;
    color: #0b2a4a;
    line-height: 1.3;
}

.ds-document h1:first-child,
.ds-document h2:first-child,
.ds-document h3:first-child {
    margin-top: 0;
}

.ds-document p,
.ds-document li {
    color: #334155;
}

.ds-document a {
    color: #1463f3;
}

@media (max-width: 600px) {
    .ds-document {
        padding: 22px 18px;
    }
}

/* ===== Login do AdmCenter (layouts/admcenter-auth) — cara do site ===== */

body.ds-auth {
    min-height: 100vh;
    margin: 0;
    background: #fff;
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    color: #0b2a4a;
}

.ds-auth-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.ds-auth-header {
    background: #fff;
}

.ds-auth-header-inner {
    display: flex;
    align-items: center;
    height: 96px;
}

.ds-auth-separator {
    width: 2px;
    height: 40px;
    margin: 0 18px;
    border-radius: 2px;
    background: linear-gradient(180deg, #60a5fa, #1463f3);
}

.ds-auth-product {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    white-space: nowrap;
}

.ds-auth-product-kicker {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #52627a;
}

.ds-auth-product-name {
    margin-top: 2px;
    font-size: 21px;
    font-weight: 500;
    letter-spacing: -.01em;
    color: #0b2a4a;
}

.ds-auth-logo {
    height: 40px;
    width: auto;
}

.ds-auth-logo-link {
    display: inline-block;
    transition: opacity .15s;
}

.ds-auth-logo-link:hover {
    opacity: .85;
}

.ds-auth-hero {
    position: relative;
    min-height: calc(100vh - 96px);
    overflow: hidden;
    background: linear-gradient(120deg, #eaf2fd 0%, #f4f8fe 45%, #ffffff 100%);
}

/* Listras da marca ao fundo, atrás do cartão */
.ds-auth-hero:before {
    content: '';
    position: absolute;
    top: 50%;
    right: -120px;
    width: 640px;
    height: 640px;
    transform: translateY(-50%);
    border-radius: 0 50% 50% 0;
    background: repeating-linear-gradient(180deg, rgba(20, 99, 243, .14) 0 54px, transparent 54px 80px);
    pointer-events: none;
}

.ds-auth-grid {
    position: relative;
    display: flex;
    align-items: center;
    gap: 64px;
    min-height: calc(100vh - 96px);
    padding-top: 48px;
    padding-bottom: 48px;
}

.ds-auth-intro {
    flex: 1 1 560px;
    min-width: 0;
}

.ds-auth-kicker {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: #1463f3;
}

.ds-auth-title {
    margin: 10px 0 0;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.02em;
    color: #0b2a4a;
}

.ds-auth-title span {
    display: block;
    color: #1463f3;
}

.ds-auth-text {
    max-width: 560px;
    margin: 20px 0 0;
    font-size: 19px;
    line-height: 1.55;
    color: #2b3a4f;
}

.ds-auth-text b {
    font-weight: 600;
    color: #0b2a4a;
}

.ds-auth-features {
    display: flex;
    max-width: 640px;
    margin-top: 40px;
    padding: 22px 8px;
    border: 1px solid #d6dfec;
    border-radius: 14px;
    background: rgba(255, 255, 255, .7);
}

.ds-auth-feature {
    display: flex;
    align-items: center;
    flex: 1;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    color: #0b2a4a;
}

.ds-auth-feature+.ds-auth-feature {
    border-left: 1px solid #d6dfec;
}

.ds-auth-feature i {
    width: 26px;
    min-width: 26px;
    text-align: center;
    margin-right: 12px;
    font-size: 22px;
    color: #1463f3;
}

.ds-auth-card-area {
    flex: 0 0 420px;
}

.ds-auth-card {
    padding: 40px 36px 32px;
    border: 1px solid rgba(214, 223, 236, .9);
    border-radius: 20px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 24px 60px rgba(11, 42, 74, .12);
    backdrop-filter: blur(6px);
}

.ds-auth-heading {
    margin: 0;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: #0b2a4a;
}

.ds-auth-subheading {
    margin: 8px 0 26px;
    font-size: 15px;
    line-height: 1.5;
    color: #52627a;
}

.ds-auth label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0b2a4a;
}

.ds-auth .form-group {
    margin-bottom: 18px;
}

.ds-auth-input {
    position: relative;
}

.ds-auth-input>i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #8a9ab0;
    font-size: 16px;
    pointer-events: none;
}

.ds-auth .form-control {
    height: 52px;
    padding: 12px 16px 12px 44px;
    border: 1px solid #d6dfec;
    border-radius: 10px;
    box-shadow: none;
    font-size: 15px;
    color: #0b2a4a;
    transition: border-color .15s, box-shadow .15s;
}

.ds-auth .form-control:focus {
    border-color: #1463f3;
    box-shadow: 0 0 0 3px rgba(20, 99, 243, .15);
}

.ds-auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding: 15px 18px;
    border: 0;
    border-radius: 10px;
    background: #1463f3;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    transition: background .15s, box-shadow .15s;
}

.ds-auth-button i {
    margin-left: 14px;
    transition: transform .15s;
}

.ds-auth-button:hover,
.ds-auth-button:focus {
    background: #0f53d4;
    box-shadow: 0 10px 24px rgba(20, 99, 243, .3);
    outline: none;
}

.ds-auth-button:hover i {
    transform: translateX(4px);
}

.ds-auth-links {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.ds-auth-links a {
    font-weight: 600;
    color: #1463f3;
}

.ds-auth-links a i {
    margin-right: 6px;
}

.ds-auth-alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 14px;
}

.ds-auth-alert i {
    margin-right: 6px;
}

.ds-auth-alert-danger {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.ds-auth-alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

@media (max-width: 991px) {
    .ds-auth-hero:before {
        display: none;
    }

    .ds-auth-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 36px;
        min-height: 0;
        padding-top: 28px;
    }

    .ds-auth-card-area {
        order: -1;
        flex-basis: auto;
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
    }

    .ds-auth-title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .ds-auth-wrap {
        padding-right: 18px;
        padding-left: 18px;
    }

    .ds-auth-header-inner {
        height: 76px;
    }

    .ds-auth-logo {
        height: 26px;
    }

    .ds-auth-separator {
        height: 30px;
        margin: 0 12px;
    }

    .ds-auth-product-name {
        font-size: 16px;
    }

    .ds-auth-card {
        padding: 30px 22px 26px;
    }

    .ds-auth-features {
        flex-direction: column;
        gap: 14px;
        padding: 18px 8px;
    }

    .ds-auth-feature+.ds-auth-feature {
        border-left: 0;
    }

    .ds-auth-title {
        font-size: 30px;
    }

    .ds-auth-text {
        font-size: 16px;
    }
}

/* Notebooks (até 1400px): menos margem lateral para as tabelas caberem */
@media (min-width: 992px) and (max-width: 1400px) {
    .no-skin .page-content {
        padding-right: 20px;
        padding-left: 24px;
    }
}
