/* Czasy pracy — timesheet tygodniowy
   WERSJA: 20260824g
*/
html.cp-fixed-view,
body.cp-fixed-view{
  overflow: hidden !important;
  height: 100% !important;
  max-height: 100% !important;
}

#czasyPracy,
#czasyPracyProjekt,
#czasyPracy.cp-shell,
#czasyPracyProjekt.cp-shell{
  --cp-accent: #4e73df;
  --cp-accent-hover: #3b5cc9;
  font-size: 10pt;
  color: var(--text);
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  /* Inset jak #calendar — tylko .content (12/16), shell bez paddingu */
  padding: 0;
}

#czasyPracy *,
#czasyPracyProjekt *{
  box-sizing: border-box;
}

.cp-page-title{
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  flex: 0 0 auto;
}

.cp-tabs{
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid #eef0f4;
  margin: 0 0 10px;
  flex: 0 0 auto;
}

/* W toolbarze (jak zadania): przełączniki obok „Dodaj”, bez osobnego paska */
.cp-toolbar .cp-tabs{
  border-bottom: none;
  margin: 0;
  align-self: stretch;
}

.cp-tab{
  appearance: none;
  border: 0;
  background: transparent;
  height: 38px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #5e6278;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.cp-toolbar .cp-tab{
  height: 32px;
  margin-bottom: 0;
}

.cp-tab:hover{
  color: var(--text);
}

.cp-tab.is-active{
  color: var(--cp-accent);
  border-bottom-color: var(--cp-accent);
  font-weight: 600;
}

#czasyPracy.cp-shell.cp-filters-open,
#czasyPracyProjekt.cp-shell.cp-filters-open,
#czasyPracy.cp-filters-open,
#czasyPracyProjekt.cp-filters-open,
#czasyPracy.cp-shell.cp-cal-open,
#czasyPracyProjekt.cp-shell.cp-cal-open,
#czasyPracy.cp-cal-open,
#czasyPracyProjekt.cp-cal-open{
  overflow: visible;
}

#czasyPracy.cp-filters-open .cp-toolbar,
#czasyPracyProjekt.cp-filters-open .cp-toolbar,
#czasyPracy.cp-filters-open .cp-toolbar-right,
#czasyPracyProjekt.cp-filters-open .cp-toolbar-right,
#czasyPracy.cp-filters-open .cp-filters-wrap,
#czasyPracyProjekt.cp-filters-open .cp-filters-wrap,
#czasyPracy.cp-cal-open .cp-toolbar,
#czasyPracyProjekt.cp-cal-open .cp-toolbar,
#czasyPracy.cp-cal-open .cp-toolbar-right,
#czasyPracyProjekt.cp-cal-open .cp-toolbar-right,
#czasyPracy.cp-cal-open .cp-week-nav,
#czasyPracyProjekt.cp-cal-open .cp-week-nav,
#czasyPracy.cp-cal-open .cp-week-wrap,
#czasyPracyProjekt.cp-cal-open .cp-week-wrap{
  overflow: visible;
}

.cp-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 8px;
  flex: 0 0 auto;
  position: relative;
  z-index: 50;
  border-bottom: 1px solid #eef0f4;
}

#czasyPracy.cp-cal-open .cp-toolbar,
#czasyPracyProjekt.cp-cal-open .cp-toolbar{
  z-index: 200;
}

.cp-toolbar-left,
.cp-toolbar-right{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cp-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ctrl-border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.cp-btn:hover{
  background: rgba(78, 115, 223, 0.08);
  border-color: var(--ctrl-border);
}

.cp-btn-primary{
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  color: #fff;
  font-weight: 500;
}

.cp-btn.cp-btn-primary:hover{
  background: #7a94e8;
  border-color: #7a94e8;
  color: #fff;
}

#cpThisWeek.is-current,
#prpTimeThis.is-current{
  background: #e8edfb;
  border-color: #d4dcf7;
  color: #2c3f8f;
}

#cpThisWeek.is-current:hover,
#prpTimeThis.is-current:hover{
  background: #d4dcf7;
  border-color: #c5d0f3;
  color: #2c3f8f;
}

.cp-btn-icon{
  width: 32px;
  padding: 0;
  color: var(--muted);
}

.cp-btn-icon svg{
  width: 14px;
  height: 14px;
  display: block;
}

.cp-sep{
  width: 1px;
  height: 22px;
  background: #e4e6ef;
  flex: 0 0 auto;
}

