/* ==========================================================
   CONVERTODO
   FIRMAR PDF
========================================================== */

.hidden {
    display: none !important;
}


/* ==========================================================
   GENERAL
========================================================== */

.signpdf-workspace {
    padding: 38px 0 55px;
    background: #f5f6fa;
}


.signpdf-main-container {
    width: min(1500px, calc(100% - 32px));
    margin: 0 auto;
}


/* ==========================================================
   SUBIR
========================================================== */

.signpdf-upload-stage {
    width: min(920px, 100%);
    margin: 0 auto;
}


.signpdf-drop-zone {
    min-height: 420px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 48px 30px;

    text-align: center;

    background: #ffffff;

    border: 2px dashed #d8dbe8;
    border-radius: 24px;

    box-shadow:
        0 12px 35px
        rgba(20, 23, 43, 0.05);

    transition: 0.2s;
}


.signpdf-drop-zone.drag-over {
    border-color: var(--primary);
    background: #f4f4ff;
}


.signpdf-upload-icon {
    width: 82px;
    height: 82px;

    display: grid;
    place-items: center;

    margin-bottom: 19px;

    border-radius: 23px;

    color: #ef4444;
    background: #fff0f0;

    font-size: 34px;
}


.signpdf-drop-zone h2 {
    color: var(--dark);

    font-size: 29px;
    letter-spacing: -0.8px;
}


.signpdf-drop-zone > p {
    max-width: 620px;

    margin: 9px auto 25px;

    color: var(--text-light);

    font-size: 14px;
}


.signpdf-select-button {
    min-height: 55px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 13px 26px;

    cursor: pointer;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6d64eb
        );

    box-shadow:
        0 12px 28px
        rgba(91, 92, 240, 0.25);

    font-size: 14px;
    font-weight: 800;

    transition: 0.2s;
}


.signpdf-select-button:hover {
    transform: translateY(-2px);
}


.signpdf-drop-help {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-top: 18px;

    color: #989cab;

    font-size: 11px;
}


/* ==========================================================
   CARGANDO
========================================================== */

.signpdf-loading-stage,
.signpdf-processing-stage {
    width: min(720px, 100%);
    min-height: 380px;

    margin: 0 auto;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 42px;

    text-align: center;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: 24px;

    box-shadow:
        0 12px 36px
        rgba(20, 23, 43, 0.06);
}


.signpdf-spinner {
    width: 60px;
    height: 60px;

    margin-bottom: 18px;

    border: 5px solid #ececff;
    border-top-color: var(--primary);

    border-radius: 50%;

    animation:
        signpdf-spin
        0.8s linear infinite;
}


@keyframes signpdf-spin {

    to {
        transform: rotate(360deg);
    }

}


.signpdf-loading-stage h2,
.signpdf-processing-stage h2 {
    color: var(--dark);
    font-size: 25px;
}


.signpdf-loading-stage > p,
.signpdf-processing-stage > p {
    max-width: 560px;

    margin-top: 6px;

    color: var(--text-light);

    font-size: 12px;
}


.signpdf-progress {
    width: min(500px, 100%);
    height: 8px;

    overflow: hidden;

    margin-top: 25px;

    border-radius: 50px;

    background: #e8eaf1;
}


.signpdf-progress-bar {
    width: 0;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transition: width 0.25s ease;
}


/* ==========================================================
   EDITOR
========================================================== */

.signpdf-editor {
    overflow: hidden;

    background: #ffffff;

    border: 1px solid #dfe2eb;
    border-radius: 20px;

    box-shadow:
        0 12px 40px
        rgba(20, 23, 43, 0.07);
}


.signpdf-editor-header {
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 11px 16px;

    border-bottom: 1px solid #e6e8ef;

    background: #ffffff;
}


.signpdf-file-info {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}


.signpdf-file-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 11px;

    color: #ef4444;
    background: #fff0f0;

    font-size: 19px;
}


.signpdf-file-info > div:last-child {
    min-width: 0;
}


