.btn-grey {
    color: #fff;
    background-color: #78909C;
    border-color: #78909C;
}

.btn-grey:hover {
    color: #fff;
    background-color: #546E7A;
    border-color: #B0BEC5;
}

.btn-grey:focus, .btn-grey.focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

.btn-grey.disabled, .btn-grey:disabled {
    color: #fff;
    background-color: #78909C;
    border-color: #78909C;
}

.btn-grey:not(:disabled):not(.disabled):active, .btn-grey:not(:disabled):not(.disabled).active,
.show > .btn-grey.dropdown-toggle {
    color: #fff;
    background-color: #B0BEC5;
    border-color: #37474F;
}

.btn-grey:not(:disabled):not(.disabled):active:focus, .btn-grey:not(:disabled):not(.disabled).active:focus,
.show > .btn-grey.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}


.btn-purple {
    color: #fff;
    background-color: rgba(195, 155, 211, 1);
    border-color: rgba(195, 155, 211, 1);
}

.btn-purple:hover {
    color: #fff;
    background-color: rgba(184, 132, 206, 0.5);
    border-color: #B0BEC5;
}

.btn-purple:focus, .btn-purple.focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 132, 206, 0.5);
}

.btn-purple.disabled, .btn-purple:disabled {
    color: #fff;
    background-color: rgba(195, 155, 211, 1);
    border-color: rgba(195, 155, 211, 1);
}

.btn-purple:not(:disabled):not(.disabled):active, .btn-purple:not(:disabled):not(.disabled).active,
.show > .btn-purple.dropdown-toggle {
    color: #fff;
    background-color: rgba(184, 132, 206, 0.5);
    border-color: #37474F;
}

.btn-purple:not(:disabled):not(.disabled):active:focus, .btn-purple:not(:disabled):not(.disabled).active:focus,
.show > .btn-purple.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 132, 206, 0.5);
}


.btn-purple {
    color: #fff;
    background-color: rgba(195, 155, 211, 1);
    border-color: rgba(195, 155, 211, 1);
}

.btn-purple:hover {
    color: #fff;
    background-color: rgba(184, 132, 206, 0.5);
    border-color: #B0BEC5;
}

.btn-purple:focus, .btn-purple.focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 132, 206, 0.5);
}

.btn-purple.disabled, .btn-purple:disabled {
    color: #fff;
    background-color: rgba(195, 155, 211, 1);
    border-color: rgba(195, 155, 211, 1);
}

.btn-purple:not(:disabled):not(.disabled):active, .btn-purple:not(:disabled):not(.disabled).active,
.show > .btn-purple.dropdown-toggle {
    color: #fff;
    background-color: rgba(184, 132, 206, 0.5);
    border-color: #37474F;
}

.btn-purple:not(:disabled):not(.disabled):active:focus, .btn-purple:not(:disabled):not(.disabled).active:focus,
.show > .btn-purple.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(184, 132, 206, 0.5);
}

.material-icons.orange {
    color: orange;
}

.material-icons.red {
    color: red;
}

.material-icons.green {
    color: green;
}

.material-icons.blue {
    color: #007bff;
}


th, td {
    font-size: 0.7em;
}

@media screen and (max-width: 768px) {
    .mob {
        width: 70%
    }

    select.mob {
        width: 50%
    }
}

.view-account {
    background: #FFFFFF;
    margin-top: 20px;
}

.view-account .pro-label {
    font-size: 13px;
    padding: 4px 5px;
    position: relative;
    top: -5px;
    margin-left: 10px;
    display: inline-block
}

.view-account .side-bar {
    padding-bottom: 30px
}

.view-account .side-bar .user-info {
    text-align: center;
    margin-bottom: 15px;
    padding: 30px;
    color: #616670;
    border-bottom: 1px solid #f3f3f3
}

.view-account .side-bar .user-info .img-profile {
    width: 120px;
    height: 120px;
    margin-bottom: 15px
}

.view-account .side-bar .user-info .meta li {
    margin-bottom: 10px
}

.view-account .side-bar .user-info .meta li span {
    display: inline-block;
    width: 100px;
    margin-right: 5px;
    text-align: right
}

.view-account .side-bar .user-info .meta li a {
    color: #616670
}

.view-account .side-bar .user-info .meta li.activity {
    color: #a2a6af
}

.view-account .side-bar .side-menu {
    text-align: center
}

.view-account .side-bar .side-menu .nav {
    display: inline-block;
    margin: 0 auto
}

