.btn-sb-acao {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s ease, border-color .12s ease;
    line-height: 1;
}

.btn-sb-acao img {
    height: 20px;
}

.btn-sb-acao:active {
    transform: translateY(1px);
}

.btn-sb-validar {
    background: #ffffff;
    color: #2b2f33;
    border-color: #d6dbe0;
}

.btn-sb-validar:hover {
    background: #f3f6f9;
    border-color: #bcc4cc;
}

.btn-sb-historico {
    background: #eef1f4;
    color: #4b5563;
    border-color: #e0e3e7;
}

.btn-sb-historico:hover {
    background: #e3e7eb;
}

.btn-sb-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f3f5;
    color: #495057;
    border: 1px solid #e0e3e7;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .12s ease;
}

.btn-sb-ghost:hover {
    background: #e6e9ed;
}

.sb-modal .modal-dialog {
    margin-top: 32px;
}

.sb-modal-content {
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
}

.sb-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    color: #fff;
}

.sb-modal-header-motter {
    background: #03a9f3;
}

.sb-modal-header-hist {
    background: #374151;
}

.sb-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sb-modal-title img {
    height: 34px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}

.sb-modal-ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.sb-modal-title-main {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
}

.sb-modal-title-sub {
    font-size: 12px;
    opacity: .85;
}

.sb-modal-close {
    background: rgba(255, 255, 255, .15);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background .12s ease;
}

.sb-modal-close:hover {
    background: rgba(255, 255, 255, .3);
}

.sb-modal-body {
    padding: 20px;
    background: #fff;
}

.sb-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fb;
    border-top: 1px solid #eceef1;
}

.sb-status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    white-space: nowrap;
}

.sb-status-badge.sb-st-ok {
    background: #18b85a;
}

.sb-status-badge.sb-st-ress {
    background: #2196f3;
}

.sb-status-badge.sb-st-ajuste {
    background: #ff9800;
}

.sb-status-badge.sb-st-critico {
    background: #e53935;
}

.sb-aviso-perda {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 4px solid #ff9800;
    color: #5a4500;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 12px;
}

.sb-aviso-perda i {
    color: #ff9800;
    margin-right: 6px;
}

.motter-validacao-conteudo {
    max-height: 56vh;
    overflow-y: auto;
    font-size: 14px;
    color: #2b2f33;
    line-height: 1.5;
}

.motter-validacao-conteudo .motter-h {
    margin: 16px 0 8px;
    font-weight: 700;
    color: #0277bd;
    border-bottom: 2px solid #e8f4fb;
    padding-bottom: 4px;
}

.motter-validacao-conteudo .motter-h:first-child {
    margin-top: 0;
}

.motter-validacao-conteudo .motter-ul {
    padding-left: 20px;
    margin-bottom: 10px;
}

.motter-validacao-conteudo .motter-ul li {
    margin-bottom: 4px;
}

.motter-validacao-conteudo .motter-code {
    background: #1e1e2e;
    color: #d4d4d4;
    padding: 12px 14px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12.5px;
    font-family: 'Consolas', 'Courier New', monospace;
    margin: 8px 0;
}
.sb-rename {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0;
    padding: 10px 14px;
    border: 1px solid #ffe0b2;
    background: #fff8ec;
    border-radius: 10px;
}

.sb-rename-info {
    font-size: 13px;
    color: #8a5a00;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sb-rename-info > i {
    color: #ff9800;
}

.sb-rename-de {
    font-family: 'Consolas', 'Courier New', monospace;
    background: #ffe2e1;
    color: #b31d28;
    padding: 1px 7px;
    border-radius: 5px;
    text-decoration: line-through;
}

.sb-rename-para {
    font-family: 'Consolas', 'Courier New', monospace;
    background: #e6ffed;
    color: #1a7f37;
    padding: 1px 7px;
    border-radius: 5px;
    font-weight: 700;
}

.sb-rename-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #03a9f3;
    background: #03a9f3;
    color: #fff;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s ease;
}

.sb-rename-btn:hover {
    background: #0288d1;
}

.sb-rename-btn.sb-rename-feito {
    background: #18b85a;
    border-color: #18b85a;
    cursor: default;
}

.sb-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
    color: #6c757d;
    gap: 12px;
}

.sb-loading i {
    font-size: 32px;
    color: #03a9f3;
}

.sb-confirma {
    margin-top: 14px;
    border: 1px solid #ffe0b2;
    background: #fff8ec;
    border-radius: 10px;
    padding: 14px 16px;
}

.sb-confirma-txt {
    font-size: 13px;
    color: #8a5a00;
}

.sb-confirma-txt i {
    color: #ff9800;
    margin-right: 4px;
}

.sb-confirma-acoes {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.sb-hist-body {
    display: flex;
    gap: 16px;
}

.sb-hist-versoes {
    width: 300px;
    flex: none;
}

.sb-hist-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8a949e;
    margin-bottom: 8px;
    letter-spacing: .04em;
}

.sb-hist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 56vh;
    overflow-y: auto;
}

.sb-hist-item {
    border: 1px solid #e7eaee;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.sb-hist-item:hover {
    border-color: #b3e0fb;
    background: #f6fbff;
}

.sb-hist-item.active {
    border-color: #03a9f3;
    background: #ecf7fe;
    box-shadow: 0 0 0 2px rgba(3, 169, 243, .12);
}

.sb-hist-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sb-hist-user {
    font-weight: 600;
    font-size: 13px;
    color: #2b2f33;
}

.sb-hist-data {
    font-size: 11.5px;
    color: #8a949e;
    margin-top: 2px;
}