.signpdf-file-info strong {
    max-width: 430px;

    display: block;

    overflow: hidden;

    color: var(--dark);

    font-size: 11px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.signpdf-file-info span {
    display: block;

    margin-top: 2px;

    color: #969aaa;

    font-size: 8px;
}


.signpdf-editor-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}


.signpdf-change-button,
.signpdf-finish-button {
    min-height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 14px;

    border-radius: 10px;

    font-size: 9px;
    font-weight: 800;
}


.signpdf-change-button {
    cursor: pointer;

    color: #5d6274;
    background: #ffffff;

    border: 1px solid #dce0e8;
}


.signpdf-change-button:hover {
    color: var(--primary);
    border-color: var(--primary);
}


.signpdf-finish-button {
    border: none;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6964e8
        );

    box-shadow:
        0 8px 18px
        rgba(91, 92, 240, 0.20);
}


/* ==========================================================
   LAYOUT
========================================================== */

.signpdf-editor-layout {
    min-height: 760px;

    display: grid;

    grid-template-columns:
        175px
        minmax(0, 1fr)
        315px;

    background: #eef0f5;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.signpdf-pages-sidebar {
    max-height: calc(100vh - 90px);

    overflow-y: auto;

    padding: 13px 10px;

    background: #ffffff;

    border-right: 1px solid #dfe2ea;
}


.signpdf-sidebar-heading {
    padding: 3px 3px 12px;
}


.signpdf-sidebar-heading strong {
    display: block;

    color: var(--dark);

    font-size: 11px;
}


.signpdf-sidebar-heading span {
    display: block;

    margin-top: 2px;

    color: #999dac;

    font-size: 7px;
}


.signpdf-page-list {
    display: flex;
    flex-direction: column;

    gap: 10px;
}


.signpdf-page-thumbnail {
    position: relative;

    padding: 7px;

    cursor: pointer;

    border: 2px solid transparent;
    border-radius: 10px;

    background: #f6f7fa;

    transition: 0.2s;
}


.signpdf-page-thumbnail:hover {
    border-color:
        rgba(91, 92, 240, 0.25);
}


.signpdf-page-thumbnail.active {
    border-color: var(--primary);
    background: #f2f2ff;
}


.signpdf-page-thumb-preview {
    min-height: 130px;

    display: grid;
    place-items: center;

    overflow: hidden;

    border-radius: 5px;

    background: #eceef3;
}


.signpdf-page-thumb-preview canvas {
    max-width: 100%;
    max-height: 130px;

    background: #ffffff;

    box-shadow:
        0 2px 7px
        rgba(20, 23, 43, 0.13);
}


.signpdf-page-thumb-footer {
    margin-top: 5px;

    text-align: center;

    color: #686d7f;

    font-size: 7px;
    font-weight: 700;
}


/* ==========================================================
   DOCUMENTO
========================================================== */

.signpdf-document-area {
    min-width: 0;

    overflow: auto;

    padding-bottom: 45px;
}


.signpdf-toolbar {
    min-height: 59px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 8px;

    background: #ffffff;

    border-bottom: 1px solid #dfe2ea;
}


.signpdf-tool-button {
    min-height: 41px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 8px 12px;

    border: 1px solid transparent;
    border-radius: 9px;

    color: #656a7d;
    background: transparent;

    font-size: 8px;
    font-weight: 700;

    transition: 0.2s;
}


.signpdf-tool-button i {
    font-size: 14px;
}


.signpdf-tool-button:hover,
.signpdf-tool-button.active {
    color: var(--primary);

    border-color:
        rgba(91, 92, 240, 0.2);

    background: var(--primary-light);
}


.signpdf-tool-button.danger:hover {
    color: #ef4444;

    border-color: #ffd6d4;

    background: #fff2f2;
}


.signpdf-tool-button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}


.signpdf-editor-tip {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    padding: 9px;

    color: #8f93a3;

    font-size: 7px;
}


.signpdf-editor-tip i {
    color: var(--primary);
}


