/* Powiadomienia (PowiadomieniaView + okna) - język wizualny jak wanted-list-v1.css / grafik-v1.css */

.mytheme .pw-view {
  box-sizing: border-box;
  padding: 14px 18px 12px;
  background: #f7f7f8;
}

.mytheme .pw-view > .v-spacing {
  height: 12px;
}

.mytheme .pw-page-header {
  box-sizing: border-box;
  width: 100%;
  padding: 18px 20px;
  border: 1px solid #ead8b8;
  border-radius: 12px;
  background: linear-gradient(115deg, #fff7e8, #fffdf8 58%, #fff);
}

.mytheme .v-label.pw-page-title {
  color: #282828;
  font-size: 27px !important;
  font-weight: 700;
  line-height: 1.25;
}

.mytheme .v-label.pw-page-subtitle {
  margin-top: 4px;
  color: #666;
  font-size: 13px;
  font-weight: 400;
}

.mytheme .pw-tabs > .v-tabsheet-tabcontainer {
  background: transparent;
  border-bottom: 1px solid #e3e3e3;
}

.mytheme .pw-tabs > .v-tabsheet-tabcontainer .v-tabsheet-tabitemcell .v-caption {
  padding: 0 14px;
  font-weight: 700;
}

.mytheme .pw-tab {
  box-sizing: border-box;
  padding-top: 12px;
}

.mytheme .pw-tab > .v-spacing {
  height: 12px;
}

/* pasek narzędzi */
.mytheme .pw-toolbar {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mytheme .pw-toolbar > .v-spacing {
  width: 8px;
}

.mytheme .pw-toolbar .v-button {
  height: 37px;
  border-radius: 6px;
  font-weight: 700;
}

.mytheme .pw-toolbar .v-textfield {
  height: 37px;
}

/* lista */
.mytheme .pw-grid-container,
.mytheme .pw-grid-container .v-grid {
  overflow: hidden;
  border-radius: 9px;
}

.mytheme .pw-grid-container {
  border: 1px solid #dedede;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mytheme .pw-grid-container .v-grid {
  border: 0;
}

.mytheme .pw-grid-container .v-grid-header .v-grid-cell {
  background: #fafafa;
  color: #555;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* wiersze wyższe niż linia tekstu (tytuł + podgląd) - treść wyśrodkowana w pionie */
.mytheme .pw-grid-container .v-grid-body .v-grid-cell {
  font-size: 13px;
  vertical-align: middle;
}

/* line-height = wysokość wiersza (grid.setRowHeight) -> jednoliniowa treść i pastylki na środku */
.mytheme .pw-rows-56 .v-grid-body .v-grid-cell {
  line-height: 56px;
}

.mytheme .pw-rows-40 .v-grid-body .v-grid-cell {
  line-height: 40px;
}

.mytheme .pw-grid-container .v-grid-body .v-grid-cell > .pw-cell {
  display: inline-block;
  width: 100%;
  line-height: 18px;
  vertical-align: middle;
}

.mytheme .pw-grid-container .v-grid-body .v-grid-cell .pw-pill {
  line-height: 17px;
  vertical-align: middle;
}

/* wiersz filtrów pod nagłówkiem (FiltryGrida) */
.mytheme .pw-grid-container .v-grid-header .v-grid-cell .v-textfield,
.mytheme .pw-grid-container .v-grid-header .v-grid-cell .v-popupview {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.mytheme .pw-grid-container .v-grid-header .v-grid-cell .v-popupview {
  color: #6f4900;
  cursor: pointer;
}

.mytheme .pw-filter-bar > .v-spacing {
  width: 8px;
}

.mytheme .pw-filter-bar .v-label {
  color: #777;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mytheme .v-grid-row.pw-row-nowe > td {
  background-color: #fff8e6;
}

.mytheme .v-grid-row.pw-row-nieaktywne > td {
  background-color: #f6f6f6;
  color: #8a8a8a;
}

.mytheme .v-grid-row-selected.pw-row-nowe > td,
.mytheme .v-grid-row-selected.pw-row-nieaktywne > td {
  background-color: inherit;
  color: inherit;
}

/* komórka "Powiadomienie": tytuł + podgląd w dwóch liniach */
.mytheme .pw-cell {
  display: block;
  overflow: hidden;
  line-height: 18px;
}

.mytheme .pw-cell-title {
  display: block;
  overflow: hidden;
  color: #282828;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mytheme .v-grid-row.pw-row-nieaktywne .pw-cell-title {
  color: #8a8a8a;
}

.mytheme .pw-cell-preview {
  display: block;
  overflow: hidden;
  color: #777;
  font-size: 12px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mytheme .v-grid-row-selected .pw-cell-title,
.mytheme .v-grid-row-selected .pw-cell-preview {
  color: inherit;
}

.mytheme .pw-pill {
  display: inline-block;
  box-sizing: border-box;
  margin-right: 5px;
  padding: 1px 9px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #f4f4f4;
  color: #444;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  vertical-align: 2px;
  white-space: nowrap;
}

.mytheme .pw-pill-nowe {
  border-color: #ead8b8;
  background: #fff3dc;
  color: #6f4900;
}

.mytheme .pw-pill-przypiete {
  border-color: #efc9c9;
  background: #fff0f0;
  color: #7a2e2e;
}

.mytheme .pw-pill-aktywne {
  border-color: #cfe3cf;
  background: #e8f5e6;
  color: #2f6b2a;
}

.mytheme .pw-pill-nieaktywne {
  border-color: #dcdcdc;
  background: #f0f0f0;
  color: #777;
}

.mytheme .pw-pill-oddzial {
  border-color: #caddea;
  background: #f1f7fb;
  color: #36566c;
}

.mytheme .pw-pill-pelne {
  border-color: #cfe3cf;
  background: #e8f5e6;
  color: #2f6b2a;
}

.mytheme .pw-pill-czesciowe {
  border-color: #ead8b8;
  background: #fff3dc;
  color: #6f4900;
}

.mytheme .pw-muted {
  color: #9a9a9a;
}

/* zaznaczony wiersz ma od 2026-10-02 jasny złoty tint (grid-v1.css) - dopisek zostaje szary, bez rozjaśniania */

/* ---- okna ---- */
.mytheme .v-window.pw-window {
  border-radius: 12px;
}

.mytheme .pw-window-content > .v-spacing {
  height: 14px;
}

.mytheme .v-label.pw-section-eyebrow {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  padding-bottom: 13px;
  border-bottom: 1px solid #e8e8e8;
  color: #303030;
  font-size: 18px !important;
  font-weight: 700;
  line-height: 1.3;
}

.mytheme .pw-dialog-section {
  box-sizing: border-box;
  width: 100%;
  padding: 17px 19px 19px;
  border: 1px solid #dedede;
  border-top: 2px solid rgba(213, 155, 53, 0.62);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.mytheme .pw-dialog-section > .v-spacing {
  height: 8px;
}

.mytheme .v-label.pw-help {
  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
}

.mytheme .v-label.pw-counter {
  color: #9a9a9a;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.mytheme .v-label.pw-counter-limit {
  color: #c0392b;
}

.mytheme .pw-actions .v-button {
  height: 46px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}

/* nagłówek okna czytania */
.mytheme .pw-reader-header {
  box-sizing: border-box;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ead8b8;
  border-left: 4px solid #d59b35;
  border-radius: 10px;
  background: linear-gradient(115deg, #fff7e8, #fffdf8 70%, #fff);
}

.mytheme .pw-reader-header > .v-spacing {
  height: 4px;
}

.mytheme .v-label.pw-reader-title {
  color: #282828;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
}

.mytheme .v-label.pw-reader-meta {
  color: #6e6e6e;
  font-size: 12px;
  font-weight: 600;
  white-space: normal;
}

/* treść powiadomienia (HTML) - typografia */
.mytheme .v-panel.pw-reader-body {
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff;
}

.mytheme .v-panel.pw-reader-body > .v-panel-content {
  border: 0;
  background: transparent;
}

.mytheme .v-label.pw-content {
  box-sizing: border-box;
  padding: 18px 22px;
  color: #2d2d2d;
  font-size: 14px;
  line-height: 1.65;
  white-space: normal;
  word-wrap: break-word;
}

.mytheme .v-label.pw-content p {
  margin: 0 0 12px;
}

.mytheme .v-label.pw-content p:last-child {
  margin-bottom: 0;
}

.mytheme .v-label.pw-content h1,
.mytheme .v-label.pw-content h2,
.mytheme .v-label.pw-content h3,
.mytheme .v-label.pw-content h4 {
  margin: 18px 0 8px;
  color: #282828;
  font-weight: 700;
  line-height: 1.3;
}

.mytheme .v-label.pw-content h1:first-child,
.mytheme .v-label.pw-content h2:first-child,
.mytheme .v-label.pw-content h3:first-child {
  margin-top: 0;
}

.mytheme .v-label.pw-content h1 { font-size: 20px; }
.mytheme .v-label.pw-content h2 { font-size: 17px; }
.mytheme .v-label.pw-content h3 { font-size: 15px; }
.mytheme .v-label.pw-content h4 { font-size: 14px; }

.mytheme .v-label.pw-content ul,
.mytheme .v-label.pw-content ol {
  margin: 0 0 12px;
  padding-left: 26px;
}

.mytheme .v-label.pw-content li {
  margin-bottom: 4px;
}

.mytheme .v-label.pw-content a {
  color: #9a6712;
  text-decoration: underline;
}

.mytheme .v-label.pw-content blockquote {
  margin: 0 0 12px;
  padding: 8px 14px;
  border-left: 3px solid #d59b35;
  background: #fff8ec;
}

.mytheme .v-label.pw-content hr {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid #e3e3e3;
}

.mytheme .v-label.pw-content strong,
.mytheme .v-label.pw-content b {
  font-weight: 700;
}

/* status odczytu w stopce okna czytania */
.mytheme .v-label.pw-read-stamp {
  color: #2f6b2a;
  font-size: 13px;
  font-weight: 700;
}

/* edytor WYSIWYG (Opisowe) */
.mytheme .v-richtextarea.pw-editor {
  border-radius: 7px;
}

.mytheme .v-richtextarea.pw-editor .gwt-RichTextToolbar {
  padding: 4px 6px;
  border-bottom: 1px solid #e3e3e3;
  background: #fafafa;
}

.mytheme .v-richtextarea.pw-editor .gwt-RichTextArea {
  font-size: 14px;
}

/* bez wyboru czcionki/rozmiaru/kolorów tła - treść ma jedną typografię (pw-content) */
.mytheme .v-richtextarea.pw-editor .gwt-RichTextToolbar select {
  display: none;
}

/* kafelkowy wybór typu */
.mytheme .v-select-optiongroup.pw-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.mytheme .pw-choice .v-radiobutton {
  box-sizing: border-box;
  display: block;
  flex: 1 1 240px;
  margin: 0;
  padding: 0;
  white-space: normal;
}

:root .mytheme .pw-choice .v-radiobutton {
  padding-left: 0;
}

.mytheme .pw-choice .v-radiobutton > label {
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%%;
  padding: 14px 16px 14px 48px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fafafa;
  color: #303030;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  transition: border-color 120ms, background-color 120ms, box-shadow 120ms;
}

:root .mytheme .pw-choice .v-radiobutton > input ~ label:before,
:root .mytheme .pw-choice .v-radiobutton > input ~ label:after {
  top: 14px;
  left: 16px;
}

:root .mytheme .pw-choice .v-radiobutton > input:checked ~ label:after {
  top: 20px;
  left: 22px;
  background: #d59b35;
}

.mytheme .pw-choice .v-radiobutton > label:hover {
  border-color: #d59b35;
  background: #fffaf0;
}

:root .mytheme .pw-choice .v-radiobutton > input:checked ~ label {
  border-color: #d59b35;
  background: #fff3dc;
  box-shadow: 0 0 0 3px rgba(213, 155, 53, 0.18);
}

.mytheme .pw-choice .v-radiobutton.v-disabled > label {
  color: #9a9a9a;
  background: #f3f3f3;
}

/* okno "kto przeczytał" */
.mytheme .pw-stat-card {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dedede;
  border-left-width: 4px;
  border-radius: 9px;
  background: #fff;
}

.mytheme .pw-stat-good {
  border-color: #cfe3cf;
  border-left-color: #579250;
  background: #f0f8ef;
}

.mytheme .pw-stat-warn {
  border-color: #e5d6bc;
  border-left-color: #c48b2a;
  background: #fff9ef;
}

.mytheme .v-label.pw-stat-caption {
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mytheme .v-label.pw-stat-value {
  color: #303030;
  font-size: 20px !important;
  font-weight: 700;
  line-height: 26px;
}

.mytheme .pw-read-lists > .v-spacing {
  width: 14px;
}

.mytheme .pw-read-lists .v-grid {
  overflow: hidden;
  border-radius: 8px;
}

.mytheme .pw-read-lists .v-grid-header .v-grid-cell {
  background: #fafafa;
  color: #555;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1200px) {
  .mytheme .pw-view {
    padding: 10px 10px 8px;
  }
}