.view-account .side-bar .side-menu .nav > li {
    font-size: 14px;
    margin-bottom: 0;
    border-bottom: none;
    display: inline-block;
    float: left;
    margin-right: 15px;
    margin-bottom: 15px
}

.view-account .side-bar .side-menu .nav > li:last-child {
    margin-right: 0
}

.view-account .side-bar .side-menu .nav > li > a {
    display: inline-block;
    color: #9499a3;
    padding: 5px;
    border-bottom: 2px solid transparent
}

.view-account .side-bar .side-menu .nav > li > a:hover {
    color: #616670;
    background: none
}

.view-account .side-bar .side-menu .nav > li.active a {
    color: #40babd;
    border-bottom: 2px solid #40babd;
    background: none;
    border-right: none
}

.theme-2 .view-account .side-bar .side-menu .nav > li.active a {
    color: #6dbd63;
    border-bottom-color: #6dbd63
}

.theme-3 .view-account .side-bar .side-menu .nav > li.active a {
    color: #497cb1;
    border-bottom-color: #497cb1
}

.theme-4 .view-account .side-bar .side-menu .nav > li.active a {
    color: #ec6952;
    border-bottom-color: #ec6952
}

.view-account .side-bar .side-menu .nav > li .icon {
    display: block;
    font-size: 24px;
    margin-bottom: 5px
}

.view-account .content-panel {
    padding: 30px
}

.view-account .content-panel .title {
    margin-bottom: 15px;
    margin-top: 0;
    font-size: 18px
}

.view-account .content-panel .fieldset-title {
    padding-bottom: 15px;
    border-bottom: 1px solid #eaeaf1;
    margin-bottom: 30px;
    color: #616670;
    font-size: 16px
}

.view-account .content-panel .avatar .figure img {
    float: right;
    width: 64px
}

.view-account .content-panel .content-header-wrapper {
    position: relative;
    margin-bottom: 30px
}

.view-account .content-panel .content-header-wrapper .actions {
    position: absolute;
    right: 0;
    top: 0
}

.view-account .content-panel .content-utilities {
    position: relative;
    margin-bottom: 30px
}

.view-account .content-panel .content-utilities .btn-group {
    margin-right: 5px;
    margin-bottom: 15px
}

.view-account .content-panel .content-utilities .fa {
    font-size: 16px;
    margin-right: 0
}

.view-account .content-panel .content-utilities .page-nav {
    position: absolute;
    right: 0;
    top: 0
}

.view-account .content-panel .content-utilities .page-nav .btn-group {
    margin-bottom: 0
}

.view-account .content-panel .content-utilities .page-nav .indicator {
    color: #a2a6af;
    margin-right: 5px;
    display: inline-block
}

.view-account .content-panel .mails-wrapper .mail-item {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #f3f3f3;
    color: #616670;
    overflow: hidden
}

.view-account .content-panel .mails-wrapper .mail-item > div {
    float: left
}

.view-account .content-panel .mails-wrapper .mail-item .icheck {
    background-color: #fff
}

.view-account .content-panel .mails-wrapper .mail-item:hover {
    background: #f9f9fb
}

.view-account .content-panel .mails-wrapper .mail-item:nth-child(even) {
    background: #fcfcfd
}

.view-account .content-panel .mails-wrapper .mail-item:nth-child(even):hover {
    background: #f9f9fb
}

.view-account .content-panel .mails-wrapper .mail-item a {
    color: #616670
}

.view-account .content-panel .mails-wrapper .mail-item a:hover {
    color: #494d55;
    text-decoration: none
}

.view-account .content-panel .mails-wrapper .mail-item .checkbox-container,
.view-account .content-panel .mails-wrapper .mail-item .star-container {
    display: inline-block;
    margin-right: 5px
}

.view-account .content-panel .mails-wrapper .mail-item .star-container .fa {
    color: #a2a6af;
    font-size: 16px;
    vertical-align: middle
}

.view-account .content-panel .mails-wrapper .mail-item .star-container .fa.fa-star {
    color: #f2b542
}

.view-account .content-panel .mails-wrapper .mail-item .star-container .fa:hover {
    color: #868c97
}

.view-account .content-panel .mails-wrapper .mail-item .mail-to {
    display: inline-block;
    margin-right: 5px;
    min-width: 120px
}

.view-account .content-panel .mails-wrapper .mail-item .mail-subject {
    display: inline-block;
    margin-right: 5px
}

