/* /Components/ArticlePicker.razor.rz.scp.css */
/* O gatilho vive em células de tabela estreitas: ocupa a largura toda e trunca com elegância. */
.article-pick[b-sb1j6l4gpy] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    min-width: 0;
    padding: 0.3rem 0.55rem;
    border: 1px solid #e3eaf2;
    border-radius: 7px;
    background: #fff;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.article-pick:hover[b-sb1j6l4gpy] {
    border-color: #9fc7e8;
    background: #f7fafd;
}

.article-pick:focus-visible[b-sb1j6l4gpy] {
    outline: 2px solid #9fc7e8;
    outline-offset: 1px;
}

/* Sem artigo, a linha vai para o ERP sem código: avisa antes do envio, não depois da rejeição. */
.article-pick.is-empty[b-sb1j6l4gpy] {
    border-color: #f0c36d;
    background: #fffdf7;
    color: #8a6d3b;
}

.article-pick.is-set[b-sb1j6l4gpy] {
    border-color: #cfe2f3;
}

.article-pick-code[b-sb1j6l4gpy] {
    color: #004998;
    font-family: var(--bs-font-monospace, monospace);
    font-size: 0.78rem;
    font-weight: 600;
    flex: 0 0 auto;
}

/* A descrição é a prova de que o código é o certo, e por isso não pode desaparecer: trunca. */
.article-pick-desc[b-sb1j6l4gpy] {
    color: #6b7a8d;
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.article-pick-empty[b-sb1j6l4gpy] {
    font-size: 0.8rem;
}

.picker-search[b-sb1j6l4gpy] {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.picker-search svg[b-sb1j6l4gpy] {
    position: absolute;
    left: 0.7rem;
    color: #98a4b3;
    pointer-events: none;
}

.picker-search input[b-sb1j6l4gpy] {
    width: 100%;
    padding: 0.45rem 0.75rem 0.45rem 2.1rem;
    border: 1px solid #e3eaf2;
    border-radius: 8px;
    font-size: 0.9rem;
}

.picker-search input:focus[b-sb1j6l4gpy] {
    outline: none;
    border-color: #9fc7e8;
    box-shadow: 0 0 0 3px rgba(0, 73, 152, 0.08);
}

.picker-list[b-sb1j6l4gpy] {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    overflow: hidden;
}

.picker-item[b-sb1j6l4gpy] {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.5rem 0.7rem;
    cursor: pointer;
    border-bottom: 1px solid #f2f5f9;
}

.picker-item:last-child[b-sb1j6l4gpy] {
    border-bottom: 0;
}

.picker-item:hover[b-sb1j6l4gpy] {
    background: #f2f8fd;
}

.picker-item.is-on[b-sb1j6l4gpy] {
    background: #eaf2fa;
}

.picker-item code[b-sb1j6l4gpy] {
    color: #004998;
    font-size: 0.8rem;
    flex: 0 0 auto;
    min-width: 5rem;
}

.picker-item span[b-sb1j6l4gpy] {
    color: #33414f;
    font-size: 0.84rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.picker-item small[b-sb1j6l4gpy] {
    margin-left: auto;
    color: #98a4b3;
    font-size: 0.72rem;
    flex: 0 0 auto;
}

.picker-empty[b-sb1j6l4gpy] {
    padding: 1.5rem 0.5rem;
    text-align: center;
    color: #6b7a8d;
}

.picker-empty small[b-sb1j6l4gpy] {
    color: #8794a3;
}

.picker-pager[b-sb1j6l4gpy] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.7rem;
    color: #8794a3;
    font-size: 0.78rem;
}

.picker-page[b-sb1j6l4gpy] {
    min-width: 3rem;
    text-align: center;
}

.picker-new[b-sb1j6l4gpy] {
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid #edf1f6;
}

.picker-new-form[b-sb1j6l4gpy] {
    padding: 0.75rem;
    border: 1px solid #e3eaf2;
    border-radius: 8px;
    background: #f7fafd;
}

.picker-new-title[b-sb1j6l4gpy] {
    color: #05305c;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.picker-new-row[b-sb1j6l4gpy] {
    display: flex;
    gap: 0.5rem;
}

.picker-new-unit[b-sb1j6l4gpy] {
    max-width: 5rem;
}

@media (max-width: 560px) {
    .picker-new-row[b-sb1j6l4gpy] {
        flex-direction: column;
    }

    .picker-new-unit[b-sb1j6l4gpy] {
        max-width: none;
    }
}
/* /Components/ConfirmDialog.razor.rz.scp.css */
.ti-modal-backdrop[b-u6qkdlhgz6] {
    position: fixed;
    inset: 0;
    background: rgba(5, 30, 60, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
}

.ti-modal[b-u6qkdlhgz6] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(16, 42, 76, 0.28);
    padding: 1.5rem;
    max-width: 440px;
    width: 100%;
}

.ti-modal-icon[b-u6qkdlhgz6] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fbe9e9;
    color: #dc3545;
    flex-shrink: 0;
}
/* /Components/ConnectorLogo.razor.rz.scp.css */
/* Fixed height, free width: logos differ wildly in aspect ratio (MyBlueBee ~1.5:1, Cegid PHC
   ~4.6:1) and lining them up by height is what makes a row of cards look deliberate.
   30px keeps the MyBlueBee raster (natural 91x60) inside its own resolution, so it stays crisp. */
.connector-logo-img[b-hxj69c3j6y] {
    height: 30px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

/* Fallback for a connector with no logo asset. */
.connector-lettermark[b-hxj69c3j6y] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    padding: 0 0.7rem;
    border-radius: 8px;
    background: var(--ti-gradient, linear-gradient(135deg, #004998 0%, #3F8FC9 100%));
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
}
/* /Components/ListPager.razor.rz.scp.css */
.list-pager[b-8v2bua2rn4] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
    padding-top: 0.8rem;
    border-top: 1px solid #edf1f6;
}

.list-pager-count[b-8v2bua2rn4] {
    color: #6b7a8d;
    font-size: 0.82rem;
}

.list-pager-count strong[b-8v2bua2rn4] {
    color: #05305c;
}

.list-pager-buttons[b-8v2bua2rn4] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.list-pager-page[b-8v2bua2rn4] {
    color: #6b7a8d;
    font-size: 0.82rem;
    min-width: 3.5rem;
    text-align: center;
}
/* /Components/ListSearch.razor.rz.scp.css */
.list-search[b-6ah32khh5l] {
    position: relative;
    flex: 1 1 auto;
    max-width: 420px;
    display: flex;
    align-items: center;
}

.list-search svg[b-6ah32khh5l] {
    position: absolute;
    left: 0.65rem;
    color: #98a4b3;
    pointer-events: none;
}

.list-search input[b-6ah32khh5l] {
    width: 100%;
    padding: 0.4rem 2rem 0.4rem 2rem;
    border: 1px solid #e3eaf2;
    border-radius: 8px;
    font-size: 0.88rem;
}

.list-search input:focus[b-6ah32khh5l] {
    outline: none;
    border-color: #9fc7e8;
    box-shadow: 0 0 0 3px rgba(0, 73, 152, 0.08);
}

.list-search-clear[b-6ah32khh5l] {
    position: absolute;
    right: 0.5rem;
    border: 0;
    background: none;
    padding: 0.2rem;
    line-height: 1;
    border-radius: 4px;
    color: #98a4b3;
}

.list-search-clear:hover[b-6ah32khh5l] {
    color: #55636f;
    background: #eef3f8;
}

@media (max-width: 640px) {
    .list-search[b-6ah32khh5l] {
        max-width: none;
    }
}
/* /Components/Modal.razor.rz.scp.css */
.ti-modal-backdrop[b-k1xqdtb0hz] {
    position: fixed;
    inset: 0;
    background: rgba(5, 30, 60, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    padding: 1rem;
}

.ti-modal[b-k1xqdtb0hz] {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 48px rgba(16, 42, 76, 0.28);
    width: 100%;
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.ti-modal-head[b-k1xqdtb0hz] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #e9eef4;
}

.ti-modal-head h5[b-k1xqdtb0hz] {
    color: #05305c;
    font-weight: 600;
}

.ti-modal-logo[b-k1xqdtb0hz] {
    display: inline-flex;
    align-items: center;
}

/* The body is the only scrolling part, so header and footer stay put on a long form. */
.ti-modal-body[b-k1xqdtb0hz] {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
}

.ti-modal-foot[b-k1xqdtb0hz] {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9eef4;
    background: #f8fafd;
    border-radius: 0 0 12px 12px;
}

.ti-modal-close[b-k1xqdtb0hz] {
    border: 0;
    background: transparent;
    color: #8296ad;
    border-radius: 6px;
    padding: 0.35rem;
    line-height: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ti-modal-close:hover[b-k1xqdtb0hz] {
    background: #eef3f9;
    color: #05305c;
}
/* /Components/ToastHost.razor.rz.scp.css */
/* Toasts: canto inferior direito, empilhados, por cima de tudo (inclusive dos modais). */
.toast-host[b-d5j8cg6wes] {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    /* O contentor cobre o ecrã todo mas não pode roubar cliques ao que está por baixo. */
    pointer-events: none;
}

.toast-card[b-d5j8cg6wes] {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    min-width: 300px;
    max-width: 420px;
    padding: 0.75rem 0.9rem;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-left-width: 4px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(16, 42, 76, 0.16);
    animation: toast-in-b-d5j8cg6wes 0.22s ease-out;
}

@keyframes toast-in-b-d5j8cg6wes {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Quem não quer animações não as leva. */
@media (prefers-reduced-motion: reduce) {
    .toast-card[b-d5j8cg6wes] {
        animation: none;
    }
}

.toast-card.is-ok[b-d5j8cg6wes] {
    border-left-color: #2e9e5b;
}

.toast-card.is-ok .toast-icon[b-d5j8cg6wes] {
    color: #2e9e5b;
}

.toast-card.is-bad[b-d5j8cg6wes] {
    border-left-color: #c0392b;
}

.toast-card.is-bad .toast-icon[b-d5j8cg6wes] {
    color: #c0392b;
}

.toast-icon[b-d5j8cg6wes] {
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

.toast-message[b-d5j8cg6wes] {
    flex: 1 1 auto;
    color: #33414f;
    font-size: 0.88rem;
    line-height: 1.45;
}

.toast-close[b-d5j8cg6wes] {
    flex: 0 0 auto;
    border: 0;
    background: none;
    padding: 0.15rem;
    border-radius: 4px;
    color: #98a4b3;
    line-height: 1;
    transition: color 0.15s ease, background 0.15s ease;
}

.toast-close:hover[b-d5j8cg6wes] {
    color: #55636f;
    background: #eef3f8;
}

.toast-close:focus-visible[b-d5j8cg6wes] {
    outline: 2px solid #9fc7e8;
    outline-offset: 1px;
}

@media (max-width: 480px) {
    .toast-host[b-d5j8cg6wes] {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .toast-card[b-d5j8cg6wes] {
        min-width: 0;
        max-width: none;
    }
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-jdz5an9tx2] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-jdz5an9tx2] {
    flex: 1;
}

.sidebar[b-jdz5an9tx2] {
    background-image: linear-gradient(180deg, #004998 0%, #3F8FC9 100%);
}

.top-row[b-jdz5an9tx2] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-jdz5an9tx2]  a, .top-row[b-jdz5an9tx2]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-jdz5an9tx2]  a:hover, .top-row[b-jdz5an9tx2]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-jdz5an9tx2]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-jdz5an9tx2] {
        justify-content: space-between;
    }

    .top-row[b-jdz5an9tx2]  a, .top-row[b-jdz5an9tx2]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-jdz5an9tx2] {
        flex-direction: row;
    }

    .sidebar[b-jdz5an9tx2] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-jdz5an9tx2] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-jdz5an9tx2]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-jdz5an9tx2], article[b-jdz5an9tx2] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-uojjysnill] {
    background-color: rgba(255, 255, 255, 0.1);
}

