/*
 * ProstoPolicz - Working Hours Calculator (page 273).
 * WordPress wpautop inserts stray <br> elements as DIRECT CHILDREN of
 * form grids / button flex rows. They become unwanted grid/flex items.
 * Hide only those generated breaks; preserve <br> inside form labels.
 */
body.page-id-273 div[style*="display:grid"] > br,
body.page-id-273 div[style*="display:flex"] > br {
  display: none !important;
}

/* === Soft 3D redesign | Working Hours Calculator only ===
   Presentation-only rules. No post HTML or calculator scripts changed. */

body.page-id-273 .entry-content {
  max-width: 1100px;
  margin-inline: auto;
}

body.page-id-273 .entry-content > h1 {
  position: relative;
  margin: 4px 0 18px !important;
  padding: clamp(24px, 4vw, 38px) clamp(20px, 4vw, 36px) !important;
  font-size: clamp(30px, 3.6vw, 42px) !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: #12223a !important;
  background: linear-gradient(135deg, #f5faff 0%, #ffffff 62%, #eaf4ff 100%);
  border: 1px solid #d9e6f4;
  border-radius: 22px;
  box-shadow: 0 17px 38px rgba(20, 66, 123, .09),
              0 2px 5px rgba(20, 66, 123, .04),
              inset 0 2px 0 rgba(255,255,255,.95);
}

body.page-id-273 .entry-content > h1::before {
  content: "";
  display: block;
  width: 54px;
  height: 5px;
  margin-bottom: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2468ad, #65b9ff);
  box-shadow: 0 3px 9px rgba(47, 115, 185, .2);
}

body.page-id-273 .entry-content > p:first-of-type {
  max-width: 950px;
  margin: 0 0 30px !important;
  color: #4b5d73;
  font-size: clamp(16px, 1.7vw, 18px);
  line-height: 1.75;
}

/* Main calculator cards and the weekly hours card */
body.page-id-273 .entry-content > div[style*="border:1px solid #e5e7eb"],
body.page-id-273 .entry-content > #pp-weekly-hours {
  position: relative;
  isolation: isolate;
  padding: clamp(20px, 3vw, 30px) !important;
  margin: 28px 0 !important;
  background: linear-gradient(155deg, #fff 0%, #fbfdff 58%, #f3f8ff 100%) !important;
  border: 1px solid #d8e3f1 !important;
  border-radius: 20px !important;
  box-shadow: 0 17px 34px rgba(16, 49, 88, .085),
              0 5px 12px rgba(16, 49, 88, .04),
              inset 0 2px 0 rgba(255,255,255,.98);
}

body.page-id-273 .entry-content > div[style*="border:1px solid #e5e7eb"]::before,
body.page-id-273 .entry-content > #pp-weekly-hours::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 4px;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(90deg, #246ab1 0%, #5db7ff 70%, #b2ddff 100%);
}

/* Clean section headings */
body.page-id-273 .entry-content h2 {
  color: #172b45 !important;
  font-size: clamp(22px, 2.3vw, 27px);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -.015em;
}
body.page-id-273 .entry-content > div[style*="border:1px solid #e5e7eb"] > h2,
body.page-id-273 .entry-content > #pp-weekly-hours > h2 {
  margin: 2px 0 22px !important;
  padding-left: 13px;
  border-left: 4px solid #2f73b9;
}

