.admin-storage-alert { position: sticky; top: 66px; z-index: 26; display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; padding: 1rem; background: #fff2df; border-bottom: 2px solid #b96920; color: #653614; font-size: 15px; }
.admin-storage-alert strong { flex: 1 1 400px; font-weight: 550; }
.admin-storage-alert button { min-height: 42px; padding: .5rem .8rem; border: 1px solid #b38b5d; background: white; cursor: pointer; font-size: 14px; }
.workspace.is-workdoc-view .workspace-crumb,.workspace.is-workdoc-view [data-save-state],.workspace.is-workdoc-view [data-save-draft],.workspace.is-workdoc-view [data-export-pdf] { display: none; }
.workdoc-view { min-width: 0; min-height: calc(100vh - 66px); background: #e5eaeb; }
.wd-heading { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 1.5rem 2rem; background: #0c1926; color: #fff; }
.wd-heading h1 { margin: .4rem 0 .55rem; font: 550 clamp(23px,2.3vw,34px)/1.15 var(--display); overflow-wrap: anywhere; }
.wd-heading p { margin: 0; max-width: 670px; color: #bdcbd4; font-size: 15px; line-height: 1.55; }
.wd-back { min-height: 35px; padding: 0; color: #d3e197; border: 0; background: none; cursor: pointer; font-size: 14px; }
.wd-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.wd-actions button { min-height: 47px; padding: .6rem 1rem; border: 1px solid #65727d; color: white; background: transparent; cursor: pointer; font-size: 15px; }
.wd-actions button.is-primary { background: #b8d52a; border-color: #b8d52a; color: #07111d; font-weight: 650; }
.wd-actions button:disabled { opacity: .55; cursor: wait; }
.wd-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1rem; background: #fff; border-bottom: 1px solid #ccd5d9; }
.wd-toolbar button,.wd-preview-note button { min-height: 42px; padding: .5rem .8rem; border: 1px solid #c1cdd3; background: #fff; color: #304959; font-size: 14px; cursor: pointer; }
.wd-view-switch { display: flex; gap: .3rem; }.wd-view-switch button[aria-pressed=true] { background: #e8eef3; border-color: #7f9cb2; }
.wd-status { font-size: 13px; color: #3c604a; }.wd-status.is-error { color: #a2361f; font-weight: 600; }
.wd-layout { display: grid; grid-template-columns: minmax(340px,390px) minmax(0,1fr); align-items: start; }
.wd-editor { min-width: 0; padding: 1rem; background: #fff; border-right: 1px solid #cad5db; }
.wd-editor__intro { padding: .5rem 0 1rem; color: #233d4b; font-size: 15px; }.wd-editor__intro strong { font-weight: 650; }.wd-editor__intro p { margin: .5rem 0 0; color: #5a6e79; font-size: 14px; }
.wd-form-section { margin-bottom: .7rem; border: 1px solid #d2dce0; border-radius: 3px; }
.wd-form-section > summary { min-height: 50px; padding: .75rem; color: #233d4b; background: #f4f7f7; cursor: pointer; font-size: 15px; font-weight: 650; }
.wd-fields { display: grid; gap: .9rem; padding: .9rem; min-width: 0; }.wd-fields > small { color: #526976; font-size: 12px; }
.wd-field { display: grid; gap: .35rem; min-width: 0; }.wd-field > span { color: #3d5768; font-size: 14px; font-weight: 600; }
.wd-field input,.wd-field textarea,.wd-table-scroll textarea { display: block; width: 100%; min-width: 0; border: 1px solid #aebec8; padding: .65rem .7rem; border-radius: 2px; color: #132b3b; background: white; font: 16px/1.5 var(--sans); }
.wd-field textarea { resize: vertical; }.wd-field :focus-visible,.wd-table-scroll textarea:focus-visible { outline: 2px solid #386fad; outline-offset: 1px; }
.wd-help { margin: 0; color: #586d79; font-size: 14px; line-height: 1.6; }
.wd-logo-control { display: grid; grid-template-columns: 85px 1fr; gap: .3rem .7rem; align-items: center; }
.wd-logo-thumb { grid-row: span 2; height: 68px; display: grid; place-items: center; padding: 5px; border: 1px dashed #c3ced1; color: #677d89; background: #f3f6f6; font-size: 14px; }.wd-logo-thumb img { width: 100%; height: 100%; max-height: 56px; object-fit: contain; }
.wd-logo-control label,.wd-attachment-upload { position: relative; min-height: 42px; display: grid; place-items: center; padding: .5rem; border: 1px solid #97adba; color: #28475d; font-size: 14px; cursor: pointer; }
.wd-logo-control input,.wd-attachment-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }.wd-logo-control small { font-size: 11px; color: #586d79; }
.wd-table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid #ced9df; }.wd-table-scroll table { border-collapse: collapse; min-width: 520px; width: 100%; table-layout: fixed; }.wd-table-scroll th { padding: .55rem; background: #edf2f5; color: #294354; font-size: 13px; font-weight: 650; text-align: left; min-width: 110px; }
.wd-table-scroll td { padding: 4px; border: 1px solid #d2dde2; vertical-align: top; }.wd-table-scroll textarea { min-width: 105px; padding: .4rem; font-size: 14px; resize: vertical; }.wd-table-scroll .wd-row-action { width: 48px; }
.wd-table-scroll td > button { min-width: 35px; min-height: 42px; border: 0; background: #f7eee9; color: #974129; cursor: pointer; font-size: 22px; }
.wd-add-row { min-height: 43px; padding: .6rem .8rem; text-align: left; color: #294f73; border: 1px dashed #9eb4c5; background: #f5f9fa; cursor: pointer; font-size: 14px; }
.wd-attachment { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem 0; border-top: 1px solid #d0dde2; }
.wd-attachment button { min-height: 40px; padding: .4rem; border: 1px solid #c3d0d7; background: white; color: #274f73; cursor: pointer; font-size: 13px; overflow-wrap: anywhere; }.wd-attachment button:first-child { flex: 1; text-align: left; }.wd-attachment span { font-size: 11px; color: #607784; }
.wd-sources { padding: .5rem; color: #506878; font-size: 13px; }.wd-sources summary { padding: .5rem 0; cursor: pointer; }.wd-sources a { display: block; margin: .5rem 0; overflow-wrap: anywhere; }
.wd-canvas { min-width: 0; overflow: auto; padding: 1rem 20px 3rem; background: #e5eaeb; }
.wd-preview-note { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: 1rem; color: #506778; font-size: 13px; }.wd-preview-note button { background: transparent; }
.wd-paperwrap { position: relative; margin: 0 auto; }.wd-pages { width: 210mm; transform-origin: top left; display: flex; flex-direction: column; gap: 20px; }
.wd-page { box-sizing: border-box; width: 210mm; height: 297mm; flex: 0 0 297mm; padding: 9mm 10mm 8mm; display: flex; flex-direction: column; background: white; color: #172838; box-shadow: 0 5px 25px #132a3820; font: 10pt/1.4 Arial, sans-serif; overflow: hidden; }
.wd-page * { box-sizing: border-box; }
.wd-page-header { flex: 0 0 auto; margin-bottom: 4mm; border-bottom: 1mm solid #1644ae; padding-bottom: 3mm; }
.wd-company { display: flex; align-items: center; gap: 5mm; margin-bottom: 4mm; font-size: 9pt; }.wd-company > div:last-child { min-width: 0; }.wd-company strong { display: block; font-size: 12pt; line-height: 1.25; overflow-wrap: anywhere; }.wd-company p { margin: .6mm 0 0; white-space: normal; line-height: 1.3; overflow-wrap: anywhere; }
.wd-print-logo { width: 32mm; height: 20mm; padding: 1mm; flex: 0 0 32mm; display: grid; place-items: center; }.wd-print-logo img { width: 100%; height: 100%; max-height: 18mm; object-fit: contain; }.wd-print-logo.is-light { background: #122636; }
.wd-page-kind { color: #1644ae; text-transform: uppercase; font-size: 8pt; letter-spacing: .06em; }
.wd-page-header h1 { margin: 1mm 0 3mm; font: bold 18pt/1.12 Arial, sans-serif; color: #12263b; overflow-wrap: anywhere; }
.wd-page-header dl { display: flex; flex-wrap: wrap; gap: 2mm 5mm; margin: 0; font-size: 8pt; }.wd-page-header dl > div { flex: 1 1 auto; min-width: 22mm; max-width: 65mm; }.wd-page-header dt { color: #536475; font-size: 7pt; }.wd-page-header dd { margin: .5mm 0 0; font-weight: 600; overflow-wrap: anywhere; }
.wd-page-body { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.wd-print-section { margin: 0 0 3mm; }.wd-print-section h2 { margin: 0 0 2mm; padding: 1.3mm 2mm; background: #1644ae; color: white; font: bold 10pt/1.35 Arial,sans-serif; overflow-wrap: anywhere; }.wd-print-section h2 small { font: normal 8pt Arial,sans-serif; }
.wd-print-text { margin: 0 0 2mm; white-space: pre-wrap; overflow-wrap: anywhere; font: 10pt/1.42 Arial,sans-serif; min-height: 1em; }
.wd-print-table { width: 100%; border-collapse: collapse; table-layout: fixed; font: 9pt/1.35 Arial,sans-serif; }.wd-print-table th,.wd-print-table td { padding: 2mm 1.5mm; border: .25mm solid #a6b8c7; vertical-align: top; overflow-wrap: anywhere; white-space: pre-wrap; }.wd-print-table th { color: #133866; background: #edf3f9; font-weight: 700; }.wd-print-table td { min-height: 8mm; }
.wd-print-signatures { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5mm 8mm; padding: 3mm 0; }.wd-print-signatures > div { min-height: 24mm; }.wd-print-signatures span { display: block; font-size: 8pt; color: #254366; }.wd-print-signatures strong { display: block; font-size: 9pt; font-weight: normal; margin-top: 2mm; overflow-wrap: anywhere; }.wd-print-signatures i { display: block; height: 9mm; border-bottom: .25mm solid #607a8c; }.wd-print-signatures small { display: block; margin-top: 1mm; font-size: 7.5pt; color: #445e73; }
.wd-page-footer { flex: 0 0 auto; display: flex; justify-content: space-between; gap: 5mm; margin-top: 3mm; padding-top: 2mm; border-top: .25mm solid #b8c5cf; color: #3f586e; font-size: 8pt; }.wd-page-footer > span:first-child { min-width: 0; overflow-wrap: anywhere; }.wd-page-footer > span:last-child { white-space: nowrap; }
.wd-print-frame { position: fixed; width: 1px; height: 1px; right: 0; bottom: 0; border: 0; opacity: 0; pointer-events: none; }
.workdoc-records > h2 { font: 550 22px var(--display); margin: 1.5rem 0 1rem; }.workdoc-records > p { font-size: 16px; color: #536c7c; }.workdoc-records > button { display: flex; width: 100%; text-align: left; justify-content: space-between; gap: 1rem; align-items: center; min-height: 76px; padding: 1rem; border: 1px solid #d0dce3; border-bottom: 0; background: white; cursor: pointer; color: #203b50; }.workdoc-records > button:last-of-type { border-bottom: 1px solid #d0dce3; }.workdoc-records strong { display: block; font-size: 17px; font-weight: 600; }.workdoc-records small { display: block; margin-top: .25rem; color: #5c7383; font-size: 13px; }.workdoc-records button > span:last-child { font-size: 13px; white-space: nowrap; }
.city-saved-documents { display: grid; gap: .4rem; margin: 1rem 0; }.city-saved-documents > strong { font-size: 13px; color: #48606e; }.city-saved-documents button { padding: .65rem; min-height: 44px; text-align: left; border: 1px solid #a7bdcb; background: white; color: #214967; font-size: 14px; cursor: pointer; }
@media(max-width:1250px) { .wd-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }.wd-layout { grid-template-columns: 340px minmax(0,1fr); } }
@media(max-width:1100px) {
  .wd-layout { display: block; }.workdoc-view[data-mode=preview] .wd-editor { display: none; }.workdoc-view[data-mode=edit] .wd-canvas { display: none; }
  .wd-editor { max-width: 850px; margin: auto; border: 0; }.wd-toolbar { flex-wrap: wrap; }.wd-status { flex: 1 1 45%; }
}
@media(min-width:1101px) { .workdoc-view[data-mode=edit] .wd-layout { grid-template-columns: 1fr; }.workdoc-view[data-mode=edit] .wd-canvas { display: none; }.workdoc-view[data-mode=preview] .wd-layout { grid-template-columns: 1fr; }.workdoc-view[data-mode=preview] .wd-editor { display: none; } }
@media(max-width:540px) {
  .wd-heading { padding: 1rem; }.wd-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }.wd-actions button.is-primary { grid-column: span 2; }
  .wd-toolbar { padding: .65rem; gap: .6rem; }.wd-view-switch { width: 100%; }.wd-view-switch button { flex: 1; font-size: 13px; padding-inline: .4rem; }
  .wd-canvas { padding: .75rem 12px 4rem; }.wd-editor { padding: .7rem; }.wd-fields { padding: .7rem; }
  .workdoc-records > button { align-items: flex-start; flex-direction: column; gap: .5rem; }.workdoc-records strong { font-size: 16px; }
}
@media print {
  @page { size: A4 portrait; margin: 0; }
  .wd-print-document { margin: 0; padding: 0; width: 210mm; background: white; }
  .wd-print-document .wd-pages { display: block; transform: none !important; width: 210mm; }
  .wd-print-document .wd-page { break-after: page; page-break-after: always; margin: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .wd-print-document .wd-page:last-child { break-after: auto; page-break-after: auto; }
}
.wd-sources { padding: 1rem 1.2rem; background: #f4f7f8; color: #324d60; border-bottom: 1px solid #cdd8df; margin: 0; }
.wd-provenance { display: flex; justify-content: space-between; gap: 1rem 2rem; align-items: start; font-size: 14px; line-height: 1.5; }
.wd-provenance strong { display: block; color: #203e54; font-size: 15px; margin-bottom: .2rem; }
.wd-provenance span { display: block; max-width: 38rem; }
.wd-provenance p { max-width: 38rem; margin: 0; }
.wd-sources details { margin-top: .65rem; font-size: 14px; line-height: 1.6; }
.wd-sources summary { min-height: 38px; cursor: pointer; font-weight: 650; }
.wd-sources h3 { font-size: 15px; color: #1c3e56; margin: .8rem 0 .3rem; }
.wd-sources p { max-width: 70rem; }
.wd-sources a { display: block; color: #165394; padding: .35rem 0; overflow-wrap: anywhere; }
.wd-delete-document { margin: 1rem 0; border: 1px solid #bea9a0; background: white; color: #854534; padding: .6rem .8rem; min-height: 44px; font: 14px/1.4 var(--sans); cursor: pointer; }
.city-source-label { font-size: 14px!important; color: #425f72!important; }
.city-originals { margin: 1rem 0; padding: 1rem 0; border-top: 1px solid #bfced7; border-bottom: 1px solid #bfced7; font-size: 14px; line-height: 1.6; }
.city-originals strong,.city-originals a,.city-originals small { display: block; }
.city-originals a { color: #18599e; padding: .35rem 0; overflow-wrap: anywhere; }
.city-originals small { color: #536978; margin-top: .5rem; }
.city-catalog-control { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1rem 0; color: #b8c8d2; font-size: 14px; }
.city-catalog-control button { flex-shrink: 0; min-height: 44px; padding: .6rem .9rem; color: #eaf0f4; border: 1px solid #708695; background: transparent; font: inherit; cursor: pointer; }
@media(max-width:900px){.wd-provenance{display:block}.wd-provenance p{margin-top:.65rem}.city-catalog-control{align-items:stretch;flex-direction:column}}