.cp-views{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cp-view-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--ctrl-border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

/* Zakres i widok: ta sama grupa co przyciski budżetu (jasnoniebieskie tło + obwódka) */
.cp-toolbar .cp-tabs,
.cp-projekt > .cp-tabs,
.cp-views {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin: 0;
  border: 1px solid var(--ctrl-border);
  border-radius: 8px;
  background: var(--page, #f8fafc);
  align-self: center;
  flex: 0 0 auto;
}

.cp-toolbar .cp-tab,
.cp-projekt > .cp-tabs .cp-tab,
.cp-view-btn {
  appearance: none;
  border: 0;
  background: transparent;
  height: 26px;
  margin: 0;
  padding: 0 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--muted, #6b7280);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}

.cp-toolbar .cp-tab:hover,
.cp-projekt > .cp-tabs .cp-tab:hover,
.cp-view-btn:hover {
  background: rgba(78, 115, 223, 0.08);
  color: var(--text);
}

.cp-toolbar .cp-tab.is-active,
.cp-toolbar .cp-tab.is-active:hover,
.cp-projekt > .cp-tabs .cp-tab.is-active,
.cp-projekt > .cp-tabs .cp-tab.is-active:hover,
.cp-view-btn.is-active,
.cp-view-btn.is-active:hover {
  color: #3148a8;
  background: #e8f0fe;
  border-bottom-color: transparent;
  box-shadow: inset 0 0 0 0.5px #3148a8;
}

#czasyPracy.cp-view-month #cpGroupBy,
#czasyPracyProjekt.cp-view-month #cpGroupBy,
#czasyPracy.cp-view-month #cpCollapseAll,
#czasyPracy.cp-view-month #prpCpCollapseAll,
#czasyPracyProjekt.cp-view-month #cpCollapseAll,
#czasyPracyProjekt.cp-view-month #prpCpCollapseAll,
#czasyPracy.cp-view-month #cpExpandAll,
#czasyPracy.cp-view-month #prpCpExpandAll,
#czasyPracyProjekt.cp-view-month #cpExpandAll,
#czasyPracyProjekt.cp-view-month #prpCpExpandAll{
  display: none;
}

#czasyPracy.cp-view-list #cpGroupBy,
#czasyPracyProjekt.cp-view-list #cpGroupBy,
#czasyPracy.cp-view-list #cpThisWeek,
#czasyPracy.cp-view-list #prpTimeThis,
#czasyPracyProjekt.cp-view-list #cpThisWeek,
#czasyPracyProjekt.cp-view-list #prpTimeThis,
#czasyPracy.cp-view-list #cpPrev,
#czasyPracy.cp-view-list #prpTimePrev,
#czasyPracyProjekt.cp-view-list #cpPrev,
#czasyPracyProjekt.cp-view-list #prpTimePrev,
#czasyPracy.cp-view-list #cpNext,
#czasyPracy.cp-view-list #prpTimeNext,
#czasyPracyProjekt.cp-view-list #cpNext,
#czasyPracyProjekt.cp-view-list #prpTimeNext,
#czasyPracy.cp-view-list #cpWeekWrap,
#czasyPracy.cp-view-list #prpTimeWeekLabel,
#czasyPracyProjekt.cp-view-list #cpWeekWrap,
#czasyPracyProjekt.cp-view-list #prpTimeWeekLabel,
#czasyPracy.cp-view-list .cp-week-nav,
#czasyPracyProjekt.cp-view-list .cp-week-nav{
  display: none;
}

.cp-select{
  height: 32px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--ctrl-border);
  border-radius: 6px;
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%2394a3b8' d='M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z'/%3E%3C/svg%3E") no-repeat right 10px center / 10px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  appearance: none;
  cursor: pointer;
}