.top-row[b-uojjysnill] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-uojjysnill] {
    font-size: 1.1rem;
}

/* Brand mark: white tile so the blue-gradient monogram reads against the dark sidebar.
   Same treatment as the favicon, so tab and sidebar look like the same product. */
.brand-tile[b-uojjysnill] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #fff;
    flex-shrink: 0;
}

.brand-tile img[b-uojjysnill] {
    height: 22px;
    width: auto;
}

.bi[b-uojjysnill] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-uojjysnill] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-uojjysnill] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-uojjysnill] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-arrow-up-right-square-nav-menu[b-uojjysnill] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M0 2a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V2zm5.904 2.803a.5.5 0 1 0 0 1h2.44L4.31 9.982a.5.5 0 0 0 .707.707l4.034-4.033v2.44a.5.5 0 0 0 1 0V5.304a.5.5 0 0 0-.5-.5H5.904z'/%3E%3C/svg%3E");
}

.bi-box-arrow-right-nav-menu[b-uojjysnill] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0z'/%3E%3Cpath fill-rule='evenodd' d='M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708z'/%3E%3C/svg%3E");
}

.bi-box-arrow-in-right-nav-menu[b-uojjysnill] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M6 3.5a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v9a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-2a.5.5 0 0 0-1 0v2A1.5 1.5 0 0 0 6.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2h-8A1.5 1.5 0 0 0 5 3.5v2a.5.5 0 0 0 1 0z'/%3E%3Cpath fill-rule='evenodd' d='M11.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L10.293 7.5H1.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708z'/%3E%3C/svg%3E");
}

