:root {
    --doc-green: #075f3c;
    --doc-green-dark: #053f2b;
    --doc-green-soft: #e8f5ed;
    --doc-green-line: #aed0bc;
    --doc-yellow: #f2ae00;
    --doc-text: #173029;
    --doc-muted: #60716a;
    --doc-paper: #fffefb;
}

* {
    box-sizing: border-box;
}

body.documents-page,
body.document-view-page,
body.document-fill-page {
    margin: 0;
    background:
        radial-gradient(circle at 5% 8%, rgba(39, 145, 84, .07), transparent 19rem),
        radial-gradient(circle at 96% 96%, rgba(39, 145, 84, .06), transparent 22rem),
        #edf3ef;
    color: var(--doc-text);
    font-family: Arial, Helvetica, sans-serif;
}

.documents-shell {
    width: min(1120px, calc(100% - 30px));
    margin: 0 auto;
    padding: 34px 0 70px;
}

.documents-heading {
    margin-bottom: 25px;
}

.documents-heading h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.1;
    color: var(--doc-green-dark);
}

.documents-heading p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--doc-muted);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.documents-card {
    background: #fff;
    border: 1px solid #d5e4da;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 30px rgba(8, 60, 39, .06);
}



.documents-card h2 {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--doc-green-dark);
}

.documents-card p {
    min-height: 48px;
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--doc-muted);
}

.documents-card__actions,
.document-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.doc-btn {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--doc-green);
    border-radius: 10px;
    background: var(--doc-green);
    color: #fff;
    text-decoration: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.doc-btn--secondary {
    background: #fff;
    color: var(--doc-green);
}

.document-toolbar {
    width: min(210mm, calc(100% - 24px));
    margin: 22px auto 14px;
}

.document-toolbar__spacer {
    flex: 1;
}

.document-wrap {
    padding-bottom: 50px;
    overflow-x: auto;
}

.doc-page {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    background: var(--doc-paper);
    box-shadow: 0 18px 55px rgba(0, 0, 0, .12);
    padding: 8mm;
}

.doc-frame {
position: relative;
    min-height: 281mm;

    overflow: hidden;

    border: 1.5px solid var(--doc-green);
    border-radius: 8mm;

    padding: 9mm 9mm 14mm;

    background:
        radial-gradient(circle at 0 0, rgba(26, 130, 74, .07), transparent 38mm),
        radial-gradient(circle at 100% 100%, rgba(26, 130, 74, .07), transparent 42mm),
        #fff;
}

.doc-frame::before,
.doc-frame::after {
    content: "";
    position: absolute;
    width: 80mm;
    height: 80mm;
    pointer-events: none;
    opacity: .12;
    border: 8mm solid #45a86c;
    border-radius: 60% 40% 55% 45%;
    transform: rotate(24deg);
}

.doc-frame::before {
    left: -55mm;
    top: -56mm;
}

.doc-frame::after {
    right: -58mm;
    bottom: -61mm;
}

.doc-header {
position: relative;
    z-index: 1;

    width: 100%;
    aspect-ratio: 2172 / 724;

    height: auto;
    margin: -2mm 0 2mm;

    overflow: visible;
}

.doc-header-art {
display: block;

    width: 100%;
    height: 100%;

    object-fit: fill;
    object-position: center;

    margin: 0;
}

.doc-reference-overlay {
    position: absolute;
    z-index: 20;

    left: 76.2%;
    top: 28.8%;

    width: 15.8%;
    height: 4.4%;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    color: #4d6b5e;
    background: transparent;

    font-size: 7.4px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0;

    white-space: nowrap;
}

.doc-title {
position: relative;
    z-index: 1;
    margin: 3.5mm 0 3.5mm;
}

.doc-title h1 {
    margin: 0;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -.02em;
    color: var(--doc-green-dark);
}

.doc-title p {
    margin: 2mm 0 0;
    font-size: 11px;
    letter-spacing: .11em;
    color: #355b4d;
}

.doc-content {
position: relative;
    z-index: 1;
}

.doc-section-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4mm;
}

.doc-section {
margin-bottom: 2.5mm;
}

.doc-section--paired {
    min-width: 0;
}