.signpdf-page-viewport {
    width: 100%;

    display: flex;
    justify-content: center;

    overflow: auto;

    padding: 14px 24px 26px;
}


.signpdf-page-stage {
    position: relative;

    flex-shrink: 0;

    background: #ffffff;

    box-shadow:
        0 8px 28px
        rgba(20, 23, 43, 0.18);
}


.signpdf-page-stage > canvas.signpdf-background-canvas {
    position: absolute;

    left: 0;
    top: 0;

    z-index: 1;

    pointer-events: none;
}


.signpdf-page-stage .canvas-container {
    position: absolute !important;

    left: 0 !important;
    top: 0 !important;

    z-index: 2;
}


.signpdf-current-page-info {
    display: flex;
    justify-content: center;

    color: #8d91a1;

    font-size: 7px;
}


/* ==========================================================
   PANEL OPCIONES
========================================================== */

.signpdf-options-panel {
    max-height: calc(100vh - 90px);

    overflow-y: auto;

    padding: 15px;

    background: #ffffff;

    border-left: 1px solid #dfe2ea;
}


.signpdf-panel-heading {
    display: flex;
    align-items: center;

    gap: 9px;

    padding-bottom: 14px;

    border-bottom: 1px solid #e7e9ef;
}


.signpdf-panel-heading > span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex-shrink: 0;

    border-radius: 10px;

    color: var(--primary);
    background: var(--primary-light);
}


.signpdf-panel-heading strong {
    display: block;

    color: var(--dark);

    font-size: 10px;
}


.signpdf-panel-heading small {
    display: block;

    margin-top: 1px;

    color: #999dab;

    font-size: 7px;
}


/* ==========================================================
   SECCIONES
========================================================== */

.signpdf-section {
    padding: 15px 0;

    border-bottom: 1px solid #eceef3;
}


.signpdf-section h4 {
    margin-bottom: 10px;

    color: var(--dark);

    font-size: 9px;
}


.signpdf-section > label,
.signpdf-sign-pane > label,
.signpdf-custom-pages > label,
.signpdf-free-text > label {
    display: flex;
    justify-content: space-between;

    margin: 8px 0 5px;

    color: #656a7c;

    font-size: 7.5px;
    font-weight: 700;
}


.signpdf-section input[type="text"],
.signpdf-section select {
    width: 100%;
    height: 38px;

    padding: 0 9px;

    outline: none;

    border: 1px solid #dce0e9;
    border-radius: 8px;

    color: #505568;
    background: #ffffff;

    font-size: 8px;
}


.signpdf-section input[type="text"]:focus,
.signpdf-section select:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(91, 92, 240, 0.07);
}


.signpdf-section input[type="color"] {
    width: 100%;
    height: 36px;

    padding: 3px;

    cursor: pointer;

    border: 1px solid #dce0e9;
    border-radius: 8px;

    background: #ffffff;
}


.signpdf-section input[type="range"] {
    width: 100%;

    accent-color: var(--primary);
}


/* ==========================================================
   TABS
========================================================== */

.signpdf-signature-tabs {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 5px;

    padding: 4px;

    border-radius: 10px;

    background: #f2f3f7;
}


.signpdf-sign-tab {
    min-height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: none;
    border-radius: 8px;

    color: #74798a;
    background: transparent;

    font-size: 7px;
    font-weight: 700;
}


.signpdf-sign-tab.active {
    color: var(--primary);
    background: #ffffff;

    box-shadow:
        0 2px 8px
        rgba(20, 23, 43, 0.07);
}


.signpdf-sign-pane {
    margin-top: 10px;
}


/* ==========================================================
   FIRMA GENERADA
========================================================== */

.signpdf-generated-preview {
    min-height: 85px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    margin-top: 9px;

    overflow: hidden;

    border: 1px dashed #d9dce8;
    border-radius: 9px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #f8f9fc
        );
}


.signpdf-generated-preview span {
    margin-bottom: 4px;

    color: #9b9fae;

    font-size: 6px;
}