.view-account .content-panel .mails-wrapper .mail-item .mail-subject .label {
    margin-right: 5px;

}

.view-account .content-panel .mails-wrapper .mail-item .mail-subject .label:last-child {
    margin-right: 10px
}

.view-account .content-panel .mails-wrapper .mail-item .mail-subject .label a,
.view-account .content-panel .mails-wrapper .mail-item .mail-subject .label a:hover {
    color: #fff
}

.view-account .content-panel .mails-wrapper .mail-item .mail-subject .label-color-1 {
    background: #f77b6b
}

.view-account .content-panel .mails-wrapper .mail-item .mail-subject .label-color-2 {
    background: #58bbee
}

.view-account .content-panel .mails-wrapper .mail-item .mail-subject .label-color-3 {
    background: #f8a13f
}

.view-account .content-panel .mails-wrapper .mail-item .mail-subject .label-color-4 {
    background: #ea5395
}

.view-account .content-panel .mails-wrapper .mail-item .mail-subject .label-color-5 {
    background: #8a40a7
}

.view-account .content-panel .mails-wrapper .mail-item .time-container {
    display: inline-block;
    position: absolute;
    right: 10px;
    top: 10px;
    color: #a2a6af;
    text-align: left
}

.view-account .content-panel .mails-wrapper .mail-item .time-container .attachment-container {
    display: inline-block;
    color: #a2a6af;
    margin-right: 5px
}

.view-account .content-panel .mails-wrapper .mail-item .time-container .time {
    display: inline-block;
    text-align: right
}

.view-account .content-panel .mails-wrapper .mail-item .time-container .time.today {
    font-weight: 700;
    color: #494d55
}

.drive-wrapper {
    padding: 15px;
    background: #f5f5f5;
    overflow: hidden
}

.drive-wrapper .drive-item {
    width: 130px;
    margin-right: 15px;
    display: inline-block;
    float: left
}

.drive-wrapper .drive-item:hover {
    box-shadow: 0 1px 5px rgba(0, 0, 0, .1);
    z-index: 1
}

.drive-wrapper .drive-item-inner {
    padding: 15px
}