.doc-section__heading {
    display: flex;
    align-items: center;
    min-height: 9mm;
    border-radius: 20px;
    background: linear-gradient(90deg, #e4f3e8 0%, #eef8f1 100%);
}

.doc-section__number {
    display: inline-flex;
    width: 9mm;
    height: 9mm;
    margin-right: 3mm;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: var(--doc-green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.doc-section__title {
    font-size: 11px;
    font-weight: 800;
    color: var(--doc-green-dark);
}

.doc-statement {
margin: 1.8mm 0;
    padding: 1.8mm 3mm;
    border: 1px solid var(--doc-green-line);
    border-radius: 3mm;
    background: rgba(242, 249, 244, .86);
    font-size: 8.1px;
    line-height: 1.35;
}

.doc-fields {
display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.8mm 4mm;
    padding: 2mm 1mm 0;
}

.doc-field--full {
    grid-column: span 12;
}

.doc-field--half {
    grid-column: span 6;
}

.doc-field--third {
    grid-column: span 4;
}

.doc-field--quarter {
    grid-column: span 3;
}

.doc-field__label {
    margin-bottom: 1.3mm;
    font-size: 7.2px;
    line-height: 1.2;
    font-weight: 800;
    color: #315c4c;
}

.doc-field__line {
min-height: 4.8mm;
    border-bottom: .7px solid #8fa99e;
    font-size: 8.7px;
    line-height: 4.4mm;
    color: #172e26;
}

.doc-field__value {
    display: block;
    overflow-wrap: anywhere;
}

.doc-field__box {
min-height: 12mm;
    padding: 1.7mm 2mm;
    border: .7px solid #a7c7b4;
    border-radius: 3mm;
    font-size: 8.3px;
    line-height: 1.35;
    white-space: normal;
}

.doc-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2mm 5mm;
}

.doc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 2mm;
    font-size: 8px;
    line-height: 1.35;
}

.doc-checkbox__box {
    display: inline-flex;
    flex: 0 0 4mm;
    width: 4mm;
    height: 4mm;
    align-items: center;
    justify-content: center;
    border: .7px solid #315c4c;
    font-size: 9px;
    font-weight: 900;
    color: var(--doc-green);
}

.doc-signatures {
display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6mm;

    margin-top: 1.5mm;
    padding-bottom: 0;
}

.doc-signature {
    display: grid;
    grid-template-columns: 1.8fr .8fr;
    gap: 4mm;
}

.doc-footer {
position: absolute;
    z-index: 5;

    left: 9mm;
    right: 9mm;
    bottom: 3mm;

    min-height: 8mm;

    padding-top: 2mm;

    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 1.2mm 5mm;

    align-items: center;

    border-top: 0;
    background: transparent;

    overflow: visible;
}

.doc-footer__legal {
position: static;

    grid-column: 1 / -1;

    color: #6b7971;
    font-size: 5.2px;
    line-height: 1.15;
}

.doc-footer__code {
    position: static;

    color: rgba(101, 115, 108, 0.55);
    font-size: 5.8px;
    line-height: 1;
    white-space: nowrap;
}

.doc-footer__brand {
font-size: 7.8px;
    line-height: 1;
    font-weight: 700;
    white-space: nowrap;
}


.doc-footer__exo {
    color: var(--doc-green-dark);
}

.doc-footer__bayan {
    color: var(--doc-yellow);
}

.doc-footer__divider {
margin: 0 2.5mm;
    color: #86a999;
    font-weight: 400;
}

.doc-footer__code {
    font-size: 7.5px;
    color: var(--doc-muted);
}

.doc-footer__legal {
    grid-column: 1 / -1;
    font-size: 6.6px;
    line-height: 1.3;
    color: #718078;
}

.document-fill-card {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #d5e4da;
    border-radius: 20px;
    padding: 25px;
}

.document-fill-card h1 {
    margin: 0 0 7px;
    font-size: 26px;
    color: var(--doc-green-dark);
}

.document-fill-card > p {
    margin: 0 0 24px;
    color: var(--doc-muted);
    font-size: 13px;
}

.fill-section {
    margin-top: 25px;
}

.fill-section h2 {
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dbe9df;
    font-size: 17px;
    color: var(--doc-green-dark);
}

.fill-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.fill-field--full {
    grid-column: 1 / -1;
}

.fill-field label,
.fill-field__label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #315c4c;
}

.fill-field input[type="text"],
.fill-field textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid #b8cec0;
    border-radius: 9px;
    font: inherit;
    font-size: 13px;
}