.signpdf-generated-preview img {
    max-width: 92%;
    max-height: 63px;

    display: block;

    object-fit: contain;
}


/* ==========================================================
   DIBUJAR
========================================================== */

.signpdf-draw-top {
    display: flex;
    align-items: center;

    gap: 10px;
}


.signpdf-draw-top label {
    color: #656a7c;

    font-size: 7px;
    font-weight: 700;
}


.signpdf-draw-top input {
    flex: 1;
}


.signpdf-draw-wrapper {
    position: relative;

    margin-top: 9px;

    overflow: hidden;

    border: 1px solid #dce0e8;
    border-radius: 9px;

    background:
        linear-gradient(
            180deg,
            #ffffff,
            #fafbfe
        );
}


.signpdf-draw-wrapper canvas {
    width: 100%;
    height: 110px;

    display: block;

    cursor: crosshair;

    touch-action: none;
}


.signpdf-draw-wrapper > span {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 4px;

    pointer-events: none;

    text-align: center;

    color: #b0b3bf;

    font-size: 6px;
}


.signpdf-small-outline-button {
    width: 100%;
    min-height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    margin-top: 6px;

    border: 1px solid #dfe2e9;
    border-radius: 8px;

    color: #666b7c;
    background: #ffffff;

    font-size: 7px;
    font-weight: 700;
}


/* ==========================================================
   CARGAR FIRMA
========================================================== */

.signpdf-upload-image-button,
.signpdf-seal-upload {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 11px;

    cursor: pointer;

    border: 1px dashed #cfd3e1;
    border-radius: 9px;

    color: #606576;
    background: #fafbfe;

    font-size: 8px;
    font-weight: 700;

    transition: 0.2s;
}


.signpdf-upload-image-button:hover,
.signpdf-seal-upload:hover {
    color: var(--primary);

    border-color: var(--primary);

    background: var(--primary-light);
}


.signpdf-format-note {
    display: block;

    margin-top: 5px;

    text-align: center;

    color: #a3a7b5;

    font-size: 6px;
}


.signpdf-image-preview {
    min-height: 80px;

    display: grid;
    place-items: center;

    margin-top: 9px;

    overflow: hidden;

    border: 1px solid #e0e3eb;
    border-radius: 9px;

    background: #f8f9fc;
}


.signpdf-image-preview img {
    max-width: 90%;
    max-height: 105px;

    object-fit: contain;
}


/* ==========================================================
   CHECKBOX
========================================================== */

.signpdf-checkbox {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;

    gap: 7px;

    cursor: pointer;
}


.signpdf-checkbox input {
    accent-color: var(--primary);
}


/* ==========================================================
   BOTONES PRINCIPALES
========================================================== */

.signpdf-primary-option-button,
.signpdf-secondary-option-button {
    width: 100%;
    min-height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    margin-top: 10px;

    border: none;
    border-radius: 9px;

    font-size: 8px;
    font-weight: 800;

    transition: 0.2s;
}


.signpdf-primary-option-button {
    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6964e8
        );
}


.signpdf-secondary-option-button {
    color: #6557c8;

    background: #eeeeff;

    border:
        1px solid
        rgba(91, 92, 240, 0.15);
}


.signpdf-secondary-option-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}


/* ==========================================================
   COLOCAR EN
========================================================== */

.signpdf-custom-pages {
    margin-top: 8px;

    padding: 9px;

    border-radius: 8px;

    background: #f7f8fb;
}


.signpdf-custom-pages small {
    display: block;

    margin-top: 4px;

    color: #9da1b0;

    font-size: 6px;
    line-height: 1.4;
}


.signpdf-placement-info {
    display: flex;
    align-items: flex-start;

    gap: 7px;

    margin-top: 9px;

    padding: 9px;

    border-radius: 8px;

    color: #74798b;
    background: #f4f5fb;
}


.signpdf-placement-info i {
    color: var(--primary);
}


.signpdf-placement-info p {
    font-size: 6.5px;
    line-height: 1.45;
}


/* ==========================================================
   SELLO
========================================================== */