.bi-building-nav-menu[b-uojjysnill] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M3 0a1 1 0 0 0-1 1v14a1 1 0 0 0 1 1h3v-3.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V16h3a1 1 0 0 0 1-1V1a1 1 0 0 0-1-1zm1 2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm2.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm-2.5 5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm2.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm4-4a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm-.5 4.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

/* Documentos: uma folha. Antes partilhava o ícone de lista com os Artigos e os dois eram
   indistinguíveis de relance, que é como um menu se lê. */
.bi-file-earmark-text-nav-menu[b-uojjysnill] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M5.5 7a.5.5 0 0 0 0 1h5a.5.5 0 0 0 0-1zM5 9.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5m0 2a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5'/%3E%3Cpath d='M9.5 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.5zM9 1v2a1 1 0 0 0 1 1h3v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

/* Artigos: uma caixa/produto. */
.bi-box-seam-nav-menu[b-uojjysnill] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M8.186 1.113a.5.5 0 0 0-.372 0L1.846 3.5 8 5.961 14.154 3.5zM15 4.239l-6.5 2.6v7.922l6.5-2.6V4.24zM7.5 14.762V6.838L1 4.239v7.923zM7.443.184a1.5 1.5 0 0 1 1.114 0l7.129 2.852A.5.5 0 0 1 16 3.5v8.662a1 1 0 0 1-.629.928l-7.185 2.874a.5.5 0 0 1-.372 0L.63 13.09a1 1 0 0 1-.63-.928V3.5a.5.5 0 0 1 .314-.464z'/%3E%3C/svg%3E");
}