.fill-field textarea {
    min-height: 90px;
    resize: vertical;
}

.fill-checkboxes {
    display: grid;
    gap: 9px;
}

.fill-checkboxes label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
}

.fill-actions {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

@media (max-width: 900px) {
    .documents-grid {
        grid-template-columns: 1fr;
    }

    .documents-card p {
        min-height: 0;
    }

    .doc-page {
        transform-origin: top left;
    }
}

@media (max-width: 650px) {
    .fill-fields {
        grid-template-columns: 1fr;
    }

    .fill-field--full {
        grid-column: auto;
    }
}

@media print {
    @page {
        size: A4 portrait;
        margin: 0;
    }

    html,
    body {
        width: 210mm;
        height: 297mm;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
    }

    .document-toolbar {
        display: none !important;
    }

    .document-wrap {
        margin: 0;
        padding: 0;
        overflow: visible;
    }

    .doc-page {
        width: 210mm;
        height: 297mm;
        min-height: 297mm;
        margin: 0;
        padding: 8mm;
        box-shadow: none;
        break-after: auto;
        page-break-after: auto;
        overflow: hidden;
    }

    .doc-frame {
        min-height: 281mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}



/* =========================================================
   EXOPETBAYAN APP INTEGRATION
   Screen UI only. A4 document rules remain below/above.
   ========================================================= */

.documents-module,
.document-screen,
.document-fill {
    padding:
        18px
        16px
        calc(100px + env(safe-area-inset-bottom));
}

.documents-module__head,
.document-screen__head,
.document-fill__head {
    margin-bottom: 18px;
}

.documents-module__head small,
.document-screen__head small,
.document-fill__head small {
    display: block;
    margin-bottom: 4px;
    color: #7bcf42;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .05em;
}

.documents-module__head h1,
.document-screen__head h1,
.document-fill__head h1 {
    margin: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 500;
}

.documents-module__head p,
.document-screen__head p,
.document-fill__head p {
    max-width: 620px;
    margin: 8px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.5;
}

.documents-list {
display: grid;
    gap: 14px;
}

.documents-card {
position: relative;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;

    margin: 0;
    padding: 15px 15px 14px;

    overflow: hidden;

    border: 1px solid #dec27d;
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            #fff8e5 0%,
            #ffefc6 55%,
            #f5dfae 100%
        );

    box-shadow:
        0 8px 18px rgba(0, 0, 0, .16),
        inset 0 1px 0 rgba(255, 255, 255, .86);

    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}



.documents-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 176, 18, .85) 22%,
            rgba(122, 174, 55, .7) 72%,
            transparent 100%
        );
    pointer-events: none;
}

.documents-card::after {
    content: "";
    position: absolute;
    top: -24px;
    right: -28px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, .34),
            transparent 68%
        );
    pointer-events: none;
}

.documents-card:hover {
    border-color: #d49f3d;
    box-shadow:
        0 10px 22px rgba(0, 0, 0, .19),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    transform: translateY(-1px);
}

.documents-card:active {
    transform: translateY(1px);
    box-shadow:
        0 4px 10px rgba(0, 0, 0, .15),
        inset 0 1px 0 rgba(255, 255, 255, .82);
}

.documents-card .documents-action--secondary {
    border-color: #b78946;
    background: rgba(255, 255, 255, .46);
    color: #533a17;
}

.documents-card .documents-action {
    box-shadow:
        0 2px 0 rgba(121, 67, 0, .18);
}

.documents-card .documents-action:active {
    transform: translateY(1px);
    box-shadow: none;
}

.documents-card__icon {
position: relative;

    display: flex;
    width: 58px;
    height: 58px;

    align-items: center;
    justify-content: center;

    border: 3px solid #bd741d;
    border-radius: 50%;

    background:
        radial-gradient(
            circle at 38% 28%,
            #874716 0%,
            #68300c 58%,
            #401b06 100%
        );

    box-shadow:
        0 4px 8px rgba(59, 28, 4, .28),
        inset 0 1px 0 rgba(255, 216, 143, .28);

    font-size: 27px;
    line-height: 1;
}

.documents-card__body {
min-width: 0;
    align-self: center;
}

