/* =============== */
/* MODAL ========= */
/* =============== */

#modalPdpInfo {
    color: #21406b;
    font-size: 18px;
    font-family: 'Montserrat';

    & .modalContent {
        padding: 32px !important;
    }

    & a {
        cursor: pointer !important;
    }
}

#modalPdpInfo .modalContent__title {
    font-size: 22px !important;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 24px;
    margin-top: 0;
}

#modalPdpInfo .modalContent__description {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 32px;
    text-align: center;
}

#modalPdpInfo .modalContent__setup {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
}

#modalPdpInfo .modalContent__setup {
    display: grid;
    grid-template-columns: 1fr auto;
    max-width: 650px;
    margin: 3rem auto 0;
    padding: 30px 32px;
    background: #e5e8ed;
    border-radius: 20px;
    gap: 32px;
}

#modalPdpInfo .modalContent__setup__text {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    display: flex;
    align-items: center;
    text-align: start;
}

#modalPdpInfo .modalContent__setup__button {
    background: #3976e6;
    color: white;
    border-radius: 27px;
    padding: 12px 27px;
    border: none;
    outline: none;
    transition: opacity .3s ease-in-out, background .3s ease-in-out;
    font-size: 18px;
    line-height: 22px !important;
    width: fit-content;
    margin: 0 auto;
    font-weight: 400;
    display: flex;
    align-items: center;

    &:hover {
        background: #21406b;
        text-decoration: none;
    }
}

#modalPdpInfo .modalContent__also-setup {
    margin-top: 8px;
    font-size: 14px;
    text-align: center;
}

#modalPdpInfo .modalContent__also-setup a {
    font-weight: 700;
    text-decoration: underline;
    color: #21406b;

    &:hover {
        color: #3976e6;
    }
}

#modalPdpInfo .modalContent__image {
    width: 200px;
    margin: 0 auto;
}

#modalPdpInfo .modalContent__image img {
    width: 200px;
}

#modalPdpInfo .closeBtn svg path {
    fill: #fff !important;
}

#modalPdpInfo .modalContent__link a {
    background: linear-gradient(to right, #4AB000 0%, #5ADA00 100%);
    color: #fff !important;
    width: fit-content;
    margin: 0 auto;
    padding: 8px 16px;
    border-radius: 7px;
    display: flex;
    line-height: 1;
    align-items: center;
}

#modalPdpInfo .modalContent__link a span:nth-child(1) svg {
    transform: rotate(275deg);
    margin-bottom: -3px;
    margin-top: -2px;
}

#modalPdpInfo .modalContent__link a span:nth-child(1) svg path {
    fill: #fff !important;
}

#modalPdpInfo .modalContent__link a span:nth-child(2) {
    color: #fff !important;
}

@media (max-width: 1100px) {
    #modalPdpInfo .modalContent__setup {
        display: flex;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        gap: 8px;
        padding: 16px;
    }

    #modalPdpInfo .modalContent__setup__text {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 769px) {
    #modalPdpInfo .modalContent__setup__button {
        font-size: 18px !important;
    }
}

#modalPdpInfo.overModaleScrollable .overModalePage {
    min-width: 400px;
}

/* =============================== */
/* MODERATOR INFO BAR ============ */
/* =============================== */

.hasModeratorBar .menuPortal {
    top: 26px;
}

.hasModeratorBar .containerLook {
    top: 26px;
}

.hasModeratorBar .headerAccountantHome {
    margin-top: 26px;
}