.cp-week-nav{
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cp-week-label{
  height: 32px;
  min-width: 168px;
  padding: 0 10px;
  border: 1px solid var(--ctrl-border);
  border-radius: 6px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.cp-week-label:hover{
  border-color: var(--ctrl-border);
  background: rgba(78, 115, 223, 0.08);
}

.cp-week-wrap{
  position: relative;
}

.cp-cal{
  position: fixed;
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  z-index: 4000;
  width: 280px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: 10px;
}

.cp-cal-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cp-cal-title{
  font-size: 13px;
  font-weight: 600;
  color: #181c32;
}

.cp-cal-nav{
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  font-size: 18px;
  color: #4b5563;
  cursor: pointer;
}

.cp-cal-nav:hover{
  background: #f3f4f6;
}

.cp-cal-week,
.cp-cal-grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cp-cal-week{
  margin-bottom: 4px;
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
}

.cp-cal-week span:nth-child(6),
.cp-cal-week span:nth-child(7){
  color: #2c3f8f;
  font-weight: 600;
}

.cp-cal-empty{
  height: 32px;
}

.cp-cal-day{
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: #181c32;
  cursor: pointer;
}

.cp-cal-day:hover{
  background: #f3f4f6;
}

.cp-cal-day.is-today{
  box-shadow: inset 0 0 0 1px var(--cp-accent);
}

.cp-cal-day.is-in-week{
  background: #e8edfb;
  color: #2c3f8f;
}

.cp-cal-day.is-in-week:hover{
  background: #d4dcf7;
}

.cp-cal-day.is-selected{
  background: var(--cp-accent);
  color: #fff;
}

.cp-cal-day.is-selected:hover{
  background: var(--cp-accent-hover);
  color: #fff;
}

.cp-cal-day.is-selected.is-today{
  box-shadow: none;
}

.cp-filters-wrap{
  position: relative;
  z-index: 60;
}

#cpBtnFilters.has-filters{
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1e3a8a;
}

.cp-filter-icon{
  width: 14px;
  height: 14px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5h18l-7 8v5l-4 2v-7L3 5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 5h18l-7 8v5l-4 2v-7L3 5z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.cp-filters-popover{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 640px;
  max-width: min(640px, 96vw);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: 16px 18px;
  box-sizing: border-box;
  z-index: 120;
  overflow: visible;
  color: #111827;
}

.cp-filters-popover[hidden],
.cp-filter-type-menu[hidden],
.cp-filter-row[hidden],
.cp-cal[hidden]{
  display: none !important;
}

.cp-filters-popover.cp-shown,
.cp-filters-popover:not([hidden]){
  display: block !important;
}

.cp-filter-type-menu.cp-shown,
.cp-filter-type-menu:not([hidden]){
  display: block !important;
}

.cp-filter-row.cp-shown,
.cp-filter-row:not([hidden]){
  display: grid !important;
}

.cp-cal.cp-shown,
.cp-cal:not([hidden]){
  display: block !important;
}

.cp-filters-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

.cp-filters-popover button{
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.2;
}

.cp-link-btn{
  border: none !important;
  background: transparent !important;
  color: #5b7c9a !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 2px 4px !important;
  height: auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.cp-link-btn:hover{
  color: #3d5a73 !important;
  background: transparent !important;
  text-decoration: underline;
}

.cp-btn-outline{
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  height: auto !important;
  min-height: 0 !important;
  padding: 6px 12px !important;
  border: 1px solid var(--cp-accent) !important;
  border-radius: 6px !important;
  background: var(--card) !important;
  color: var(--cp-accent) !important;
  cursor: pointer;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

.cp-btn-outline:hover:not(:disabled){
  background: rgba(78, 115, 223, 0.12) !important;
}

.cp-btn-outline[aria-expanded="true"]{
  background: rgba(78, 115, 223, 0.12) !important;
}

.cp-btn-outline:disabled{ opacity: 0.45; cursor: not-allowed; }

.cp-filter-plus{ font-weight: 700; font-size: 16px; line-height: 1; }

.cp-filters-active{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cp-filter-add-wrap{
  position: relative;
  margin-top: 10px;
}

.cp-btn-outline .cp-chevron{
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--cp-accent);
}

.cp-filter-type-menu{
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: min(280px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 8px;
  z-index: 80;
  box-sizing: border-box;
}

.cp-filter-type-search{ margin-bottom: 6px; }

.cp-filter-type-search input{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  background: #f9fafb;
  color: #374151;
  outline: none;
}

.cp-filter-type-search input:focus{
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}

.cp-filter-type-opt{
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  padding: 8px 10px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  cursor: pointer;
  height: auto !important;
  min-height: 0 !important;
  box-shadow: none !important;
}

.cp-filter-type-opt:hover{
  background: #f3f4f6 !important;
}

.cp-filter-row{
  display: grid;
  grid-template-columns: 130px 1fr 36px;
  gap: 10px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.cp-filter-row.is-open{ z-index: 40; }

.cp-filter-type{
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  box-sizing: border-box;
  line-height: 1.25;
  min-height: 36px;
  display: flex;
  align-items: center;
}

.cp-filter-value{ min-width: 0; }

.cp-icon-btn{
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 6px !important;
  background: #fff !important;
  color: #6b7280 !important;
  cursor: pointer;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
}

.cp-icon-btn:hover{
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.cp-filters-popover .chosen-container,
.cp-filters-popover .chosen-container-multi{
  width: 100% !important;
  font-size: 13px;
  z-index: 1;
  position: relative;
  display: block !important;
}

.cp-filters-popover .cp-filter-value:has(.chosen-container) > select{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

.cp-filters-popover .chosen-container.chosen-with-drop,
.cp-filters-popover .chosen-container.cp-force-open{
  z-index: 50 !important;
}

.cp-filters-popover .chosen-container-multi::after{
  content: "";
  position: absolute;
  right: 12px;
  top: 18px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #9ca3af;
  pointer-events: none;
  z-index: 3;
}

.cp-filters-popover .chosen-container .chosen-drop{
  z-index: 60 !important;
  position: absolute !important;
  top: 100% !important;
  left: -9999px !important;
  right: auto !important;
  width: 100% !important;
  border: 1px solid #5897fb;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  max-height: none !important;
  overflow: visible !important;
  display: none !important;
  margin-top: 2px;
  border-radius: 6px;
}

.cp-filters-popover .chosen-container.chosen-with-drop .chosen-drop,
.cp-filters-popover .chosen-container.cp-force-open .chosen-drop{
  left: 0 !important;
  right: 0 !important;
  display: block !important;
}

.cp-filters-popover .chosen-container .chosen-results{
  max-height: 280px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  margin: 0;
  padding: 0 0 6px;
}

.cp-filters-popover .chosen-container .chosen-results li.result-selected{
  display: list-item !important;
  position: relative;
  background: #e6f4ff !important;
  color: #1677ff !important;
  padding-right: 28px !important;
  cursor: pointer !important;
}

.cp-filters-popover .chosen-container .chosen-results li.result-selected.highlighted{
  background: #bae0ff !important;
  color: #0958d9 !important;
}

.cp-filters-popover .chosen-container .chosen-results li.result-selected::after{
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 5px;
  height: 10px;
  margin-top: -7px;
  border: solid #1677ff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  pointer-events: none;
}

.cp-filters-popover .chosen-choices{
  min-height: 36px;
  padding: 5px 28px 5px 8px !important;
  border-radius: 6px !important;
  background: #fff !important;
  border: 1px solid #d1d5db !important;
  box-shadow: none !important;
  box-sizing: border-box;
  background-image: none !important;
}

.cp-filters-popover .chosen-container-active .chosen-choices,
.cp-filters-popover .chosen-container-active.chosen-with-drop .chosen-choices{
  border-color: #93c5fd !important;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.35) !important;
}

.cp-filters-popover .chosen-choices li.search-field{
  margin: 0 !important;
  padding: 0 !important;
}

.cp-filters-popover .chosen-choices li.search-field input[type="text"]{
  height: 24px !important;
  line-height: 24px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  color: #6b7280 !important;
  font-size: 13px !important;
}

.cp-filters-popover .chosen-choices li.search-choice{
  margin: 2px 4px 2px 0 !important;
  border-radius: 4px !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #374151 !important;
  box-shadow: none !important;
  padding: 3px 22px 3px 8px !important;
  line-height: 16px !important;
  font-size: 12px !important;
  max-width: 100%;
}

.cp-filters-popover .chosen-choices li.search-choice span{
  word-wrap: break-word;
}

.cp-filters-popover .chosen-choices li.search-choice .search-choice-close{
  top: 5px !important;
  right: 5px !important;
}

.cp-filters-popover select{
  width: 100%;
  min-height: 36px;
}

.cp-muted{
  font-size: 12px;
  color: #a1a5b7;
}

#cpStatus,
#prpCpStatus{
  font-size: 13px;
  color: #a1a5b7;
  min-height: 18px;
  margin: 6px 0 0;
  flex: 0 0 auto;
}

#cpStatus.error,
#prpCpStatus.error{
  color: #f1416c;
}

.cp-table-wrap{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
}

#czasyPracy.cp-view-month .cp-table-wrap,
#czasyPracyProjekt.cp-view-month .cp-table-wrap{
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cp-month-view[hidden]{
  display: none !important;
}
.cp-month-view{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  overflow: auto;
}

.cp-month-weekdays{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted, #5e6278);
  text-align: center;
  flex: 0 0 auto;
}

.cp-month-weekdays span:nth-child(6),
.cp-month-weekdays span:nth-child(7){
  color: var(--primary, #2c3f8f);
}

.cp-month-grid{
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(72px, 1fr);
  gap: 6px;
  flex: 1 1 auto;
  min-height: 240px;
}

.cp-month-day{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  border: 1px solid var(--line, #eef0f4);
  border-radius: 8px;
  background: var(--card, #fff);
  padding: 8px 10px;
  min-height: 72px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--text, #181c32);
}

.cp-month-day:hover{
  background: var(--hover, #f8f9fc);
}

.cp-month-day.is-other{
  opacity: 0.45;
  background: var(--panel-2, #f3f4f6);
  color: var(--muted);
}

.cp-month-day.is-weekend{
  background: rgba(148, 163, 184, 0.1);
  color: var(--muted, #2c3f8f);
}

.cp-month-day.is-weekday{
  background: rgba(78, 115, 223, 0.12);
  color: var(--text, #2c3f8f);
}

.cp-month-day.is-weekday:hover{
  background: rgba(78, 115, 223, 0.2);
}

.cp-month-day.is-today,
.cp-month-day.is-open{
  border-color: var(--cp-accent);
  box-shadow: inset 0 0 0 1px var(--cp-accent);
}

.cp-month-num{
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

.cp-month-hours{
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--cp-accent);
}

#cpTable,
#prpCpTable{
  width: 100%;
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

#cpTable.cp-list-table,
#prpCpTable.cp-list-table{
  min-width: 720px;
  table-layout: auto;
}

#cpTable.cp-list-table th,
#prpCpTable.cp-list-table th,
#cpTable.cp-list-table td,
#prpCpTable.cp-list-table td{
  text-align: left;
  white-space: nowrap;
}

#cpTable.cp-list-table .cp-list-opis,
#prpCpTable.cp-list-table .cp-list-opis{
  white-space: normal;
  min-width: 180px;
}

#cpTable.cp-list-table .cp-list-month,
#prpCpTable.cp-list-table .cp-list-month{
  width: 110px;
  white-space: nowrap;
}

#prpCpTable.cp-list-table tr.cp-list-lv-1 .cp-person { padding-left: 18px; }
#prpCpTable.cp-list-table tr.cp-list-lv-2 .cp-person { padding-left: 36px; }
#prpCpTable.cp-list-table tr.cp-list-lv-3 .cp-person { padding-left: 54px; }
#cpTable.cp-list-table tr.cp-list-group td,
#prpCpTable.cp-list-table tr.cp-list-group td{
  background: var(--panel-2, #f8f9fc);
  color: var(--text);
  font-weight: 600;
  border-color: var(--line, #eef0f4);
}

#cpTable.cp-list-table tr.cp-list-group.is-collapsed .cp-toggle svg,
#prpCpTable.cp-list-table tr.cp-list-group.is-collapsed .cp-toggle svg{
  transform: rotate(90deg);
}
#cpTable.cp-list-table tr.cp-list-group:not(.is-collapsed) .cp-toggle svg,
#prpCpTable.cp-list-table tr.cp-list-group:not(.is-collapsed) .cp-toggle svg{
  transform: rotate(180deg);
}

#cpTable.cp-list-table tr.cp-list-row td,
#prpCpTable.cp-list-table tr.cp-list-row td{
  color: var(--text, #3f4254);
}

#cpTable.cp-list-table tr.cp-list-row:hover td,
#prpCpTable.cp-list-table tr.cp-list-row:hover td{
  background: var(--hover, #fafbff);
}

#cpTable th,
#prpCpTable th,
#cpTable td,
#prpCpTable td{
  border-bottom: 1px solid #eef0f4;
  padding: 14px;
  vertical-align: middle;
  line-height: 1.35;
}

#cpTable thead th,
#prpCpTable thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--card);
  font-weight: 600;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

#cpTable th.cp-col-name,
#prpCpTable th.cp-col-name,
#cpTable td.cp-col-name,
#prpCpTable td.cp-col-name,
#cpTable td.cp-task-cell,
#prpCpTable td.cp-task-cell{
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--card);
  color: var(--text);
}

#cpTable .cp-col-name,
#prpCpTable .cp-col-name{
  width: 280px;
  text-align: left;
}

#cpTable thead th.cp-col-name,
#prpCpTable thead th.cp-col-name{
  z-index: 4;
}

#cpTable tbody tr.cp-group td.cp-col-name,
#prpCpTable tbody tr.cp-group td.cp-col-name{
  background: var(--panel-2, var(--page));
}

#cpTable .cp-col-sum,
#prpCpTable .cp-col-sum,
#cpTable .cp-col-day,
#prpCpTable .cp-col-day{
  width: 88px;
  text-align: center;
}

.cp-th-day{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.2;
}

.cp-th-dow{
  font-weight: 600;
  color: var(--text);
}

.cp-th-date{
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}

#cpTable th.is-today .cp-th-dow,
#prpCpTable th.is-today .cp-th-dow,
#cpTable th.is-today .cp-th-date,
#prpCpTable th.is-today .cp-th-date{
  color: var(--cp-accent);
}