.documents-card__body > small {
display: block;
    margin-bottom: 3px;

    color: #558536;

    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.documents-card h2 {
margin: 0;

    color: #1d211c;

    font-size: 19px;
    line-height: 1.16;
    font-weight: 700;
    letter-spacing: -.01em;
}

.documents-card p {
min-height: 0;
    margin: 5px 0 13px;

    color: #565d53;

    font-size: 12.5px;
    line-height: 1.42;
}

.documents-card__actions,
.document-toolbar,
.document-fill__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.documents-card__actions {
display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;

    margin-top: 3px;
}

.documents-action {
    appearance: none;
    display: inline-flex;
    min-height: 40px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d98c16;
    border-radius: 11px;
    background: #ffa913;
    color: #1e2c20;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.documents-action--secondary {
    border-color: #a97b39;
    background: transparent;
    color: #513814;
}

.document-toolbar {
    margin: 0 0 14px;
}

.document-toolbar .documents-action {
    background: #fff4d5;
}

.document-toolbar .documents-action:not(
    .documents-action--secondary
) {
    background: #ffa913;
}

.document-wrap {
    position: relative;
    margin: 0;
    padding: 0 0 35px;
    overflow: hidden;
}

.document-wrap .doc-page {
    transform-origin: top left;
    margin-right: 0;
}

.document-fill__form {
    overflow: hidden;
    border: 1px solid #ddcda5;
    border-radius: 18px;
    background: #fff9e9;
}

.fill-section {
    margin: 0;
    padding: 17px;
    border-bottom: 1px solid #e5d8ba;
}

.fill-section:last-of-type {
    border-bottom: 0;
}

.fill-section h2 {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
    color: #173b2a;
    font-size: 16px;
    line-height: 1.25;
}

.fill-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.fill-field--full {
    grid-column: 1 / -1;
}

.fill-field label,
.fill-field__label {
    display: block;
    margin-bottom: 6px;
    color: #485348;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 600;
}

.fill-field input[type="text"],
.fill-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbbb98;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #20231f;
    font: inherit;
    font-size: 13px;
}

.fill-field textarea {
    min-height: 95px;
    resize: vertical;
}

.fill-checkboxes {
    display: grid;
    gap: 10px;
}

.fill-checkboxes label {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 0;
    color: #323a32;
    font-size: 13px;
}

.document-fill__actions {
    padding: 17px;
}

@media (max-width: 640px) {
    .fill-fields {
        grid-template-columns: 1fr;
    }

    .fill-field--full {
        grid-column: auto;
    }
}

@media print {
    .document-screen__head,
    .document-toolbar,
    .document-saved-notice,
    .app-header,
    .app-navigation,
    .mobile-navigation,
    .bottom-navigation,
    .app-bottom-nav,
    .app-pwa-install,
    .app-post-sheet,
    nav {
        display: none !important;
    }

    html,
    body {
        overflow: hidden !important;
    }

    .document-screen {
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .document-wrap {
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .document-wrap .doc-page {
        transform: none !important;
        transform-origin: top left !important;
        margin: 0 !important;
    }
}


.fill-reference {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #cbbb98;
    border-radius: 10px;
    background: #f5eedc;
    color: #173b2a;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
}


.document-toolbar__form {
    display: contents;
}

.document-saved-notice,
.document-share-error {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
}

.document-saved-notice {
    border: 1px solid #b8d7a3;
    background: #edf7e8;
    color: #315a25;
}

.document-share-error {
    border: 1px solid #e3b0a5;
    background: #fff0ed;
    color: #7d3425;
}

.my-documents-list {
    display: grid;
    gap: 11px;
}

.my-documents-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid #e7d6a8;
    border-radius: 16px;
    background: #fff4d5;
    color: #20231f;
    text-decoration: none;
}

.my-documents-card__icon {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #71330d;
    font-size: 22px;
}

.my-documents-card__body {
    min-width: 0;
}

.my-documents-card__body small {
    display: block;
    margin-bottom: 3px;
    color: #598235;
    font-size: 11px;
    font-weight: 700;
}

.my-documents-card__body h2 {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
}

.my-documents-card__body p {
    margin: 4px 0 0;
    color: #686c63;
    font-size: 12px;
}

.my-documents-card__arrow {
    color: #80551d;
    font-size: 27px;
}

.my-documents-empty {
    padding: 20px;
    border: 1px solid #e7d6a8;
    border-radius: 18px;
    background: #fff4d5;
}

.my-documents-empty h2 {
    margin: 0 0 7px;
    color: #20231f;
    font-size: 18px;
}

.my-documents-empty p {
    margin: 0 0 15px;
    color: #656960;
    font-size: 13px;
    line-height: 1.5;
}

.document-share-summary {
    display: grid;
    gap: 4px;
    margin-bottom: 13px;
    padding: 14px;
    border: 1px solid #e7d6a8;
    border-radius: 15px;
    background: #fff4d5;
}

.document-share-summary small {
    color: #598235;
    font-size: 11px;
    font-weight: 700;
}

.document-share-summary strong {
    color: #20231f;
    font-size: 17px;
}

.document-share-list {
    display: grid;
    gap: 9px;
}

.document-share-option {
    display: flex;
    gap: 11px;
    align-items: center;
    padding: 13px;
    border: 1px solid #ddd1b0;
    border-radius: 14px;
    background: #fff9e9;
    cursor: pointer;
}

.document-share-option input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.document-share-option__body {
    display: grid;
    gap: 3px;
}

.document-share-option__body strong {
    color: #20231f;
    font-size: 14px;
}

.document-share-option__body small {
    color: #6b7067;
    font-size: 12px;
}

.document-share-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 12px;
}