.nav-item[b-uojjysnill] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-uojjysnill] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-uojjysnill] {
        padding-bottom: 1rem;
    }

    .nav-item[b-uojjysnill]  a,
    .nav-item[b-uojjysnill]  button {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
    }

    /* O "Sair" é um <button> — repõe a aparência de botão para ler como os restantes links. */
    .nav-item[b-uojjysnill]  button {
        width: 100%;
        background: none;
        border: none;
        font: inherit;
        text-align: left;
        cursor: pointer;
    }

.nav-item[b-uojjysnill]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-uojjysnill]  a:hover,
.nav-item[b-uojjysnill]  button:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

@media (min-width: 641px) {
    .navbar-toggler[b-uojjysnill] {
        display: none;
    }

    .collapse[b-uojjysnill] {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }

    .nav-scrollable[b-uojjysnill] {
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;

        /* Coluna, para o Sair poder ser empurrado para o fundo pelo margin-top:auto. */
        display: flex;
        flex-direction: column;
    }

    /* O Sair é o fim da sessão, não mais um destino: fica encostado ao fundo em vez de andar
       atrás do último link do menu.
       O AuthorizeView não envolve nada em DOM, portanto o <nav> e o .nav-foot são filhos diretos
       do .nav-scrollable e o margin-top:auto tem contra o que empurrar. (Um display:contents aqui
       seria contraproducente: apagaria a caixa do .nav-foot e a margem deixaria de existir.) */
    .nav-foot[b-uojjysnill] {
        margin-top: auto;
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }
}
/* /Pages/Articles.razor.rz.scp.css */
/* Cabeçalho: o título à esquerda, o importar como ação secundária à direita. Importar é raro;
   não pode ocupar meio ecrã à frente da lista, que é o que se consulta todos os dias. */