.sb-badge-origem {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.sb-badge-motter {
    background: #e3f2fd;
    color: #0277bd;
}

.sb-badge-manual {
    background: #eceff1;
    color: #607d8b;
}

.sb-badge-aprovacao {
    background: #e6f4ea;
    color: #1a7f37;
}

.sb-badge-reprovacao {
    background: #fde8e8;
    color: #b31d28;
}

.sb-hist-diff-wrap {
    flex: 1;
    min-width: 0;
}

.sb-hist-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.sb-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e0e3e7;
    background: #fff;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #607d8b;
    cursor: pointer;
}

.sb-tab img {
    height: 15px;
}

.sb-tab.active {
    background: #03a9f3;
    border-color: #03a9f3;
    color: #fff;
}

.sb-diff-stats {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
}

.sb-diff-stats .add {
    color: #18b85a;
}

.sb-diff-stats .del {
    color: #e53935;
    margin-left: 8px;
}

.historico-diff {
    max-height: 52vh;
    overflow: auto;
    border: 1px solid #e7eaee;
    border-radius: 10px;
    background: #fbfbfc;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 12.5px;
}

.diff-linha {
    padding: 1px 10px;
    white-space: pre-wrap;
    word-break: break-word;
    border-left: 3px solid transparent;
}

.diff-add {
    background: #e6ffed;
    color: #1a7f37;
    border-left-color: #2da44e;
}

.diff-del {
    background: #ffebe9;
    color: #b31d28;
    border-left-color: #cf222e;
}

.diff-eq {
    color: #57606a;
}

.diff-w-del {
    background: #f1948f;
    color: #6e1117;
    font-weight: 600;
    border-radius: 3px;
    padding: 0 1px;
}

.diff-w-add {
    background: #6fd78a;
    color: #0c5223;
    font-weight: 600;
    border-radius: 3px;
    padding: 0 1px;
}

.sb-vazio {
    padding: 30px;
    text-align: center;
    color: #8a949e;
    font-size: 13px;
}

.sb-modal-header {
    cursor: move;
    user-select: none;
}

.sb-modal-header .sb-modal-close {
    cursor: pointer;
}

#modalMotterValidacao.sb-modal-livre {
    pointer-events: none;
    overflow: visible;
}

#modalMotterValidacao.sb-modal-livre .modal-dialog {
    pointer-events: auto;
    margin: 0;
    position: absolute;
    width: 1140px;
    max-width: 95vw;
}

.sb-barra-min {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(3, 169, 243, .35);
}

.sb-barra-min img {
    height: 30px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .25));
}

.sb-barra-min .sb-modal-title-sub {
    font-size: 11px;
}

.sb-barra-min .sb-modal-close {
    width: 26px;
    height: 26px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sb-modal-header-exec {
    background: #f57c00;
}

.sb-exec-picker-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8a949e;
    letter-spacing: .04em;
    margin-bottom: 6px;
}

.sb-exec-picker-label-unidades {
    margin-top: 18px;
}

.sb-exec-scripts-lista {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 140px;
    overflow-y: auto;
    margin-bottom: 4px;
}

.sb-exec-script-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e7eaee;
    border-radius: 8px;
    padding: 6px 8px 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #2b2f33;
    background: #f8f9fb;
}

.sb-exec-script-nome {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sb-exec-script-acao {
    flex: none;
    border: none;
    background: transparent;
    color: #8a949e;
    cursor: pointer;
    font-size: 14px;
    padding: 4px 7px;
    border-radius: 6px;
    transition: background .12s ease, color .12s ease;
}

.sb-exec-script-acao:hover {
    background: #eef1f4;
    color: #2b2f33;
}

.sb-exec-script-remover:hover {
    background: #fde8e8;
    color: #b31d28;
}

.sb-exec-secao {
    margin-top: 18px;
}

.sb-exec-secao-titulo {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #8a949e;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.sb-exec-resultado,
.sb-exec-historico {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
}

.sb-exec-historico-vazio {
    padding: 14px;
    text-align: center;
    color: #8a949e;
    font-size: 12.5px;
    border: 1px dashed #e0e3e7;
    border-radius: 8px;
}

.sb-exec-historico-item,
.sb-exec-resultado-item {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e7eaee;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

.sb-exec-historico-unidade,
.sb-exec-resultado-unidade {
    font-weight: 600;
    color: #2b2f33;
}

.sb-exec-historico-meta {
    font-size: 11.5px;
    color: #8a949e;
    margin-left: auto;
}

.sb-exec-resultado-item i {
    font-size: 16px;
}

.sb-exec-resultado-ok i {
    color: #18b85a;
}

.sb-exec-resultado-falha i {
    color: #e53935;
}

.sb-exec-resultado-status {
    margin-left: auto;
    font-weight: 700;
    font-size: 12px;
}

.sb-exec-resultado-ok .sb-exec-resultado-status {
    color: #18b85a;
}

.sb-exec-resultado-falha .sb-exec-resultado-status {
    color: #e53935;
    cursor: help;
}

.sb-exec-resultado-info i {
    color: #8a94a6;
}

.sb-exec-resultado-info .sb-exec-resultado-status {
    color: #8a94a6;
}

.sb-badge-execucao {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .03em;
    white-space: nowrap;
}

.sb-badge-execucao-sucesso {
    background: #e6f4ea;
    color: #1a7f37;
}

.sb-badge-execucao-erro {
    background: #fde8e8;
    color: #b31d28;
    cursor: help;
}

.sb-badge-execucao-andamento {
    background: #fff3cd;
    color: #8a5a00;
}

.btn-sb-executar {
    background: #f57c00;
    color: #fff;
    border-color: #f57c00;
}

.btn-sb-executar:hover {
    background: #e46e00;
}
