* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Ubuntu', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-weight: 500;
  font-size: 16px;
  color: #666;
  /*text-shadow: 1px 1px 3px rgba(217, 217, 217, 0.3);*/
  cursor: inherit;
}

:root {

  --background: #f0f2f5;
  --container: #ffffff;
  --thead-d: #009fe3; 
  --thead-l: #00b1f5;
  --thead-text: #f0f0f0;
  --header: #5a6a82;
  --header-dropdown: #6f7f98;
  --header-text: #e0e0e0;
  --weekend-top: #e6e8ea;
  --weekend-down: #e0e2e5;
  --table-shadow: rgba(0, 0, 0, 0.1);

  --key-ico-e: #6e6e6e;
  --key-bac-e: #ffffff;
  --key-ico-d: #d9d9d9;
  --key-bac-d: #e8eaed;
  --key-bac-h: #f3f3f3;

  /* === ENABLE === */
  --text-enable: #666666;
  --border-enable: #b4b4b4;
  --background-enable: #f7f7f7;
  --transition-enable: color 0.4s, border-color 0.4s, background-color 0.4s;

  /* === DISABLE === */
  --text-disable: #ccc;
  --border-disable: #dcdcdc;
  --background-disable: #fff;
  --transition-disable: color 0.5s, border-color 0.5s, background-color 0.5s;

  /* === HOVER === */
  --text-hover: #404040;
  --border-hover: #8c8c8c;
  --background-hover: #eee;
  --transition-hover: color 0.1s, border-color 0.1s, background-color 0.1s; 

  /* === HOVER CHECKED === */
  --text-hover-checked: #333;
  --border-hover-checked: #ccc;
  --background-hover-checked: #d9d9d9;
  --transition-hover-checked: color 0.1s, border-color 0.1s, background-color 0.1s;

  /* === FOCUS === */
  --border-focus: #4a90e2;
  --box-shadow-focus: 0 0 0 3px rgba(74, 144, 226, 0.3);
  --transition-focus: border-color 0.1s, box-shadow 0.1s; 

  /* === BUTTON === */
  --primary-color: #f7f7f7;
  --secondary-color: #666666;
  --hover-color: #404040;
  --arrow-width: 10px;
  --arrow-stroke: 2px;

  --box-shadow: rgba(0,0,0,.42);
  --invalid-l: #ffc8c8;
  --invalid-d: #ffbfbf;
}
.root-dark {

  --box-shadow: rgba(255,255,255,.12);

  --background: #333333;
  --container: #363636;
  --thead-d: red;
  --thead-l: #007bb3;
  --thead-text: #d8dee9;
  --weekend-top: #262626;
  --weekend-down: #2c2c2c;
  --table-shadow: rgba(155, 155, 155, 0.1);

  --key-ico-e: #cfcfcf;   /* ikonka - enabled */
  --key-bac-e: #2b2b2b;   /* tło - enabled */

  --key-ico-d: #777777;   /* ikonka - disabled */
  --key-bac-d: #2f2f2f;   /* tło - disabled */

  --key-bac-h: #3a3a3a;   /* tło - hover */

  /* === ENABLE === */
  --text-enable: #cccccc;        /* jasny, ale nie biały */
  --border-enable: #4d4d4d;
  --background-enable: #303030;
  --transition-enable: color 0.4s, border-color 0.4s, background-color 0.4s;

  /* === DISABLE === */
  --text-disable: #7a7a7a;       /* jaśniejszy niż było */
  --border-disable: #333333;
  --background-disable: #2b2b2b;
  --transition-disable: color 0.5s, border-color 0.5s, background-color 0.5s;

  /* === HOVER === */
  --text-hover: #f0f0f0;         /* prawie biały, na hover */
  --border-hover: #595959;
  --background-hover: #3a3a3a;
  --transition-hover: color 0.1s, border-color 0.1s, background-color 0.1s;

  /* === HOVER CHECKED === */
  --text-hover-checked: #ffffff;
  --border-hover-checked: #666666;
  --background-hover-checked: #444444;
  --transition-hover-checked: color 0.1s, border-color 0.1s, background-color 0.1s;

  /* === FOCUS === */
  --border-focus: #5b9bff;
  --box-shadow-focus: 0 0 0 3px rgba(91, 155, 255, 0.3);
  --transition-focus: border-color 0.1s, box-shadow 0.1s;

  /* === BUTTON === */
  --primary-color: #3a3a3a;
  --secondary-color: #dddddd;
  --hover-color: #ffffff;
  --arrow-width: 10px;
  --arrow-stroke: 2px;
  --invalid-l: #d79395;
  --invalid-d: #c86465;
}
.disable-transitions *, 
.disable-transitions *::before, 
.disable-transitions *::after {
  transition: none !important;
  animation: none !important;
}
.changelog-btn {
position: fixed; right: 20px; bottom: 20px; width: 50px; height: 50px;
border-radius: 50%; border: none; background: var(--header-dropdown); stroke: var(--header-text);
cursor: pointer; display: flex; align-items: center; justify-content: center;
box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: transform .3s; z-index: 1000;
}
.changelog-btn:hover { transform: scale(1.05); }
.changelog-btn svg { width: 24px; height: 24px; transition: transform .3s; }
.changelog-btn.active svg { transform: rotate(180deg); }