.articles-head[b-grnaxrxmle] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.articles-import-btn[b-grnaxrxmle] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    white-space: nowrap;
}

.articles-toggle[b-grnaxrxmle] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #6b7a8d;
    font-size: 0.82rem;
    white-space: nowrap;
    cursor: pointer;
}

.articles-table code[b-grnaxrxmle] {
    color: #004998;
    font-size: 0.82rem;
}

.articles-table tbody tr:hover[b-grnaxrxmle] {
    background: #f7fafd;
}

@media (max-width: 640px) {
    .articles-head[b-grnaxrxmle] {
        flex-direction: column;
    }
}

/* Passos da importação: o cliente segue-os de cima para baixo, por isso a ordem é a instrução. */
.import-steps[b-grnaxrxmle] {
    margin: 0 0 1.25rem;
    padding-left: 1.2rem;
    color: #55636f;
    font-size: 0.9rem;
    line-height: 1.6;
}

.import-steps li + li[b-grnaxrxmle] {
    margin-top: 0.35rem;
}

.import-steps code[b-grnaxrxmle] {
    background: #eef3f8;
    color: #05305c;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
}

/* Escolher o modo é a decisão perigosa deste ecrã: fica com peso de cartão, não de radio solto. */
.import-mode[b-grnaxrxmle] {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.import-mode:hover[b-grnaxrxmle] {
    border-color: #cfe2f3;
    background: #f7fafd;
}

.import-mode.is-on[b-grnaxrxmle] {
    border-color: #004998;
    background: #f2f8fd;
}

.import-mode input[b-grnaxrxmle] {
    margin-top: 0.25rem;
}

.import-mode span[b-grnaxrxmle] {
    display: flex;
    flex-direction: column;
}

.import-mode strong[b-grnaxrxmle] {
    color: #05305c;
    font-size: 0.9rem;
}

.import-mode small[b-grnaxrxmle] {
    color: #6b7a8d;
    font-size: 0.8rem;
    line-height: 1.4;
}

.import-warn[b-grnaxrxmle] {
    margin-bottom: 1rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border: 1px solid #f3d9a4;
    background: #fdf6e6;
    color: #7a5a1e;
    font-size: 0.84rem;
    line-height: 1.5;
}

.import-report[b-grnaxrxmle] {
    padding: 0.85rem;
    border: 1px solid #e3eaf2;
    border-radius: 10px;
    background: #f7fafd;
}

.import-report-row[b-grnaxrxmle] {
    display: flex;
    flex-wrap: wrap;
    gap: 1.1rem;
}

.import-stat[b-grnaxrxmle] {
    color: #55636f;
    font-size: 0.88rem;
}

.import-stat strong[b-grnaxrxmle] {
    color: #05305c;
    font-size: 1.05rem;
}

.import-stat.is-warn strong[b-grnaxrxmle] {
    color: #a9701a;
}

/* Os problemas são para agir: mostram a linha, e o cliente vai lá corrigir. */
.import-problems[b-grnaxrxmle] {
    margin: 0.7rem 0 0;
    padding-left: 1.1rem;
    color: #7a5a1e;
    font-size: 0.82rem;
    line-height: 1.55;
    max-height: 180px;
    overflow-y: auto;
}
/* /Pages/Connectors.razor.rz.scp.css */
/* Connector catalogue: cards side by side, one per destination system. */
.connector-grid[b-bhdbyzqju1] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    align-items: stretch;
}

