:root{--shared-section-bg:#e5e5e8;--shared-tab-bg:#ffffff;--shared-active-line:#748198;--shared-menu-weight:400;--shared-tab-height:30px;--shared-table-size:13px;--shared-row-height:29px;--shared-head-height:27px;--shared-cell-y:5px;--shared-cell-x:14px;--shared-control-height:34px;--shared-label-width:148px;--shared-button-bg:#ffffff;--shared-button-text:#30343b;--shared-button-border:#d0daeb;--shared-button-height:34px;--shared-button-radius:6px;--shared-button-x:14px;--shared-button-size:14px;--shared-button-weight:400;--shared-button-hover:#f1f5fa}
:is(.sidebar,.app-sidebar) .section-toggle{background:var(--shared-section-bg) !important}
:is(.sidebar .nav-link,.app-sidebar .section-content .nav){background:var(--shared-tab-bg) !important}
:is(.sidebar,.app-sidebar) .section-toggle,:is(.sidebar .nav-link,.app-sidebar .section-content .nav){font-weight:var(--shared-menu-weight) !important}
:is(.sidebar .nav-link.active,.app-sidebar .section-content .nav.active){box-shadow:inset 2px 0 0 var(--shared-active-line) !important}
:is(.sidebar .nav-link,.app-sidebar .section-content .nav){min-height:var(--shared-tab-height) !important}
:is(.sidebar .nav-link,.app-sidebar .section-content .nav){padding-top:0 !important;padding-bottom:0 !important}
:is(main,.rent-app) table td,.document-dialog td{font-size:var(--shared-table-size) !important}
:is(main,.rent-app) table td,.document-dialog td{height:var(--shared-row-height) !important}
:is(main,.rent-app) table th,.document-dialog th{height:var(--shared-head-height) !important}
:is(main,.rent-app) :is(input:not([type=checkbox]):not([type=radio]),select,button.button),.document-dialog :is(input,select){min-height:var(--shared-control-height) !important}
.document-details dt{width:var(--shared-label-width) !important}
.document-details dt{flex-basis:var(--shared-label-width) !important}
:is(main,.rent-app) table :is(td,th){padding-left:var(--shared-cell-x) !important;padding-right:var(--shared-cell-x) !important}
:is(main,.rent-app) table :is(td,th){padding-top:var(--shared-cell-y) !important;padding-bottom:var(--shared-cell-y) !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)){background:var(--shared-button-bg) !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)){color:var(--shared-button-text) !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)){border-color:var(--shared-button-border) !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)){min-height:var(--shared-button-height) !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)){border-radius:var(--shared-button-radius) !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)){font-size:var(--shared-button-size) !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)){font-weight:var(--shared-button-weight) !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)){border-style:solid !important;border-width:1px !important;box-shadow:none !important;width:auto !important;max-width:100% !important;flex:0 0 auto !important;justify-self:start !important;align-self:center !important;line-height:20px !important;padding-top:6px !important;padding-bottom:6px !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)){padding-left:var(--shared-button-x) !important;padding-right:var(--shared-button-x) !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)):hover:not(:disabled){background:var(--shared-button-hover) !important;filter:none !important}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)):not(:is(.sidebar *,.app-sidebar *,thead *,[role=columnheader] *,.section-toggle,.menu-toggle,.menu-button)){background:linear-gradient(180deg,#f0f0f2,#dedee2)!important;color:#30343b!important;border-color:#b8b8be!important;box-shadow:inset 0 1px 0 #ffffffcc,0 1px 2px #20252c40!important;}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)):not(:is(.sidebar *,.app-sidebar *,thead *,[role=columnheader] *,.section-toggle,.menu-toggle,.menu-button)):hover:not(:disabled){background:linear-gradient(180deg,#f0f0f2,#dedee2)!important;color:#30343b!important;border-color:#b8b8be!important;box-shadow:inset 0 1px 0 #ffffffcc,0 1px 2px #20252c40!important;}
:is(main,.rent-app,.document-dialog,[role=dialog]) :is(button,.button,input[type=button],input[type=submit]):not(:is(.section-toggle,.nav-link,.menu-toggle,.phone-keys button,.science-keys button,.calc-keys button,.mode-switch button,.game-frame button)):not(:is(.sidebar *,.app-sidebar *,thead *,[role=columnheader] *,.section-toggle,.menu-toggle,.menu-button)):is(:active,[aria-pressed=true],[aria-selected=true],[aria-expanded=true],.selected,.active,.has-filter):not(:disabled){background:linear-gradient(180deg,#d2d2d7,#e5e5e8)!important;color:#16733c!important;border-color:#a5aaa7!important;box-shadow:inset 0 2px 3px #20252c38,inset 0 -1px 0 #ffffff80!important;}

/* Shared owner rule: momentary :active, persistent state only for real toggles. */
body button:not(.biuro-client-link):not(:is(.sidebar *,.app-sidebar *,thead *,[role=columnheader] *,.section-toggle,.menu-toggle,.menu-button)),body :is(input[type=button],input[type=submit],a.button):not(:is(.sidebar *,.app-sidebar *,thead *,[role=columnheader] *,.section-toggle,.menu-toggle,.menu-button)),
body :is(.phone-keys,.science-keys,.calc-keys,.mode-switch,.game-frame) button,
body .firms-page.firms-page .firms-toolbar button.firms-active-toggle{
 background:linear-gradient(180deg,#f0f0f2,#dedee2)!important;color:#30343b!important;border-color:#b8b8be!important;
 box-shadow:inset 0 1px 0 #ffffffcc,0 1px 2px #20252c40!important;
}
body button:not(.biuro-client-link):not(:is(.sidebar *,.app-sidebar *,thead *,[role=columnheader] *,.section-toggle,.menu-toggle,.menu-button)):is(:active,[aria-pressed=true],[aria-selected=true],[aria-expanded=true],.selected,.active,.has-filter):not(:disabled),
body :is(input[type=button],input[type=submit],a.button):not(:is(.sidebar *,.app-sidebar *,thead *,[role=columnheader] *,.section-toggle,.menu-toggle,.menu-button)):active:not(:disabled),
body :is(.phone-keys,.science-keys,.calc-keys,.mode-switch,.game-frame) button:is(:active,[aria-pressed=true],.selected),
body .firms-page.firms-page .firms-toolbar button.firms-active-toggle[aria-pressed=true]{
 background:linear-gradient(180deg,#d2d2d7,#e5e5e8)!important;color:#16733c!important;border-color:#a5aaa7!important;
 box-shadow:inset 0 2px 3px #20252c38,inset 0 -1px 0 #ffffff80!important;
}
body :is(.standard-table-toolbar,.firms-filter-bar,.work-filters,.clients-filters,.optima-toolbar,.turnover-toolbar,.audit-check-toolbar,.rent-grid-tools){
 display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:flex-end!important;justify-content:flex-start!important;gap:8px!important;
 min-width:0;max-width:100%;overflow-x:auto!important;margin-bottom:2px!important;padding-bottom:4px!important;
}
body :is(.standard-table-toolbar,.firms-filter-bar,.work-filters,.clients-filters,.optima-toolbar,.turnover-toolbar,.audit-check-toolbar,.rent-grid-tools)>*{flex-shrink:0!important}
body .standard-table-toolbar{margin-top:6px!important}
body .standard-table-toolbar .button,body .standard-table-toolbar button{align-self:center!important}
body .firms-filter-bar .firms-result-summary{flex-wrap:nowrap!important;margin-left:0!important}
/* Actions inside explicitly marked table cells. */
@layer grimp-row-actions {
body tbody td:is([data-table-actions],[aria-label="Zgłoszenia do Jarka — przewijanie"] tbody td:last-child){white-space:normal}
body tbody td:is([data-table-actions],[aria-label="Zgłoszenia do Jarka — przewijanie"] tbody td:last-child) :is(button,a):not(:disabled){
 background:none!important;color:var(--panel-row-action-color,#2456a6)!important;border:0!important;
 box-shadow:none!important;min-height:0!important;padding:2px 4px!important;
 margin:0!important;font:inherit!important;white-space:nowrap;
 text-decoration:none!important;cursor:pointer;vertical-align:middle;
}
body tbody td:is([data-table-actions],[aria-label="Zgłoszenia do Jarka — przewijanie"] tbody td:last-child) :is(button,a):not(:disabled):is(:hover,:focus-visible){
 color:var(--panel-row-action-color,#1b4789)!important;text-decoration:underline!important;
}
}