.changelog-box {
position: fixed; right: 20px; bottom: 80px; width: 360px; max-height: 460px;
background: var(--container); border-radius: 16px; box-shadow: 0 8px 28px var(--box-shadow);
font-size: 14px; overflow-y: auto; opacity: 0; transform: translateY(20px);
pointer-events: none; transition: all .3s; z-index: 999; border: 2px solid var(--border-disable); scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}
.changelog-box::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.changelog-box.open { opacity: 1; transform: translateY(0); pointer-events: auto; }


.clg-hdr {
position: sticky; top: 0; background: var(--container); border-bottom: 1px solid var(--border-hover);
padding: 12px 14px; display: flex; align-items: center; gap: 8px; z-index: 1015;
}
.clg-hdr-left { font-weight: 700; color: var(--text-hover); }
.clg-hdr-spacer { flex: 1; }
.clg-hdr-right { font-weight: 700; color: var(--text-hover); font-size: 12px; opacity: .9; }


.clg-wrap { padding: 12px; display: flex; flex-direction: column; gap: 12px; }


.clg-section {
background: var(--background); border: 1px solid var(--border-hover); border-radius: 12px; overflow: hidden;
box-shadow: 0 2px 6px rgba(0,0,0,.06);
}
.clg-sec-title {
padding: 10px 12px; background: var(--weekend-top); border-bottom: 1px solid var(--border-hover);
font-weight: 700; color: var(--text-enable); letter-spacing: .2px;
}
.clg-items { padding: 10px 12px; display: grid; gap: 8px; }
.clg-item { padding: 8px 10px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 10px; }
.clg-note { padding: 8px 10px; color: var(--text-enable); font-style: italic; border-left: 3px solid #c7d2fe; background: #ffffff; border-radius: 6px; }
.clg-list {
  margin: 6px 0 0 0;
  padding: 0;
  list-style: none;
}
.clg-list li {
  margin-bottom: 6px;       /* odstęp między wierszami */
  line-height: 1.5;
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-enable);
}
.clg-list li::before {
  content: "-";             /* myślnik zamiast kropki */
  position: absolute;
  left: 0;
  color: var(--text-enable);           /* szary odcień dla myślnika */
}

a {
  color: var(--text-enable);
  text-decoration: none;
  cursor: pointer;
}
a:hover {
  color: var(--text-hover);
}
td {
  padding: 10px;
  text-align: center;
  vertical-align: middle;
}
.doubleAbsence {
  margin: 2px auto;   /* wycentrowanie + mały odstęp */
}
th {
  padding: 20px 0 20px 0;
  font-size: 18px;
  color: var(--header-text);
}

.filters-row  > th {
  padding:  5px 0;
}
h2 {
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  color: var(--text-enable);
}
body {
  background-color: var(--background);
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* BLOKADA poziomego scrolla */
  width: 100%;
}
html {
  overflow-y: scroll;
}
table,
.report-container {
  width: 95%;
  max-width: 1200px;
  border-collapse: collapse;
  font-size: 18px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px var(--table-shadow);
}
.report-container {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0);
}
thead {
  border-bottom: 1px solid var(--header);
  background: linear-gradient(to top left,
    var(--header) 0%,
    var(--header) 10%,
    var(--header-dropdown) 100%
  );
  border-radius: 10px;
}
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
}

.header-box {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: bold;
}

::placeholder {
  color: var(--text-disable);
  opacity: 1;
}
::-moz-placeholder {
  color: var(--text-disable);
  opacity: 1;
}
:-ms-input-placeholder {
  color: var(--text-disable);
}
::-ms-input-placeholder {
  color: var(--text-disable);
}
::-webkit-input-placeholder {
  color: var(--text-disable);
}

.range-buttons {
  gap: 10px;
}

.range-buttons button {
  font-size: 12px;
}