.connector-card[b-bhdbyzqju1] {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(16, 42, 76, 0.06);
    transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.connector-card:hover[b-bhdbyzqju1] {
    box-shadow: 0 8px 24px rgba(16, 42, 76, 0.1);
    transform: translateY(-2px);
}

/* An enabled connector is doing work — say so before the badge is read. */
.connector-card.is-on[b-bhdbyzqju1] {
    border-color: #cfe2f3;
}

.connector-head[b-bhdbyzqju1] {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

/* Fixed slot so logos of different aspect ratios line up across cards.
   The logo's own sizing lives in ConnectorLogo.razor.css. */
.connector-logo[b-bhdbyzqju1] {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 30px;
}

.connector-flags[b-bhdbyzqju1] {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.3rem;
}

.connector-name[b-bhdbyzqju1] {
    color: #05305c;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.connector-blurb[b-bhdbyzqju1] {
    color: #6b7a8d;
    font-size: 0.9rem;
    line-height: 1.5;
    /* Push the actions to the bottom so buttons align across cards of unequal text length. */
    flex: 1 1 auto;
    margin-bottom: 1rem;
}

.connector-actions[b-bhdbyzqju1] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* ── Agente on-prem: o passo que leva o cliente para fora da aplicação, por isso é o único
   bloco do modal com peso visual próprio em vez de mais uma nota em texto pequeno. ── */
.agent-panel[b-bhdbyzqju1] {
    margin-top: 1.25rem;
    padding: 1rem;
    border: 1px solid #e3eaf2;
    border-radius: 12px;
    background: linear-gradient(180deg, #f7fafd 0%, #fff 60%);
}

.agent-panel-head[b-bhdbyzqju1] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.85rem;
}

.agent-panel-icon[b-bhdbyzqju1] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    background: #eaf2fa;
    color: #004998;
}

.agent-panel-title[b-bhdbyzqju1] {
    color: #05305c;
    font-weight: 600;
    line-height: 1.2;
}

.agent-panel-sub[b-bhdbyzqju1] {
    color: #6b7a8d;
    font-size: 0.85rem;
}

.agent-panel-facts[b-bhdbyzqju1] {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.agent-panel-facts li[b-bhdbyzqju1] {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #55636f;
    font-size: 0.86rem;
    line-height: 1.45;
}

.agent-panel-facts svg[b-bhdbyzqju1] {
    color: #2e9e5b;
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

.agent-download[b-bhdbyzqju1] {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #004998 0%, #3f8fc9 100%);
    color: #fff;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0, 73, 152, 0.25);
    transition: box-shadow 0.15s ease, transform 0.15s ease, filter 0.15s ease;
}

.agent-download:hover:not(:disabled)[b-bhdbyzqju1] {
    box-shadow: 0 8px 20px rgba(0, 73, 152, 0.3);
    transform: translateY(-1px);
    filter: brightness(1.06);
}

.agent-download:active:not(:disabled)[b-bhdbyzqju1] {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 73, 152, 0.25);
}

.agent-download:focus-visible[b-bhdbyzqju1] {
    outline: 3px solid #9fc7e8;
    outline-offset: 2px;
}

.agent-download:disabled[b-bhdbyzqju1] {
    /* Keep it readable while it works: the ZIP takes seconds to build and sign. */
    filter: saturate(0.6);
    opacity: 0.85;
    cursor: progress;
}

.agent-download-label[b-bhdbyzqju1] {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.agent-download-title[b-bhdbyzqju1] {
    font-weight: 600;
}

.agent-download-meta[b-bhdbyzqju1] {
    font-size: 0.76rem;
    opacity: 0.85;
}

.agent-panel-foot[b-bhdbyzqju1] {
    margin: 0.7rem 0 0;
    color: #8794a3;
    font-size: 0.78rem;
}

.agent-panel-foot code[b-bhdbyzqju1] {
    color: #55636f;
    background: #eef3f8;
    padding: 0.05rem 0.3rem;
    border-radius: 4px;
}

.agent-panel-error[b-bhdbyzqju1] {
    margin-top: 0.7rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    background: #fdeaea;
    border: 1px solid #f5c2c2;
    color: #8c2f2f;
    font-size: 0.83rem;
}
/* /Pages/Home.razor.rz.scp.css */
/* Anonymous landing hero */
.hero[b-ku14wstolw] {
    max-width: 660px;
    margin: 4rem auto 2rem;
    text-align: center;
    padding: 0 1rem;
}

.hero-logo[b-ku14wstolw] {
    display: block;
    width: 176px;
    height: auto;
    margin: 0 auto 1.5rem;
}

.hero-title[b-ku14wstolw] {
    font-size: 2.4rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
}

.hero-title span[b-ku14wstolw] {
    background: linear-gradient(135deg, #004998 0%, #3F8FC9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-lead[b-ku14wstolw] {
    font-size: 1.15rem;
    line-height: 1.55;
    color: #6b7a8d;
    margin-bottom: 1.9rem;
}

.hero .btn-lg[b-ku14wstolw] {
    padding: 0.72rem 2.1rem;
    font-size: 1.05rem;
    box-shadow: 0 8px 22px rgba(0, 73, 152, 0.25);
}

/* Authenticated welcome */
.welcome[b-ku14wstolw] {
    margin-top: 1rem;
}

@media (max-width: 640px) {
    .hero[b-ku14wstolw] { margin-top: 2rem; }
    .hero-title[b-ku14wstolw] { font-size: 1.9rem; }
}
/* /Pages/Review.razor.rz.scp.css */
/* O conteúdo estava com max-width inline e sem centrar: 820px encostados à esquerda e um vazio
   enorme à direita num ecrã largo. */
.review-page[b-6t9ox1wsm8] {
    max-width: 900px;
    margin: 0 auto;
    /* Espaço para a barra de ações fixa não tapar o último cartão. */
    padding-bottom: 5.5rem;
}

/* A barra fica colada ao fundo: este ecrã é longo (QR + campos + linhas) e a ação principal não
   pode depender de o utilizador se lembrar de fazer scroll até ao fim. */
.review-actions[b-6t9ox1wsm8] {
    position: sticky;
    bottom: 0;
    margin: 0 -1.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    border-top: 1px solid #e3eaf2;
    z-index: 10;
}

.review-actions-inner[b-6t9ox1wsm8] {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-hint[b-6t9ox1wsm8] {
    color: #6b7a8d;
    font-size: 0.85rem;
}

.review-state[b-6t9ox1wsm8] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #2e9e5b;
    font-size: 0.88rem;
    font-weight: 600;
}

.review-actions-buttons[b-6t9ox1wsm8] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
}

/* O que o sistema aprendeu com esta revisão: é a promessa do produto (a próxima fatura já vem
   resolvida), por isso é uma afirmação, não mais um alerta azul. */
.review-learned[b-6t9ox1wsm8] {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #cde9d8;
    border-radius: 10px;
    background: #f2faf5;
    color: #2c6b47;
    font-size: 0.85rem;
    line-height: 1.5;
}

.review-learned svg[b-6t9ox1wsm8] {
    color: #2e9e5b;
    flex: 0 0 auto;
    margin-top: 0.15rem;
}

@media (max-width: 640px) {
    .review-actions[b-6t9ox1wsm8] {
        margin: 0 -1rem;
        padding: 0.6rem 1rem;
    }

    .review-actions-buttons[b-6t9ox1wsm8] {
        width: 100%;
    }

    .review-actions-buttons .btn[b-6t9ox1wsm8] {
        flex: 1 1 auto;
    }
}
/* /Pages/Wizard.razor.rz.scp.css */
/* Shared width so the stepper, the card and the nav buttons line up.
   Centred: a wizard is a focused flow, so it reads better centred than pinned
   to the left with a wall of empty space on the right. */
.wizard-pane[b-7ogyg72ih6] {
    max-width: 880px;
    margin-inline: auto;
}

/* The "Campos" step embeds the field editor (invoice + panel side by side), which does not fit
   the reading width the rest of the flow uses. */
.wizard-pane.wide[b-7ogyg72ih6],
.stepper.wide[b-7ogyg72ih6] {
    max-width: 1240px;
}

/* ---- Progress stepper ---- */
.stepper[b-7ogyg72ih6] {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 880px;
    margin-inline: auto;
    margin-bottom: 2rem;
}

/* ---- Upload dropzone (step 1) ---- */
.dropzone[b-7ogyg72ih6] {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 2.75rem 1rem;
    border: 2px dashed #cfe0f0;
    border-radius: 12px;
    background: #f8fbfe;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s ease, background .15s ease;
}

.dropzone:hover[b-7ogyg72ih6] {
    border-color: #3F8FC9;
    background: #f2f8fd;
}

/* The real file input covers the whole zone but is invisible: this is what makes the
   native drag & drop work (and a click anywhere still opens the file picker).

   ::deep is load-bearing, not decoration: InputFile is a child component, and Blazor's scoped
   CSS only tags elements written in this file's markup — so a bare `.dropzone-input` rule never
   matches the <input> InputFile renders. Without it the input sits visible in the flow and only
   files dropped on that small rectangle are picked up. */
.dropzone[b-7ogyg72ih6]  .dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* While a file is being dragged over the zone */
.dropzone.dragover[b-7ogyg72ih6] {
    border-color: #3F8FC9;
    border-style: solid;
    background: #eaf4fd;
}

.dropzone.dragover .dropzone-icon[b-7ogyg72ih6] {
    background: #d8eafb;
}

.dropzone-icon[b-7ogyg72ih6] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: #eaf2fb;
    color: #3F8FC9;
    margin-bottom: 0.5rem;
}

.dropzone-title[b-7ogyg72ih6] {
    font-weight: 600;
    color: #05305c;
}

.dropzone-hint[b-7ogyg72ih6] {
    font-size: 0.85rem;
    color: #6b7a8d;
}

/* ---- Attached file (after upload) ----
   A card that reads as "the document is here", rather than a line of green text. */
.file-chip[b-7ogyg72ih6] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #dbe7f3;
    border-radius: 10px;
    background: #fff;
}

.file-chip-icon[b-7ogyg72ih6] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 8px;
    background: #eaf2fb;
    color: #3F8FC9;
    flex-shrink: 0;
}

