.mytheme .daily-view {
  box-sizing: border-box;
  padding: 10px 12px 0;
  background: #f7f7f8;
}

.mytheme .daily-view > .v-spacing {
  height: 8px;
}

.mytheme .daily-toolbar {
  box-sizing: border-box;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mytheme .daily-toolbar > .v-spacing {
  width: 8px;
}

.mytheme .daily-toolbar .v-button {
  height: 36px;
  border-radius: 6px;
  font-weight: 700;
}

.mytheme .daily-summary-bar {
  box-sizing: border-box;
  width: 100%;
}

.mytheme .daily-summary-bar > .v-spacing {
  width: 10px;
}

.mytheme .daily-metric-card {
  box-sizing: border-box;
  min-height: 68px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid #dedede;
  border-left-width: 4px;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.mytheme .daily-metric-total {
  border-color: #e5d6bc;
  border-left-color: #c48b2a;
  background: #fff9ef;
}

.mytheme .daily-metric-cash {
  border-color: #cfe3cf;
  border-left-color: #579250;
  background: #f0f8ef;
}

.mytheme .daily-metric-bank {
  border-color: #caddea;
  border-left-color: #5f8eae;
  background: #f1f7fb;
}

.mytheme .daily-metric-age {
  border-color: #ddcbe8;
  border-left-color: #8b5ba7;
  background: #f6f0fa;
}

.mytheme .v-label.daily-metric-caption {
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 16px;
  text-transform: uppercase;
}

.mytheme .v-label.daily-metric-value {
  margin-top: 2px;
  overflow: hidden;
  color: #303030;
  font-size: 21px !important;
  font-weight: 700;
  line-height: 25px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mytheme .daily-context-row {
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #e1e1e1;
  border-radius: 7px;
  background: #fff;
}

.mytheme .v-label.daily-context-line {
  color: #555;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
}

.mytheme .daily-currency-row {
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 30px;
  gap: 7px;
}

.mytheme .daily-currency-row > .v-slot,
.mytheme .daily-currency-row > .v-expand > .v-slot {
  position: static !important;
  display: flex;
  flex: 0 0 auto;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.mytheme .daily-currency-row > .v-expand {
  display: flex !important;
  align-items: center;
  flex-wrap: nowrap;
  width: auto !important;
  gap: 7px;
}

.mytheme .daily-currency-row > .v-spacing,
.mytheme .daily-currency-row > .v-expand > .v-spacing {
  display: none;
}

.mytheme .v-label.daily-currency-pill {
  box-sizing: border-box;
  width: auto !important;
  padding: 4px 10px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #444;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  white-space: nowrap;
}

.mytheme .v-label.daily-currency-cash {
  border-color: #cfe3cf;
  background: #f0f8ef;
  color: #426d3d;
}

.mytheme .v-label.daily-currency-bank {
  border-color: #caddea;
  background: #f1f7fb;
  color: #36566c;
}

.mytheme .daily-controls {
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 5px 7px;
  gap: 8px;
  border: 1px solid #dedede;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
}

.mytheme .daily-controls > .v-slot,
.mytheme .daily-controls > .v-expand > .v-slot {
  position: static !important;
  display: block;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

.mytheme .daily-controls > .v-expand {
  display: flex !important;
  align-items: center;
  width: auto !important;
  gap: 8px;
}

.mytheme .daily-controls > .v-spacing,
.mytheme .daily-controls > .v-expand > .v-spacing {
  display: none;
}

.mytheme .daily-controls .v-button,
.mytheme .daily-controls .v-datefield {
  height: 37px;
}

.mytheme .daily-controls .v-button {
  border-radius: 6px;
  font-weight: 700;
}

.mytheme .daily-grid-container,
.mytheme .daily-grid-container .v-grid {
  overflow: hidden;
  border-radius: 9px 9px 0 0;
}

/* nagłówek strony podwidoków Dniówki (Rozlicz bank / TerminalView) - wartości jak wanted-page-header */
.mytheme .daily-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.daily-page-title {
  color: #282828;
  font-size: 27px !important;
  font-weight: 700;
  line-height: 1.25;
}

.mytheme .v-label.daily-page-subtitle {
  margin-top: 4px;
  color: #666;
  font-size: 13px;
  font-weight: 400;
  white-space: normal;
}

@media (max-width: 1200px) {
  .mytheme .daily-metric-card {
    min-height: 64px;
    padding: 8px 10px;
  }

  .mytheme .v-label.daily-metric-caption {
    font-size: 10px;
  }

  .mytheme .v-label.daily-metric-value {
    font-size: 19px !important;
  }
}

/* ---- okna Dniówki: Dodaj kuriera, Przerzutka kasy, Raport kasy fiskalnej (daily-dialog-*) ---- */
.mytheme .v-window.daily-dialog-window {
  border-radius: 12px;
}

.mytheme .daily-dialog-content > .v-spacing {
  height: 14px;
}

.mytheme .v-panel.daily-dialog-scroll,
.mytheme .v-panel.daily-dialog-scroll > .v-panel-content {
  border: 0;
  background: transparent;
}

.mytheme .daily-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 .daily-dialog-section > .v-spacing {
  height: 8px;
}

.mytheme .daily-dialog-section .v-caption {
  font-weight: 700;
}

.mytheme .v-label.daily-dialog-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 .v-label.daily-dialog-help {
  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  white-space: normal;
}

.mytheme .v-label.daily-dialog-label {
  color: #6b6b6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.mytheme .v-label.daily-dialog-big {
  color: #2f5a2b;
  font-size: 28px !important;
  font-weight: 700;
  line-height: 1.2;
}

.mytheme .daily-dialog-rows {
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  background: #fff;
}

.mytheme .daily-dialog-rows .v-label.daily-dialog-row {
  padding: 7px 12px;
  border-bottom: 1px solid #eeeeee;
  color: #3d3d3d;
  font-size: 13px;
}

.mytheme .daily-dialog-rows .v-slot:last-child .v-label.daily-dialog-row {
  border-bottom: 0;
}

.mytheme .v-label.daily-dialog-row {
  color: #3d3d3d;
  font-size: 13px;
  white-space: normal;
}

.mytheme .v-label.daily-dialog-status {
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1.4;
  white-space: normal;
}

.mytheme .v-textfield.daily-dialog-amount {
  border-color: #d59b35;
  background: #fffaf0;
  font-weight: 700;
}

.mytheme .v-checkbox.daily-dialog-check {
  margin-top: 2px;
  font-weight: 600;
}

.mytheme .v-label.daily-dialog-warning {
  box-sizing: border-box;
  padding: 10px 14px;
  border: 1px solid #ead8b8;
  border-left: 4px solid #d59b35;
  border-radius: 7px;
  background: #fff8ec;
  color: #6f4900;
  font-size: 13px;
  line-height: 1.55;
  white-space: normal;
}

.mytheme .v-panel.daily-dialog-panel {
  border: 1px solid #efc9c9;
  border-radius: 10px;
  background: #fff0f0;
}

.mytheme .v-panel.daily-dialog-panel > .v-panel-captionwrap .v-panel-caption {
  color: #7a2e2e;
  font-weight: 700;
}

.mytheme .v-panel.daily-dialog-panel > .v-panel-content {
  border: 0;
  background: transparent;
}

.mytheme .v-panel.daily-dialog-panel.daily-dialog-panel-consistent {
  border-color: #579250;
  background: #f0f8ef;
}

.mytheme .v-panel.daily-dialog-panel.daily-dialog-panel-consistent > .v-panel-captionwrap .v-panel-caption {
  color: #2f6b2a;
  background: #f0f8ef;
}

.mytheme .daily-dialog-actions .v-button {
  height: 46px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
}

/* Rozlicz bank: pasek "Analiza wyciągu" + okno wyniku (2026-10-22). Pasek wypełnia i okno rysuje analiza-wyciagu.js
   (pliki czyta tylko przeglądarka), wartości z tabeli kanonicznej: pastylki, tinty wierszy, karty, przyciski 37 / 46 px */
.mytheme .daily-controls.term-analiza,
.mytheme .daily-controls.term-analiza > .v-expand {
  flex-wrap: wrap;
}

/* przy szerokości 100% Vaadin wkłada sloty w .v-expand - ma zająć cały pasek, żeby wiersz etykiet zszedł niżej */
.mytheme .daily-controls.term-analiza > .v-expand {
  width: 100% !important;
}

.mytheme .v-label.term-analiza-tytul {
  padding: 0 4px;
  color: #303030;
  font-size: 14px;
  font-weight: 700;
}

.mytheme .v-label.term-analiza-podpowiedz {
  max-width: 470px;
  color: #666;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

/* stan plików i wynik: osobny wiersz pod przyciskami */
/* Vaadin daje slotom klasę v-slot-<styl>; daily-controls ma width:auto !important na slotach, stąd !important */
.mytheme .daily-controls.term-analiza > .v-expand > .v-slot.v-slot-term-analiza-wynik {
  flex: 0 0 100%;
  width: 100% !important;
}

.mytheme .daily-controls.term-analiza > .v-expand > .v-slot.v-slot-term-analiza-pokaz,
.mytheme .daily-controls.term-analiza > .v-expand > .v-slot.v-slot-term-analiza-wyczysc {
  display: none;
}

html.term-analiza-ma-wynik .mytheme .daily-controls.term-analiza > .v-expand > .v-slot.v-slot-term-analiza-pokaz,
html.term-analiza-ma-pliki .mytheme .daily-controls.term-analiza > .v-expand > .v-slot.v-slot-term-analiza-wyczysc {
  display: block;
}

.mytheme .v-label.term-analiza-wynik {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  white-space: normal;
}

.term-pastylka {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
}

.term-pastylka-ok {
  background: #e8f5e6;
  color: #2f6b2a;
}

.term-pastylka-propozycja {
  background: #fff3dc;
  color: #6f4900;
}

.term-pastylka-brak {
  background: #fff0f0;
  color: #a33b3b;
}

.term-pastylka-plik {
  background: #f1f7fb;
  color: #36566c;
}

.term-pastylka-nie-dotyczy {
  background: #f0f0f0;
  color: #777;
}

.term-analiza-skrot,
.term-analiza-info {
  color: #3d3d3d;
  font-size: 13px;
}

.term-analiza-blad {
  padding: 6px 10px;
  border: 1px solid #efc9c9;
  border-left: 4px solid #c65353;
  border-radius: 7px;
  background: #fff0f0;
  color: #7a2e2e;
  font-size: 13px;
}

.term-okno-zamknij,
.term-okno-koszt {
  height: 37px;
  padding: 0 14px;
  border: 1px solid #c5c5c5;
  border-radius: 6px;
  background: #fafafa;
  color: #303030;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.term-okno-koszt {
  height: 32px;
  border-color: #cfe3cf;
  background: #f0f8ef;
  color: #2f6b2a;
}

.mytheme .v-grid-row.term-wiersz-dopasowany:not(.v-grid-row-selected) > td {
  background-color: #f1f9f0;
}

.mytheme .v-grid-row.term-wiersz-propozycja:not(.v-grid-row-selected) > td {
  background-color: #fff8e6;
}

/* plik przeciągany nad zakładką */
html.term-analiza-upuszczanie .term-analiza {
  outline: 3px dashed #d59b35;
  outline-offset: 2px;
}

/* okno wyniku: wygląd okna dialogowego (promień 12, karty z górną złotą krawędzią), do 1300 px jak "Błędy w danych" */
.term-okno-tlo {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.term-okno {
  display: flex;
  flex-direction: column;
  width: min(1500px, calc(100vw - 64px));
  height: min(860px, calc(100vh - 80px));
  overflow: hidden;
  border-radius: 12px;
  background: #f7f7f8;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-family: inherit;
  color: #303030;
}

.term-okno-belka {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
  font-size: 16px;
  font-weight: 700;
}

.term-okno-x {
  border: 0;
  background: transparent;
  color: #6b6b6b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.term-okno-tresc {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 14px;
  padding: 14px 18px;
  overflow: auto;
}

.term-okno-sekcja {
  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);
}

.term-okno-naglowek {
  padding-bottom: 13px;
  border-bottom: 1px solid #e8e8e8;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.term-okno-pomoc {
  margin: 8px 0;
  color: #666;
  font-size: 12px;
  line-height: 1.55;
}

.term-okno-tabela {
  max-height: calc(min(860px, 100vh - 80px) - 330px);
  overflow: auto;
  border: 1px solid #dedede;
  border-radius: 9px;
}


.term-okno-tabela table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-weight: 600;
}

.term-okno-tabela th {
  position: sticky;
  top: 0;
  padding: 8px 10px;
  border-bottom: 1px solid #e8e8e8;
  background: #fafafa;
  color: #282828;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

.term-okno-tabela td {
  padding: 7px 10px;
  border-bottom: 1px solid #e8e8e8;
  vertical-align: middle;
}

.term-okno-tabela tbody tr:nth-child(even) td {
  background: #f5f5f5;
}

.term-okno-tabela .prawo {
  text-align: right;
  white-space: nowrap;
}

.term-okno-tabela .srodek {
  text-align: center;
  white-space: nowrap;
}

.term-okno-tytul {
  max-width: 320px;
  overflow: hidden;
  color: #666;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.term-okno-akcje {
  display: flex;
  justify-content: space-between;
  padding: 12px 18px;
  border-top: 1px solid #e8e8e8;
  background: #fff;
}

.term-okno-zamknij {
  height: 46px;
  border-radius: 7px;
}

/* dymek nad wierszem Rozlicz bank: na jakiej podstawie analiza dopasowała wiersz */
.term-dymek {
  position: fixed;
  z-index: 19000;
  display: none;
  max-width: 520px;
  padding: 10px 12px;
  border: 1px solid #dedede;
  border-left: 4px solid #5f8eae;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  color: #3d3d3d;
  font-size: 13px;
  line-height: 1.5;
  pointer-events: none;
}

.term-dymek-wplyw {
  margin: 6px 0 4px;
  color: #303030;
  font-weight: 700;
}

/* okno wyniku: zakładki "Wpływy na rachunku" / "Koszty do wpisania" (złote podkreślenie aktywnej, jak TabSheet) */
.term-okno-zakladki {
  display: flex;
  gap: 4px;
  padding: 0 18px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.term-okno-zakladka {
  padding: 12px 14px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #6b6b6b;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.term-okno-zakladka-aktywna {
  border-bottom-color: #d59b35;
  color: #303030;
}

.term-okno-tresc > .term-okno-sekcja {
  flex: 1;
}

.term-okno-tabela .term-okno-wybor {
  width: 34px;
  text-align: center;
}

.term-okno-wybor input {
  width: 16px;
  height: 16px;
  accent-color: #d59b35;
  cursor: pointer;
}

.term-okno-tabela tbody tr.term-okno-wybrany td {
  background: #fff8ec;
}

/* zapis = zielony (friendly), po prawej; Zamknij po lewej */
.term-okno-wpisz {
  height: 46px;
  padding: 0 18px;
  border: 1px solid #4b8245;
  border-radius: 7px;
  background: #579250;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.term-okno-wpisz:disabled {
  opacity: 0.5;
  cursor: default;
}

/* "Pokaż wpisy bez pary" po prawej w stopce zakładki wpływów */
.term-okno-bez-pary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3d3d3d;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.term-okno-bez-pary input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #d59b35;
  cursor: pointer;
}

.term-okno-tabela td.term-okno-pusto {
  padding: 18px 12px;
  color: #6b6b6b;
  text-align: center;
}

/* koszt wpisany w tej karcie - zablokowany */
.term-okno-tabela tbody tr.term-okno-wpisany td {
  color: #8a8a8a;
}

.term-okno-wybor input:disabled {
  cursor: default;
}