.tpresets {
  color: var(--header-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  user-select: none;
  cursor: initial;
}

.tpresets-select {
  color: var(--header-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  user-select: none;
  cursor: initial;
}

.month-box-select {
  padding: 5px 10px;
  white-space: nowrap;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(2px); /* opcjonalnie: efekt "szkła" */
  border-radius: 6px;
}



.theader {
  color: var(--header-text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  user-select: none;
  cursor: initial;
}
a.theader-big {
  font-size: 22px;
}
.theader:hover {
  color: var(--header-text);
  text-decoration: none;
}

.managerInput {
  background-color: var(--background-enable);
  border-color: var(--border-enable);
  color: var(--text-enable);
}

option {
  background-color: var(--background-hover);
  color: var(--text-enable);
}

.sessionWarning {
  background: var(--container);
  color: var(--text-enable);
  padding: 20px;
  border-radius: 10px;
  font-family: sans-serif;
  box-shadow: 0 5px 20px rgba(0,0,0,.3);
}
.swP {
  padding: 10px;
}
.swP p {
  color: var(--text-enable);
  display: inline;
}

/* === HEADER === */

header {
  position: fixed;
  height: clamp(100px, 1vw, 120px);
  z-index: 1000;
  width: 100%;
  top: 0;
  background: linear-gradient(to top left,
    var(--header) 0%,
    var(--header) 25%,
    var(--header-dropdown) 100%
  );
  padding: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-container {
  width: 95%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin: 0 auto;
}
.header-container a, .header-container h2 {
  color: var(--header-text);
}
.nav-links {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  font-size: 18px;
  letter-spacing: 0px;
}
.header-option {
  display: block;
  padding-left: 15px;
}
span {
  display: none;
}
.dropdown {
  position: relative;
}
.dropdown-toggle {
  cursor: pointer;
  padding: 18px 0;
  text-decoration: none;
}
.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 55px;
  right: 0;
  background: linear-gradient(to bottom, var(--header) 0% ,var(--header-dropdown) 75%);
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  
  min-width: 130px;
  text-align: right;
  z-index: 9999;
  gap: 4px;
}
.dropdown-menu span {
  height: 1px;
  width: 100%;
  background-color: var(--border-hover);
  display: block;
}
.dropdown-menu.show {
  display: flex;
  padding: 4px;
  justify-content: center;
}
.dropdown-menu a {
  padding: 8px 15px;
  text-decoration: none;
  color: var(--header-text);
  display: block;
  white-space: nowrap;
}
.hamburger {
  display: none;
}
.h-o-mobile {
  display: none;
}

.navigation-holder {
  width: 100%;
  max-width: 1200px;
  padding: 30px 0 10px 0;
  margin: 70px auto 35px auto;
  display: block;
}
.nav_container {
  line-height: 1.3;
  margin: 0 auto 20px auto;
  width: 100%;
  display: inline;
}
.view_month_container {
  text-align: center;
  margin: auto;
  user-select: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.col-filter {
  background-color: var(--header-dropdown);
  text-align: center;
  width: 100px;
  border: 2px solid var(--header);
  border-radius: 5px;
  margin-right:   20px;
  font-size:  12px;
  padding:  2px 0px;
  opacity:  80%;
}
.view_month_container h2 {
  user-select: none;
}

/* Nagłówki są klikalne, ale wyłączamy dla .no-sort */
.labels-row th { position: relative; cursor: pointer; white-space: nowrap; }
.labels-row th.no-sort { cursor: default; }

/* Jeden wspólny panel – pozycjonowany absolutnie względem dokumentu */
.th-popover {
  position: absolute;
  min-width: 100px;
  max-width: 120px;
  max-height: 140px;
  min-height: 120px;
  background: var(--container);
  border: 2px solid var(--border-disable);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  padding: 8px;
  z-index: 400;
  display: none;
}

.th-popover .row { display: flex; align-items: center; gap: 6px; }
.th-popover .row + .row { margin-top: 8px; }

.th-popover input[type="text"]{
  flex: 1;
  width: 90%;
  padding: 3px 4px;
  border: 2px solid var(--border-enable);
  background: var(--container);
  color: var(--text-enable);
  border-radius: 8px;
  outline: none;
}
.th-popover input[type="text"]::placeholder{ opacity: .7; }

.th-popover .buttons-col,
.th-popover .th-checkbox-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;             /* odstęp pionowy */
}

.th-popover .buttons-col .btn,
.th-popover .th-checkbox-controls .btn{
  display: block;
  width: 100%;
  text-align: center;
  max-width: 200px;
  font-size: 12px;
}


.button-container{
  position: fixed;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  width: 1160px;
  max-width: 96%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px;
  z-index: 600;

  /* było: box-shadow na starcie — usuwamy */
  box-shadow: none;
  border-radius: 10px;

  /* kluczowe zmienne sterujące */
  --bgOpacity: 0;        /* 0 na starcie, 1 po 100px */
  --shadowOpacity: 0;    /* 0 na starcie, 1 po 100px */

  /* WAŻNE: nie ucinaj zawartości, bo znikały skrajne przyciski */
  overflow: visible;

  /* żeby pseudo-elementy były pod dziećmi */
  isolation: isolate;
}

/* TŁO (gradient) – sterujemy kryciem */
.button-container::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to top left,
    var(--header) 0%,
    var(--header) 5%,
    var(--header-dropdown) 100%
  );
  opacity: var(--bgOpacity);
  transition: opacity 120ms linear;
}

/* CIEŃ – osobna warstwa, też sterowana kryciem */
.button-container::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 0;
  pointer-events: none;
  /* ten box-shadow „udaje” cień kontenera */
  box-shadow: 0 2px 8px rgba(0,0,0,.50);
  opacity: var(--shadowOpacity);
  transition: opacity 120ms linear;
}

