/* =========================================================================
   docs-interface.css: só da página /Docs/interface ("A janela do Curator").
   Substitui docs-scenes.css / docs-scenes.js / _interface_scenes.html, que
   mostravam a interface 2.5 e não são mais carregados.

   Cores do site fora das molduras (navy #0D2142, ciano #00B5CC/#26C6DA,
   azul #1976D2). A paleta do app 3.2.3 (fundo #090f1f, verde-limão #5cf542)
   aparece só dentro da réplica da barra de resultados (.dif-app).

   Componentes:
     .dif-goals    atalhos "o que você quer fazer"
     .dif-canvas   print com marcadores numerados (.dif-pin) + legenda
     .dif-crop     recorte de um print (painel Notificações)
     .dif-app      réplica fiel da barra "Resultados da Última Execução"
   Carregado no <head> por templates/docs/interface.html, depois do docs-core.css.
   ========================================================================= */

/* ---------- Atalhos: o que você quer fazer ---------- */
.docs-body .dif-goals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 8px;
    padding: 0;
    list-style: none;
}
.docs-body .dif-goals li {
    margin: 0;
    padding: 0;
}
.docs-body .dif-goals a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid #e3ecf4;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(13, 33, 66, 0.05);
    color: #0D2142;
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.docs-body .dif-goals a:hover,
.docs-body .dif-goals a:focus-visible {
    border-color: #26C6DA;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(13, 33, 66, 0.09);
}
.docs-body .dif-goals .dif-goals__icon {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #e8f7fa;
    color: #00B5CC;
    font-size: 20px;
}
.docs-body .dif-goals .dif-goals__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.docs-body .dif-goals .dif-goals__text strong {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    color: #0D2142;
}
.docs-body .dif-goals .dif-goals__text span {
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: #6b7a90;
}
@media (max-width: 1199px) {
    .docs-body .dif-goals {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 575px) {
    .docs-body .dif-goals {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .docs-body .dif-goals a {
        padding: 12px 14px;
    }
}

/* ---------- Print com marcadores numerados ---------- */
figure.docs-shot .dif-canvas {
    position: relative;
    display: block;
    line-height: 0;
}
figure.docs-shot .dif-canvas img {
    position: relative;
    z-index: 0;
}
.dif-canvas .dif-pin {
    position: absolute;
    z-index: 1;
    left: var(--x);
    top: var(--y);
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: linear-gradient(135deg, #26C6DA 0%, #1976D2 100%);
    color: #ffffff;
    font-family: "Nunito", sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 0 0 4px rgba(38, 198, 218, 0.28), 0 6px 14px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}
@media (max-width: 767px) {
    .dif-canvas .dif-pin {
        width: 18px;
        height: 18px;
        margin: -9px 0 0 -9px;
        border-width: 1.5px;
        font-size: 10px;
        box-shadow: 0 0 0 2px rgba(38, 198, 218, 0.3), 0 3px 8px rgba(0, 0, 0, 0.45);
    }
}
/* Legenda dos marcadores: a mesma lista numerada do docs-core, mais compacta */
.docs-body ol.docs-steps.dif-legend {
    margin-top: 6px;
}
.docs-body ol.docs-steps.dif-legend > li {
    font-size: 15.5px;
}

/* ---------- Recorte de um print (mostra só uma parte da tela) ---------- */
figure.docs-shot .dif-crop {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    background: #090f1f;
}
figure.docs-shot .dif-crop img {
    position: absolute;
    max-width: none;
    height: auto;
    border-radius: 0;
}
/* Painel "Notificações" em notificacoes.webp (2000x1250): x 1196–1726, y 52–732 */
figure.docs-shot .dif-crop--notif {
    aspect-ratio: 530 / 680;
}
figure.docs-shot .dif-crop--notif img {
    width: 377.36%;   /* 2000 / 530 */
    left: -225.66%;   /* 1196 / 530 */
    top: -7.647%;     /* 52 / 680 */
}
figure.docs-shot.dif-shot--panel {
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- Réplica da barra de resultados (visual do app 3.2.3) ---------- */
.dif-app {
    margin: 22px 0 10px;
    padding: 8px;
    background: #071018;
    border: 1px solid rgba(38, 198, 218, 0.28);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(13, 33, 66, 0.16);
}
.dif-app .dif-app__screen {
    padding: 4px 18px 18px;
    border-radius: 10px;
    background: #121a2a;
    color: #e6ebf3;
    font-family: "Nunito", sans-serif;
    font-size: 14px;
    line-height: 1.3;
}
.dif-app .dif-app__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 26px;
    padding: 12px 0 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid #232b3d;
}
.dif-app .dif-app__tab {
    color: #b9c2d3;
    font-weight: 600;
}
.dif-app .dif-app__tab.is-on {
    color: #5cf542;
    font-weight: 700;
}
.dif-app .dif-app__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
}
.dif-app .dif-app__row + .dif-app__row {
    margin-top: 10px;
}
.dif-app .dif-app__title {
    color: #ffffff;
    font-weight: 800;
}
.dif-app .dif-app__count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid #2c3548;
    border-radius: 8px;
    color: #b9c2d3;
    font-weight: 600;
    white-space: nowrap;
}
.dif-app .dif-app__count b {
    color: #ffffff;
    font-weight: 800;
}
.dif-app .dif-app__warn {
    color: #f5b301;
}
.dif-app .dif-app__err {
    color: #c9d1de;
}
.dif-app .dif-app__filters {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-left: auto;
}
.dif-app .dif-app__filter {
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #b9c2d3;
    font-weight: 700;
}
.dif-app .dif-app__filter.is-on {
    border-color: #2c3548;
    background: #1c2536;
    color: #ffffff;
}
.dif-app .dif-app__search {
    flex: 1 1 220px;
    min-width: 0;
    padding: 9px 14px;
    border: 1px solid #2c3548;
    border-radius: 8px;
    background: #0d1422;
    color: #7d889c;
    font-weight: 600;
}
.dif-app .dif-app__btn {
    padding: 8px 14px;
    border: 1px solid #2c3548;
    border-radius: 8px;
    background: #1c2536;
    color: #ffffff;
    font-weight: 800;
    white-space: nowrap;
}
.dif-app .dif-app__link {
    padding: 8px 6px;
    color: #c9d1de;
    font-weight: 700;
}
.dif-app-cap {
    margin: 0 auto 26px;
    max-width: 760px;
    color: #5d6a7d;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
}
@media (max-width: 575px) {
    .dif-app .dif-app__screen {
        padding: 2px 12px 14px;
        font-size: 13px;
    }
    .dif-app .dif-app__tabs {
        gap: 4px 16px;
    }
    .dif-app .dif-app__filters {
        margin-left: 0;
    }
    .dif-app .dif-app__filter {
        padding: 5px 10px;
    }
}

/* ---------- Pequenos ajustes de texto ---------- */
.docs-body .dif-path {
    font-weight: 700;
    color: #0D2142;
}
.docs-body .docs-section .dif-stage {
    font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
    font-weight: 700;
    color: #0D2142;
    white-space: nowrap;
}

/* ---------- Tabelas no celular ---------- */
/* O docs-core hifeniza as células no celular, o que parte rótulos da tela (“Auto-mação”, “Er-ros”).
   Nestas tabelas o texto quebra só entre palavras; a 1ª coluna nunca parte uma palavra. */
@media (max-width: 767px) {
    .docs-body table.dif-table td,
    .docs-body table.dif-table th {
        -webkit-hyphens: none;
        hyphens: none;
    }
    .docs-body table.dif-table td:first-child,
    .docs-body table.dif-table th:first-child {
        overflow-wrap: normal;
    }
    .docs-body .docs-section .dif-stage {
        font-size: 12.5px;
    }
}
/* Tabela de três colunas (modelos REFRAMEWORK): no celular, cada linha vira um cartão. */
@media (max-width: 575px) {
    .docs-body table.dif-table--stack {
        display: block;
        overflow: visible;
        box-shadow: none;
        border-radius: 0;
    }
    .docs-body table.dif-table--stack thead {
        display: none;
    }
    .docs-body table.dif-table--stack tbody,
    .docs-body table.dif-table--stack tr,
    .docs-body table.dif-table--stack td {
        display: block;
        width: 100%;
    }
    .docs-body table.dif-table--stack tr {
        margin: 0 0 12px;
        border: 1px solid #e3ecf4;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 4px 14px rgba(13, 33, 66, 0.05);
        overflow: hidden;
    }
    .docs-body table.dif-table--stack tbody tr:nth-of-type(even) {
        background: #ffffff;
    }
    .docs-body table.dif-table--stack td {
        border: 0;
        padding: 10px 14px;
        -webkit-hyphens: none;
        hyphens: none;
    }
    .docs-body table.dif-table--stack td:first-child {
        background: #0D2142;
        color: #ffffff;
    }
    .docs-body table.dif-table--stack td:first-child strong {
        color: #ffffff;
    }
    .docs-body table.dif-table--stack td:first-child small {
        color: #bfd2e3;
    }
    .docs-body table.dif-table--stack td + td {
        border-top: 1px solid #edf2f7;
    }
    .docs-body table.dif-table--stack td[data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: #00B5CC;
        font-size: 11.5px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }
}