.moderatorInfoBar__users {
    display: none;
    position: absolute;
    top: 26px;
    left: 0;
    right: 0;
    background: #c0392b;
    padding: 6px 15px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.moderatorInfoBar__users--open {
    display: block;
}

.moderatorInfoBar__userItem {
    padding: 3px 0;
    font-size: 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.moderatorInfoBar__userItem:last-child {
    border-bottom: none;
}
/* Onglets de sous-vue du tableau de bord comptable (accountantPortalUserZoneAccountingDashboardSubTabs.html.twig) */
.accountingDashboardSubTabs {
    display: flex;
    gap: 32px;
    margin: 0 0 15px;
    padding: 0;
    list-style: none;
    box-shadow: inset 0 -1px 0 #e5e8ed; /* trait de base sans débordement (overflow-x) */
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    white-space: nowrap;
}

.accountingDashboardSubTabs > li > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 2px;
    border-bottom: 3px solid transparent;
    color: #5f6b7a;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease;
}

.accountingDashboardSubTabs > li > a:hover,
.accountingDashboardSubTabs > li > a:focus {
    color: #21406b;
    border-bottom-color: #c9d3e0;
    text-decoration: none;
}

.accountingDashboardSubTabs > li.active > a {
    color: #3976e6;
    border-bottom-color: #3976e6;
    font-weight: 600;
}

.accountingDashboardSubTabsBadge {
    min-width: 24px;
    padding: 2px 7px;
    border-radius: 12px;
    background: #e74c3c;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
}

.accountingDashboardSubTabsBadge:empty {
    display: none;
}

.accountingDashboardActions {
    margin-bottom: 10px;
}

.accountingDashboardActions::after {
    content: "";
    display: table;
    clear: both;
}

/* Portail comptable > Comptes de produits : lignes taxe → compte comptable (accountantPortalUserZoneProductTaxLines) */
/* Grille : taxe | zone (Europe/Export) | compte | corbeille | ajout, alignés sur toutes les lignes de la case */
.accountingTaxLines {
    display: grid;
    grid-template-columns: max-content max-content max-content max-content 1fr;
    column-gap: 8px;
    row-gap: 4px;
    align-items: center;
    justify-items: start;
    text-align: left;
}

.accountingTaxLine {
    display: contents;
}

/* Colonne 1 : chaque ligne repart au début (la colonne 5 n'est occupée que par l'ajout) */
.accountingTaxLine-tax {
    grid-column: 1;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f3f7;
    color: #21406b;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.accountingTaxLine-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}

.accountingTaxLine-badge-europe {
    background: #e5efff;
    color: #1f5fbf;
}

.accountingTaxLine-badge-export {
    background: #fff1e0;
    color: #b25e00;
}

.accountingTaxLines .accountingTaxLine-code {
    color: #3976e6;
    border-bottom: 1px dashed #3976e6;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.accountingTaxLines .accountingTaxLine-code-empty {
    color: #b25e00;
    border-bottom-color: #e0a060;
}

.accountingTaxLines .accountingTaxLine-delete {
    color: #e74c3c;
    opacity: 0;
    transition: opacity .15s;
}

.accountingTaxLine:hover .accountingTaxLine-delete {
    opacity: 1;
}

/* Ajout : à droite de la 1re ligne ; seul à gauche dans une case vide */
.accountingTaxLines-add {
    grid-column: 5;
    grid-row: 1;
    justify-self: end;
}

.accountingTaxLines-add:first-child {
    grid-column: 1 / -1;
    justify-self: start;
}

.accountingTaxLines-add > .dropdown-menu {
    right: 0;
    left: auto;
}

.accountingTaxLines-add:first-child > .dropdown-menu {
    right: auto;
    left: 0;
}

/* Menu d'ajout : défilement au-delà de ~10 taxes, recherche toujours visible en haut */
.accountingTaxLines-addMenu {
    min-width: 260px;
    max-height: 320px;
    overflow-y: auto;
    padding-top: 0;
}

.accountingTaxLines-addSearchItem {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 6px 8px;
    background: #fff;
    border-bottom: 1px solid #eef1f5;
}

.accountingTaxLines-add > .dropdown-toggle {
    color: #a0a8b8;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

tr:hover .accountingTaxLines-add > .dropdown-toggle,
.accountingTaxLines-add.open > .dropdown-toggle,
.accountingTaxLines-add > .dropdown-toggle:focus {
    color: #3976e6;
}

/* Portail comptable : pastille Oui / Non cliquable (Components/accountantPortalYesNoToggle, buildYesNoToggle) */
.yesNoToggle input {
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
    opacity: 0;
}

.yesNoToggle label {
    display: inline-block;
    min-width: 44px;
    margin: 0;
    padding: 1px 10px;
    border-radius: 10px;
    background: #f1f3f7;
    color: #8a94a6;
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.yesNoToggle input:checked + label {
    background: #e6f4d7;
    color: #3f7a0b;
}

.yesNoToggle input:not(:disabled) + label:hover {
    box-shadow: inset 0 0 0 1px #c9d3e0;
}

.yesNoToggle input:focus-visible + label {
    outline: 2px solid #3976e6;
    outline-offset: 2px;
}

.yesNoToggle input:disabled + label {
    opacity: .45;
    cursor: not-allowed;
}

/* Portail comptable : zone d'ajout en bas de tableau (TVA / taxes, plan comptable) — bandeau + fond distincts */
.tableAxonaut .tableNewLineTitle > td,
.tableAxonaut .tableNewLine > td {
    background: #f5f8fc;
}

.tableAxonaut .tableNewLineTitle > td {
    padding: 14px 10px 2px;
    border-top: 2px solid #dbe4f0;
    color: #21406b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.tableAxonaut .tableNewLine > td {
    padding-top: 8px;
    padding-bottom: 14px;
}

.tableNewLine .form-control {
    height: 30px;
    font-size: 13px;
    background: #fff;
}

.tableNewLine .btn-action[disabled] {
    opacity: .5;
    cursor: not-allowed;
}

/* Portail comptable > TVA / taxes : champ taux + « % » */
.taxRateNewRate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.taxRateNewRate .form-control {
    width: 70px;
}

/* Portail comptable > Plan comptable : compte utilisé automatiquement par Axonaut (explication sous le libellé) */
.accountingCodeUsage {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 3px;
    color: #8a94a6;
    font-size: 12px;
    line-height: 16px;
}

.accountingCodeUsage .fa {
    flex: 0 0 auto;
    color: #3976e6;
}

/* Portail comptable : modale « Inviter un client » (accountantPortalLayout, #modalInvitationFromAccountant) */
.modalInvitation .modal-header {
    padding: 20px 24px 12px;
    border-bottom: 0;
}

.modalInvitation .modal-title {
    color: #21406b;
    font-size: 20px;
    font-weight: 600;
}

.modalInvitation-subtitle {
    margin: 6px 0 0;
    color: #8a94a6;
    font-size: 13px;
}

.modalInvitation .modal-body {
    padding: 8px 24px 16px;
}

.modalInvitation-form label {
    margin-bottom: 6px;
    color: #21406b;
    font-size: 13px;
    font-weight: 600;
}

.modalInvitation-formRow {
    display: flex;
    gap: 8px;
}

.modalInvitation-formRow .form-control {
    flex: 1 1 auto;
    height: 38px;
}

.modalInvitation-formRow .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

.modalInvitation-feedback {
    min-height: 20px;
    margin-top: 6px;
    font-size: 12px;
}

.modalInvitation-feedback-info {
    color: #8a94a6;
}

.modalInvitation-feedback-success {
    color: #3f7a0b;
}

.modalInvitation-feedback-error {
    color: #e74c3c;
}

.modalInvitation-helpToggle {
    display: inline-block;
    margin-top: 4px;
    color: #3976e6;
    font-size: 12px;
}

.modalInvitation-help {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 6px;
    background: #f5f8fc;
    color: #4a5568;
    font-size: 13px;
}

.modalInvitation-help p:last-child {
    margin-bottom: 0;
}

.modalInvitation-list {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #eef1f5;
}

.modalInvitation-listTitle {
    margin-bottom: 8px;
    color: #21406b;
    font-size: 13px;
    font-weight: 600;
}

.modalInvitation-listCount {
    color: #8a94a6;
    font-weight: 500;
}

.modalInvitation-listItems {
    max-height: 240px;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    list-style: none;
}

.modalInvitation-listItem {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
}

.modalInvitation-listItem:hover {
    background: #f5f8fc;
}

.modalInvitation-listItem > .fa {
    color: #a0a8b8;
}

.modalInvitation-listEmail {
    overflow: hidden;
    color: #2d2d3a;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modalInvitation-listDate {
    flex: 0 0 auto;
    color: #8a94a6;
    font-size: 12px;
}

.modalInvitation-listDelete {
    margin-left: auto;
    color: #c9d3e0;
}

.modalInvitation-listItem:hover .modalInvitation-listDelete {
    color: #e74c3c;
}

.modalInvitation-listEmpty {
    margin: 0;
    color: #a0a8b8;
    font-size: 13px;
}

.modalInvitation .modal-footer {
    padding: 12px 24px;
    border-top: 1px solid #eef1f5;
}

/* Pastille de téléchargement de la facture électronique (colonne Justif, tableAjax_accountantPortalExpenses.html.twig) */
.electronicInvoiceTag {
    display: inline-block;
    margin: 2px 0 0 4px;
    white-space: nowrap;
    font-weight: 600;
    line-height: 1.6;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.electronicInvoiceTag:hover,
.electronicInvoiceTag:focus {
    background-color: #008FC4;
    color: #fff;
    text-decoration: none;
}

.electronicInvoiceTag .glyphicon {
    top: 1px;
    font-size: .9em;
}