#cpTable th.is-weekend,
#prpCpTable th.is-weekend,
#cpTable th.is-weekend .cp-th-day,
#prpCpTable th.is-weekend .cp-th-day,
#cpTable th.is-weekend .cp-th-dow,
#prpCpTable th.is-weekend .cp-th-dow,
#cpTable th.is-weekend .cp-th-date,
#prpCpTable th.is-weekend .cp-th-date{
  color: var(--muted);
}

#cpTable th.is-weekend .cp-th-dow,
#prpCpTable th.is-weekend .cp-th-dow,
#cpTable td.is-weekend,
#prpCpTable td.is-weekend{
  background: rgba(148, 163, 184, 0.08);
}

#cpTable tbody tr.cp-group,
#prpCpTable tbody tr.cp-group{
  background: var(--panel-2, var(--page));
}

#cpTable tbody tr.cp-group td,
#prpCpTable tbody tr.cp-group td{
  font-weight: 600;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-2, var(--page));
  color: var(--text);
  vertical-align: middle;
}
#cpTable tbody tr.cp-group:hover td,
#prpCpTable tbody tr.cp-group:hover td{
  background: rgba(78, 115, 223, 0.1);
}
.cp-person-n{
  color: #a1a5b7;
  font-weight: 500;
  font-size: 12px;
  flex: 0 0 auto;
}