/* dla pewności dzieci nad tłem/cieniem */
.button-container > *{
  position: relative;
  z-index: 1;
}


.navigation-buttons,
.options-buttons{
  display:flex;
  align-items:center;

}


.navigation-buttons{ justify-content: flex-start; }
.options-buttons{ justify-content: flex-end; }

#calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  max-width: 700px;
  margin: 25px auto;
  padding: 10px;
  background: var(--container);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  user-select: none;
  }
#calendar > div {
  min-width: 0;
}
.day {
  padding: 14px 0;
  background-color: var(--background-hover);
  border-radius: 8px;
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.1);
  font-size: 18px;
  color: var(--text-enable);
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.day:hover {
  background-color: var(--background-enable);
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgb(0 123 255 / 0.5);
}
.day.selected {
  background-color: #d74053;
  color: white;
  box-shadow: 0 2px 2px rgb(220 53 69 / 0.7);
}
.day.disabled {
    pointer-events: none;
    opacity: 0.5;
    background-color: var(--background);
    color: #888;
}
.dayLabel {
  padding: 12px 0;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--text-enable);
  user-select: none;
  text-align: center;
}

.dayLabel:nth-child(6), .dayLabel:nth-child(7) {
  color: #d9534f; /* weekendy na czerwono */
}

.day:nth-child(7n+6),
.day:nth-child(7n+7) {
  color: #d9534f; /* weekendy w kalendarzu też na czerwono */
}

.day:not(.selected):active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.log-entry {
    background: rgba(0, 0, 0, 0.03);
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    border: 1px solid var(--border-disable);
}

/* Nagłówek z datą po lewej i edytorem po prawej */
.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--text-disable);
    margin-bottom: 6px;
}

.log-date {
    flex: 1;
    text-align: left;
    color: var(--text-enable);
    font-size: 13px;
}

.log-editor {
    flex: 1;
    text-align: right;
    color: var(--text-enable);
    font-size: 13px;
}

.log-dateentry {
    text-align: center;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-hover);
}

.log-body {
    text-align: left;
    padding-left: 5px;
    color: var(--text-enable);
}



.container {
  width: 100%;
  max-width: 1200px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px;
  overflow-y: visible;
}

.col-2_5 {
  display: none;
}

td.newTD {
  border-bottom: solid var(--border-enable);
}

.signature {
  display: none;
}

.modal {
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0, 0, 0, 0.5);
      align-items: center;
      justify-content: center;
      z-index: 1000;
}
.modal_content {
  position: relative;
  background-color: var(--container);
  padding: 5px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  position: absolute;
  width: 90%;
  max-width: 370px;
  max-height: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.modal_navigation {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 10px 25px 10px;
  position: relative;
}

.modal_navigation > p {
  text-align: center;
  color: var(--text-enable);
  font-size: 21px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

#close_confirm,
#close_defaults,
#close_password,
#close_history,
#close_desc {
  background-color: transparent; /* zamiast red */
  border: none;
  font-size: 20px;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.modal_inputs {
  display: flex;
  margin: 10px 10px;
}
.modal_inputs-vert {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 10px 10px;
}

.modal_inner_inputs {
  margin: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.modal_inner_label {
  margin-bottom: 8px;
  color: var(--text-enable);
  font-size: 14px;
}
input.modal-input {
    border: solid 2px var(--text-disable);
  }
.modal_actions {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: solid 2px var(--border-enable);
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.03);
}
textarea {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: solid 2px var(--border-enable);
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.03);
  width: 320px;      /* stała szerokość */
  height: 140px;     /* stała wysokość */
  resize: none;      /* blokuje ręczne zmienianie rozmiaru */
  overflow: auto;    /* pokaż przewijanie, gdy tekstu jest za dużo */
  
}
.clock {
  width: 50px;
  height: 50px;
  stroke: var(--text-disable);
  fill: var(--text-disable);
  opacity: 0.5;
  background-color: transparent; /* zamiast red */
  border: none;
  font-size: 20px;
  cursor: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: absolute;
  left: 10px;
  top: 60%;
  transform: translateY(-50%);
}
.modal-button,
.modal-button-alert {
  margin: 10px auto;
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-radius: 10px;
  background-color: #3B82F6;
  color: var(--thead-text);
}
button.modal-button-alert {
  background-color: #EF4444;
}
button.modal-button-alert:hover {
  background-color: #F14E4E;
}
.modal-button:hover {
  background-color: #498BF6;
}

.info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-height: 500px;
  overflow-y: scroll;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;
}
.info-box::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.info-icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  stroke: var(--text-enable);
  fill: var(--text-enable);
  flex-shrink: 0;
  opacity: 0.7;
}

.desc {
  color: var(--text-enable);
  font-size: 13px;
  line-height: 1.2;
  margin: 0;
  word-break: break-word;
  max-width: 100%;
  cursor: inherit;
  text-align: justify;
  opacity: 0.8;
}
.desc:hover {
  color: var(--text-enable);
  text-decoration: none;
}
.desc strong {
  font-weight: 700;
}