.signpdf-title-with-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.signpdf-title-with-badge h4 {
    margin: 0;
}


.signpdf-title-with-badge > span {
    padding: 3px 6px;

    border-radius: 50px;

    color: #0b8e68;
    background: #e8faf4;

    font-size: 5px;
    font-weight: 800;
}


.signpdf-seal-upload {
    justify-content: flex-start;

    margin-top: 10px;
}


.signpdf-seal-upload > i {
    font-size: 18px;
    color: var(--primary);
}


.signpdf-seal-upload span {
    display: flex;
    flex-direction: column;
}


.signpdf-seal-upload strong {
    font-size: 7px;
}


.signpdf-seal-upload small {
    margin-top: 2px;

    color: #a0a4b1;

    font-size: 5.5px;
}


/* ==========================================================
   CAMPOS
========================================================== */

.signpdf-fields-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 6px;
}


.signpdf-fields-grid button {
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 1px solid #dfe2e9;
    border-radius: 8px;

    color: #666b7c;
    background: #ffffff;

    font-size: 7px;

    transition: 0.2s;
}


.signpdf-fields-grid button i {
    color: var(--primary);

    font-size: 14px;
}


.signpdf-fields-grid button:hover {
    color: var(--primary);

    border-color: var(--primary);

    background: var(--primary-light);
}


.signpdf-free-text {
    margin-top: 8px;
}


/* ==========================================================
   ELIMINAR
========================================================== */

.signpdf-delete-option-button {
    width: 100%;
    min-height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 6px;

    margin-top: 8px;

    border: 1px solid #ffd6d2;
    border-radius: 8px;

    color: #e54848;
    background: #fff4f3;

    font-size: 7px;
    font-weight: 700;
}


.signpdf-delete-option-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}


/* ==========================================================
   AVISO
========================================================== */

.signpdf-legal-note {
    display: flex;
    align-items: flex-start;

    gap: 8px;

    margin-top: 14px;

    padding: 10px;

    border: 1px solid #dfe2ee;
    border-radius: 10px;

    color: #717688;
    background: #f7f8fc;
}


.signpdf-legal-note > i {
    color: var(--primary);
}


.signpdf-legal-note strong {
    display: block;

    color: var(--dark);

    font-size: 8px;
}


.signpdf-legal-note p {
    margin-top: 2px;

    font-size: 6.4px;
    line-height: 1.45;
}


.signpdf-final-side-button {
    width: 100%;
    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 11px;

    border: none;
    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6b64e9
        );

    box-shadow:
        0 9px 22px
        rgba(91, 92, 240, 0.23);

    font-size: 9px;
    font-weight: 800;
}


/* ==========================================================
   PROCESANDO
========================================================== */

.signpdf-processing-icon {
    width: 70px;
    height: 70px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border-radius: 50%;

    color: var(--primary);
    background: var(--primary-light);

    font-size: 28px;

    animation:
        signpdf-pulse
        1.2s ease-in-out infinite;
}


@keyframes signpdf-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

}


.signpdf-progress-status {
    width: min(500px, 100%);

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 7px;
}


.signpdf-progress-status span {
    color: #9195a5;

    font-size: 7px;
}


.signpdf-progress-status strong {
    color: var(--primary);

    font-size: 8px;
}


/* ==========================================================
   RESULTADO
========================================================== */

.signpdf-result-stage {
    width: min(760px, 100%);

    margin: 0 auto;

    padding: 45px;

    text-align: center;

    background: #ffffff;

    border: 1px solid #e1e4ec;
    border-radius: 24px;

    box-shadow:
        0 12px 36px
        rgba(20, 23, 43, 0.06);
}


.signpdf-success-icon {
    width: 72px;
    height: 72px;

    display: grid;
    place-items: center;

    margin: 0 auto 14px;

    border-radius: 50%;

    color: #ffffff;
    background: #10b981;

    font-size: 31px;

    box-shadow:
        0 12px 28px
        rgba(16, 185, 129, 0.22);
}