.document-share-actions .documents-action {
    border-color: #e69a00;
    background: #ffb91f;
    color: #20251f;
    box-shadow: 0 2px 0 rgba(105, 58, 0, .20);
}

.document-share-actions .documents-action:hover,
.document-share-actions .documents-action:focus-visible {
    border-color: #eda900;
    background: #ffc43d;
}

.document-share-actions .documents-action--secondary {
    border-color: #c99942;
    background: #fff4d5;
    color: #5b3d13;
    box-shadow: none;
}

.document-share-actions .documents-action--secondary:hover,
.document-share-actions .documents-action--secondary:focus-visible {
    border-color: #dda944;
    background: #fff9e9;
    color: #3f2a0d;
}




.documents-card .documents-action:not(.documents-action--secondary) {
    border-color: #e69a00;
    background: #ffb91f;
    color: #20251f;
    box-shadow: 0 2px 0 rgba(105, 58, 0, .20);
}

.documents-card .documents-action:not(.documents-action--secondary):hover,
.documents-card .documents-action:not(.documents-action--secondary):focus-visible {
    border-color: #eda900;
    background: #ffc43d;
}

.documents-module__tools {
    display: flex;
    justify-content: flex-end;
    margin: 8px 2px 14px 0;
}

.documents-module__tools .documents-action {
    border-color: #e69a00;
    background: #ffb91f;
    color: #20251f;
    box-shadow: 0 2px 0 rgba(105, 58, 0, .20);

    transform: rotate(-2deg);
    transform-origin: center;
}

.documents-module__tools .documents-action:hover,
.documents-module__tools .documents-action:focus-visible {
    border-color: #eda900;
    background: #ffc43d;
    color: #20251f;
}


@media print {
    .app-shell {
        width: 210mm !important;
        max-width: none !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
        position: static !important;
    }

    .app-main {
        width: 210mm !important;
        max-width: none !important;
        height: 297mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        overflow: visible !important;
        position: static !important;
    }

    .app-main::before,
    .app-main::after {
        display: none !important;
        content: none !important;
    }

    .document-screen,
    .document-wrap,
    .doc-page {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
    }

    .doc-page {
        width: 210mm !important;
        height: 297mm !important;
        min-height: 297mm !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 8mm !important;
        transform: none !important;
        box-shadow: none !important;
    }
}

/*
 * Final A4 print fitting.
 *
 * Render the document on a slightly larger virtual A4-proportional
 * canvas, then scale the whole document to 90%.
 *
 * 233.333mm × 330mm × 0.90 = 210mm × 297mm.
 */
@media print {
    .document-screen,
    .document-wrap {
        width: 210mm !important;
        height: 297mm !important;
        max-width: none !important;
        max-height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .document-wrap .doc-page {
        width: 233.333mm !important;
        height: 330mm !important;
        min-height: 330mm !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 8.888mm !important;

        transform: scale(.90) !important;
        transform-origin: top left !important;

        box-shadow: none !important;
        overflow: hidden !important;

        break-after: auto !important;
        page-break-after: auto !important;
    }

    .document-wrap .doc-frame {
        height: 312.222mm !important;
        min-height: 312.222mm !important;
    }
}