.col-1,
.col-2 {
  color: var(--text-enable);
}


.costcenter {
  width: 100%;
  max-width: 100px;
  text-align: center;
}

/* === BUTTONS === */
.standard-button {
  text-align: center;
  justify-content: center;
  padding: 5px 6px;
  color: var(--text-enable);
  background-color: var(--background-enable);
  border: 2px solid var(--border-enable);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-enable);
  outline-offset: 2px;
}
.standard-button:hover {
  background-color: var(--background-hover);
  border-color: var(--border-hover);
  color: var(--text-hover);
  transition: var(--transition-hover);
}
.standard-button:focus {
  border-color: var(--border-focus);
  box-shadow: var(--box-shadow-focus);
  outline: var(--outline-focus);
  transition: var(--transition-hover);
}
.standard-button:disabled {
  background-color: var(--background-disable);
  border-color: var(--border-disable);
  color: var(--text-disable);
  cursor: not-allowed;
  transition: var(--transition-disable);
}


#d_start,
#d_end {
  width: 100px;
}

.gear-button {
  box-sizing: border-box;
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px;
  color: var(--secondary-color);
  height: 32px;
  width: 32px;
  padding: 4px;
  background: var(--primary-color);
  display: flex;
  transition: 0.4s background;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(1px ,1vw ,14px);
  margin-left: 5px;
  }
.gear-button:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
  }
.gear-icon {
    transition: transform 0.5s ease, fill 0.4s ease, stroke 0.4s ease;
    fill: var(--secondary-color);
    stroke: var(--secondary-color);
  }
.gear-button:hover .gear-icon {
    transform: rotate(45deg);
    fill: var(--primary-color);
    stroke: var(--primary-color);
  }

.download-button {
  box-sizing: border-box;
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px;
  color: var(--secondary-color);
  height: 32px;
  width: 32px;
  padding: 6px;
  background: var(--primary-color);
  display: flex;
  transition: 0.4s background;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(1px ,1vw ,14px);
  margin-left: 5px;
  }
.download-button:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
  }
.download-icon {
    transition: transform 0.5s ease, fill 0.4s ease, stroke 0.4s ease;
    fill: var(--secondary-color);
    stroke: var(--secondary-color);
  }
.download-button:hover .download-icon {
    fill: var(--primary-color);
    stroke: var(--primary-color);
  }

.floppy-button {
  box-sizing: border-box;
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px;
  color: var(--secondary-color);
  height: 32px;
  width: 32px;
  padding: 6px;
  background: var(--primary-color);
  display: flex;
  position: relative;
  transition: 0.4s background;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(1px ,1vw ,14px);
  margin-left: 5px;
  }
.floppy-button:hover {
    background-color: var(--hover-color);
    color: var(--primary-color);
  }
.floppy-icon {
    transition: transform 0.5s ease, fill 0.4s ease, stroke 0.4s ease;
    fill: var(--secondary-color);
    stroke: var(--secondary-color);
  }
.floppy-button:hover .floppy-icon {
    fill: var(--primary-color);
    stroke: var(--primary-color);
  }
.col-9 {
  vertical-align: middle;
}
.key-button {
  border: 2px solid var(--border-enable);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px;
  background: var(--key-bac-e);
  display: flex;
  height: 32px;
  width: 32px;
  padding: 4px;
  transition: 0.4s background;
  align-items: center;
  margin: auto;
  gap: 0.6em;
  font-size: clamp(1px ,1vw ,14px);
  }
.key-button:disabled{
  border-color: var(--border-disable);
  background: var(--key-bac-d);
  box-shadow: rgba(0, 0, 0, 0) 0 0 5px;
}
.key-button:disabled .key-icon{
  fill: var(--key-ico-d);
  stroke: var(--key-ico-d);
}
.key-button:hover {
    background-color: var(--key-bac-h);
    border-color: var(--border-hover);
  }
.key-button:disabled:hover {
  fill: var(--key-ico-d);
  stroke: var(--key-ico-d);
  border-color: var(--border-disable);
  background: var(--key-bac-d);
}
.key-icon {
    transition: transform 0.5s ease, fill 0.4s ease, stroke 0.4s ease;
    fill: var(--key-ico-e);
    stroke: var(--key-ico-e);
  }
.key-icon-r {
  fill: var(--header-text);
  stroke: var(--header-text);
}

.header-grid {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.user-box,
.month-box {
  padding: 5px 10px;
  white-space: nowrap;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(2px); /* opcjonalnie: efekt "szkła" */
border-radius: 6px;
}

/* wyśrodkowany tytuł ponad wszystkim */
.center-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: white;
  white-space: nowrap;
  z-index: 2;
  pointer-events: none;
}





