/*
* Prefixed by https://autoprefixer.github.io
* PostCSS: v8.4.14,
* Autoprefixer: v10.4.7
* Browsers: last 4 version
*/

*,
::before,
::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

input {
  outline: none;
  border: none;
}

img {
  display: block;
  min-inline-size: 100%;
  block-size: auto;
}

html,
body {
  min-height: 100%;
  width: 100%;
}

body {
  line-height: 1.5;
  font-size: 1rem;
  background-color: #f4f4f4;
  font-family: "Inter", sans-serif;
}

select {
  margin-left: 10px;
  border-radius: 5px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

#install-modal {
  display: none;
  position: fixed;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #1e1e1e;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 1.2rem;
  max-width: 400px;
  width: 90%;
  padding: 1rem;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.install-modal-block-bnt {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
}

#close-btn,
#install-btn {
  background: transparent;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: #888;
}

.wrapper {
  min-height: 100%;
  max-width: 600px;
  background: white;
  margin: 0 auto;
  padding: 10px 10px 50px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.appTitle {
  font-size: 20px;
  color: #222;
  text-transform: uppercase;
  text-align: center;
  padding: 5px;
  letter-spacing: 1;
  font-weight: 700;
}

.schedule {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 5px 1fr 5px 1fr 5px 1fr 5px 1fr 5px 1fr 5px 1fr;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  color: #333;
  margin-bottom: 40px;
}

.fakeDay {
  font-size: 0.85rem;
  font-weight: 800;
  color: #333;
  border-radius: 10px;
  overflow: hidden;
  min-height: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  align-items: center;
  padding: 6px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.scheduleItem {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  min-height: 50px;
  -webkit-transition: all ease-in-out 0.28s;
  -o-transition: all ease-in-out 0.28s;
  transition: all ease-in-out 0.28s;
  cursor: pointer;

  /* ... */
  gap: 2px;
  padding: 6px;
  font-size: 0.85rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* new style 50, 100, 120 start */
.blockData {
  color: #333;
  font-size: 0.9em;
  padding: 0px 5px;
  border-radius: 5px;
  font-weight: 800;
  text-align: center;
  align-self: center;
}

.block50,
.block100,
.block120 {
  display: none;
  width: 100%;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  color: #1a237e;
}

.block50 {
  background: #f472b6;
}

.block100 {
  background: #f97316;
}

.block120 {
  background: #e53935;
}

.blockOverTimeShow {
  display: inline-block;
}
/* new style 50, 100, 120 end */

.scheduleItemWork,
.scheduleItem100,
.scheduleItemDayOff,
.scheduleItemHoliday,
.scheduleItemWorkHoliday,
.scheduleItemLeaveOnRequest,
.scheduleItemL4,
.scheduleItemBirthday {
  font-weight: 700;
  color: #333;
}

.scheduleItemWork {
  background: #43a047;
  color: #333;
}

.scheduleItem100 {
  text-align: center;
  background: #43a047;
}

.backshift.scheduleItemDayOff .blockData,
.backshift.scheduleItemDayOff,
.scheduleItemDayOff {
  background: #ef5350;
  color: #333;
}

.scheduleItemDayOff::after {
  content: "wolne";
  text-align: center;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
}

.backshift.scheduleItemHoliday .blockData,
.backshift.scheduleItemHoliday,
.scheduleItemHoliday {
  background: rgb(249, 115, 22);
  color: #333;
}

.scheduleItemHoliday::after {
  content: "święto";
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.backshift.scheduleItemWorkHoliday .blockData,
.backshift.scheduleItemWorkHoliday,
.scheduleItemWorkHoliday {
  color: #333;
  background: rgb(59, 130, 246);
}

.scheduleItemWorkHoliday::after {
  content: "urlop";
  text-align: center;
  font-size: 9px;
  text-transform: uppercase;
  font-weight: 600;
}

.backshift.scheduleItemLeaveOnRequest .blockData,
.backshift.scheduleItemLeaveOnRequest,
.scheduleItemLeaveOnRequest {
  color: #333;
  background: rgb(80, 185, 235);
}

.scheduleItemLeaveOnRequest::after {
  content: "urlop na żądanie";
  text-align: center;
  font-size: 8px;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0 3px;
}

.backshift.scheduleItemL4 .blockData,
.backshift.scheduleItemL4,
.scheduleItemL4 {
  color: #333;
  background: rgb(153, 153, 255);
}

.scheduleItemL4::after {
  content: "L4";
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
}

.backshift.scheduleItemBirthday,
.scheduleItemBirthday {
  background: rgb(220, 120, 140);
}
.scheduleItemBirthday .blockData {
  color: #ecf0f1;
}

.scheduleItemBirthday::after {
  content: "🎂";
  text-align: center;
}

.backshift {
  background: linear-gradient(135deg, #2c3e50, #34495e);
  color: #ecf0f1;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.backshift .blockData {
  color: #ecf0f1;
}

.higherPower {
  display: flex;
  flex-direction: column;
  /* background-color: #9575cd; */
  color: #333;
}

.higherPower::after {
  content: "siła wyższa";
  content: "sw";
  text-align: center;
  text-transform: uppercase;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
  padding: 2px;
  width: 100%;
  border-radius: 3px;
  background-color: #c084fc;
}

.statisticsBoard {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 30px;
}

.statusDay {
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  color: #333;
  font-size: 12px;
  font-weight: 400;
}

.statusDay th {
  border: 1px solid #d1d5db;
  background-color: #f3f4f6;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  padding: 5px;
}

.statusDay td {
  border: 1px solid #d1d5db;
}

.statusDay tr:nth-child(odd) {
  background-color: #ffffff;
  color: #333;
}

.statusDay tr:nth-child(even) {
  background-color: #f9fafb;
  color: #333;
}

.statusDay tr.allBlock {
  color: #333;
  font-weight: 600;
}

.allBlock td:first-child {
  text-transform: uppercase;
  font-size: 12px;
  /* font-size: 16px; */
}

.fieldSalaryNetto {
  background-color: #f9fafb;
  font-weight: 600;
}

/* New styles info start */
.summary-wrapper {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  /* background-color: #f9fafb; */
}
.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}
.card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #444;
  text-align: center;
}
.row,
.vacation-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid #eee;
}
.row.total,
.row.net {
  font-weight: bold;
  color: #111;
}
.vacation-row small {
  font-size: 0.75rem;
  color: #888;
  margin-left: 0.5rem;
}
/* New styles info end */

.tableUrlop {
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-size: 12px;
  font-weight: 400;
}

.tableUrlop .tableUrlopTitle {
  color: #333;
  font-size: 12px;
  /* font-size: 16px; */
}

.tableUrlop th {
  border: 1px solid #d1d5db;
  font-size: 10px;
  background-color: #ffffff;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  padding: 5px 5px;
}

.tableUrlop tr:nth-child(odd) {
  background-color: #f3f4f6;
}

.tableUrlop tr:nth-child(even) {
  background-color: #ffffff;
  /* background-color: #f9fafb; */
}

.tableUrlop .tableUrlopLeave {
  color: #333;
  font-style: italic;
  font-size: 11px;
  font-weight: 300;
}

.tableUrlop td {
  padding: 3px 5px;
  border: 1px solid #d1d5db;
}

.statusDay td {
  padding: 3px 15px;
}

.rateTable {
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  -ms-flex-item-align: center;
  -ms-grid-row-align: center;
  align-self: center;
  color: #333;
  font-size: 12px;
  /* font-size: 16px; */
}

.rateTable tr:nth-child(odd) {
  background-color: #ffffff;
}

.rateTable tr:nth-child(even) {
  background-color: #f9fafb;
}

.rateTable td {
  padding: 3px 5px;
  border: 1px solid #d1d5db;
  min-width: 150px;
}

.rateTable th {
  border: 1px solid #d1d5db;
  background-color: #f3f4f6;
  font-weight: 700;
}

.rateTable .editBoard,
.rateTable .taxBoard,
.rateTable .hospitalBoard,
.rateTable .holidayBoard,
.editHolidayDays,
.editPremium,
.editActualSalary {
  position: relative;
  padding: 0;
  text-align: center;
}

.editHolidayDays,
.editPremium {
  text-align: left;
}

.rateInput,
.taxInput,
.hospitalInput,
.holidayInput,
.holidayDaysInput,
.editPremiumInput,
.minSalaryInput,
.editActualSalaryInput {
  display: inline-block;
  position: relative;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  font-size: 16px;
  height: 16px !important;
}

.holidayDaysInput,
.editPremiumInput {
  font-size: 16px;
}

#widthCalculator {
  visibility: hidden;
  position: absolute;
  white-space: pre;
  font-size: 16px;
  font-family: inherit;
}

.holidayDaysInput {
  width: auto;
  min-width: 20px;
}

.warningModal {
  position: absolute;
  bottom: 190%;
  left: 0;
  transform: translateY(0.5rem);
  background-color: #ffdddd;
  color: #a94442;
  border: 1px solid #f5c6cb;
  border-left: 5px solid #e53935;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
  border-radius: 0.5rem;
  min-width: 200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
  animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0.5rem);
  }
}