.drive-wrapper .drive-item-title {
    margin-bottom: 15px;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.drive-wrapper .drive-item-title a {
    color: #494d55
}

.drive-wrapper .drive-item-title a:hover {
    color: #40babd
}

.theme-2 .drive-wrapper .drive-item-title a:hover {
    color: #6dbd63
}

.theme-3 .drive-wrapper .drive-item-title a:hover {
    color: #497cb1
}

.theme-4 .drive-wrapper .drive-item-title a:hover {
    color: #ec6952
}

.drive-wrapper .drive-item-thumb {
    width: 100px;
    height: 80px;
    margin: 0 auto;
    color: #616670
}

.drive-wrapper .drive-item-thumb a {
    -webkit-opacity: .8;
    -moz-opacity: .8;
    opacity: .8
}

.drive-wrapper .drive-item-thumb a:hover {
    -webkit-opacity: 1;
    -moz-opacity: 1;
    opacity: 1
}

.drive-wrapper .drive-item-thumb .fa {
    display: inline-block;
    font-size: 36px;
    margin: 0 auto;
    margin-top: 20px
}

.drive-wrapper .drive-item-footer .utilities {
    margin-bottom: 0
}

.drive-wrapper .drive-item-footer .utilities li:last-child {
    padding-right: 0
}

.drive-list-view .name {
    width: 60%
}

.drive-list-view .name.truncate {
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.drive-list-view .type {
    width: 15px
}

.drive-list-view .date,
.drive-list-view .size {
    max-width: 60px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.drive-list-view a {
    color: #494d55
}

.drive-list-view a:hover {
    color: #40babd
}

.theme-2 .drive-list-view a:hover {
    color: #6dbd63
}

.theme-3 .drive-list-view a:hover {
    color: #497cb1
}

.theme-4 .drive-list-view a:hover {
    color: #ec6952
}

.drive-list-view td.date,
.drive-list-view td.size {
    color: #a2a6af
}

@media (max-width: 767px) {
    .view-account .content-panel .title {
        text-align: center
    }

    .view-account .side-bar .user-info {
        padding: 0
    }

    .view-account .side-bar .user-info .img-profile {
        width: 60px;
        height: 60px
    }

    .view-account .side-bar .user-info .meta li {
        margin-bottom: 5px
    }

    .view-account .content-panel .content-header-wrapper .actions {
        position: static;
        margin-bottom: 30px
    }

    .view-account .content-panel {
        padding: 0
    }

    .view-account .content-panel .content-utilities .page-nav {
        position: static;
        margin-bottom: 15px
    }

    .drive-wrapper .drive-item {
        width: 100px;
        margin-right: 5px;
        float: none
    }

    .drive-wrapper .drive-item-thumb {
        width: auto;
        height: 54px
    }

    .drive-wrapper .drive-item-thumb .fa {
        font-size: 24px;
        padding-top: 0
    }

    .view-account .content-panel .avatar .figure img {
        float: none;
        margin-bottom: 15px
    }

    .view-account .file-uploader {
        margin-bottom: 15px
    }

    .view-account .mail-subject {
        max-width: 100px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .view-account .content-panel .mails-wrapper .mail-item .time-container {
        position: static
    }

    .view-account .content-panel .mails-wrapper .mail-item .time-container .time {
        width: auto;
        text-align: left
    }
}

@media (min-width: 768px) {
    .view-account .side-bar .user-info {
        padding: 0;
        padding-bottom: 15px
    }

    .view-account .mail-subject .subject {
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }
}

@media (min-width: 992px) {
    .view-account .content-panel {
        min-height: 800px;
        border-left: 1px solid #f3f3f7;
        margin-left: 230px
    }

    .view-account .mail-subject .subject {
        max-width: 280px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .view-account .side-bar {
        position: absolute;
        width: 200px;
        min-height: 600px
    }

    .view-account .side-bar .user-info {
        margin-bottom: 0;
        border-bottom: none;
        padding: 30px
    }

    .view-account .side-bar .user-info .img-profile {
        width: 120px;
        height: 120px
    }

    .view-account .side-bar .side-menu {
        text-align: left
    }

    .view-account .side-bar .side-menu .nav {
        display: block
    }

    .view-account .side-bar .side-menu .nav > li {
        display: block;
        float: none;
        font-size: 14px;
        border-bottom: 1px solid #f3f3f7;
        margin-right: 0;
        margin-bottom: 0
    }

    .view-account .side-bar .side-menu .nav > li > a {
        display: block;
        color: #9499a3;
        padding: 10px 15px;
        padding-left: 30px
    }

    .view-account .side-bar .side-menu .nav > li > a:hover {
        background: #f9f9fb
    }

    .view-account .side-bar .side-menu .nav > li.active a {
        background: #f9f9fb;
        border-right: 4px solid #40babd;
        border-bottom: none
    }

    .theme-2 .view-account .side-bar .side-menu .nav > li.active a {
        border-right-color: #6dbd63
    }

    .theme-3 .view-account .side-bar .side-menu .nav > li.active a {
        border-right-color: #497cb1
    }

    .theme-4 .view-account .side-bar .side-menu .nav > li.active a {
        border-right-color: #ec6952
    }

    .view-account .side-bar .side-menu .nav > li .icon {
        font-size: 24px;
        vertical-align: middle;
        text-align: center;
        width: 40px;
        display: inline-block
    }

    .export_only {
        visibility: hidden;
        position: absolute;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.pagination a,
.pagination span {
    color: blue;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color .3s;
    border: 1px solid #ddd;
    margin: 0 4px;
    display: inline-block;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border: 1px solid #4CAF50;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

.sap-client-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 20px;
    background: #fafafa;
}

.sap-card-header {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #333;
}

.sap-client-card .form-input-custom[readonly] {
    background: #f3f4f6;
    cursor: default;
    border-color: #e5e7eb;
    color: #374151;
}

.alert-module-vide {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 12px 16px;
    color: #92400e;
    font-size: .875rem;
    margin-bottom: 16px;
}

.contrat-texte {
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 10px;
    color: #2d2d2d;
}

.contrat-texte-annexe {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 8px;
    color: #2d2d2d;
}

.contrat-sous-titre {
    text-align: center;
    font-style: italic;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.contrat-article {
    margin-bottom: 18px;
}

.contrat-article-titre {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 6px;
    color: #1a1a2e;
}

.contrat-signature-block {
    margin: 24px 0;
}

.contrat-sig-label {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 40px;
}

.contrat-sig-ligne {
    border-bottom: 1px solid #333;
    width: 80%;
    margin: 0 auto 8px;
}

.contrat-sig-meta {
    font-size: 11px;
    color: #555;
}

.contrat-lieu-date {
    font-size: 12px;
    color: #555;
}

.contrat-liste {
    font-size: 12px;
    line-height: 1.8;
    padding-left: 20px;
}

.sig-valid-wrapper {
    text-align: center;
    padding: 24px 16px;
}

.sig-valid-icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    border: 2.5px solid #43a047;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px auto;
    color: #43a047;
    font-size: 26px;
}

.sig-valid-titre {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.sig-valid-date {
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.sig-valid-preview {
    background: #fff;
    border: 1px solid #dde2ec;
    border-radius: 10px;
    padding: 16px 24px;
    display: inline-block;
    min-width: 200px;
    min-height: 70px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.sig-valid-preview img {
    max-width: 220px;
    max-height: 80px;
    display: block;
    margin: 0 auto;
}

.validation-wrapper {
    display: flex;
    justify-content: center;
    padding: 32px 16px 60px;
}

.validation-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
    padding: 40px 36px 32px;
    width: 100%;
    max-width: 520px;
    text-align: center;
}

.validation-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.validation-subtitle {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 28px;
}

.validation-info-box {
    background: #f9f7f3;
    border: 1px solid #e8e0d0;
    border-left: 4px solid #c8a96e;
    border-radius: 8px;
    padding: 16px 20px;
    text-align: left;
}

.validation-info-box--error {
    background: #fff5f5;
    border-color: #fcc;
    border-left-color: #e74c3c;
}

.validation-info-ligne {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #444;
    padding: 5px 0;
}

.validation-info-ligne i {
    color: #c8a96e;
    width: 16px;
    text-align: center;
}

.validation-info-box--error .validation-info-ligne i {
    color: #e74c3c;
}

.success-icon-wrapper,
.error-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon-wrapper {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 4px 16px rgba(46, 204, 113, 0.30);
}

.error-icon-wrapper {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.30);
}

.success-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #e8f5e9;
    border: 2.5px solid var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    color: var(--success);
    font-size: 28px;
}

.validation-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
}

.validation-ref {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 28px;
}

.info-table {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
    text-align: left;
}

.info-table tr td {
    padding: 12px 16px;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table td:first-child {
    color: var(--muted);
    width: 40%;
}

.info-table td:last-child {
    font-weight: 600;
    text-align: right;
}

.statut-signe {
    color: var(--success);
}

.statut-attente {
    color: var(--attente);
}

.validation-hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.alert-err {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    margin-bottom: 20px;
    text-align: left;
}

.btn-dashboard {
    display: block;
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
}

.btn-dashboard:hover {
    background: #1447c0;
    color: #fff;
    text-decoration: none;
}

.btn-dashboard i {
    margin-right: 8px;
}

.email-notice {
    font-size: 12px;
    color: var(--muted);
    margin-top: 14px;
}

.email-notice i {
    color: var(--success);
    margin-right: 4px;
}

.consult-wrapper {
    max-width: 900px;
    margin: 32px auto;
    padding: 0 16px;
}

.consult-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-back {
    color: #555;
    text-decoration: none;
    font-size: 14px;
}

.btn-back:hover {
    color: #1a1a2e;
}

.btn-pdf-dl {
    background: #1a56db;
    color: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-pdf-dl:hover {
    background: #1440a8;
    color: #fff;
}

.consult-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    padding: 32px;
    margin-bottom: 24px;
}

.consult-header-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.consult-ref {
    color: #888;
    font-size: 13px;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-draft {
    background: #f0f0f0;
    color: #666;
}

.badge-signed {
    background: #fff3cd;
    color: #856404;
}

.badge-waiting {
    background: #cfe2ff;
    color: #084298;
}

.badge-validated {
    background: #d1e7dd;
    color: #0a3622;
}

.badge-cancelled {
    background: #f8d7da;
    color: #58151c;
}

.section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c8a96e;
    border-bottom: 2px solid #c8a96e;
    padding-bottom: 4px;
    margin: 20px 0 12px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-item label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    display: block;
    margin-bottom: 2px;
}

.info-item span {
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
}

.consult-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 8px;
}

.consult-table th {
    background: #1a1a2e;
    color: #fff;
    padding: 8px 10px;
    text-align: left;
    font-size: 12px;
}

.consult-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
}

.consult-table tr:nth-child(even) td {
    background: #faf8f4;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: #999;
    font-style: italic;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.modal-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

.modal-subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 3px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #999;
}

.reconc-ok {
    color: #0a3622;
    background: #d1e7dd;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.reconc-skip {
    color: #664d03;
    background: #fff3cd;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}

.reconc-err {
    color: #58151c;
    background: #f8d7da;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}