.file-chip-body[b-7ogyg72ih6] {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1 1 auto;
}

/* Invoice file names are long and machine-generated — never let one wrap the card. */
.file-chip-name[b-7ogyg72ih6] {
    font-weight: 600;
    color: #05305c;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-chip-meta[b-7ogyg72ih6] {
    font-size: 0.8rem;
    color: #6b7a8d;
}

.file-chip-check[b-7ogyg72ih6] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: #198754;
    color: #fff;
    flex-shrink: 0;
}

/* ---- Embedded field editor (step 3) ---- */
.editor-embed[b-7ogyg72ih6] {
    margin-top: 0.5rem;
}

.step[b-7ogyg72ih6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 120px;
    flex: 0 0 auto;
}

.step-dot[b-7ogyg72ih6] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    color: #fff;
    background: #ced4da;
    transition: background .2s ease, box-shadow .2s ease;
}

/* The active step gets the brand gradient plus a halo, so the eye lands on it first */
.step.active .step-dot[b-7ogyg72ih6] {
    background: linear-gradient(135deg, #004998 0%, #3F8FC9 100%);
    box-shadow: 0 0 0 0.28rem rgba(63, 143, 201, 0.2);
}

.step.done .step-dot[b-7ogyg72ih6] {
    background: #198754;
}

.step-label[b-7ogyg72ih6] {
    font-size: 0.8rem;
    margin-top: 0.45rem;
    text-align: center;
    color: #6b7a8d;
}

.step.active .step-label[b-7ogyg72ih6],
.step.done .step-label[b-7ogyg72ih6] {
    color: #05305c;
    font-weight: 500;
}

/* Connector bar between steps; fills in green as they are completed */
.step-bar[b-7ogyg72ih6] {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: #dee2e6;
    margin-top: 17px;
    transition: background .2s ease;
}

.step-bar.done[b-7ogyg72ih6] {
    background: #198754;
}

@media (max-width: 640px) {
    .step[b-7ogyg72ih6] { width: 74px; }
    .step-label[b-7ogyg72ih6] { font-size: 0.7rem; }
}
