@font-face {
    font-family: 'RobotoFimel';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'RobotoFimel';
    src: url('../fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'RobotoFimel';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

:root {
    --fimel-red: #e30613;
    --fimel-red-dark: #b3050f;
    --ink: #1c1c1c;
    --ink-soft: #4a4a4a;
    --muted: #7a7a7a;
    --line: #d8d8d8;
    --bg: #eef0f2;
    --panel: #ffffff;

    --pendente: #87ceeb;
    --concluido: #34a853;
    --concluido-resenha: #1f8a45;
    --atrasado: #ff5c33;
    --aguardar: #f2c200;
    --anulado: #6b6b6b;
    --nao-definido: #e8e8e8;

    --topbar-h: 62px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    font-family: 'RobotoFimel', 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--bg);
}

.hidden { display: none !important; }

button { font-family: inherit; font-size: inherit; cursor: pointer; }

/* ---------- Login ---------- */
.login {
    min-height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 15% 20%, rgba(227, 6, 19, .22), transparent 45%),
        linear-gradient(135deg, #1b1b1b 0%, #2c2c2c 45%, #111 100%);
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 10px;
    padding: 34px 32px 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    border-top: 5px solid var(--fimel-red);
}

.login-brand { display: flex; align-items: center; justify-content: center; margin-bottom: 22px; }
.logo-mark { color: var(--fimel-red); font-weight: 700; font-size: 22px; letter-spacing: -2px; }
.logo-text { font-size: 26px; font-weight: 700; letter-spacing: -.5px; color: var(--ink); }

.brand-logo { height: 44px; width: auto; display: block; }

.login-card h1 { font-size: 19px; margin: 0 0 4px; font-weight: 500; }
.login-sub { margin: 0 0 22px; color: var(--muted); font-size: 12.5px; }

.login-card label { display: block; font-size: 12px; color: var(--ink-soft); margin-bottom: 5px; }

.login-card input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    transition: border-color .15s, box-shadow .15s;
}

.login-card input:focus {
    outline: none;
    border-color: var(--fimel-red);
    box-shadow: 0 0 0 3px rgba(227, 6, 19, .12);
}

.login-card button[type=submit] {
    width: 100%;
    padding: 11px;
    border: 0;
    border-radius: 6px;
    background: var(--fimel-red);
    color: #fff;
    font-weight: 500;
    font-size: 14.5px;
    transition: background .15s;
}

.login-card button[type=submit]:hover { background: var(--fimel-red-dark); }
.login-card button[type=submit]:disabled { opacity: .6; cursor: progress; }

.login-error { color: var(--fimel-red); font-size: 12.5px; min-height: 16px; margin: 0 0 8px; }
.login-foot { margin: 20px 0 0; font-size: 10.5px; color: #9a9a9a; text-align: center; }

/* Segundo passo: código temporário enviado por email */
.input-codigo {
    text-align: center;
    font-size: 24px;
    letter-spacing: 9px;
    font-variant-numeric: tabular-nums;
    padding: 10px 8px 10px 14px;
}

.login-foot-acoes { display: flex; justify-content: center; gap: 18px; }

.link-escuro {
    background: none;
    border: 0;
    padding: 0;
    color: var(--fimel-red);
    font-size: 11.5px;
    font-family: inherit;
}

.link-escuro:hover { text-decoration: underline; }
.link-escuro:disabled { color: #b5b5b5; cursor: not-allowed; text-decoration: none; }

/* ---------- Shell ---------- */
/* ---------- Shell ---------- */
.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
}

.app-body {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    flex: 1;
    min-height: 0;
}

.app.compacto .app-body { grid-template-columns: 74px minmax(0, 1fr); }

/* ---------- Barra superior (faixa tipo software) ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: stretch;
    height: var(--topbar-h);
    background: #141414;
    border-bottom: 3px solid var(--fimel-red);
    color: #fff;
}

.topbar-user {
    width: 236px;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    background: linear-gradient(150deg, #e30613 0%, #a3040e 100%);
}

.topbar-user .avatar {
    width: 34px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, .65);
    background-color: #c9c9c9;
}

.topbar-user-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.topbar-user-meta strong {
    font-size: 12.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-brand {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 22px;
    min-width: 0;
}

.brand-logo-top {
    height: 36px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.topbar-title {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: 46vw;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: .4px;
    color: rgba(255, 255, 255, .85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
}

@media (max-width: 860px) {
    .topbar-title { display: none; }
}

.topbar-acoes {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    flex: 0 0 auto;
}

.topbar-cache {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .9);
    white-space: nowrap;
    padding: 7px 13px;
}

.topbar-cache:hover {
    background: rgba(255, 255, 255, .18);
    color: #fff;
}

/* ---------- Barra lateral ---------- */
.sidebar {
    position: sticky;
    top: var(--topbar-h);
    height: calc(100vh - var(--topbar-h));
    display: flex;
    flex-direction: column;
    background: linear-gradient(170deg, #141414 0%, #232323 55%, #120d0d 100%);
    color: #e9e9e9;
    border-right: 3px solid var(--fimel-red);
    z-index: 20;
}

.side-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nav-group { display: flex; flex-direction: column; gap: 2px; }

.nav-group-titulo {
    font-size: 9.5px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .35);
    padding: 0 10px 4px;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: rgba(255, 255, 255, .78);
    font-size: 12.5px;
    text-align: left;
    transition: background .12s, color .12s;
}

.nav-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.nav-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }

.nav-btn.active {
    background: var(--fimel-red);
    color: #fff;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(227, 6, 19, .35);
}

/* ---------- Utilizador ---------- */
.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #c9c9c9 center/cover no-repeat;
    border: 2px solid rgba(255, 255, 255, .55);
    flex: 0 0 auto;
    font-size: 13px;
}

.link {
    background: none;
    border: 0;
    padding: 0;
    color: rgba(255, 255, 255, .55);
    font-size: 11px;
    text-align: left;
}

.link:hover { color: #fff; text-decoration: underline; }

.topbar-user .link { color: rgba(255, 255, 255, .8); }
.topbar-user .link:hover { color: #fff; }

.sidebar-toggle {
    display: none;
    align-self: center;
    margin-right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 5px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 16px;
    line-height: 1;
}

/* ---------- Modo compacto ---------- */
.app.compacto .nav-group-titulo,
.app.compacto .nav-btn span { display: none; }

.app.compacto .nav-btn { justify-content: center; padding: 9px 0; }

.app.compacto .topbar-user { width: 74px; padding: 0 10px; justify-content: center; }
.app.compacto .topbar-user-meta { display: none; }

/* ---------- View ---------- */
.view { padding: 16px 20px 28px; min-width: 0; overflow-x: auto; }

/* Páginas cuja grelha deve ocupar toda a altura disponível */
.view.preencher {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--topbar-h));
    overflow: hidden;
}

.view.preencher .grid-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}

.view.preencher .calendario-flex {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    align-content: start;
}

/* ---------- Legenda (nas páginas que a usam) ---------- */
.legend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    padding: 7px 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-size: 11px;
}

.legend h3 {
    margin: 0 6px 0 0;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .6px;
    font-weight: 500;
    color: var(--muted);
}

.legend-item { display: flex; align-items: center; gap: 5px; white-space: nowrap; }

.legend-swatch {
    width: 13px;
    height: 9px;
    border-radius: 2px;
    flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, .12);
}

.page-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.page-head h2 { margin: 0; font-size: 17px; font-weight: 500; }
.page-head .spacer { flex: 1; }

/* Logotipo do cliente na ficha da ordem de produção */
.op-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    min-width: 40px;
    padding: 2px 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.op-logo img { max-height: 28px; max-width: 150px; object-fit: contain; }

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}

.panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    font-weight: 500;
}

.panel-body { padding: 13px; }

/* Painel "Estado das Etapas" — o cartão inteiro com fundo próprio para se destacar */
.panel--etapas {
    background: #e1eaf6;
    border-color: #b9cbe2;
    box-shadow: 0 1px 4px rgba(30, 45, 70, .08);
}

.panel--etapas .panel-head {
    background: transparent;
    border-bottom: 1px solid #c1d0e4;
    border-radius: 8px 8px 0 0;
    color: #2f3a48;
    letter-spacing: .2px;
}

.panel--etapas .panel-body {
    background: transparent;
    border-radius: 0 0 8px 8px;
}

/* ---------- Tabs / search ---------- */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin-bottom: 10px; }