.nav_button {
  box-sizing: border-box;
  border: 2px solid var(--secondary-color);
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 0 5px;
  color: var(--secondary-color);
  height: 32px;
  width: 32px;
  padding: 9px;
  background: var(--primary-color);
  display: flex;
  transition: 0.4s background;
  align-items: center;
  gap: 0.6em;
  font-size: clamp(1px ,1vw ,14px);
  margin-right: 5px;
}
.nav_button .arrow-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav_button .arrow {
  margin-top: 1px;
  width: var(--arrow-width);
  background: var(--primary-color);
  height: var(--arrow-stroke);
  position: relative;
  transition: 0.2s;
}

#next .arrow::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  border: solid var(--secondary-color);
  border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
  display: inline-block;
  top: -3px;
  right: 3px;
  transition: 0.2s;
  padding: 3px;
  transform: rotate(-45deg);
}
#next:hover {
  background-color: var(--hover-color);
  color: var(--primary-color);

}
#next:hover .arrow {
  background-color: var(--primary-color);

}
#next:hover .arrow::before {
  right: 0;
  border-color: var(--primary-color);
}

#prev .arrow::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  border: solid var(--secondary-color);
  border-width: 0 var(--arrow-stroke) var(--arrow-stroke) 0;
  display: inline-block;
  top: -3px;
  left: 3px;
  transition: 0.2s;
  padding: 3px;
  transform: rotate(135deg);
}
#prev:hover {
  background-color: var(--hover-color);
  color: var(--primary-color);
}
#prev:hover .arrow {
  background: var(--primary-color);
}
#prev:hover .arrow::before {
  left: 0;
  border-color: var(--primary-color);
}


/* === INPUT === */

.small-input {
  color: var(--text-enable);
  border: 2px solid var(--border-enable);
  border-radius: 8px;
  background-color: var(--background-enable);
  transition: var(--transition-enable);
  padding: 7px 7px;
  height: 28px;
  width: 130px;
}
.standard-input {
  color: var(--text-enable);
  border: 2px solid var(--border-enable);
  border-radius: 8px;
  background-color: var(--background-enable);
  transition: var(--transition-enable);
  padding: 7px 7px;
  height: 38px;
}
.standard-input:hover,
.small-input:hover {
  color: var(--text-hover);
  border-color: var(--border-hover);
  background-color: var(--background-hover);
  transition: var(--transition-hover);
}
.standard-input:disabled,
.standard-input:disabled:hover,
.small-input:disabled,
.small-input:disabled:hover {
  color: var(--text-disable);
  border-color: var(--border-disable);
  background-color: var(--background-disable);
  transition: var(--transition-disable);
}
.standard-input:focus,
.small-input:focus,
.small-input:focus {
  border-color: var(--border-focus);
  box-shadow: var(--box-shadow-focus);
  outline: var(--outline-focus);
  transition: var(--transition-hover);
}
.manager {
  width: 100%;
}
select {
  width: 200px;
}

input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(0.6);

}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-enable);
  border-radius: 4px;
  background-color: var(--background-enable);
  position: relative;
  vertical-align: middle;
}
input[type="checkbox"]:hover {
  background-color: var(--background-hover);
  border-color: var(--border-hover);
  transition: var(--transition-hover);
}
input[type="checkbox"]:disabled {
  background-color: var(--background-disable);
  border-color: var(--border-disable);
}
input[type="checkbox"]:checked {
  background-color: var(--background-hover);
  border-color: var(--border-hover);
}
input[type="checkbox"]:checked:hover {
  background-color: var(--background-hover);
  border-color: var(--border-hover-checked);
}
input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 4px;
  width: 6px;
  height: 9px;
  border-style: solid;
  border-color: var(--text-enable);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
input[type="checkbox"]:checked:disabled {
  background-color: var(--background-disable);
  border-color: var(--border-disable);
}
input[type="checkbox"]:disabled:checked::after {
  border-color: var(--text-disable);
}

.admin_text,
input[type="number"] {
  color: var(--text-enable);
  border: 2px solid var(--border-enable);
  border-radius: 8px;
  background-color: var(--background-enable);
  transition: var(--transition-enable);
  box-sizing: border-box;
  width: 100%;
  max-width: 200px; /* opcjonalnie */
  outline-offset: 2px;
}

.select-wrapper {
    position: relative;
    display: inline-block;
    min-width: 200px;
    min-height: 100%;
  }
.select-wrapper::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 5%;
    width: 7px;
    height: 8px;
    border: solid var(--border-hover-checked);
    border-width: 0 2px 2px 0;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
    pointer-events: none;
  }
.select-wrapper.disabled::after {
  border-color: var(--border-disable);
}
.select-wrapper:hover::after {
    transform: translateY(calc(-50% + 2px)) rotate(45deg);
  }

.hidden {
  display: none;
}
#future-message {
  display: none;
  text-align: center;
  font-size: 1.2em;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  color: rgb(255, 65, 65);
}
.invalidd {
  background: linear-gradient(to left,
    var(--invalid-l) 0%,
    var(--invalid-d) 100%
  );
}
.weekend {
  background: linear-gradient(to left,
    var(--weekend-down) 0%,
    var(--weekend-top) 100%
  );
}

