* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  background: #1f2937 url("assets/tlo_budowa.png") center center fixed no-repeat;
  background-size: cover;
  color: #111827;
  font-size: 14px;
}

body { overflow-x: hidden; }

.hidden { display: none !important; }

.loginWrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.24);
}

.loginBox {
  width: min(320px, 100%);
  padding: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(201,154,46,0.5);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.42);
  backdrop-filter: blur(8px);
}

.loginTitle {
  margin-bottom: 18px;
  text-align: center;
  font-family: Constantia, Cambria, Georgia, "Segoe UI Semibold", Arial, sans-serif;
  font-weight: bold;
  color: #111827;
  letter-spacing: 0;
  font-size: 17px;
}

.message {
  min-height: 20px;
  margin-top: 12px;
  color: #991b1b;
  font-weight: bold;
  text-align: center;
}

.header {
  background: #080f1d;
  color: #f6d365;
  padding: 16px 20px 15px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(246,211,101,0.32);
  box-shadow: 0 3px 12px rgba(0,0,0,0.45);
}

.headerInner {
  text-align: center;
  white-space: nowrap;
}

.headerSideLine {
  display: inline-block;
  width: 135px;
  height: 1px;
  background: #c99a2e;
  margin: 0 22px 9px 22px;
  opacity: 0.75;
}

.headerTitle {
  display: inline-block;
  font-family: Constantia, Cambria, Georgia, "Segoe UI Semibold", Arial, sans-serif;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 0;
  color: #f7d77a;
  text-shadow: 0 2px 0 #6b4b12, 0 4px 8px rgba(0,0,0,0.85);
}

.onlineBadge {
  display: inline-block;
  margin: 0 0 8px 10px;
  padding: 3px 8px;
  border: 1px solid rgba(247,215,122,0.7);
  border-radius: 7px;
  color: #f7d77a;
  font-size: 12px;
  font-weight: bold;
  vertical-align: middle;
}

.headerSubLine {
  width: 310px;
  height: 2px;
  margin: 8px auto 0 auto;
  background: #c99a2e;
  opacity: 0.9;
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(246,211,101,0.35);
}

.wrap {
  padding: 12px;
  background: rgba(15,23,42,0.10);
  min-height: calc(100vh - 64px);
}

.layout {
  display: table;
  width: 100%;
}

.left {
  display: table-cell;
  width: 260px;
  vertical-align: top;
  padding-right: 12px;
}

.right {
  display: table-cell;
  vertical-align: top;
}

.box {
  background: rgba(255,255,255,0.94);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

h2 {
  margin: 0 0 12px 0;
  font-size: 19px;
}

h3 {
  margin: 16px 0 10px 0;
  font-size: 16px;
}

.btn {
  display: inline-block;
  border: 0;
  border-radius: 7px;
  padding: 8px 11px;
  font-weight: bold;
  font-size: 13px;
  cursor: pointer;
  margin: 4px 4px 4px 0;
}

.btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.btnMain {
  background: #0f766e;
  color: white;
}

.btnDark {
  background: #111827;
  color: white;
}

.btnGrey {
  background: #e5e7eb;
  color: #111827;
}

.btnRed {
  background: #fee2e2;
  color: #991b1b;
}

.btnYellow {
  background: #fef3c7;
  color: #92400e;
}

.menuButton {
  width: 100%;
  text-align: left;
  margin-bottom: 5px;
}

.worker {
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  margin-bottom: 6px;
  background: #f9fafb;
  cursor: pointer;
  font-weight: bold;
}

.worker:hover { background: #e0f2fe; }

.workerActive {
  background: #ccfbf1;
  border-color: #0f766e;
}

label {
  display: block;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

input,
textarea,
select {
  width: 100%;
  box-sizing: border-box;
  padding: 7px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  font-size: 14px;
  font-family: Segoe UI, Arial, sans-serif;
}

textarea { height: 62px; }

.check {
  width: auto;
  margin-right: 7px;
}

.row {
  display: table;
  width: 100%;
}

.col {
  display: table-cell;
  padding-right: 10px;
  vertical-align: top;
}

.col:last-child { padding-right: 0; }

.small {
  font-size: 13px;
  color: #6b7280;
}

.bigNumber {
  font-size: 22px;
  font-weight: bold;
}

.statLine {
  background: #f9fafb;
  border: 1px solid #d1d5db;
  padding: 9px;
  border-radius: 7px;
  margin-bottom: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 13px;
}

th {
  background: #374151;
  color: white;
  text-align: left;
  padding: 6px;
  border: 1px solid #4b5563;
}

td {
  padding: 6px;
  border: 1px solid #d1d5db;
  vertical-align: top;
}

tr:nth-child(even) td { background: #f9fafb; }

.rightText { text-align: right; }

.screen { display: none; }

.visible { display: block; }

.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: bold;
}

.notice {
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  color: #075985;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: bold;
}

.hr {
  height: 1px;
  background: #e5e7eb;
  margin: 14px 0;
}

.cardTitle {
  font-size: 22px;
  font-weight: bold;
}

.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-weight: bold;
  margin-left: 8px;
  font-size: 14px;
}

.reportTopSummary {
  display: table;
  width: 100%;
  margin: 12px 0;
}

.reportTopCell {
  display: table-cell;
  width: 33.33%;
  padding-right: 10px;
}

.reportTopCell:last-child { padding-right: 0; }

.reportBigBox {
  background: rgba(255,255,255,0.96);
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 10px;
}

.reportBigLabel {
  font-size: 14px;
  color: #374151;
}

.reportBigValue {
  font-size: 24px;
  font-weight: bold;
  margin-top: 4px;
}

.reportSectionTitle {
  margin-top: 16px;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: bold;
}

.taskStatus {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 13px;
  margin-left: 8px;
}

.taskStatusActive {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.taskStatusClosed {
  background: #e5e7eb;
  color: #374151;
  border: 1px solid #cbd5e1;
}

.taskNotes { min-height: 105px; }

.sessionBox {
  padding: 10px;
}

.sessionBox .btn {
  margin-top: 8px;
  padding: 7px 10px;
}

@media (max-width: 900px) {
  .layout,
  .left,
  .right,
  .row,
  .col {
    display: block;
    width: 100%;
  }

  .left {
    padding-right: 0;
  }

  .col {
    padding-right: 0;
  }

  .headerSideLine {
    display: none;
  }

  .headerTitle {
    font-size: 24px;
    letter-spacing: 1px;
    white-space: normal;
  }
}