#cpTable tbody tr:hover td,
#prpCpTable tbody tr:hover td{
  background: rgba(78, 115, 223, 0.08);
}

#cpTable tbody tr:hover td.cp-col-name,
#prpCpTable tbody tr:hover td.cp-col-name,
#cpTable tbody tr:hover td.cp-task-cell,
#prpCpTable tbody tr:hover td.cp-task-cell{
  background: rgba(78, 115, 223, 0.08);
}

.cp-person{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cp-toggle{
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 0;
  background: transparent;
  color: #7e8299;
  cursor: pointer;
  padding: 0;
}

.cp-toggle svg{
  width: 12px;
  height: 12px;
  display: block;
  transition: transform 0.15s ease;
}

.cp-group.is-collapsed .cp-toggle svg{
  transform: rotate(90deg);
}
.cp-group:not(.is-collapsed) .cp-toggle svg{
  transform: rotate(180deg);
}

.cp-av{
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  object-fit: cover;
  overflow: hidden;
  background: #e4e6ef;
}
img.cp-av{
  display: block;
  padding: 0;
  line-height: 0;
}
.cp-task-person{
  display: flex;
  align-items: center;
  gap: 6px;
}
.cp-task-person .cp-av{
  width: 18px;
  height: 18px;
  font-size: 9px;
  line-height: 18px;
}

.cp-person-name{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-task-cell{
  padding-left: 42px !important;
}

.cp-task-path{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #a1a5b7;
  line-height: 1.3;
}

.cp-task-path span{
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cp-task-path .cp-path-sep{
  color: #d1d5db;
  max-width: none;
}

.cp-task-cell[data-cp="open-task"]{
  cursor: pointer;
}

.cp-task-name{
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.cp-task-name:hover{
  color: var(--text);
  text-decoration: underline;
}

#cpReportProjekt[readonly],
#cpReportTask[readonly]{
  background: #f3f4f6;
  color: #111827;
  cursor: default;
}

.cp-hours{
  font-weight: 600;
  color: var(--text);
}

.cp-hours-btn{
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--cp-accent);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.cp-hours-btn:hover{
  background: #eff6ff;
}

.cp-dash{
  color: #c4c9d4;
}

.cp-plus{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #c4c9d4;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
}

.cp-plus svg{
  width: 16px;
  height: 16px;
}

.cp-plus:hover,
tr:hover .cp-plus{
  color: var(--cp-accent);
}

.cp-empty{
  padding: 48px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

#cpModalHost{
  --cp-accent: #4e73df;
  --cp-accent-hover: #3b5cc9;
}
#cpModalHost *{ box-sizing: border-box; }

.cp-modal-back{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.28);
  z-index: 120;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 16px 24px;
  overflow: auto;
}

.cp-modal{
  width: 560px;
  max-width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.22);
  padding: 20px 22px 18px;
  position: relative;
  overflow: visible;
}

.cp-datewrap{
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cp-date-input{
  flex: 1;
  cursor: pointer;
  background: #fff;
}

.cp-date-btn{
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  background: #fff;
  color: #1e3a5f;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.cp-date-btn svg{
  width: 14px;
  height: 14px;
}

.cp-date-btn:hover{
  background: #f3f4f6;
}

.cp-report-cal{
  position: absolute;
  left: 0;
  top: calc(100% + 4px);
  z-index: 40;
  width: 280px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
  padding: 10px;
}

.cp-modal h2{
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #1e3a5f;
}

.cp-modal-close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: #6b7280;
  cursor: pointer;
  border-radius: 8px;
}

.cp-modal-close:hover{
  background: #f3f4f6;
}

.cp-row{
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.cp-row-top{
  align-items: start;
}

.cp-row > span:first-child{
  color: #1e3a5f;
  font-weight: 600;
  font-size: 13px;
}

.cp-row input,
.cp-row select,
.cp-row textarea{
  display: block;
  width: 100%;
  min-height: 34px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  color: #1f2937;
  background: #fff;
}

.cp-row input[readonly]{
  background: #f3f4f6;
  color: #374151;
}

.cp-row textarea{
  min-height: 72px;
  resize: vertical;
}

.cp-hours-wrap{
  display: flex;
  align-items: center;
  gap: 8px;
}

.cp-hours-wrap input[type="number"]{
  flex: 0 0 72px;
  width: 72px;
  min-width: 72px;
  text-align: center;
}

.cp-szac-switch{
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.cp-szac-switch input{
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cp-szac-track{
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.15s ease;
}

.cp-szac-track::after{
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
  transition: transform 0.15s ease;
}

.cp-szac-switch input:checked + .cp-szac-track{
  background: #2563eb;
}

.cp-szac-switch input:checked + .cp-szac-track::after{
  transform: translateX(20px);
}

.cp-szac-switch input:disabled + .cp-szac-track{
  opacity: 0.75;
  cursor: default;
}

.cp-szac-box{
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 12px;
  border: 1px dashed #93c5fd;
  border-radius: 10px;
  background: #f8fbff;
}
.cp-szac-box.is-off{
  display: none;
}

.cp-szac-odch{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #334155;
}

.cp-szac-odch.is-over{
  color: #dc2626;
}

.cp-szac-odch.is-under{
  color: #15803d;
}

.cp-hours-unit{
  color: #64748b;
  font-weight: 600;
}

.cp-search-wrap{
  position: relative;
}

.cp-row input:disabled{
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

.cp-search-list{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 280px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  z-index: 5;
}

.cp-search-item{
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
}

.cp-search-item:hover{
  background: #f3f4f6;
}

.cp-search-item small{
  display: block;
  color: #a1a5b7;
  font-size: 11px;
  margin-top: 2px;
}

.cp-search-item .cp-task-path{
  margin-bottom: 2px;
}

.cp-search-item .cp-task-path span{
  max-width: 240px;
}

.cp-search-item-title{
  display: block;
  font-weight: 600;
  color: #1e3a5f;
  font-size: 13px;
}

.cp-modal-actions{
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.cp-day-list{
  width: 640px;
}

.cp-day-list-sum{
  color: #64748b;
  font-size: 13px;
  margin: -8px 0 14px;
}

.cp-day-list-empty{
  padding: 28px 8px 20px;
  text-align: center;
  color: #a1a5b7;
  font-size: 14px;
}

.cp-day-list-rows{
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: min(52vh, 420px);
  overflow: auto;
  margin-bottom: 14px;
}

.cp-day-list-row{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 1px solid #eef0f4;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  color: inherit;
}

.cp-day-list-row.is-openable{
  cursor: pointer;
}

.cp-day-list-row.is-openable:hover{
  background: #f8f9fc;
  border-color: #d4dcf7;
}

.cp-day-list-hours{
  flex: 0 0 64px;
  font-weight: 700;
  color: var(--cp-accent);
  font-size: 13px;
}

.cp-day-list-main{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cp-day-list-task{
  font-weight: 600;
  color: #1e3a5f;
  font-size: 13px;
}

.cp-day-list-meta{
  color: #64748b;
  font-size: 12px;
}

.cp-day-list-opis{
  color: #4b5563;
  font-size: 12px;
  margin-top: 2px;
  white-space: pre-wrap;
}

.cp-status{
  min-height: 16px;
  font-size: 12px;
  color: #b45309;
  margin-bottom: 8px;
}

.cp-status.is-err{
  color: #f1416c;
}

.cp-plan-over{
  color: #f1416c;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 2px 4px;
}

.cp-pop{
  position: fixed;
  z-index: 130;
  width: 280px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
  padding: 12px;
}
.cp-pop-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}
.cp-pop-date{
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}
.cp-pop-sum{
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.cp-pop h3{
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
}

.cp-pop-entry{
  font-size: 12px;
  padding: 4px 0;
  border-bottom: 1px solid #f3f4f6;
  color: #5e6278;
}

.cp-pop-entry b{
  color: #3f4254;
}
.cp-pop-main{
  min-width: 0;
  flex: 1 1 auto;
}
.cp-pop-meta{
  color: #4b5563;
  font-size: 12px;
  margin-bottom: 2px;
}
.cp-pop{
  width: 340px;
}
.cp-pop-entry{
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.cp-pop-del{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dc2626;
  cursor: pointer;
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 0;
  line-height: 0;
  text-indent: -9999px;
  overflow: hidden;
}
.cp-pop-del:hover{
  background: transparent;
  color: #b91c1c;
}
.cp-pop-del svg{
  width: 14px;
  height: 14px;
}
.cp-list-table .cp-list-act{
  width: 36px;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}
.cp-list-del,
.tzr-del{
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #dc2626;
  cursor: pointer;
  padding: 0;
  vertical-align: middle;
}
.cp-list-del:hover,
.tzr-del:hover{
  background: rgba(220, 38, 38, .08);
  color: #b91c1c;
}
.cp-list-del svg,
.tzr-del svg{
  width: 14px;
  height: 14px;
}
#tzrList .tzr-table .tzr-act{
  width: 36px;
  padding-left: 4px;
  padding-right: 4px;
  text-align: center;
}

.cp-pop .cp-hours-wrap{
  margin: 8px 0;
}

.cp-pop textarea{
  width: 100%;
  min-height: 52px;
  border: 1px solid #cfd6e4;
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 12px;
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  .cp-row{
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


/* === SaaS: czasy w profilu projektu (#czasyPracyProjekt) === */
#projektProfil #czasyPracyProjekt,
#projektProfil #czasyPracyProjekt.cp-shell {
  padding: 0;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  max-width: 100%;
}

#projektProfil.prp-czas-on .prp-scroll {
  overflow: hidden;
  padding-bottom: 0;
  flex: 1 1 auto;
  min-height: 0;
}

#projektProfil.prp-czas-on [data-prp-panel="czas"].is-active {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

#czasyPracyProjekt .cp-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

#czasyPracyProjekt.cp-view-week #prpCpTable,
#czasyPracyProjekt.cp-view-list #prpCpTable {
  width: 100%;
}

#czasyPracyProjekt.cp-view-week #prpCpTable {
  min-width: 980px;
  table-layout: fixed;
}

#czasyPracyProjekt.cp-view-list #prpCpTable {
  min-width: 720px;
  table-layout: auto;
}

#czasyPracyProjekt.cp-view-month #prpCpCollapseAll,
#czasyPracyProjekt.cp-view-month #prpCpExpandAll {
  display: none;
}

#czasyPracyProjekt.cp-view-list #prpTimeThis,
#czasyPracyProjekt.cp-view-list #prpTimePrev,
#czasyPracyProjekt.cp-view-list #prpTimeNext,
#czasyPracyProjekt.cp-view-list #prpTimeWeekLabel,
#czasyPracyProjekt.cp-view-list .cp-week-nav {
  display: none;
}

/* list: pełna szerokość kolumn jak HCL */
#prpCpTable.cp-list-table {
  width: 100%;
  min-width: 720px;
  table-layout: auto;
}
#prpCpTable.cp-list-table th,
#prpCpTable.cp-list-table td {
  text-align: left;
  white-space: nowrap;
}
#prpCpTable.cp-list-table .cp-list-opis {
  white-space: normal;
  min-width: 180px;
}
#prpCpTable.cp-list-table .cp-list-month {
  width: 110px;
  white-space: nowrap;
}