.locked {
  background: repeating-linear-gradient(
    45deg,
    var(--weekend-down) 0,
    var(--weekend-down) 10px,
    var(--weekend-top) 10px,
    var(--weekend-top) 20px
  ) !important;
  background-size: 30px 30px;
  background-position: 0 0 !important;
}




.login-body {
    background: #f4f7f9;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    overflow: hidden;
    padding: 1rem;
}
.login-wrapper {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}
.login-title {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.login-label {
    color: #444;
}
.login-input {
    padding: 0.7rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    width: 100%;
}
.login-input:focus {
    border-color: #007bff;
    outline: none;
}
.login-submit {
    background-color: #007bff;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}
.login-submit:hover {
    background-color: #0056b3;
}

.screen-too-small {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--background);
  color: var(--text-enable);
  z-index: 9999;
  font-size: 1.2rem;
  padding: 2rem;
  text-align: center;
}

@media (max-width: 1099px) {
  /* === HEADER === */
  .header-container {
    padding: 0 8px;

  }    
  .nav-links {
      flex-direction: column;
      gap: 10px;
      background-color: var(--container);
      position: absolute;
      top: 100px;
      right: -1200px;
      width: 100%;
      height: 1000px;
      padding: 10px 20px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.2);
      z-index: 1000;
      align-items: flex-end;
      letter-spacing: 1px;
      transition: right 0.2s ease-in-out;
    }
  .nav-links.active {
      display: flex;
      right: 0;
    }
  span {
    height: 1px;
    width: 100%;
    background-color: var(--border-hover);
    display: block;
  }
  .hamburger {
      cursor: pointer;
      display: flex;
      flex-direction: column;
      height: 25px;
      gap: 5px;
    }
  .hamburger span {
      height: 3px;
      width: 25px;
      background-color: var(--header-text);
      display: block;
    }
  .header-container a {
    color: var(--text-enable);
  }
  .header-option > a {
    color: var(--text-enable);
  }
  .dropdown {
    display: none;
  }
  .h-o-mobile {
    display: block;
  }

  th.th-pp {
    display: none;
  }

  .day-row-pp {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  .day-row-pp > td {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
  }

  .col-1_3, .col-2_3, .col-3_3, .col-4_3 {
    order: 1;
    margin: 0 auto 8px auto;
  }
  .col-5_3, .col-6_3, .col-7_3, .col-8_3, .col-8_3_1, .col-9_3, .col-9_3_1 {
    order: 2;
    margin: 0 auto 8px auto;
  }
  td.newTD {
    border: none;
  }
  .col-1_3 {
    width: 15%;
  }
  .col-2_3 {
    width: 15%;
  }
  .col-3_3 {
    width: 30%;
  }
  .col-4_3 {
    width: 30%;
  }
  .col-5_3 {
    width: 20%;
  }
  .col-6_3 {
    width: 20%;
  }
  .col-7_3 {
    width: 15%;
  }
  .col-8_3 {
    width: 20%;
  }
  .col-9_3 {
    width: 15%;
  }
}
@media (max-width: 984px) {
  th {
    font-size: 16px;
  }

  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 {
  padding: 10px 4px 10px 4px;
}
  .col-1 {
  padding-left: 10px;
}
  .col-9 {
  padding-right: 10px;
}

  .col-1_2, .col-2_2, .col-3_2, .col-4_2 {
    order: 1;
    margin: 0 auto 8px auto;
  }
  .col-5_2, .col-6_2, .col-7_2, .col-7_2_1, .col-8_2 {
    order: 2;
    margin: 0 auto 8px auto;
  }
  .col-9_2 {
    order: 3;
    margin: 0 auto 8px auto;
  }
  .col-1_2 {
    width: 30%;
  }
  .col-2_2 {
    width: 15%;
  }
  .col-3_2 {
    width: 20%;
  }
  .col-4_2 {
    width: 25%;
  }
  .col-5_2 {
    width: 20%;
  }
  .col-6_2 {
    width: 20%;
  }
  .col-7_2 {
    width: 25%;
  }
  .col-7_2_1 {
    display: none;
  }
  .col-8_2 {
    width: 25%;
  }
  .col-9_2 {
    width: 90%;
  }

  .modal-input {
    min-width: 80px;
  }
}
@media (max-width: 898px) {
  th {
    display: none;
  }
  th.stayThead {
    display: table-cell;
  }

  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9 {
    padding: 10px 4px 10px 4px;
  }
  .col-1 {
    padding-left: 10px;
  }
  .col-9 {
    padding-right: 10px;
  }

}
@media (max-width: 841px) {
  /* === LOGIN === */
  .login-body {
          overflow: auto;
          align-items: flex-start;
          padding-top: 2rem;
      }
  .login-wrapper {
          padding: 1rem;
          border-radius: 8px;
      }

  .day-row {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  .day-row > td {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
  }

  .col-9 {
    order: 1;
    margin-bottom: 8px;

  }
  .col-1, .col-2_5, .col-3, .col-4 {
    order: 2;
    margin: 0 auto 8px auto;
  }
  .col-5 {
    order: 3;
    margin-bottom: 8px;
  }
  .col-6, .col-7, .col-8 {
    order: 4;
    margin: 0 auto 8px auto;
  }
  .col-1 {
    width: 15%;
  }
  .col-2 {
    display: none;
    font-size: 0;
  }
  .col-2_5 {
    width: 20%;
  }
  .col-3 {
    width: 20%;
  }
  .col-4 {
    width: 20%;
  }
  .col-5 {
    width: 15%;
  }
  .col-5 input[type="checkbox"] {
    width: 32px;
    height: 32px;
  }
  .col-5 input[type="checkbox"]:checked::after {
    width: 9px;
    height: 14px;
    left: 9px;
    bottom: 8px;
  }
  .col-6 {
    width: 32.5%;
  }
  .col-7 {
    width: 15%;
  }
  .col-8 {
    width: 15%;
  }
  .col-9 {
    width: 15%;
  }

}
@media (max-width: 600px) {

  a.theader-big {
    font-size: 0px;
    }

  .day-row-ap {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
  }
  .day-row-ap > td {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 0;
  }

  .col-1, .col-2_5, .col-9 {
    order: 1;
    margin: 0 auto 8px auto;
  }
  .col-3, .col-4 {
    order: 2;
    margin: 0 auto 8px auto;
  }
  .col-5, .col-6 {
    order: 3;
    margin: 0 auto 8px auto;
  }
  .col-7, .col-8 {
    order: 4;
    margin: 0 auto 8px auto;
  }
  .col-1 {
    width: 20%;
  }
  .col-2 {
    display: none;
    font-size: 0;
  }
  .col-2_5 {
    width: 50%;
  }
  .col-3 {
    width: 45%;
  }
  .col-4 {
    width: 45%;
  }
  .col-5 {
    width: 28%;
  }
  .col-6 {
    width: 45%;
    margin-right: 65px;
  }
  .col-7 {
    width: 45%;
  }
  .col-8 {
    width: 45%;
  }
  .col-9 {
    width: 20%;
  }

  .col-1_1, .col-2_1, .col-3_1 {
    order: 1;
    margin: 0 auto 8px auto;
  }
  .col-4_1, .col-5_1 {
    order: 2;
    margin: 0 auto 4px auto;
  }
  .col-1_1 {
    width: 30%;
  }
  .col-2_1 {
    width: 30%;
  }
  .col-3_1 {
    width: 30%;
  }
  .col-4_1 {
    width: 30%;
  }
  .col-5_1 {
    width: 60%;
  }

  .col-1_2, .col-2_2, .col-3_2, .col-4_2 {
    order: 1;
    margin: 0 auto 8px auto;
  }
  .col-5_2, .col-6_2, .col-7_2, .col-7_2_1, .col-8_2 {
    order: 2;
    margin: 0 auto 8px auto;
  }
  .col-9_2 {
    order: 3;
    margin: 0 auto 8px auto;
  }
  .col-1_2 {
    width: 30%;
  }
  .col-2_2 {
    width: 15%;
  }
  .col-3_2 {
    width: 20%;
  }
  .col-4_2 {
    width: 25%;
  }
  .col-5_2 {
    width: 20%;
  }
  .col-6_2 {
    width: 20%;
  }
  .col-7_2 {
    width: 25%;
  }
  .col-7_2_1 {
    display: none;
  }
  .col-8_2 {
    width: 25%;
  }
  .col-9_2 {
    width: 90%;
  }

  .col-1_3, .col-5_3, .col-6_3 {
    order: 1;
    margin: 0 auto 8px auto;
  }
  .col-2_3, .col-3_3, .col-4_3 {
    order: 2;
    margin: 0 auto 8px auto;
  }
  .col-7_3, .col-8_3, .col-9_3 {
    order: 3;
    margin: 0 auto 8px auto;
  }
  .col-1_3 {
    width: 20%;
  }
  .col-2_3 {
    width: 20%;
  }
  .col-3_3 {
    width: 35%;
  }
  .col-4_3 {
    width: 35%;
  }
  .col-5_3 {
    width: 35%;
  }
  .col-6_3 {
    width: 35%;
  }
  .col-7_3 {
    width: 20%;
  }
  .col-8_3 {
    width: 60%;
  }
  .col-9_3 {
    width: 10%;
  }

  .signature {
    font-size: 14px;
    padding-right: 10px;
    display: block;
  }
  .modal-input {
    min-width: 80px;
  }

}
@media (max-width: 380px) {
    .col-5 {
    width: 21%;
  }
  .col-6 {
    width: 69%;
    margin-right: auto;
}
@media (max-width: 319px) {
  body > *:not(.screen-too-small) {
    display: none !important;
  }
  .screen-too-small {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  body {
    overflow: hidden;
  }
}




