﻿/* EZD: dopisz na koncu aktualnego Content/ezd-modern.css. */
@media screen {
  html .ezd-app .ezd-shell { display:flex; flex-direction:column; min-height:100vh; }
  html .ezd-app .ezd-sidebar { flex-direction:row; align-items:center; flex-wrap:wrap; gap:12px 24px; padding:12px 24px; }
  html .ezd-app .ezd-brand { flex:0 0 auto; font-size:25px; line-height:1.2; }
  html .ezd-app .ezd-brand small { display:block; margin:3px 0 0; font-size:12px; }
  html .ezd-app .ezd-sidebar #header { flex:1 1 600px; min-width:0; }
  html .ezd-app .ezd-nav-label, html .ezd-app .ezd-sidebar-footer { display:none; }
  html .ezd-app #main-nav { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }
  html .ezd-app #main-nav li { min-width:0; max-width:100%; }
  html .ezd-app #main-nav li a { padding:10px 12px; font-size:15px; overflow-wrap:anywhere; }
  html .ezd-app #main-nav li a span { font-size:15px; }
  html .ezd-app #main-nav li a::before { display:none; }
  html .ezd-app .ezd-workspace { flex:1; width:100%; }
  html .ezd-app .ezd-toolbar { min-height:48px; padding:8px 24px; }
  html .ezd-app .content { padding:22px 24px; }
  html .ezd-app table.tabelGrid { font-size:15px; }
  html .ezd-app table.tabelGrid > :is(thead,tbody,tfoot) > tr > :is(td,th),
  html .ezd-app table.tabelGrid > tr > :is(td,th) { font-size:15px!important; line-height:1.5; padding:11px 12px; }
  html .ezd-app table.tabelGrid > :is(thead,tbody,tfoot) > tr > :is(td,th) > :is(a,span,label),
  html .ezd-app table.tabelGrid > tr > :is(td,th) > :is(a,span,label) { font-size:15px!important; }
  html .ezd-app table.tabelGrid :is(input,select,textarea,.chosen-container) { font-size:15px!important; }
  html .ezd-app .ezd-ksef-id { font-size:14px; }
  html .ezd-app .items-table :is(td,th), html .ezd-app .vat-table :is(td,th) { font-size:15px; line-height:1.5; }
}
@media screen and (max-width:700px) {
  html .ezd-app .ezd-sidebar { padding:12px; gap:10px; }
  html .ezd-app .ezd-sidebar #header { flex-basis:100%; }
  html .ezd-app #main-nav li a { padding:8px 10px; }
  html .ezd-app .ezd-toolbar { padding:8px 12px; }
  html .ezd-app .content { padding:18px 12px; }
}
/* Motyw EZD; jasny domyslnie, wybor zapisuje ezd-theme.js. */
@media screen {
  .ezd-theme-toggle { font:600 14px/1.4 "Segoe UI",Arial,sans-serif!important; border:1px solid #8797af!important; border-radius:7px; padding:8px 14px!important; background:#edf2fa!important; color:#17243e!important; cursor:pointer; min-height:38px; flex:0 0 auto; }
  .ezd-login form { position:relative; }
  .ezd-login .ezd-theme-toggle { display:block; margin:20px auto 0; }
  .ezd-theme-toggle:focus-visible { outline:3px solid #76adff; outline-offset:3px; }
  html[data-ezd-theme=dark] { color-scheme:dark; }
  html[data-ezd-theme=dark] :is(body.ezd-app,body.ezd-login) { --ezd-navy:#101827; --ezd-bg:#111827; --ezd-line:#35435a; --ezd-muted:#b2bfd3; --ezd-blue:#8ebaff; background:#111827!important; color:#e5edf8!important; }
  html[data-ezd-theme=dark] .ezd-app :is(.ezd-toolbar,table.tabelGrid,.ezd-note-panel,table.formularz_kontaktowy,.ksef-wrapper),
  html[data-ezd-theme=dark] .ezd-login .login_panel { background:#1b2638!important; color:#e5edf8!important; border-color:#35435a!important; box-shadow:0 0 0 1px #35435a; }
  html[data-ezd-theme=dark] .ezd-app :is(.content,#footer) { background:transparent!important; color:#b2bfd3; }
  html[data-ezd-theme=dark] .ezd-app :is(h1,h2,h3,.ezd-note-panel>b,.divprofil,.txtprofil),
  html[data-ezd-theme=dark] .ezd-login :is(.ezd-login-brand,.ezd-auth-title) { color:#e5edf8!important; }
  html[data-ezd-theme=dark] :is(.ezd-app,.ezd-login) a { color:#93bfff; }
  html[data-ezd-theme=dark] .ezd-app #main-nav li a { color:#d4e0f3; }
  html[data-ezd-theme=dark] .ezd-app #main-nav li a:is(.current,:hover) { background:#2c4366; color:#fff; }
  html[data-ezd-theme=dark] .ezd-app table.tabelGrid :is(td,th) { color:#e5edf8; border-color:#35435a!important; }
  html[data-ezd-theme=dark] .ezd-app table.tabelGrid th,
  html[data-ezd-theme=dark] .ezd-app table.tabelGrid .naglw1 th { background:#243248!important; color:#d4e0f3; }
  html[data-ezd-theme=dark] .ezd-app table.tabelGrid :is(.tab1,.tab2) { background:#1b2638!important; }
  html[data-ezd-theme=dark] .ezd-app table.tabelGrid :is(.tab1,.tab2):hover { background:#25354d!important; }
  html[data-ezd-theme=dark] .ezd-app table.tabelGrid .tabSelect { background:#304568!important; }
  html[data-ezd-theme=dark] :is(.ezd-app,.ezd-login) :is(input[type=text],input[type=password],input[type=date],input[type=number],input[type=email],select,textarea) { background:#111c2e!important; color:#edf3ff!important; border-color:#52647e!important; color-scheme:dark; }
  html[data-ezd-theme=dark] :is(.ezd-app,.ezd-login) :is(input,textarea)::placeholder { color:#a9b8cd; opacity:1; }
  html[data-ezd-theme=dark] :is(.ezd-app,.ezd-login) :is(input,select,textarea):focus-visible { outline:2px solid #8ebaff; outline-offset:2px; }
  html[data-ezd-theme=dark] :is(.ezd-app,.ezd-login) :is(input[type=checkbox],input[type=radio]) { accent-color:#6499ff; }
  html[data-ezd-theme=dark] :is(.ezd-app,.ezd-login) :is(input[type=submit],input[type=button],a.zaloguj,button.ezd-button,.ezd-auth-primary) { background:#285dd8!important; color:white!important; border-color:#6396ff!important; }
  html[data-ezd-theme=dark] :is(.ezd-app,.ezd-login) :is(input[type=submit],a.zaloguj):hover { background:#3472ed!important; }
  html[data-ezd-theme=dark] .ezd-app a.zaloguj[id$=Anuluj],
  html[data-ezd-theme=dark] .ezd-login input.ezd-auth-secondary,
  html[data-ezd-theme=dark] .ezd-theme-toggle { background:#293c58!important; color:#edf3ff!important; border-color:#7890af!important; }
  html[data-ezd-theme=dark] .ezd-app .chosen-container :is(.chosen-single,.chosen-choices,.chosen-drop,.chosen-results) { background:#111c2e!important; color:#edf3ff!important; border-color:#52647e!important; box-shadow:none; }
  html[data-ezd-theme=dark] .ezd-app .chosen-container .chosen-results li { color:#edf3ff; }
  html[data-ezd-theme=dark] .ezd-app .chosen-container .chosen-results li.highlighted { background:#285dd8!important; }
  html[data-ezd-theme=dark] .ezd-app .chosen-container .chosen-results li.disabled-result { color:#99a6b9; }
  html[data-ezd-theme=dark] .ezd-app .ezd-status.ezd-status-pending { background:#493716!important; color:#ffdc8b!important; }
  html[data-ezd-theme=dark] .ezd-app .ezd-status.ezd-status-accepted { background:#153e31!important; color:#9ce8c1!important; }
  html[data-ezd-theme=dark] .ezd-app .ezd-status.ezd-status-posted { background:#243e64!important; color:#b4d2ff!important; }
  html[data-ezd-theme=dark] .ezd-app .ezd-status.ezd-status-rejected { background:#4d2630!important; color:#ffb7c0!important; }
  html[data-ezd-theme=dark] .ezd-app :is(.ksef-sys-header,.invoice-type-banner,.grand-total) { background:#243752!important; color:#dbeaff!important; }
  html[data-ezd-theme=dark] .ezd-app :is(.items-table,.vat-table) :is(td,th) { background:#1b2638!important; color:#e5edf8!important; border-color:#46566f!important; }
  html[data-ezd-theme=dark] .ezd-app :is(.items-table,.vat-table) th { background:#243248!important; }
  html[data-ezd-theme=dark] .ezd-app .menu_center ul li a { background:#1b2638!important; color:#e5edf8!important; border-color:#46566f; }
  html[data-ezd-theme=dark] .ezd-app .menu_center ul li a:hover { background:#293c58!important; }
  html[data-ezd-theme=dark] .ezd-app :is(.ezd-ksef-id,.party-column h2,.ezd-pageheading p),
  html[data-ezd-theme=dark] .ezd-login :is(.ezd-login-caption,.ezd-auth-description,.ezd-auth-note,.ezd-login-footer,.ezd-auth-step,label,.inp_name>span,.inp_password>span) { color:#b8c7dd!important; }
  html[data-ezd-theme=dark] .ezd-login .ezd-auth-feedback { color:#ffbbb3!important; }
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container { background:#1b2638!important; color:#edf3ff!important; border-color:#7186a5!important; }
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container :is(.ajax__calendar_title,.ajax__calendar_dayname,.ajax__calendar_day,.ajax__calendar_month,.ajax__calendar_year,.ajax__calendar_today) { color:#edf3ff!important; }
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container .ajax__calendar_other .ajax__calendar_day { color:#95a6be!important; }
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container :is(.ajax__calendar_hover,.ajax__calendar_active) :is(.ajax__calendar_day,.ajax__calendar_month,.ajax__calendar_year) { background:#285dd8!important; color:white!important; border-color:#8ebaff!important; }
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container :is(.ajax__calendar_prev,.ajax__calendar_next) { filter:brightness(0) invert(1); }
}
@media print { .ezd-theme-toggle { display:none!important; } }

/* Pasek konta: od lewej motyw, powitanie, wylogowanie. */
@media screen {
  html .ezd-app .ezd-toolbar { justify-content:flex-start; }
  html .ezd-app .ezd-user-actions { margin-left:auto; display:flex; align-items:center; justify-content:flex-end; gap:14px; flex-wrap:wrap; max-width:100%; }
  html .ezd-app .ezd-user-actions .divprofil { margin:0; }
  html .ezd-app .ezd-user-actions .txtprofil { display:flex; align-items:center; justify-content:flex-end; flex-wrap:nowrap; gap:14px; }
  html .ezd-app .ezd-user-actions .tekst_pro { order:0; }
  html .ezd-app .ezd-user-actions .log_out { order:1; display:inline-flex; align-items:center; justify-content:center; flex:0 0 38px; width:38px; height:38px; padding:0!important; margin:0; font-size:0!important; border:1px solid #8797af; border-radius:7px; color:#255bea; }
  html .ezd-app .ezd-user-actions .log_out::before { content:""; width:20px; height:20px; background-color:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H4v16h5M10 12h11m-5-5 5 5-5 5'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H4v16h5M10 12h11m-5-5 5 5-5 5'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }
  html .ezd-app .ezd-user-actions .log_out:hover { background:#dbe8ff!important; }
  html .ezd-app .ezd-user-actions .log_out:focus-visible { outline:3px solid #76adff; outline-offset:3px; }
  html[data-ezd-theme=dark] .ezd-app .ezd-user-actions .log_out { color:#bfdaff; border-color:#7890af; }
  html[data-ezd-theme=dark] .ezd-app .ezd-user-actions .log_out:hover { background:#293c58!important; }
}
/* Nadpisanie starej reguly tabelGrid tr:hover z kontrolki.css. */
@media screen {
  html[data-ezd-theme=dark] .ezd-app table.tabelGrid > :is(thead,tbody,tfoot) > tr:hover,
  html[data-ezd-theme=dark] .ezd-app table.tabelGrid > tr:hover { background:#25354d!important; }
  html[data-ezd-theme=dark] .ezd-app table.ezd-filterbar > tbody > tr,
  html[data-ezd-theme=dark] .ezd-app table.ezd-filterbar > tbody > tr:hover { background:#1b2638!important; cursor:default; }
  html[data-ezd-theme=dark] .ezd-app table.ezd-filterbar > tbody > tr > td { background:#1b2638!important; }
}
/* Ciemne tlo wnetrza kalendarza, w tym dni sasiedniego miesiaca. */
@media screen {
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container :is(.ajax__calendar_body,.ajax__calendar_days,.ajax__calendar_months,.ajax__calendar_years) { background:#1b2638!important; }
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container :is(table,thead,tbody,tfoot,tr,tr:hover,td,th) { background:transparent!important; }
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container :is(.ajax__calendar_day,.ajax__calendar_dayname,.ajax__calendar_month,.ajax__calendar_year) { background:transparent!important; }
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container .ajax__calendar_other :is(.ajax__calendar_day,.ajax__calendar_month,.ajax__calendar_year) { background:transparent!important; color:#a4b3cb!important; }
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container :is(.ajax__calendar_hover,.ajax__calendar_active) :is(.ajax__calendar_day,.ajax__calendar_month,.ajax__calendar_year) { background:#285dd8!important; color:#fff!important; border-color:#8ebaff!important; }
}
/* Ramki kalendarza w kolorze obramowania pol tekstowych. */
@media screen {
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container,
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container *,
  html[data-ezd-theme=dark] .ezd-app .ajax__calendar_container :is(.ajax__calendar_hover,.ajax__calendar_active) :is(.ajax__calendar_day,.ajax__calendar_month,.ajax__calendar_year) {
    border-color:#52647e!important;
  }
}
/* Okno oczekiwania ASP.NET UpdateProgress. */
@media screen {
  html .ezd-app #jquery-overlay { position:fixed; inset:0; width:100%; height:100%; margin:0; padding:20px; display:flex; align-items:center; justify-content:center; z-index:10000; background:rgba(15,23,42,.42)!important; opacity:1!important; }
  html .ezd-app #jquery-overlay #jquery-lightbox { position:static!important; inset:auto!important; width:auto; max-width:100%; margin:0; padding:0; line-height:1.5; }
  html .ezd-app #jquery-overlay #lightbox-container-loding { display:flex; align-items:center; justify-content:center; gap:14px; width:auto; min-width:190px; max-width:100%; height:auto; min-height:76px; margin:0; padding:20px 26px; background:#fff!important; color:#24324b; border:1px solid #dce3ed; border-radius:12px; box-shadow:0 12px 40px rgba(0,0,0,.22); }
  html .ezd-app #jquery-overlay #lightbox-container-ima { float:none; width:26px; height:26px; flex:0 0 26px; margin:0; padding:0; }
  html .ezd-app #jquery-overlay #lightbox-container-ima img { display:none; }
  html .ezd-app #jquery-overlay #lightbox-container-ima::before { content:""; display:block; box-sizing:border-box; width:26px; height:26px; border:3px solid #d4deef; border-top-color:#255bea; border-radius:50%; animation:ezd-loading-spin .85s linear infinite; }
  html .ezd-app #jquery-overlay #lightbox-container-text { float:none; width:auto; height:auto; margin:0; padding:0; line-height:1.5; font:600 15px/1.5 "Segoe UI",Arial,sans-serif; color:inherit; text-align:left; }
  html .ezd-app #jquery-overlay #lightbox-container-text i { font-style:normal; color:inherit; }
  html[data-ezd-theme=dark] .ezd-app #jquery-overlay { background:rgba(5,10,20,.62)!important; }
  html[data-ezd-theme=dark] .ezd-app #jquery-overlay #lightbox-container-loding { background:#1b2638!important; color:#edf3ff; border-color:#52647e; }
  html[data-ezd-theme=dark] .ezd-app #jquery-overlay #lightbox-container-ima::before { border-color:#40516b; border-top-color:#8ebaff; }
}
@keyframes ezd-loading-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { html .ezd-app #jquery-overlay #lightbox-container-ima::before { animation:none; } }
@media print { html .ezd-app #jquery-overlay { display:none!important; } }

/* Profil: odstep pol formularza zmiany hasla od ramki. */
@media screen {
  html .ezd-app [id$="ChangePassword1"] table.formularz_kontaktowy {
    border-collapse:separate;
    border-spacing:0;
    box-sizing:border-box;
    padding:24px;
  }
}
@media screen and (max-width:700px) {
  html .ezd-app [id$="ChangePassword1"] table.formularz_kontaktowy { padding:18px; }
}
