.gdone-ksef-action-menu-v4{min-width:0;width:100%;max-width:100%;box-sizing:border-box;font-size:12px}
.gdone-ksef-action-menu-v4 summary{display:flex;align-items:center;justify-content:space-between;gap:3px;min-height:34px;width:100%;max-width:100%;box-sizing:border-box;padding:6px 4px;border:1px solid #dce1ee;border-radius:10px;background:#f5f7ff;color:#303e69;font-weight:700;cursor:pointer;list-style:none;overflow-wrap:anywhere;font-size:clamp(8px,.75vw,12px)}
.gdone-ksef-action-menu-v4 summary::-webkit-details-marker{display:none}
.gdone-ksef-action-list-v4{position:fixed;inset:auto;display:none;gap:5px;max-width:calc(100vw - 16px);max-height:calc(100vh - 16px);overflow:auto;box-sizing:border-box;padding:4px;margin:0;border:1px solid #dce1ee;border-radius:10px;background:white;box-shadow:0 12px 30px #1e2a4b33;color:#374151;z-index:2147483647;font:600 clamp(9px,.8vw,12px)/1.3 Arial,sans-serif}
.gdone-ksef-action-list-v4:popover-open,.gdone-ksef-action-list-v4.is-open{display:grid}
.gdone-ksef-action-list-v4 .admin-section-actions{display:contents!important}
body .gdone-ksef-action-list-v4 button{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:32px!important;margin:0!important;padding:6px 4px!important;border:1px solid #dce1ee!important;border-radius:7px!important;background:#f5f7ff!important;color:#303e69!important;font:inherit!important;text-align:left!important;white-space:normal!important;overflow-wrap:anywhere;cursor:pointer;box-shadow:none!important}
body .gdone-ksef-action-list-v4 button:hover:not(:disabled){background:#e8efff!important;border-color:#a3b4d5!important}
.gdone-ksef-action-list-v4 button:disabled{opacity:.5;cursor:not-allowed}
.gdone-ksef-pending-action{display:block;min-width:0;border-radius:7px;cursor:not-allowed}
.gdone-ksef-pending-action:focus-visible{outline:2px solid #667085;outline-offset:1px}
body .gdone-ksef-action-list-v4 .gdone-ksef-pending-action button{color:#727b8c!important;background:#f3f4f6!important;border-color:#e3e6eb!important;opacity:.6;pointer-events:none}
.gdone-ksef-pending-caption{font-size:9px;line-height:1.25;color:#727b8c;padding:2px 3px}
.gdone-ksef-registry-table tr.gdone-ksef-row-rejected td{background:#fff0f1!important;color:#8b3342}
/* Relation colours identify the document role, never its assignment status. */
.gdone-ksef-registry-table tr[data-gdone-family-role=correction]{--gdone-family-color:#23834d;--gdone-relation-hover:#eef8f1}
.gdone-ksef-registry-table tr[data-gdone-family-role=base]{--gdone-family-color:#b8860b;--gdone-relation-hover:#fff8dc}
/* A saved relation is enough: its counterpart need not be in this page. */
.gdone-ksef-registry-table tr[data-gdone-family-role] td:first-child{border-left:3px solid var(--gdone-family-color)!important}
.gdone-ksef-registry-table tr[data-gdone-family-role] td:last-child{border-right:3px solid var(--gdone-family-color)!important}
.gdone-ksef-registry-table tr[data-gdone-family-role] td{border-top:2px solid var(--gdone-family-color)!important;border-bottom:2px solid var(--gdone-family-color)!important}
.gdone-correction-family-slot{display:block;width:100%;min-width:0;margin-top:6px;container-type:inline-size}
.gdone-correction-family-label{display:inline-flex;align-items:center;box-sizing:border-box;width:max-content;max-width:100%;min-width:0;padding:.36em .5em;margin:0;border:1px solid var(--gdone-family-color);border-radius:6px;color:var(--gdone-family-color);background:#fff;font-size:min(11px,12cqi);font-weight:800;line-height:1.35;white-space:nowrap}
.gdone-ksef-registry-table td:last-child{box-sizing:border-box}
/* All eleven columns total 100%; identifiers fit their column instead of growing
   the whole table. Names and invoice numbers may wrap, not spill or disappear. */
.gdone-ksef-registry-table :is(th,td):nth-child(1){--registry-column:6%}
.gdone-ksef-registry-table :is(th,td):nth-child(2){--registry-column:20%}
.gdone-ksef-registry-table :is(th,td):nth-child(3){--registry-column:11.5%}
.gdone-ksef-registry-table :is(th,td):nth-child(4){--registry-column:14.5%}
.gdone-ksef-registry-table :is(th,td):nth-child(5){--registry-column:6.5%}
.gdone-ksef-registry-table :is(th,td):nth-child(6){--registry-column:6%}
.gdone-ksef-registry-table :is(th,td):nth-child(7){--registry-column:6.5%}
.gdone-ksef-registry-table :is(th,td):nth-child(8){--registry-column:7.5%}
.gdone-ksef-registry-table :is(th,td):nth-child(9){--registry-column:7%}
.gdone-ksef-registry-table :is(th,td):nth-child(10){--registry-column:7.5%}
.gdone-ksef-registry-table :is(th,td):nth-child(11){--registry-column:7%}
:is(body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel,.gdone-registry-related-dialog) .gdone-ksef-registry-table{width:100%!important;min-width:0!important;table-layout:fixed!important;box-sizing:border-box;font-size:clamp(10px,.76vw,12px)!important}
:is(body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel,.gdone-registry-related-dialog) .gdone-ksef-registry-table :is(th,td):nth-child(n){width:var(--registry-column)!important;min-width:0!important;padding:6px clamp(2px,.3vw,6px)!important;box-sizing:border-box;white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
:is(body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel,.gdone-registry-related-dialog) .gdone-ksef-registry-table tbody :is(td:nth-child(1),td:nth-child(2),td[data-registry-money]){white-space:nowrap!important;overflow-wrap:normal!important}
:is(body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel,.gdone-registry-related-dialog) .gdone-ksef-registry-table .gdone-ksef-status-pill{max-width:100%;box-sizing:border-box;white-space:normal!important;overflow-wrap:anywhere;font-size:inherit!important;padding:3px!important}
.gdone-ksef-registry-table>tbody>tr>td:nth-child(2){white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
:is(body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel,.gdone-registry-related-dialog) .gdone-ksef-registry-table>tbody>tr>td[data-registry-money]{vertical-align:top!important;text-align:left!important}
.gdone-registry-relation-slot{display:grid;gap:4px;min-width:0;margin-top:6px;box-sizing:border-box}
.gdone-ksef-registry-table .gdone-registry-relation-pill{display:block;width:100%;max-width:none;min-width:0;min-height:0;margin:0;padding:4px 7px;border:1px solid var(--gdone-family-color,#23834d);border-radius:6px;background:#fff;color:var(--gdone-family-color,#23834d);font:700 11px/1.35 Arial,sans-serif;box-sizing:border-box;white-space:nowrap;text-align:left;cursor:pointer;box-shadow:none}
.gdone-registry-relation-pill:hover{background:var(--gdone-relation-hover,#eef8f1)!important}.gdone-registry-relation-pill:focus-visible{outline:2px solid var(--gdone-family-color,#23834d);outline-offset:2px}
.gdone-registry-source-author{margin-top:3px;font-size:.95em;font-weight:600;overflow-wrap:anywhere}
.gdone-relation-target>td{box-shadow:inset 0 2px var(--gdone-family-color,#23834d),inset 0 -2px var(--gdone-family-color,#23834d)}
.gdone-registry-related-dialog{width:min(1480px,96vw)}
.gdone-registry-related-dialog [data-related-reference]{padding:12px;border:1px solid #dce1ee;border-radius:9px;background:#f8fafc;margin:10px 0}
.gdone-registry-related-dialog [data-related-reference][hidden]{display:none}
.gdone-registry-related-dialog [data-related-reference] dl{display:grid;grid-template-columns:minmax(100px,140px) minmax(0,1fr);gap:7px 12px;margin:12px 0}
.gdone-registry-related-dialog [data-related-reference] dt{color:#667085}
.gdone-registry-related-dialog [data-related-reference] dd{margin:0;overflow-wrap:anywhere}
.gdone-local-history-dialog{width:min(960px,92vw);max-height:82vh;overflow:auto;padding:14px;border:1px solid #dce1ee;border-radius:12px;box-shadow:0 20px 65px #141e3740;background:white;color:#253047;font:12px/1.35 Arial,sans-serif}
.gdone-local-history-dialog::backdrop{background:#17203a55}
.corrections-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;font-size:14px}
.corrections-dialog-head button{padding:7px 12px;border:1px solid #dce1ee;border-radius:9px;background:#f5f7ff;color:#253047;cursor:pointer}
[data-history-body]{display:grid;gap:5px}
.corrections-history-event{position:relative;padding:7px 9px;border:1px solid #e4e8f1;border-radius:7px;background:#fafbfe;overflow-wrap:anywhere;font-size:12px}
.corrections-history-main{display:grid;grid-template-columns:150px minmax(120px,1fr) 110px;gap:12px;align-items:center;padding-right:27px;min-height:20px}
.corrections-history-main>strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.corrections-history-main>small{font-size:11px;white-space:nowrap}
.corrections-history-amount{text-align:right;font-variant-numeric:tabular-nums}
.corrections-history-event>details>summary{position:absolute;right:8px;top:7px;cursor:pointer;list-style:none;font-weight:900;font-size:15px;line-height:20px}
.corrections-history-event>details>summary::-webkit-details-marker{display:none}
.corrections-history-event>details[open]>:not(summary){display:block;margin-top:5px;font-size:11px}
.corrections-history-event small{color:#667085}
#gdoneLocalCorrectionsPreview{width:min(1460px,96vw);max-height:88vh}
#gdoneLocalCorrectionsPreview p{font-size:12px;color:#667085;margin:0 0 15px}
#gdoneLocalPreviewBadge button{pointer-events:auto;margin-left:10px;border:1px solid #9bb2d8;border-radius:5px;background:transparent;color:white;font:inherit;cursor:pointer}
body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel .gdone-ksef-registry-filters{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-items:start!important;gap:10px 12px!important}
body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel .gdone-ksef-registry-filters>*{grid-column:auto!important;min-width:0!important;width:100%!important;max-width:100%!important;align-self:start!important}
body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel .gdone-ksef-registry-filters .input{width:100%!important;max-width:100%!important;min-width:0!important;height:40px!important;min-height:40px!important;box-sizing:border-box!important}
.gdone-registry-product-field{grid-column:auto}
body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel .gdone-registry-nip-with-menu{display:block!important;grid-column:auto;width:100%!important;max-width:none!important;align-self:start!important}
body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel .gdone-registry-nip-with-menu>div:first-child{position:relative;width:100%!important;max-width:none!important}
body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel .gdone-registry-nip-control{display:flex!important;align-items:stretch;width:100%!important;max-width:100%!important;height:40px!important;box-sizing:border-box;overflow:hidden;border:1px solid #d5d9e2;border-radius:12px;background:white}
body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel .gdone-registry-nip-control #gdoneKsefRegistryNip{flex:1 1 auto!important;width:0!important;min-width:0!important;max-width:none!important;height:100%!important;min-height:0!important;box-sizing:border-box!important;border:0!important;border-radius:0!important;padding:0 9px!important;margin:0!important;box-shadow:none!important;background:transparent!important}
body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel .gdone-registry-nip-control .gdone-registry-supplier-toggle{position:static!important;flex:0 0 34px!important;width:34px!important;height:100%!important;min-height:0!important;box-sizing:border-box!important;margin:0!important;padding:0!important;border:0!important;border-left:1px solid #dce1ee!important;background:#eef2f8!important;color:#344679!important;border-radius:0!important;font-size:12px!important;box-shadow:none!important}
.gdone-registry-supplier-popup{position:fixed;inset:auto;margin:0;width:190px;max-width:calc(100vw - 16px);max-height:75vh;overflow:auto;box-sizing:border-box;padding:8px;border:1px solid #dce1ee;border-radius:10px;background:white;box-shadow:0 12px 30px #1e2a4b33;color:#253047;font:12px/1.35 Arial,sans-serif}
.gdone-registry-supplier-popup:popover-open{display:grid;gap:8px}
.gdone-registry-supplier-popup input{width:100%;min-width:0;box-sizing:border-box;font-size:12px!important;min-height:32px!important;height:32px!important;padding:5px 7px!important}
.gdone-registry-supplier-popup [data-supplier-list]{display:grid;gap:3px;max-height:180px;overflow:auto}
.gdone-registry-supplier-popup button{font:inherit;box-sizing:border-box;min-width:0;min-height:32px;border:1px solid #dce1ee;border-radius:6px;background:#f5f7fc;color:#253047;text-align:left;padding:5px 6px;cursor:pointer}
.gdone-registry-supplier-popup .gdone-registry-supplier-row{display:flex!important;align-items:center;gap:5px;min-width:0;width:100%!important;box-sizing:border-box}
.gdone-registry-supplier-popup .gdone-registry-supplier-option{display:flex;flex:1 1 auto;flex-direction:row;align-items:center;gap:8px;min-width:0;min-height:30px!important;height:30px!important;padding:5px 6px!important;text-align:left;white-space:nowrap;overflow:hidden}
.gdone-registry-supplier-option [data-supplier-number]{flex:0 0 auto;font:700 14px/18px Arial,sans-serif;color:#253047;font-variant-numeric:tabular-nums}
.gdone-registry-supplier-option [data-supplier-label]{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;font:400 14px/18px Arial,sans-serif;color:#536078}
.gdone-registry-supplier-popup .gdone-registry-supplier-remove{display:flex;align-items:center;justify-content:center;flex:0 0 22px;width:22px!important;min-width:22px!important;max-width:22px!important;height:22px!important;min-height:22px!important;padding:0!important;border:1px solid #cdd3dc!important;border-radius:50%!important;background:#f4f5f7!important;color:#7e8797!important;font:15px/1 Arial,sans-serif!important}
.gdone-registry-supplier-popup button:disabled{opacity:.5;cursor:not-allowed}
.gdone-registry-supplier-popup [data-supplier-add-title]{font-size:11px;overflow-wrap:anywhere;cursor:pointer}
.gdone-registry-supplier-popup [data-supplier-add]{width:100%!important;font-size:11px;text-align:center}
.gdone-registry-supplier-popup form{display:grid;gap:5px;margin-top:6px}
.gdone-registry-supplier-popup small{font-size:10px;color:#667085}
.gdone-registry-supplier-popup [data-supplier-error]{color:#a52b39}
.gdone-registry-supplier-popup [data-supplier-error][hidden]{display:none!important}
.gdone-ksef-registry-table .gdone-registry-number-link{background:none!important;border:0!important;padding:0!important;margin:0!important;min-height:0!important;min-width:0!important;box-shadow:none!important;color:#344679!important;font:inherit!important;text-align:left!important;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.gdone-registry-invoice-view dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:5px 12px;font-size:12px}
.gdone-registry-invoice-view dt{color:#667085}.gdone-registry-invoice-view dd{margin:0;overflow-wrap:anywhere}
.gdone-registry-view-notice{font-size:11px;color:#8a6200;background:#fff8e6;padding:7px;border-radius:6px}
.gdone-registry-item-table{overflow:auto;margin:12px 0}.gdone-registry-item-table table{width:100%;border-collapse:collapse;font-size:12px}.gdone-registry-item-table th,.gdone-registry-item-table td{padding:6px 8px;border-bottom:1px solid #e4e8f1;text-align:left}
.gdone-registry-invoice-view pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}
/* Selected classic invoice view; buyer, payment/bank and technical XML omitted. */
#gdone-registry-invoice-view{width:min(1480px,96vw);max-height:90dvh;box-sizing:border-box;padding:0;overflow:hidden}
#gdone-registry-invoice-view[open]{display:flex;flex-direction:column}
#gdone-registry-invoice-view>.corrections-dialog-head{flex:0 0 auto;min-height:34px;box-sizing:border-box;gap:12px;padding:6px 10px;margin:0;border-bottom:1px solid #dce1ee;background:#fff}
#gdone-registry-invoice-view>.corrections-dialog-head>strong{flex:0 0 auto;font-size:13px}
#gdone-registry-invoice-view>.corrections-dialog-head>button{flex:0 0 28px;width:28px;height:28px;padding:0;margin-left:auto}
#gdone-registry-invoice-view .gdone-invoice-view-body{min-height:0;max-height:calc(90dvh - 52px);overflow:auto;padding:10px;overscroll-behavior:contain}
#gdone-registry-invoice-view .gdone-invoice-paper{background:white;padding:12px;border:1px solid #dce1ee;border-radius:8px;color:#253047}
#gdone-registry-invoice-view h2{font:700 15px/1.3 Arial,sans-serif;margin:0 0 5px;overflow-wrap:anywhere}
#gdone-registry-invoice-view h3{font:700 14px/1.3 Arial,sans-serif;margin:0 0 10px}
#gdone-registry-invoice-view .gdone-invoice-ksef{overflow-wrap:anywhere;font-size:12px;color:#536078}
#gdone-registry-invoice-view .gdone-invoice-document-head{border-bottom:1px solid #b7c3d4;padding-bottom:6px;margin-bottom:5px}
#gdone-registry-invoice-view .gdone-invoice-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;margin-bottom:12px}
#gdone-registry-invoice-view .gdone-invoice-identity{min-width:0}
#gdone-registry-invoice-view .gdone-invoice-seller .gdone-invoice-field{justify-content:flex-start;gap:8px;padding:2px 0}
#gdone-registry-invoice-view .gdone-invoice-seller .gdone-invoice-field dt{flex:0 0 auto}
#gdone-registry-invoice-view .gdone-invoice-seller .gdone-invoice-field dd{flex:1;text-align:left}
#gdone-registry-invoice-view .gdone-invoice-metadata .gdone-invoice-field{padding:3px 0}
#gdone-registry-invoice-view dl{display:block;margin:0;font-size:12px}
#gdone-registry-invoice-view .gdone-invoice-field{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:5px 0}
#gdone-registry-invoice-view .gdone-invoice-field dt{flex:1;color:#536078}
#gdone-registry-invoice-view .gdone-invoice-field dd{flex:1;text-align:right;overflow-wrap:anywhere;font-weight:600}
#gdone-registry-invoice-view .gdone-registry-item-table{border:1px solid #dce1ee;border-radius:8px}
#gdone-registry-invoice-view .gdone-registry-item-table table{min-width:1080px;font-size:12px}
#gdone-registry-invoice-view .gdone-registry-item-table th{background:#eef2f7;color:#334862;font-weight:700}
#gdone-registry-invoice-view .gdone-registry-item-table :is(td,th){padding:9px 8px;white-space:nowrap}
#gdone-registry-invoice-view .gdone-registry-item-table :is(td,th):nth-child(3){min-width:180px;white-space:normal}
#gdone-registry-invoice-view .gdone-registry-item-table tbody tr:nth-child(even){background:#f8fafc}
#gdone-registry-invoice-view .gdone-invoice-totals{width:min(430px,100%);margin:22px 0 0 auto}
#gdone-registry-invoice-view .gdone-invoice-totals .gdone-invoice-field{border-bottom:1px solid #e4e8f1;padding:8px 0}
#gdone-registry-invoice-view .gdone-invoice-totals .gdone-invoice-field:nth-child(3){font-size:15px;border-bottom:2px solid #334862}
#gdone-registry-invoice-view .gdone-invoice-totals .gdone-invoice-field:last-child{background:#eef8f1;padding:9px;border-radius:6px;margin-top:8px}
@media(max-width:700px){#gdone-registry-invoice-view .gdone-invoice-top{grid-template-columns:1fr;gap:16px}#gdone-registry-invoice-view .gdone-invoice-paper{padding:10px}}
.gdone-registry-accepted-amount{display:block;width:max-content;max-width:100%;box-sizing:border-box;margin-top:4px;padding:2px 4px;border:1px solid #d8ae46;border-radius:5px;background:#fff0cd;color:#815600;white-space:nowrap;font:700 10px/1.3 Arial,sans-serif}
#gdone-registry-invoice-view .gdone-invoice-review-notice{flex:0 1 auto;width:max-content;max-width:calc(100% - 200px);margin:0;padding:4px 8px;background:#fff6db;border:1px solid #e5c879;border-radius:5px;color:#705015;font:11px/1.3 Arial,sans-serif}
#gdone-registry-invoice-view tbody tr[data-accepted-position="accepted"]>td{background:#edf8f1}
#gdone-registry-invoice-view tbody tr[data-accepted-position="excluded"]>td{background:#fff0ef;color:#734a4a}
#gdone-registry-invoice-view .gdone-invoice-position-state{display:block;margin-top:3px;font-size:10px;font-weight:700}
#gdone-registry-invoice-view .gdone-invoice-totals-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;margin-top:22px;align-items:start}
#gdone-registry-invoice-view .gdone-invoice-totals-grid .gdone-invoice-totals{margin:0 0 0 auto}
#gdone-registry-invoice-view .gdone-invoice-accepted-totals{width:min(430px,100%);padding:12px;background:#fff8e4;border:1px solid #e5c879;border-radius:8px;box-sizing:border-box}
#gdone-registry-invoice-view .gdone-invoice-accepted-totals .gdone-invoice-field{padding:8px 0;border-bottom:1px solid #ead9ac}
#gdone-registry-invoice-view .gdone-invoice-accepted-totals .gdone-invoice-field:last-child{border-bottom:0;font-size:14px;font-weight:700}
@media(max-width:700px){#gdone-registry-invoice-view .gdone-invoice-totals-grid{grid-template-columns:1fr;gap:18px}#gdone-registry-invoice-view .gdone-invoice-accepted-totals{width:100%}}
@media(max-width:600px){.corrections-history-main{grid-template-columns:105px minmax(80px,1fr) 75px;gap:5px}.gdone-registry-product-field,#gdoneAdminKsefInboxPanel .gdone-registry-nip-with-menu{grid-column:span 1}}
@media(max-width:900px){body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel .gdone-ksef-registry-filters{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:600px){body.in-cashier.gdone-ui-v2-active #gdUiV2ModuleHost #gdoneAdminKsefInboxPanel .gdone-ksef-registry-filters{grid-template-columns:minmax(0,1fr)!important}}
.gdone-registry-action-dialog{width:min(680px,calc(100vw - 32px));box-sizing:border-box}
.gdone-registry-action-dialog input,.gdone-registry-action-dialog textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #cfd7e6;border-radius:9px;padding:10px;font:inherit;margin:10px 0}
.gdone-registry-action-dialog textarea{min-height:64px;resize:vertical}
.gdone-registry-action-dialog button{padding:8px 12px;border:1px solid #cad5ea;border-radius:9px;background:#f4f6fc;color:#27395d;font:600 14px/1.25 Arial,sans-serif;cursor:pointer;margin:4px}
.gdone-registry-action-dialog button:disabled{opacity:.45;cursor:default}
.gdone-registry-action-invoice{overflow-wrap:anywhere}
.gdone-registry-recipient-results{max-height:220px;overflow:auto}
.gdone-registry-recipient-results button{display:block;width:calc(100% - 8px);text-align:left}
.gdone-registry-action-dialog [role=alert]{color:#a73434}
.gdone-registry-assignment{width:min(680px,92vw);box-sizing:border-box}
.gdone-registry-assignment [hidden]{display:none!important}
.gdone-registry-assignment dl{display:grid;grid-template-columns:80px minmax(0,1fr);gap:4px 10px;margin:10px 0 16px;font-size:12px}
.gdone-registry-assignment dt{color:#667085}.gdone-registry-assignment dd{margin:0;overflow-wrap:anywhere}
.gdone-registry-assignment label{display:block;font-size:12px;font-weight:700;margin-bottom:6px}
.gdone-registry-assignment .input{width:100%;box-sizing:border-box;min-height:40px;font-size:13px}
.gdone-registry-assignment [data-assignment-results]{display:grid;gap:4px}
.gdone-registry-assignment [data-assignment-message]{color:#667085;font-size:11px}
.gdone-registry-assignment-person{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 10px;border:1px solid #dce1ee;border-radius:8px;background:#f7f9fc;text-align:left;color:#253047;font:12px Arial,sans-serif;cursor:pointer}
.gdone-registry-assignment-person small{color:#667085;font-size:11px}
.gdone-registry-assignment-person[aria-selected=true]{border-color:#23945e;background:#edf8f1}
.gdone-registry-assignment-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.gdone-registry-assignment-footer .btn{min-height:38px;padding:8px 18px;border-radius:9px;font-size:12px}

/* Exact returned position in the existing invoice viewer. */
#gdone-registry-invoice-view button[data-line-correction]{display:block;width:max-content;max-width:100%;min-height:24px;margin-top:5px;padding:4px 7px;border:1px solid #bddbc6;border-radius:5px;background:#eaf7ee;color:#1e6a3a;font:600 11px/1.3 Arial,sans-serif;text-align:left;white-space:normal;cursor:pointer}
#gdone-registry-invoice-view button[data-line-correction]:hover{background:#dbefdf;text-decoration:underline}
#gdone-registry-invoice-view button[data-line-correction]:focus-visible{outline:2px solid #2a6dba;outline-offset:2px}

.gdone-registry-invoice-view .gdone-invoice-line-focused{outline:3px solid #4473ef;outline-offset:-3px;background:#edf3ff}

/* Same document-zero label for assigned and free documents. Primary assignment
   and existing actions remain intact. Amount lines align with relation links. */
.gdone-document-zero{display:block!important;margin-top:5px;background:#edf0f5;color:#46566c;white-space:normal}
.gdone-registry-allocation-amount,.gdone-registry-allocation-summary{display:block;min-height:26px;line-height:26px;margin-top:4px;white-space:nowrap}
.gdone-registry-allocation-amount{font-size:11px;font-weight:600;color:#9b3030}
.gdone-registry-allocation-amount.is-total{border-top:1px solid #bac9da;color:#23364a;font-weight:800}
.gdone-registry-allocation-summary{font-size:11px;font-weight:800;color:#23364a}
.gdone-registry-booked-amount{font-size:10px;line-height:1.3;margin-top:7px;color:#39566d;overflow-wrap:anywhere}

/* A relation summary is a full result row in both grid and flex search hosts. */
.gdone-search-correction-amounts{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;grid-column:1/-1;align-self:stretch;flex:0 0 auto;padding:4px 8px;margin:-3px 0 4px;border:1px solid #c5d3df;border-radius:0 0 10px 10px;background:#f8fbfe;font-size:12px;overflow-x:auto}
.gdone-search-correction-amounts[data-allocation-kind="correction"]{border-left:3px solid #27864e;background:#fff9dd}
.gdone-search-correction-amounts[data-allocation-kind="original"]{border-left:3px solid #c28a0d}
.gdone-search-correction-amounts .gdone-search-allocation-line>span:first-child{min-width:0;overflow-wrap:anywhere}
.gdone-search-correction-amounts[data-allocation-kind="correction"] .gdone-search-allocation-line>span:first-child{border:1px solid #27864e;border-radius:5px;background:#fff;padding:1px 5px;color:#27864e;font-weight:700}
.gdone-search-correction-amounts[data-allocation-kind="original"] .gdone-search-allocation-line:not(.is-total)>span:first-child{border:1px solid #c28a0d;border-radius:5px;background:#fff;padding:1px 5px;color:#9b6a04;font-weight:700}
.gdone-search-allocation-head,.gdone-search-allocation-line{display:grid;grid-template-columns:minmax(170px,1fr) repeat(3,minmax(80px,110px));gap:8px;align-items:center;padding:2px 0}
.gdone-search-allocation-head{color:#556a80;font-size:11px}
.gdone-search-allocation-line>span:not(:first-child),.gdone-search-allocation-head>span:not(:first-child){text-align:right;white-space:nowrap}
.gdone-search-allocation-line{color:#9b3030}.gdone-search-allocation-line.is-total{border-top:1px solid #bac9da;font-weight:800;color:#23364a}
@media(max-width:760px){.gdone-search-correction-amounts{overflow-x:auto}.gdone-search-allocation-line,.gdone-search-allocation-head{min-width:480px}}

/* Keep each relation and its three monetary cells on the same readable line. */
.gdone-amount-breakdown .gdone-registry-amount-anchor{display:block;height:18px;line-height:18px}
.gdone-amount-breakdown .gdone-registry-relation-slot{margin-top:0!important}
.gdone-amount-breakdown .gdone-registry-relation-pill{height:26px!important;min-height:26px!important;max-height:26px!important;padding:0 6px!important;box-sizing:border-box!important;line-height:24px!important;margin:2px 0 0!important;white-space:nowrap!important;overflow:hidden;font-size:11px!important}
.gdone-amount-breakdown .gdone-registry-allocation-amount,.gdone-amount-breakdown .gdone-registry-allocation-summary{height:26px;min-height:26px;line-height:26px;box-sizing:border-box;margin:2px 0 0}
.gdone-amount-breakdown .gdone-registry-relation-slot{gap:0!important;grid-template-columns:minmax(0,1fr)}

.gdone-registry-coverage-summary{display:block;margin-top:8px;font-size:11px;font-weight:700;line-height:1.4;color:#176b44;white-space:normal}
.gdone-registry-coverage-summary[data-correction-coverage="review"]{color:#9a650c}
.gdone-registry-rounding-note{display:block;margin-top:4px;font-size:10px;line-height:1.4;color:#62748a;white-space:normal}

/* One compact coverage line spans the free bottom of the existing table row. */
.gdone-registry-coverage-footer{display:flex;align-items:center;gap:14px;margin-top:4px;height:22px;min-height:22px;line-height:22px;box-sizing:border-box;white-space:nowrap}
.gdone-registry-coverage-footer .gdone-registry-coverage-summary,.gdone-registry-coverage-footer .gdone-registry-rounding-note{display:inline;flex:0 0 auto;margin:0;line-height:22px;white-space:nowrap}
.gdone-search-correction-amounts .gdone-registry-coverage-footer{width:max-content;min-width:100%}

/* Search hosts align children to start; both document and allocation use the available width. */
#gdoneSearchCleanPanel :is(#gdoneCleanAllResults,#gdoneCleanIcResults)>.gdone-admin-result-row{width:100%;align-self:stretch;box-sizing:border-box}