/* Layout: responsive grids, labels and controls */
body.page-id-273 .entry-content div[style*="display:grid"] {
  gap: 18px !important;
}
body.page-id-273 .entry-content label {
  color: #25364c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}
body.page-id-273 .entry-content div[style*="display:grid"] > label {
  display: block;
  min-width: 0;
}
body.page-id-273 .entry-content input[type="text"],
body.page-id-273 .entry-content input[type="number"],
body.page-id-273 .entry-content input[type="time"],
body.page-id-273 .entry-content select {
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  color: #16283f;
  background: linear-gradient(#ffffff, #fbfdff);
  border: 1px solid #c8d7e8;
  border-radius: 11px;
  box-shadow: inset 0 2px 4px rgba(15, 39, 72, .045),
              0 2px 4px rgba(15, 39, 72, .025);
  font-size: 16px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.page-id-273 .entry-content div[style*="display:grid"] > label > input {
  width: 100%;
  margin-top: 8px;
}
body.page-id-273 .entry-content input:not([type="checkbox"]):focus,
body.page-id-273 .entry-content select:focus {
  outline: none;
  border-color: #367fc7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(54, 127, 199, .16),
              inset 0 1px 2px rgba(15, 39, 72, .03);
}
body.page-id-273 .entry-content input[type="checkbox"] {
  accent-color: #2f73b9;
  vertical-align: middle;
}

/* Raised blue action buttons */
body.page-id-273 .entry-content button {
  min-height: 44px;
  padding: 10px 18px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid #245f9b !important;
  border-radius: 11px;
  background: linear-gradient(180deg, #3d8ed8, #276aae) !important;
  box-shadow: 0 7px 15px rgba(31, 100, 172, .22),
              inset 0 1px 0 rgba(255,255,255,.28),
              inset 0 -2px 0 rgba(16, 67, 127, .15);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
body.page-id-273 .entry-content button:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 10px 19px rgba(31, 100, 172, .27),
              inset 0 1px 0 rgba(255,255,255,.3);
}
body.page-id-273 .entry-content button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 7px rgba(31, 100, 172, .2),
              inset 0 2px 3px rgba(16, 67, 127, .18);
}
body.page-id-273 .entry-content button:focus-visible {
  outline: 3px solid rgba(42, 116, 193, .42);
  outline-offset: 3px;
}
body.page-id-273 .entry-content button.pp-time-example {
  color: #1d5d9d !important;
  border-color: #c2dafa !important;
  background: linear-gradient(180deg, #fff, #ecf5ff) !important;
  box-shadow: 0 4px 9px rgba(29, 87, 148, .08),
              inset 0 1px 0 #fff;
}

/* Friendly result panels, without changing visibility or calculated text */
body.page-id-273 .entry-content [id$="-result"] {
  padding: 17px 19px !important;
  background: linear-gradient(145deg, #f8fcff, #edf6ff) !important;
  color: #173a64;
  border: 1px solid #cde2f7;
  border-left: 4px solid #3a88d4;
  border-radius: 13px !important;
  box-shadow: 0 6px 15px rgba(26, 93, 167, .055),
              inset 0 1px 0 #fff;
}

/* Weekly hours data table */
body.page-id-273 .entry-content table {
  border-collapse: separate !important;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #e1eaf5;
  border-radius: 12px;
  box-shadow: 0 5px 12px rgba(18, 52, 92, .045);
}
body.page-id-273 .entry-content th {
  background: #eef6ff;
  color: #153456;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}
body.page-id-273 .entry-content td,
body.page-id-273 .entry-content th {
  padding: 10px 12px !important;
  border-bottom: 1px solid #e9f0f8;
}
body.page-id-273 .entry-content tr:last-child td {
  border-bottom: 0;
}
body.page-id-273 .entry-content tbody tr:nth-child(even) {
  background: #f9fcff;
}
/* Keep the existing horizontal scrolling for the 680px table. */
body.page-id-273 #pp-weekly-hours > div[style*="overflow:auto"] {
  max-width: 100%;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
}

/* FAQ accordions further down the same page */
body.page-id-273 .entry-content > details {
  margin: 10px 0;
  padding: 0;
  border: 1px solid #deebf6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 9px rgba(16, 49, 88, .035);
}
body.page-id-273 .entry-content > details > summary {
  padding: 14px 18px;
  color: #183c66;
  cursor: pointer;
}
body.page-id-273 .entry-content > details > p {
  padding: 0 18px 16px;
}

@media (max-width: 640px) {
  body.page-id-273 .entry-content > h1 {
    padding: 22px 18px !important;
    border-radius: 16px;
  }
  body.page-id-273 .entry-content > div[style*="border:1px solid #e5e7eb"],
  body.page-id-273 .entry-content > #pp-weekly-hours {
    padding: 18px !important;
    border-radius: 16px !important;
    margin: 22px 0 !important;
  }
  body.page-id-273 .entry-content div[style*="display:grid;grid-template-columns:repeat(auto-fit"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  body.page-id-273 .entry-content div[style*="display:flex"] > button {
    width: 100%;
  }
  body.page-id-273 .entry-content input[type="text"],
  body.page-id-273 .entry-content input[type="time"],
  body.page-id-273 .entry-content input[type="number"] {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.page-id-273 .entry-content button,
  body.page-id-273 .entry-content input {
    transition: none !important;
  }
  body.page-id-273 .entry-content button:hover,
  body.page-id-273 .entry-content button:active {
    transform: none !important;
  }
}
