/* 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: #3f4254;
  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: #1f2937;
  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;
}

.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-tab:hover{
  color: #3f4254;
}

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

#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;
}

#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 #e4e6ef;
  border-radius: 6px;
  background: #fff;
  color: #3f4254;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}

.cp-btn:hover{
  background: #f9f9f9;
  border-color: #b5b5c3;
}

.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: #5e6278;
}

.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 #e4e6ef;
  border-radius: 6px;
  background: #fff;
  color: #3f4254;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

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

.cp-view-btn.is-active{
  background: var(--cp-accent);
  border-color: var(--cp-accent);
  color: #fff;
}

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

#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 #e4e6ef;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%235e6278' 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: #3f4254;
  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 #e4e6ef;
  border-radius: 6px;
  background: #fff;
  color: #3f4254;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.cp-week-label:hover{
  border-color: #b5b5c3;
}

.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: #fff !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: #eff6ff !important;
}

.cp-btn-outline[aria-expanded="true"]{
  background: #eff6ff !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: #fff;
  border: 1px solid #eef0f4;
  border-radius: 8px;
}

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

.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: #5e6278;
  text-align: center;
  flex: 0 0 auto;
}

.cp-month-weekdays span:nth-child(6),
.cp-month-weekdays span:nth-child(7){
  color: #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 #eef0f4;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
  min-height: 72px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #181c32;
}

.cp-month-day:hover{
  background: #f8f9fc;
}

.cp-month-day.is-other{
  opacity: 0.38;
}

.cp-month-day.is-weekend{
  background: #fafbfc;
  color: #2c3f8f;
}

.cp-month-day.is-weekday{
  background: #e8edfb;
  color: #2c3f8f;
}

.cp-month-day.is-weekday:hover{
  background: #d4dcf7;
}

.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;
}

#cpTable.cp-list-table tr.cp-list-group td,
#prpCpTable.cp-list-table tr.cp-list-group td{
  background: #f8f9fc;
  font-weight: 600;
}

#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(180deg);
}

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

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

#cpTable th,
#prpCpTable th,
#cpTable td,
#prpCpTable td{
  border-bottom: 1px solid #eef0f4;
  padding: 8px 10px;
  vertical-align: middle;
}

#cpTable thead th,
#prpCpTable thead th{
  position: sticky;
  top: 0;
  z-index: 3;
  background: #fff;
  font-weight: 600;
  font-size: 12px;
  color: #5e6278;
  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: #fff;
}

#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: #fbfcfe;
}

#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: #3f4254;
}

.cp-th-date{
  font-weight: 400;
  color: #a1a5b7;
  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: #2c3f8f;
}

#cpTable th.is-weekend .cp-th-dow,
#prpCpTable th.is-weekend .cp-th-dow,
#cpTable td.is-weekend,
#prpCpTable td.is-weekend{
  background: #fafbfc;
}

#cpTable tbody tr.cp-group,
#prpCpTable tbody tr.cp-group{
  background: #fbfcfe;
}

#cpTable tbody tr.cp-group td,
#prpCpTable tbody tr.cp-group td{
  font-weight: 600;
}

#cpTable tbody tr:hover td,
#prpCpTable tbody tr:hover td{
  background: #f8fafc;
}

#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: #f8fafc;
}

.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(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: #111827;
  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: #111827;
  text-decoration: underline;
}

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

.cp-hours{
  font-weight: 600;
  color: #3f4254;
}

.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: #a1a5b7;
  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-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-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-list #timeGroupBy {
  display: none;
}
#czasyPracy.cp-view-list #timeThis,
#czasyPracy.cp-view-list .cp-week-nav {
  display: none;
}
#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%;
}
