/* Grafik + Kontakty (GrafikView, KontaktyPanel) - język wizualny jak wanted-list-v1.css / pulpit-v1.css.
   Kolory per osoba (grafik-kolor-N / grafik-urlop-N) nadal wstrzykiwane z Javy (paleta w GrafikView). */

.mytheme .grafik-view,
.mytheme .kontakty-view {
  box-sizing: border-box;
  padding: 14px 18px 18px;
  background: #f7f7f8;
}

.mytheme .grafik-view > .v-spacing,
.mytheme .kontakty-view > .v-spacing {
  height: 12px;
}

/* zakładki Grafik | Kontakty */
.mytheme .grafik-tabs > .v-tabsheet-tabcontainer {
  background: #fff;
  border-bottom: 1px solid #e3e3e3;
}

.mytheme .grafik-tabs > .v-tabsheet-tabcontainer .v-tabsheet-tabitemcell .v-caption {
  padding: 0 14px;
  font-weight: 700;
}

/* pasek narzędzi */
.mytheme .grafik-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 .grafik-toolbar > .v-spacing {
  width: 8px;
}

.mytheme .grafik-toolbar .v-button {
  height: 37px;
  border-radius: 6px;
  font-weight: 700;
}

.mytheme .grafik-toolbar .v-filterselect {
  height: 37px;
}

/* nawigator miesiąca: < Październik 2026 > */
.mytheme .grafik-nav {
  box-sizing: border-box;
  height: 37px;
  padding: 0 4px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fafafa;
}

.mytheme .grafik-nav > .v-spacing {
  width: 2px;
}

.mytheme .grafik-nav .v-button.grafik-nav-btn {
  height: 33px;
  width: 33px;
  padding: 0;
  border-radius: 6px;
  color: #6f4900;
}

.mytheme .grafik-nav .v-button.grafik-nav-btn:hover {
  background: #fff3dc;
}

.mytheme .v-label.grafik-month {
  min-width: 170px;
  color: #282828;
  font-size: 17px !important;
  font-weight: 700;
  text-align: center;
  text-transform: capitalize;
}

/* popup wyboru miesiąca (PopupView w nawigatorze) */
.mytheme .v-popupview.grafik-month-popup {
  box-sizing: border-box;
  min-width: 190px;
  padding: 0 8px;
  border-radius: 6px;
  color: #282828;
  font-size: 17px;
  font-weight: 700;
  line-height: 33px;
  text-align: center;
  text-transform: capitalize;
  text-decoration: none;
  cursor: pointer;
}

.mytheme .v-popupview.grafik-month-popup .grafik-month-text,
.mytheme .v-popupview.grafik-month-popup span {
  text-decoration: none;
}

.mytheme .v-popupview.grafik-month-popup:hover,
.mytheme .v-popupview.grafik-month-popup:focus {
  background: #fff3dc;
  color: #6f4900;
  text-decoration: none;
}

.mytheme .grafik-month-popup .grafik-month-caret {
  margin-left: 2px;
  color: #b7791f;
  font-size: 13px;
}