.signpdf-result-label {
    color: #10a273;

    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1px;
}


.signpdf-result-stage h2 {
    margin-top: 5px;

    color: var(--dark);

    font-size: 26px;
}


.signpdf-result-stage > p {
    max-width: 540px;

    margin: 6px auto 21px;

    color: var(--text-light);

    font-size: 11px;
}


.signpdf-result-file {
    width: min(520px, 100%);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin: 0 auto 17px;

    padding: 13px 15px;

    border: 1px solid #e2e5ed;
    border-radius: 11px;

    background: #f9fafc;
}


.signpdf-result-file > div {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 10px;
}


.signpdf-result-file > div > i {
    color: #ef4444;

    font-size: 25px;
}


.signpdf-result-file span {
    min-width: 0;

    display: flex;
    flex-direction: column;

    text-align: left;
}


.signpdf-result-file strong {
    max-width: 390px;

    overflow: hidden;

    color: var(--dark);

    font-size: 8px;

    text-overflow: ellipsis;
    white-space: nowrap;
}


.signpdf-result-file small {
    margin-top: 2px;

    color: #999dad;

    font-size: 6px;
}


.signpdf-result-file > i {
    color: #10b981;
}


.signpdf-download-button {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 13px 25px;

    border-radius: 11px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6b64e9
        );

    box-shadow:
        0 11px 25px
        rgba(91, 92, 240, 0.24);

    font-size: 9px;
    font-weight: 800;
}


.signpdf-result-actions {
    display: flex;
    justify-content: center;

    gap: 8px;

    margin-top: 15px;
}


.signpdf-result-actions button {
    min-height: 37px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 5px;

    padding: 7px 12px;

    border: 1px solid #dfe2ea;
    border-radius: 8px;

    color: #686d7d;
    background: #ffffff;

    font-size: 7px;
    font-weight: 700;
}


/* ==========================================================
   MENSAJE
========================================================== */

.signpdf-message {
    width: min(900px, 100%);

    margin: 15px auto 0;

    padding: 12px 14px;

    border: 1px solid #ffd5d1;
    border-radius: 10px;

    color: #b42318;
    background: #fff0ef;

    font-size: 9px;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1180px) {

    .signpdf-editor-layout {
        grid-template-columns:
            155px
            minmax(0, 1fr);
    }


    .signpdf-options-panel {
        grid-column: 1 / -1;

        max-height: none;

        display: grid;

        grid-template-columns:
            repeat(3, 1fr);

        gap: 12px;

        border-left: none;
        border-top: 1px solid #dfe2ea;
    }


    .signpdf-panel-heading,
    .signpdf-legal-note,
    .signpdf-final-side-button {
        grid-column: 1 / -1;
    }

}


@media (max-width: 800px) {

    .signpdf-main-container {
        width: calc(100% - 18px);
    }


    .signpdf-editor-header {
        flex-direction: column;
        align-items: flex-start;
    }


    .signpdf-editor-actions {
        width: 100%;
    }


    .signpdf-change-button,
    .signpdf-finish-button {
        flex: 1;
    }


    .signpdf-editor-layout {
        grid-template-columns: 1fr;
    }


    .signpdf-pages-sidebar {
        max-height: none;

        border-right: none;
        border-bottom: 1px solid #dfe2ea;
    }


    .signpdf-page-list {
        flex-direction: row;

        overflow-x: auto;
    }


    .signpdf-page-thumbnail {
        min-width: 120px;
    }


    .signpdf-options-panel {
        grid-template-columns:
            1fr
            1fr;
    }

}


@media (max-width: 560px) {

    .signpdf-toolbar {
        justify-content: flex-start;

        overflow-x: auto;
    }


    .signpdf-tool-button {
        flex-shrink: 0;
    }


    .signpdf-options-panel {
        grid-template-columns: 1fr;
    }


    .signpdf-result-stage {
        padding: 32px 18px;
    }


    .signpdf-result-actions {
        flex-direction: column;
    }


    .signpdf-result-actions button {
        width: 100%;
    }

}