.editHolidayDays:has(input),
.editPremium:has(input) {
  padding: 0;
}

.currentDate .blockData {
  color: #ccff00;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.5);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 200, 83, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 200, 83, 0);
  }
}

.listItemsBlock {
  position: fixed;
  z-index: 100;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  left: 0;
  top: 0;
  padding: 30px 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: none;
}

.listItemsShow {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.listItemsEvents {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 20px;
  padding: 0 20px 20px 20px;
  background-color: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-radius: 20px;
  color: #333;
  font-weight: 600;
  width: calc(100% - 55px);
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.listItemsEvents td::first-letter {
  text-transform: uppercase;
}

.btnClose {
  position: sticky;
  align-self: center;
  top: 0;
  width: 110%;
  font-size: 24px;
  text-align: right;
  padding: 12px 5px 5px 5px;
  background-color: #fff;
  -webkit-transition: all ease-in-out 0.28s;
  -o-transition: all ease-in-out 0.28s;
  transition: all ease-in-out 0.28s;
  cursor: pointer;
}

.btnClose:hover {
  cursor: pointer;
}

.listItemsEvents select {
  margin-left: 10px;
  border-radius: 5px;
  color: #333;
  font-size: 14px;
  font-weight: 700;
}

.dayInfoTable {
  font-size: 16px;
  color: #333;
  background-color: #f9f9f9;
  border-radius: 8px;
  text-align: center;
  border-spacing: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dayInfoTable th {
  font-size: 20px;
  color: #333;
  font-weight: 600;
  background: rgb(255, 255, 255);
  padding: 6px;
  border-radius: 6px;
}

.dayInfoTable tr {
  background-color: #ff99cc;
  color: #fff;
}

.dayInfoTable tr:nth-child(2) {
  background-color: #e85aa5;
  color: #fff;
}

.dayInfoTable tr:nth-child(3) {
  background-color: #d1478b;
  color: #fff;
}

.dayInfoTable td {
  font-weight: 500;
  border-radius: 6px;
  padding: 5px;
}

.dayInfoTable tr.salaryDay {
  background-color: #28a745;
  color: #fff;
}

#form {
  color: #444;
  background-color: #f3f3f3;
  padding: 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.formTitle {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
}

.listItemsBlockOne {
  border-bottom: 2px solid rgb(255, 255, 255);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.listItemsBlockTwo {
  padding-bottom: 25px;
}

.listItemsBlockOne,
.listItemsBlockTwo {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  gap: 5px;
}

.formBlockBtn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.btnSubmit {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 16px;
  -webkit-transition: all ease-in-out 0.28s;
  -o-transition: all ease-in-out 0.28s;
  transition: all ease-in-out 0.28s;
  display: block;
  width: 100%;
  background-color: #007bff;
  color: white;
  text-align: center;
  border: none;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  margin-top: 20px;
  transition: background-color 0.3s ease;
}

.btnSubmit:hover {
  background-color: #0056b3;
}

#form input[type="radio"],
#form input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin-right: 10px;
}

#form .listItemsBlockOne > div,
#form .listItemsBlockTwo > div {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
}

.activeYear {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: #555;
  margin: 4px 0;
}

.activeMonth {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 15px;
  color: #000;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 2;
  text-transform: uppercase;
  margin: 4px 0 10px;
}

.btnLeft,
.btnRight {
  background-color: #f0f0f0;
  border: none;
  font-size: 18px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btnLeft:hover,
.btnRight:hover {
  background-color: #d9d9d9;
}

/* .monthItem {
  letter-spacing: 2px;
  font-size: 20px;
} */

.nameDays {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 5px 1fr 5px 1fr 5px 1fr 5px 1fr 5px 1fr 5px 1fr;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  text-align: center;
  margin-bottom: 5px;
}

.nameDay {
  background: #ddd;
  padding: 10px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  text-transform: capitalize;
  border-radius: 5px;
  cursor: pointer;
  transition: 0.28s;
}

.blindBlock {
  position: fixed;
  z-index: 999;
  height: 100vh;
  width: 100vw;
  left: 0;
  top: 0;
  background: rgba(252, 252, 252, 0.2);
}

.modalBlock {
  position: absolute;
  z-index: 1000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 20px;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -ms-flex-pack: distribute;
  justify-content: space-around;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 14px;
  text-align: center;
  width: 250px;
  min-height: 100px;
  border-radius: 10px;
  padding: 10px;
  background: rgb(252, 252, 252);
  -webkit-box-shadow: -5px 5px 15px rgb(96, 93, 93);
  box-shadow: -5px 5px 15px rgb(96, 93, 93);
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.modalBtn {
  padding: 5px 25px;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 12px;
}

/* acordion */

.accordion {
  border-radius: 12px;
  background: #f5f8ff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 16px 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  cursor: pointer;
  background: #e0eaff;
  font-weight: bold;
  font-size: 16px;
}

.accordion-header .arrow {
  transition: transform 0.3s ease;
}

.accordion.open .accordion-header .arrow {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 14px 18px;
  border-top: 1px solid #d0daff;
  display: none;
}

.accordion.open .accordion-body {
  display: block;
}

.salary-values {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  margin-top: 6px;
}

.average-salary-selector {
  margin-top: 16px;
}

.average-salary-selector label {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}

.shift {
  display: flex;
  justify-content: center;
  margin-left: 0;
}

#shiftOptions {
  padding: 4px 30px;
  margin: 0 0 15px 0;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background-color: #ede9fe;
  color: #6b21a8;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  appearance: none; /* прибирає дефолтну стрілку */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23111827' d='M2 0L0 2h4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.actualSalary {
  display: none;
}

.activeActualSalary {
  display: block;
}

.showActualSalary {
  margin-top: 10px;
}