.mytheme .v-popupview-popup.grafik-month-popup-popup,
.mytheme .v-popupview-popup {
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.mytheme .grafik-month-picker {
  box-sizing: border-box;
  padding: 12px 14px 14px;
}

.mytheme .grafik-month-picker-yearrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.mytheme .v-label.grafik-month-picker-year {
  color: #282828;
  font-size: 16px;
  font-weight: 800;
  text-align: center;
}

.mytheme .grafik-month-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mytheme .grafik-month-grid .v-button.grafik-month-btn {
  flex: 0 0 82px;
  height: 36px;
  border-radius: 7px;
  font-weight: 700;
}

.mytheme .grafik-month-grid .v-button.grafik-month-btn-dzis {
  border-color: #d59b35;
  color: #6f4900;
}

.mytheme .grafik-month-grid .v-button.grafik-month-btn-wybrany {
  border-color: #d59b35;
  background: #d59b35;
  color: #17130c;
  box-shadow: 0 0 0 3px rgba(213, 155, 53, 0.22);
}

/* komunikaty */
.mytheme .v-label.grafik-ostrzezenie {
  box-sizing: border-box;
  padding: 9px 14px;
  border: 1px solid #efc9c9;
  border-left: 4px solid #c65353;
  border-radius: 7px;
  background: #fff0f0;
  color: #7a2e2e;
  font-size: 13px;
  font-weight: 700;
  white-space: normal;
}

.mytheme .grafik-copybar {
  box-sizing: border-box;
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #cfe3cf;
  border-left: 4px solid #579250;
  border-radius: 7px;
  background: #f0f8ef;
}

.mytheme .grafik-copybar > .v-spacing {
  width: 10px;
}

.mytheme .v-label.grafik-kopiowanie {
  color: #2f5a2b;
  font-size: 13px;
  font-weight: 700;
}

/* kalendarz */
.mytheme .grafik-calendar-wrap {
  box-sizing: border-box;
  width: 100%;
  padding: 10px 12px 12px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mytheme .grafik-calendar > .v-gridlayout-margin {
  padding: 0;
}

.mytheme .v-label.grafik-naglowek {
  padding: 4px 0 8px;
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.mytheme .grafik-komorka {
  box-sizing: border-box;
  min-height: 96px;
  margin: 2px;
  padding: 6px 7px 5px;
  overflow: hidden;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 120ms, border-color 120ms;
}

.mytheme .grafik-komorka:hover {
  border-color: #d2d2d2;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.07);
}

.mytheme .grafik-komorka-weekend {
  background: #fafafa;
}

.mytheme .grafik-blank {
  min-height: 96px;
  border-color: #eeeeee;
  background: #f4f4f5;
}

.mytheme .grafik-blank:hover {
  border-color: #eeeeee;
  box-shadow: none;
}

.mytheme .grafik-dzis {
  border-color: #d59b35;
  box-shadow: 0 0 0 2px rgba(213, 155, 53, 0.22);
}

.mytheme .grafik-zamkniety {
  border-color: #efc9c9;
  background: #fff0f0 !important;
}

.mytheme .grafik-zaznaczony {
  border-color: #579250;
  background: #e8f5e6 !important;
  box-shadow: 0 0 0 2px rgba(87, 146, 80, 0.3);
}

.mytheme .grafik-cell-head {
  margin-bottom: 4px;
}

.mytheme .v-label.grafik-numer {
  color: #303030;
  font-size: 14px;
  font-weight: 800;
  line-height: 22px;
}

.mytheme .grafik-dzis .v-label.grafik-numer {
  display: inline-block;
  box-sizing: border-box;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: #d59b35;
  color: #17130c;
  text-align: center;
}

.mytheme .v-label.grafik-domyslne {
  color: #9a9a9a;
  font-size: 11px;
}

.mytheme .grafik-komorka .v-label.grafik-domyslne {
  padding: 2px 7px;
  border: 1px solid #e6e6e6;
  border-radius: 999px;
  background: #f6f6f6;
  color: #777;
  font-weight: 700;
  line-height: 16px;
  white-space: nowrap;
}

.mytheme .v-label.grafik-zamkniete-txt {
  padding: 2px 7px;
  border-radius: 999px;
  background: #f6e9e9;
  color: #7d3a3a;
  font-size: 11px;
  font-weight: 800;
  line-height: 16px;
  white-space: nowrap;
}

.mytheme .grafik-komorka .v-button.grafik-cell-btn {
  height: 22px;
  width: 24px;
  padding: 0;
  color: #9a9a9a;
}

.mytheme .grafik-komorka .v-button.grafik-cell-btn:hover {
  color: #6f4900;
}

.mytheme .grafik-komorka .v-button.grafik-cell-add {
  width: 100%;
  height: 22px;
  margin-top: 2px;
  padding: 0;
  border: 1px dashed #d8d8d8;
  border-radius: 6px;
  color: #b0b0b0;
}

.mytheme .grafik-komorka .v-button.grafik-cell-add:hover {
  border-color: #d59b35;
  background: #fffaf0;
  color: #6f4900;
}

/* wpisy (chipy) - kolor tła/ramki nadaje klasa grafik-kolor-N / grafik-urlop-N z Javy */
.mytheme .grafik-wpis {
  box-sizing: border-box;
  margin-bottom: 3px;
  padding: 3px 7px !important;
  border-radius: 6px !important;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: left;
}

.mytheme .v-button.grafik-wpis {
  height: auto;
  min-height: 22px;
  white-space: normal;
}

.mytheme .v-button.grafik-wpis .v-button-wrap {
  padding: 0;
  text-align: left;
}

.mytheme .v-button.grafik-wpis:hover {
  filter: brightness(1.08);
}

.mytheme .v-label.grafik-wpis {
  white-space: normal;
}

/* zastępstwo: pełny kolor osoby + kropkowana jasna ramka */
.mytheme .grafik-zast {
  border: 1px dotted rgba(255, 255, 255, 0.85) !important;
}

/* podsumowanie miesiąca */
.mytheme .v-label.grafik-section-title {
  margin-top: 4px;
  padding-left: 2px;
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mytheme .grafik-summary {
  box-sizing: border-box;
  width: 100%;
}

.mytheme .grafik-summary .v-grid {
  overflow: hidden;
  border: 1px solid #dedede;
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mytheme .grafik-summary .v-grid-header .v-grid-cell {
  background: #fafafa;
  color: #555;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mytheme .grafik-chip {
  display: inline-block;
  margin: 3px 0;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

/* ---- Kontakty ---- */
.mytheme .kontakty-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 .kontakty-section > .v-spacing {
  height: 8px;
}

.mytheme .kontakty-section .v-grid {
  overflow: hidden;
  border-radius: 8px;
}

.mytheme .kontakty-section .v-grid-header .v-grid-cell {
  background: #fafafa;
  color: #555;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.mytheme .kontakty-section .v-button {
  height: 37px;
  border-radius: 6px;
  font-weight: 700;
}

.mytheme .kontakty-section .v-textfield {
  height: 37px;
}

/* ---- okna dialogowe grafiku ---- */
.mytheme .v-window.grafik-window {
  border-radius: 12px;
}

.mytheme .grafik-window-content > .v-spacing {
  height: 14px;
}

.mytheme .v-label.grafik-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 .grafik-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 .grafik-dialog-section > .v-spacing {
  height: 8px;
}

.mytheme .grafik-dialog-section .v-formlayout-row .v-caption {
  font-weight: 700;
}

.mytheme .v-label.grafik-context-box {
  box-sizing: border-box;
  padding: 12px 14px;
  border-left: 3px solid #d59b35;
  border-radius: 5px;
  background: #fff8ec;
  color: #3d3d3d;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
  white-space: normal;
}

.mytheme .v-label.grafik-help {
  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
}

.mytheme .grafik-actions .v-button {
  height: 46px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}

/* godziny otwarcia: tabelka Od / Do */
.mytheme .grafik-hours > .v-gridlayout-margin {
  padding: 0;
}

.mytheme .v-label.grafik-hours-head {
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mytheme .v-label.grafik-hours-day {
  color: #303030;
  font-size: 13px;
  font-weight: 700;
  line-height: 37px;
}

/* opcje wpisu: pionowa lista akcji */
.mytheme .grafik-options .v-button {
  height: 42px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
}

/* kafelkowy wybór typu wpisu */
.mytheme .v-select-optiongroup.grafik-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}

.mytheme .grafik-choice .v-radiobutton {
  box-sizing: border-box;
  display: block;
  flex: 1 1 130px;
  margin: 0;
  padding: 0;
  white-space: normal;
}

:root .mytheme .grafik-choice .v-radiobutton {
  padding-left: 0;
}

.mytheme .grafik-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 .grafik-choice .v-radiobutton > input ~ label:before,
:root .mytheme .grafik-choice .v-radiobutton > input ~ label:after {
  top: 14px;
  left: 16px;
}

:root .mytheme .grafik-choice .v-radiobutton > input:checked ~ label:after {
  top: 20px;
  left: 22px;
  background: #d59b35;
}

.mytheme .grafik-choice .v-radiobutton > label:hover {
  border-color: #d59b35;
  background: #fffaf0;
}

:root .mytheme .grafik-choice .v-radiobutton > input:checked ~ label {
  border-color: #d59b35;
  background: #fff3dc;
  box-shadow: 0 0 0 3px rgba(213, 155, 53, 0.18);
}

@media (max-width: 1200px) {
  .mytheme .grafik-view,
  .mytheme .kontakty-view {
    padding: 10px 10px 12px;
  }

  .mytheme .grafik-komorka,
  .mytheme .grafik-blank {
    min-height: 80px;
  }
}
