/* Zakupki v1.9.21 — company branding, direct downloads, photo preview/download, themed confirmations. */

/* Company mark above the portal navigation. */
.v1921-company-brand{
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:5px;padding:0 8px 14px;margin:-10px 0 9px;border-bottom:1px solid var(--border);
  text-align:center;
}
.v1921-company-brand img{
  display:block;width:min(178px,100%);height:116px;object-fit:contain;object-position:center;
  filter:drop-shadow(0 4px 12px rgba(32,70,160,.16));
}
.v1921-company-slogan{
  max-width:190px;color:#536581;font-size:10.5px;line-height:1.25;font-weight:750;letter-spacing:.05px;
}
.v1921-portal-brand{padding-bottom:22px!important}
:root[data-theme="dark"] .v1921-company-slogan{color:#c3d4e8}
:root[data-theme="dark"] .v1921-company-brand{border-color:#31455f}
@media(prefers-color-scheme:dark){
  :root[data-theme="system"] .v1921-company-slogan{color:#c3d4e8}
  :root[data-theme="system"] .v1921-company-brand{border-color:#31455f}
}

/* Filename of a replied-to photo opens the same viewer as the original gallery. */
.v1921-reply-photo-name{display:inline-block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:zoom-in;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px}
.v1921-reply-photo-name:hover{opacity:1!important}

/* Photo viewer: preview in browser plus explicit per-photo download. */
.v1921-photo-viewer-actions{position:absolute;right:24px;bottom:20px;display:flex;align-items:center;gap:8px;z-index:4}
.v1921-photo-viewer-actions .v1919-photo-open-tab{position:static;right:auto;bottom:auto}
.v1921-photo-download{background:rgba(48,103,218,.9)!important}
.v1921-photo-download:hover{background:rgba(64,122,240,.98)!important}

/* The outdated-invoice confirmation uses the portal modal instead of browser confirm(). */
.v1921-outdated-dialog{max-width:560px}
.v1921-outdated-dialog p{line-height:1.55}
.v1921-outdated-dialog .v197-modal-buttons{flex-wrap:wrap}

@media(max-height:820px) and (min-width:761px){
  .v1921-company-brand img{height:86px;width:148px}
  .v1921-company-slogan{font-size:9.5px}
  .v1921-company-brand{padding-bottom:10px;margin-top:-15px}
  .v1921-portal-brand{padding-bottom:14px!important}
}
@media(max-width:760px){
  .v1921-company-brand{display:none}
  .v1921-photo-viewer-actions{right:10px;bottom:12px;left:10px;justify-content:center;flex-wrap:wrap}
}