/* SaaS global timesheet: grupowanie / bieżący */
#czasyPracy.cp-view-month #timeGroupBy,
#czasyPracy.cp-view-monthnew #timeGroupBy,
#czasyPracy.cp-view-list #timeGroupBy,
#czasyPracy.cp-view-monthnew #cpCollapseAll,
#czasyPracy.cp-view-monthnew #cpExpandAll {
  display: none;
}
#czasyPracy.cp-view-monthnew .cp-table-wrap {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#czasyPracy.cp-view-monthnew .cp-table-el,
#czasyPracy.cp-view-monthnew .cp-month-view {
  display: none !important;
}
#czasyPracy.cp-view-list #timeThis,
#czasyPracy.cp-view-list .cp-week-nav {
  display: none;
}
#czasyPracy.cp-view-cards #timeGroupBy,
#czasyPracy.cp-view-cards #cpCollapseAll,
#czasyPracy.cp-view-cards #cpExpandAll,
#czasyPracy.cp-view-cards #timeThis,
#czasyPracy.cp-view-cards .cp-week-nav,
#czasyPracy.cp-view-cards .cp-filters-wrap,
#czasyPracy.cp-view-cards .cp-table-wrap,
#czasyPracy.cp-view-cards #cpStatus {
  display: none;
}
.cp-cards-host { display: none; }
#czasyPracy .wc-people-wrap + .wc-legend { margin: 8px 2px 0; }
#czasyPracy .wc-tree-months .wc-lv-year .wc-name { padding-left: 8px; }
#czasyPracy .wc-tree-months .wc-lv-month .wc-name { padding-left: 28px; }
#czasyPracy .wc-tree-months .wc-lv-days .wc-name { padding-left: 48px; }
.wc-sheet-month {
  margin: 16px 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
#czasyPracy .wc-legend { margin: 0 0 8px; }
#czasyPracy .wc-people-wrap {
  overflow: auto;
  border: 1px solid var(--line, #e4e6ef);
  border-radius: 10px;
  background: var(--card, #fff);
  max-height: calc(100vh - 210px);
}
#czasyPracy .wc-people {
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
  min-width: max-content;
}
#czasyPracy .wc-people th,
#czasyPracy .wc-people td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line, #eef0f4);
  text-align: center;
  white-space: nowrap;
  background: var(--card, #fff);
}
#czasyPracy .wc-people th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--page, #f8f9fc);
  font-weight: 600;
  font-size: 11px;
  color: var(--muted, #7e8299);
}
#czasyPracy .wc-people .wc-name {
  position: sticky;
  left: 0;
  z-index: 3;
  min-width: 250px;
  width: 250px;
  text-align: left;
  background: var(--card, #fff);
}
#czasyPracy .wc-people th.wc-name { z-index: 6; background: var(--page, #f8f9fc); }
#czasyPracy .wc-people .wc-stat {
  position: sticky;
  z-index: 3;
  width: 68px;
  min-width: 68px;
  background: var(--card, #fff);
  font-variant-numeric: tabular-nums;
}
#czasyPracy .wc-people th.wc-stat { z-index: 5; background: var(--page, #f8f9fc); }
#czasyPracy .wc-people .wc-name + .wc-stat { left: 250px; }
#czasyPracy .wc-people .wc-stat + .wc-stat { left: 318px; }
#czasyPracy .wc-people .wc-stat + .wc-stat + .wc-stat { left: 386px; }
#czasyPracy .wc-people .wc-stat + .wc-stat + .wc-stat + .wc-stat { left: 454px; }
#czasyPracy .wc-people .wc-dayhead,
#czasyPracy .wc-people .wc-dow,
#czasyPracy .wc-people td.wc-cell,
#czasyPracy .wc-people .wc-daygap {
  min-width: 34px;
  width: 34px;
  padding: 4px 2px;
}
#czasyPracy .wc-people .wc-dow { font-size: 11px; color: var(--muted, #7e8299); font-weight: 600; }
#czasyPracy .wc-people tr[data-wc-open="0"] .wc-dow { color: transparent; }
#czasyPracy .wc-people td.wc-name { display: flex; align-items: center; gap: 6px; }
#czasyPracy .wc-people .wc-lv-year .wc-name { padding-left: 22px; }
#czasyPracy .wc-people .wc-lv-month .wc-name { padding-left: 40px; }
#czasyPracy .wc-people .wc-lv-days .wc-name { padding-left: 62px; }
#czasyPracy .wc-people .wc-lv-person .wc-plabel { font-weight: 700; }
#czasyPracy .wc-fold {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
#czasyPracy .wc-fold::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  opacity: 0.55;
}
#czasyPracy tr[data-wc-open="1"] > .wc-name .wc-fold::before { transform: rotate(90deg); transform-origin: 2px 4px; }
#czasyPracy .wc-plabel { cursor: pointer; }
#czasyPracy .wc-ico { width: 16px; height: 16px; flex: 0 0 auto; color: #7e8299; }
#czasyPracy .wc-people th.is-today,
#czasyPracy .wc-people td.is-today { box-shadow: inset 0 -2px 0 #3699ff; }
#czasyPracy .wc-legend i.is-zero { background: #f1416c; }
#czasyPracy .wc-legend i.is-short { background: #ff9f1a; }
#czasyPracy .wc-legend i.is-ok { background: #22c55e; }
#czasyPracy .wc-legend i.is-over { background: #8950fc; }
#czasyPracy .wc-people td.wc-cell.is-zero {
  background: #ffe8ee;
  color: #f1416c;
  font-weight: 700;
}
#czasyPracy .wc-people td.wc-cell.is-short {
  background: #fff4e6;
  color: #c2410c;
  font-weight: 700;
}
#czasyPracy .wc-people td.wc-cell.is-ok {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
}
#czasyPracy .wc-people td.wc-cell.is-over {
  background: #f3e8ff;
  color: #6d28d9;
  font-weight: 700;
}
#czasyPracy .wc-tree { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
#czasyPracy .wc-node { margin: 0; }
#czasyPracy .wc-node > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 8px;
  cursor: pointer;
  list-style: none;
  color: var(--text, #181c32);
  user-select: none;
}
#czasyPracy .wc-node > summary::-webkit-details-marker { display: none; }
#czasyPracy .wc-node > summary::before {
  content: "";
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  opacity: 0.55;
  transform-origin: 40% 50%;
}
#czasyPracy .wc-node[open] > summary::before { transform: rotate(90deg); }
#czasyPracy .wc-node-person {
  border: 1px solid var(--line, #e4e6ef);
  border-radius: 10px;
  background: var(--card, #fff);
  padding: 4px 6px 6px;
}
#czasyPracy .wc-node-person > summary .wc-node-label { font-size: 15px; font-weight: 700; }
#czasyPracy .wc-node-year > summary .wc-node-label { font-weight: 700; }
#czasyPracy .wc-node-body { margin-left: 16px; }
#czasyPracy .wc-node-hours { margin-left: auto; display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; }
#czasyPracy .wc-node-hours b { font-weight: 700; }
#czasyPracy .wc-node-hours small { font-weight: 500; color: var(--muted, #7e8299); }
#czasyPracy .wc-node-card { margin: 2px 0 8px 22px; }
#czasyPracy .wc-node-card .wc-wrap { max-height: none; }
#czasyPracy .wc-days-only { min-width: 0; }
#czasyPracy.cp-view-cards .cp-cards-host {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 4px 0 16px;
}
#tab-timesheet.czas-page:not(.hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}
#tab-timesheet #czasyPracy {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.cp-month-new[hidden] { display: none !important; }
.cp-month-new {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 8px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--page, #f4f6fb);
}
.cp-mnew-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  flex: 0 0 auto;
}
.cp-mnew-stat {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e4e6ef);
  border-radius: 10px;
  padding: 12px 14px 10px;
}
.cp-mnew-stat b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text, #181c32);
}
.cp-mnew-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted, #7e8299);
}
.cp-mnew-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 12px;
  align-items: start;
}
.cp-mnew-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}
.cp-mnew-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-height: 96px;
  padding: 6px;
  border: 1px solid var(--line, #e4e6ef);
  border-radius: 8px;
  background: var(--card, #fff);
  text-align: left;
  font: inherit;
  color: var(--text, #181c32);
  cursor: pointer;
}
.cp-mnew-day:hover { border-color: #c5d0e6; }
.cp-mnew-day.is-other { opacity: 0.42; }
.cp-mnew-day.is-weekend { background: rgba(148, 163, 184, 0.08); }
.cp-mnew-day.is-today {
  border-color: #3699ff;
  box-shadow: inset 0 0 0 1px #3699ff;
}
.cp-mnew-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 18px;
}
.cp-mnew-num {
  font-size: 13px;
  font-weight: 700;
}
.cp-mnew-sum {
  font-size: 11px;
  font-weight: 700;
  color: #3699ff;
}
.cp-mnew-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 1px 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--c, #3699ff) 16%, transparent);
  font-size: 10px;
  line-height: 1.35;
}
.cp-mnew-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c, #3699ff);
  flex: 0 0 auto;
}
.cp-mnew-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-mnew-chip em {
  margin-left: auto;
  font-style: normal;
  font-weight: 700;
  color: var(--c, #3699ff);
  flex: 0 0 auto;
}
.cp-mnew-more {
  font-size: 10px;
  color: var(--muted, #7e8299);
  padding-left: 2px;
}
.cp-mnew-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cp-mnew-card {
  background: var(--card, #fff);
  border: 1px solid var(--line, #e4e6ef);
  border-radius: 10px;
  padding: 12px;
}
.cp-mnew-card-h {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #7e8299);
  margin-bottom: 10px;
}
.cp-mnew-empty {
  font-size: 13px;
  color: var(--muted, #7e8299);
}
.cp-mnew-row { margin-bottom: 8px; }
.cp-mnew-row-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  min-width: 0;
}
.cp-mnew-row-h i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.cp-mnew-row-h span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-mnew-row-h b {
  margin-left: auto;
  font-weight: 700;
  flex: 0 0 auto;
}
.cp-mnew-bar {
  height: 4px;
  margin-top: 4px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.25);
  overflow: hidden;
}
.cp-mnew-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.cp-mnew-rest {
  font-size: 12px;
  color: var(--muted, #7e8299);
}
.cp-mnew-person {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cp-mnew-person-body { flex: 1 1 auto; min-width: 0; }
@media (max-width: 1100px) {
  .cp-mnew-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cp-mnew-layout { grid-template-columns: 1fr; }
}