.tab {
    padding: 7px 16px;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: #f4f4f4;
    color: var(--ink-soft);
    font-size: 12.5px;
    border-radius: 5px 5px 0 0;
    margin-right: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tab.active { background: #fff; color: var(--ink); font-weight: 500; border-bottom: 2px solid #fff; margin-bottom: -2px; }

.search-row { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }

input[type=text], input[type=search], input[type=date], input[type=datetime-local], input[type=number], input[type=password], input[type=email], select, textarea {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    font-family: inherit;
    font-size: 13px;
    background: #fff;
    color: var(--ink);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--fimel-red);
    box-shadow: 0 0 0 2px rgba(227, 6, 19, .1);
}

.btn {
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #fff;
    color: var(--ink);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn:hover { background: #f5f5f5; }
.btn-primary { background: var(--fimel-red); border-color: var(--fimel-red); color: #fff; }
.btn-primary:hover { background: var(--fimel-red-dark); }
.btn-green { background: #2f9e44; border-color: #2f9e44; color: #fff; }
.btn-green:hover { background: #26843a; }
.btn-danger { background: #d6336c; border-color: #d6336c; color: #fff; }
.btn-danger:hover { background: #b02a5b; }
.btn-warn { background: #f59f00; border-color: #f59f00; color: #3a2600; }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Grid ---------- */
/* Barra com pesquisa à esquerda, paginação ao centro exato e ações à direita */
.search-row--tri {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.sr-esquerda,
.sr-direita {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.sr-direita { justify-content: flex-end; }
.sr-direita span, .sr-direita .btn { white-space: nowrap; }

.paginacao {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: center;
}

.paginacao .btn { padding: 3px 10px; font-size: 13px; line-height: 1.2; }
.paginacao span { min-width: 86px; text-align: center; }

.grid-wrap { overflow: auto; max-height: calc(100vh - 290px); border: 1px solid var(--line); border-radius: 6px; background: #fff; }

table.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }

table.grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f0f1f3;
    color: var(--ink-soft);
    font-weight: 500;
    text-align: left;
    padding: 7px 9px;
    border-bottom: 1px solid var(--line);
    border-right: 1px solid #e4e4e4;
    white-space: nowrap;
}

table.grid tbody td {
    padding: 5px 9px;
    border-bottom: 1px solid #ececec;
    border-right: 1px solid #f1f1f1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 320px;
}

table.grid tbody tr { cursor: pointer; }
table.grid tbody tr:hover td { filter: brightness(.96); }

tr.st-pendente td { background: var(--pendente); }
tr.st-concluido td { background: var(--concluido); color: #fff; }
tr.st-concluido-resenha td { background: var(--concluido-resenha); color: #fff; }
tr.st-atrasado td { background: var(--atrasado); color: #fff; }
tr.st-aguardar td { background: var(--aguardar); }
tr.st-anulado td { background: var(--anulado); color: #fff; }
tr.st-nao-definido td { background: var(--nao-definido); }

.cell-done { color: inherit; font-weight: 500; }
.cell-empty { color: rgba(0, 0, 0, .38); }
tr.st-concluido .cell-empty, tr.st-atrasado .cell-empty, tr.st-anulado .cell-empty { color: rgba(255, 255, 255, .55); }

/* Ãcone de informaÃ§Ã£o nas OPs com nota no histÃ³rico */
.op-com-nota { display: inline-flex; align-items: center; gap: 4px; }

.icone-nota {
    display: inline-flex;
    width: 13px;
    height: 13px;
    flex: 0 0 auto;
    opacity: 1;
}

.icone-nota svg { width: 100%; height: 100%; display: block; }

/* ---------- Logotipos ---------- */
.logo-mini {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 10.5px;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
}

.logo-mini img { max-width: 100%; max-height: 100%; object-fit: contain; }

.logo-bloco {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.logo-preview {
    width: 110px;
    height: 66px;
    flex: 0 0 auto;
    border: 1px dashed var(--line);
    border-radius: 5px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 10.5px;
    color: #a0a0a0;
    overflow: hidden;
}

.logo-preview.com-imagem { border-style: solid; background: #fff; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* BalÃ£o com a Ãºltima nota do histÃ³rico */
.nota-balao {
    position: fixed;
    z-index: 90;
    display: none;
    max-width: 420px;
    padding: 8px 11px;
    background: #f4f4f4;
    border: 1px solid #b9b9b9;
    border-radius: 4px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
    font-size: 12px;
    line-height: 1.4;
    color: #1c1c1c;
    white-space: pre-wrap;
    pointer-events: none;
}

.nota-balao.visivel { display: block; }

.nota-meta {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #7a7a7a;
    margin-bottom: 4px;
}

.nota-texto { max-height: 220px; overflow: hidden; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > label { font-size: 11.5px; color: var(--muted); }
.field.wide { grid-column: 1 / -1; }

/* Caixa de pesquisa de clientes (nova ordem de produção) */
.combo { position: relative; }
.combo > input[type=text] { width: 100%; }
.combo-lista {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    max-height: 290px;
    overflow-y: auto;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .14);
}

.combo-item {
    display: block;
    width: 100%;
    padding: 7px 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    font: inherit;
    font-size: 12.5px;
    text-align: left;
    color: var(--ink);
    cursor: pointer;
}

.combo-item:hover,
.combo-item.ativo { background: #fdeaea; }

.combo-numero { font-weight: 600; margin-right: 6px; }
.combo-extra { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.combo-vazio { margin: 0; padding: 9px 10px; }

.check-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 8px; }

.check-item {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 7px 9px;
    font-size: 12.5px;
    background: #fbfbfb;
}

.check-item input[type=checkbox] { accent-color: var(--fimel-red); }
.check-item .hide-flag { margin-left: auto; font-size: 10.5px; color: var(--muted); display: flex; align-items: center; gap: 4px; }

/* Estado das Etapas — o cartão muda de cor conforme concluída / oculta */
.etapa {
    display: flex;
    flex-direction: column;
    gap: 6px;
    border: 1px solid var(--line);
    border-left: 4px solid #d3d6db;
    border-radius: 5px;
    padding: 7px 9px;
    background: #fbfbfb;
    transition: background .15s, border-color .15s;
}

.etapa-topo { display: flex; align-items: flex-start; gap: 7px; min-height: 20px; }

.etapa-nome {
    font-size: 12.5px;
    font-weight: 500;
    color: #444;
    line-height: 1.3;
    cursor: pointer;
}

.etapa-ocultar {
    margin-left: auto;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
}

.etapa input[type=checkbox] { accent-color: var(--fimel-red); }
.etapa-ocultar input[type=checkbox] { accent-color: #8b9099; }
.etapa input[type=date] { width: 100%; }

/* Concluída: verde */
.etapa.concluida { background: #eef8f0; border-color: #b7e0c2; border-left-color: #2e9e50; }
.etapa.concluida .etapa-nome { color: #1f6b36; }

/* Oculta: cinza, esbatida */
.etapa.oculta { background: #f1f2f4; border-color: #dcdfe3; border-left-color: #b3b8c0; }
.etapa.oculta .etapa-nome { color: #8b9099; font-style: italic; }
.etapa.oculta input[type=date] { background: #e9eaed; color: #9aa0a8; cursor: not-allowed; }

/* Concluída e oculta ao mesmo tempo: mantém o verde mas esbatido */
.etapa.concluida.oculta { background: #f0f5f1; border-left-color: #8fb99c; }
.etapa.concluida.oculta .etapa-nome { color: #6f8b78; }

/* ---------- Calendar (vales) ---------- */
.cal { display: grid; grid-template-columns: 54px repeat(7, 1fr); border: 1px solid var(--line); background: #fff; font-size: 11.5px; }

.cal-head { background: #f2f3f5; padding: 6px 4px; text-align: center; font-weight: 500; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }

.cal-head--fds { background: #f5dede; color: #8a4a4a; }

.cal-hour { background: #fafafa; padding: 2px 4px; text-align: right; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid #f0f0f0; font-variant-numeric: tabular-nums; }

.cal-cell { border-right: 1px solid #f0f0f0; border-bottom: 1px solid #f0f0f0; min-height: 17px; position: relative; }

.cal-event {
    position: absolute;
    left: 2px; right: 2px;
    border-top: 3px solid var(--fimel-red);
    border-radius: 3px;
    padding: 3px 5px;
    font-size: 10.5px;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

.cal-event strong { display: block; font-size: 10.5px; }
.cal-event small { display: block; opacity: .8; font-size: 9.5px; }

/* Grelha semanal com as 24 horas (vales) */
.cal-canto {
    position: sticky;
    top: 0;
    left: 0;
    z-index: 4;
    background: #f2f3f5;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.cal-dia-topo {
    position: sticky;
    top: 0;
    z-index: 3;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 4px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 500;
}

.cal-hora {
    position: sticky;
    left: 0;
    z-index: 2;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 1px 6px 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid #f4f4f4;
    background: #fafafa;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
}

.cal-hora--forte { color: var(--ink-soft); font-weight: 500; border-bottom-color: #e0e0e0; }

/* Sábado e domingo com fundo próprio, para se distinguirem dos dias úteis */
.cal-dia-topo--fds { color: #8a4a4a; }

.cal-coluna-fds {
    background-color: #faeaea;
    box-shadow: inset 1px 0 0 #f0d7d7, inset -1px 0 0 #f0d7d7;
}

/* Resumo de horas extras (modal) */
.he-resumo { display: flex; gap: 10px; margin-bottom: 12px; }

.he-resumo > div {
    flex: 1;
    padding: 10px 12px;
    text-align: center;
    background: #f7f7f8;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.he-num {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: var(--fimel-red);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.he-lbl { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.he-titulo {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-weight: 500;
    font-size: 12.5px;
    margin-bottom: 6px;
}

.he-periodo { font-size: 11px; color: var(--muted); font-weight: 400; }

.he-tabela { max-height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }

.he-tab { width: 100%; border-collapse: collapse; font-size: 11.5px; }

.he-tab th {
    position: sticky;
    top: 0;
    z-index: 1;
    text-align: left;
    font-weight: 500;
    color: var(--muted);
    background: #f2f3f5;
    border-bottom: 1px solid var(--line);
    padding: 6px 8px;
    white-space: nowrap;
}

.he-tab td { padding: 6px 8px; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
.he-tab tr:last-child td { border-bottom: 0; }
.he-tab tr:nth-child(even) td { background: #fcfcfc; }

.he-detalhe { color: var(--muted); font-size: 10.5px; }
.he-vazio { margin: 0; padding: 16px; text-align: center; color: var(--muted); font-size: 12px; }

/* ---------- Gantt ---------- */
.gantt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.gantt-toolbar input[type="search"] {
    flex: 1 1 220px;
    min-width: 160px;
    padding: 6px 9px;
    font-size: 12.5px;
}

.gantt-toolbar select { padding: 5px 6px; font-size: 12.5px; }
.gantt-toolbar .spacer { flex: 1 1 auto; }

.gantt-check {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    white-space: nowrap;
    cursor: pointer;
}

.gantt-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.gantt-kpi {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--muted);
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.gantt-kpi strong { font-size: 20px; font-weight: 500; }
.gantt-kpi span { font-size: 11px; color: var(--muted); }

.gantt-kpi--atrasadas { border-left-color: var(--atrasado); }
.gantt-kpi--atrasadas strong { color: var(--atrasado); }
.gantt-kpi--semana { border-left-color: var(--aguardar); }
.gantt-kpi--concluidas { border-left-color: var(--concluido); }
.gantt-kpi--concluidas strong { color: var(--concluido); }

.gantt-legenda .legend { margin-bottom: 10px; }

.gantt-area { flex: 1 1 auto; min-height: 0; display: flex; }

.gantt {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-start;
    min-height: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    overflow: auto;
}

.gantt-left {
    flex: 0 0 420px;
    position: sticky;
    left: 0;
    z-index: 4;
    background: #fff;
    border-right: 1px solid var(--line);
}

.gantt-right { flex: 0 0 auto; position: relative; }

.gantt-cabecalho {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #f7f7f8;
    border-bottom: 1px solid var(--line);
}

.gantt-cabecalho-esq {
    display: flex;
    align-items: center;
    height: 45px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink-soft);
    box-sizing: border-box;
}

.gantt-cabecalho-esq > div,
.gantt-linha-esq > div {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 6px;
}

.gantt-meses, .gantt-dias { display: flex; height: 22px; }

.gantt-mes {
    flex: 0 0 auto;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 0 5px;
    font-size: 10.5px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background: #f7f7f8;
}

.gantt-dia {
    flex: 0 0 auto;
    box-sizing: border-box;
    text-align: center;
    line-height: 22px;
    font-size: 9.5px;
    color: var(--muted);
    overflow: hidden;
    border-right: 1px solid #f0f0f0;
}

.gantt-dia--fds { background: #eef0f3; }
.gantt-dia--hoje { background: var(--fimel-red); color: #fff; font-weight: 500; }

.gantt-canvas { position: relative; overflow: hidden; }

.gantt-fundo { position: absolute; inset: 0; pointer-events: none; }

.gantt-fim-semana {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #f8f9fb;
}

.gantt-linha-mes {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px dashed #dcdfe3;
}

.gantt-hoje {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 2px solid var(--fimel-red);
    z-index: 2;
}

.gantt-linha {
    position: relative;
    height: 34px;
    box-sizing: border-box;
    border-bottom: 1px solid #f2f2f2;
}

.gantt-linha-esq {
    display: flex;
    align-items: center;
    padding: 3px 8px;
    font-size: 11.5px;
}

.gantt-cliente strong { display: block; font-weight: 500; line-height: 13px; }
.gantt-cliente small { display: block; color: var(--muted); font-size: 10px; line-height: 11px; }

.gantt-linha--ativa { background: #eaf3fb; }
.gantt-linha { cursor: pointer; }

/* Linhas de agrupamento */
.gantt-grupo {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 8px;
    font-size: 11.5px;
    background: #f7f7f8;
    border-bottom: 1px solid var(--line);
    box-sizing: border-box;
}

.gantt-grupo strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gantt-grupo-cor { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }

.gantt-grupo-total {
    margin-left: auto;
    font-size: 10px;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0 6px;
    line-height: 15px;
}

.gantt-linha-grupo {
    background: #f7f7f8;
    border-bottom: 1px solid var(--line);
    cursor: default;
}

/* Pegas de redimensionamento e arrasto */
.gantt-pega {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 7px;
    cursor: ew-resize;
    background: rgba(255, 255, 255, .28);
}

.gantt-pega--esq { left: 0; border-radius: 3px 0 0 3px; }
.gantt-pega--dir { right: 0; border-radius: 0 3px 3px 0; }

.gantt-barra { cursor: grab; }
.gantt-barra--fixa { cursor: default; }
.gantt-barra--arrastar { z-index: 6; cursor: grabbing; box-shadow: 0 6px 16px rgba(0, 0, 0, .28); }

body.gantt-arrastar { user-select: none; cursor: grabbing; }

.gantt-etiqueta {
    position: fixed;
    z-index: 70;
    pointer-events: none;
    background: #1c1c1c;
    color: #fff;
    font-size: 11.5px;
    padding: 4px 8px;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
    white-space: nowrap;
}

.gantt-aviso {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    padding: 10px 14px;
    background: #1c1c1c;
    color: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .32);
    font-size: 12px;
}

.gantt-aviso .btn { background: #fff; color: #1c1c1c; border-color: transparent; }

.gantt-dica-topo { align-self: center; }

/* ---------- Detalhe da assistência ---------- */
.assist-resumo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 10px;
}

.assist-resumo > div {
    background: #fafafa;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    padding: 7px 10px;
    min-width: 0;
}

.assist-resumo span {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
}

.assist-resumo strong {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    word-break: break-word;
}

.assist-descricao {
    margin: 14px 0 0;
    font-size: 13px;
    background: #fff8e1;
    border-left: 3px solid var(--fimel-red);
    padding: 8px 10px;
    border-radius: 0 4px 4px 0;
}

.assist-seccao {
    margin: 18px 0 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    align-items: baseline;
}

.assist-timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }

.assist-registo {
    position: relative;
    display: flex;
    gap: 10px;
    padding: 8px 0 8px 14px;
    border-left: 2px solid #e9e9e9;
}

.assist-registo-ponto {
    position: absolute;
    left: -5px;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.assist-registo-corpo { flex: 1; min-width: 0; }

.assist-registo-topo {
    display: flex;
    gap: 8px;
    align-items: baseline;
    flex-wrap: wrap;
}

.assist-registo-nota { font-size: 12.5px; white-space: pre-wrap; margin-top: 2px; }

/* Faixa de marcos */
.gantt-faixa-marcos {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 8px;
    box-sizing: border-box;
    background: #fbfbfc;
    border-bottom: 1px solid #e5e5e5;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--muted);
}

.gantt-marcos-faixa {
    position: relative;
    height: 22px;
    box-sizing: border-box;
    background: #fbfbfc;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
}

.gantt-marco {
    position: absolute;
    top: 4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 13px;
    padding: 0 5px 0 3px;
    border-radius: 3px;
    background: #fff;
    border: 1px solid var(--cor, var(--fimel-red));
    color: var(--ink);
    font-size: 9.5px;
    line-height: 11px;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.gantt-marco::before {
    content: '';
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    background: var(--cor, var(--fimel-red));
    transform: rotate(45deg);
}

/* Dependências */
.gantt-setas {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 3;
    overflow: visible;
    pointer-events: none;
}

.gantt-seta {
    fill: none;
    stroke: #6b6b6b;
    stroke-width: 1.4;
    pointer-events: stroke;
    cursor: pointer;
}

.gantt-seta:hover { stroke: var(--fimel-red); }

.gantt-barra--origem {
    outline: 2px solid #1a73e8;
    outline-offset: 1px;
    z-index: 5;
}

.gantt--ligar .gantt-barra { cursor: crosshair; }

/* Formulário de marcos */
.gantt-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-bottom: 14px;
}

.gantt-form label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11.5px;
    color: var(--muted);
}

.gantt-form input { padding: 5px 7px; font-size: 12.5px; min-width: 150px; }
.gantt-form input[type="color"] { min-width: 0; width: 46px; height: 31px; padding: 2px; }

.gantt-marcos-lista { list-style: none; margin: 0; padding: 0; max-height: 240px; overflow: auto; }

.gantt-marcos-lista li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 12px;
}

.gantt-marcos-lista li:last-child { border-bottom: 0; }
.gantt-marcos-lista .btn { margin-left: auto; }
.gantt-marco-cor { width: 10px; height: 10px; border-radius: 2px; flex: 0 0 auto; }

.gantt-barra {
    position: absolute;
    top: 8px;
    height: 18px;
    box-sizing: border-box;
    border-radius: 3px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 10px;
    line-height: 18px;
    white-space: nowrap;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .16);
    z-index: 1;
}

.gantt-barra-progresso {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .22);
    pointer-events: none;
}

.gantt-barra-texto {
    position: relative;
    z-index: 1;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 720px) {
    .gantt { max-height: 68vh; }
    .gantt-left { flex: 0 0 250px; }
    .gantt-toolbar .spacer { display: none; }
}

@media print {
    @page { size: A4 landscape; margin: 8mm; }

    .topbar, .sidebar, .gantt-toolbar, .gantt-legenda, .sidebar-toggle { display: none !important; }

    .app, .app-body { display: block; background: #fff; }
    .view, .view.preencher { padding: 0; height: auto; overflow: visible; }

    .gantt { overflow: visible; max-height: none; border: 0; }
    .gantt-left, .gantt-cabecalho { position: static; }
    .gantt-rows { break-inside: auto; }
    .gantt-linha { break-inside: avoid; }
}

/* ---------- Cards / misc ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.card h3 { margin: 0 0 6px; font-size: 14px; font-weight: 500; }
.card p { margin: 0; color: var(--muted); font-size: 12.5px; }

.stat { font-size: 24px; font-weight: 500; color: var(--fimel-red); }

.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 7px 10px; border-bottom: 1px solid #f0f0f0; display: flex; gap: 8px; align-items: center; font-size: 12.5px; }
.list li:hover { background: #fafafa; }
.list li:last-child { border-bottom: 0; }

.muted { color: var(--muted); }
.small { font-size: 11.5px; }
.right { text-align: right; }
.mono { font-variant-numeric: tabular-nums; }

.empty { padding: 28px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Toast / modal ---------- */
.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    max-width: 380px;
    padding: 11px 16px;
    border-radius: 6px;
    background: #232323;
    color: #fff;
    font-size: 13px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    z-index: 80;
}

.toast.ok { background: #2f9e44; }
.toast.err { background: #c92a2a; }

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: grid;
    place-items: center;
    padding: 24px;
    z-index: 60;
}

.modal-body {
    background: #fff;
    border-radius: 9px;
    width: min(980px, 100%);
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .4);
}

.modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #f5f5f6;
    border-radius: 9px 9px 0 0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.modal-head h3 { margin: 0; font-size: 15px; font-weight: 500; }
.modal-close { margin-left: auto; background: none; border: 0; font-size: 20px; line-height: 1; color: var(--muted); }
.modal-close:hover { color: var(--fimel-red); }

.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); background: #fafafa; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .app-body { grid-template-columns: 74px minmax(0, 1fr); }

    .nav-group-titulo,
    .nav-btn span { display: none; }

    .nav-btn { justify-content: center; padding: 9px 0; }

    .topbar-user { width: 74px; padding: 0 10px; justify-content: center; }
    .topbar-user-meta { display: none; }
}

@media (max-width: 720px) {
    .app-body { grid-template-columns: minmax(0, 1fr); }

    .sidebar {
        position: fixed;
        top: var(--topbar-h);
        bottom: 0;
        left: 0;
        width: 236px;
        height: auto;
        transform: translateX(-100%);
        transition: transform .18s ease;
    }

    .app.menu-aberto .sidebar { transform: translateX(0); box-shadow: 0 0 40px rgba(0, 0, 0, .5); }
    .app.menu-aberto .nav-group-titulo,
    .app.menu-aberto .nav-btn span { display: block; }

    .app.menu-aberto .nav-btn { justify-content: flex-start; padding: 8px 10px; }

    .sidebar-toggle { display: block; }

    .topbar-user { width: auto; padding: 0 12px; }
    .topbar-user-meta { display: none; }
    .topbar-brand { padding: 0 14px; gap: 10px; }
    .topbar-title { font-size: 13px; }

    .view { padding: 14px 12px 24px; }
    .view.preencher { height: auto; }
    .grid-wrap { max-height: none; }
}

/* ---------- Checklist e fotografias das assistências ---------- */
.assist-checklist {
    list-style: none;
    margin: 0 0 6px;
    padding: 0;
}

.assist-checklist li {
    display: flex;
    gap: 8px;
    align-items: baseline;
    padding: 4px 0;
    font-size: 13px;
    color: #333;
}

.assist-checklist li.feito {
    color: #2f9e44;
    text-decoration: line-through;
}

.assist-checklist li span:first-child {
    font-weight: 700;
    width: 14px;
    display: inline-block;
}

.assist-fotos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.assist-fotos img {
    display: block;
    border: 1px solid var(--line);
}

/* ---------- Página dedicada da assistência ---------- */
.assist-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.assist-kpi {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.assist-kpi span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.assist-kpi strong { font-size: 17px; font-weight: 600; }
.assist-kpi small { font-size: 10.5px; color: var(--muted); }

.assist-duas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 14px;
}

.assist-campo {
    border-bottom: 1px dotted var(--line);
    padding-bottom: 4px;
    min-width: 0;
}

.assist-campo span {
    display: block;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--muted);
}

.assist-campo strong {
    display: block;
    font-size: 12.5px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.assist-mapa { margin-top: 10px; }

.assist-galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.assist-foto {
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #f7f7f7;
    cursor: zoom-in;
    font: inherit;
    text-align: left;
}

.assist-foto img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
    background: #ececec;
}

.assist-foto-info {
    display: block;
    padding: 5px 8px;
    font-size: 10.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.assist-assinatura { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.assist-assinatura img {
    max-height: 110px;
    max-width: 300px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.assist-lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(12, 12, 12, .88);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
}

.assist-lightbox figure {
    margin: 0;
    max-width: min(1000px, 92vw);
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.assist-lightbox img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
}

.assist-lightbox figcaption { color: #eee; font-size: 12px; text-align: center; }

.assist-lightbox-fechar,
.assist-lightbox-nav {
    border: 0;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    flex: 0 0 auto;
}

.assist-lightbox-fechar { position: absolute; top: 16px; right: 18px; }
.assist-lightbox-fechar:hover,
.assist-lightbox-nav:hover { background: rgba(255, 255, 255, .3); }

/* Campainha de avisos do CMS */
.topbar-avisos { position: relative; }

.topbar-avisos .bolinha {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #fff;
    color: var(--fimel-red);
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #141414;
}

.avisos-lista {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 330px;
    max-height: 380px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
    z-index: 60;
    padding: 6px;
}

.avisos-lista p.vazio { margin: 0; padding: 10px; font-size: 12.5px; color: var(--muted); }

.aviso-item {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    border-radius: 6px;
    padding: 8px 10px;
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
    color: var(--ink);
    border-bottom: 1px solid #f3f3f3;
}

.aviso-item:hover { background: #fdeaea; }
.aviso-item .quando { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.aviso-item.nao-lido { font-weight: 600; }
