/* ===== Header ===== */
.site-header {
  background: #1c3c66;
  color: #fff;
  padding: 5px 0;
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  padding: 0 20px;
  margin: 0 auto;
}

.logo img {
  height: 55px;
  width: auto;
  margin: 5px 0;
  transition: 0.3s ease;
}
.logo img:hover {
  opacity: 0.9;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-button {
  color: #fff;
  background: transparent;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s ease;
  font-size: 0.95rem;
}

.nav-button i {
  font-size: 0.9rem;
}

.nav-button:hover {
  background: #294f86;
}

.eng-nav-button {
  color: #940707;
  background: #e6a00b;
  padding: 8px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: 0.3s ease;
  font-size: 0.95rem;
}

.eng-nav-button i {
  font-size: 0.9rem;
}

.eng-nav-button:hover {
  background: #294f86;
}

.login-btn {
  background: #ffcc33;
  color: #1c3c66;
  font-weight: 300;
}
.login-btn:hover {
  background: #ffd95c;
}

/* ===== Hamburger (mobile nav) ===== */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 850px) {
  .nav-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 15px;
  }

  .main-nav {
    display: none;
    width: 100%;
    background: #1c3c66;
    padding: 10px 0;
  }

  .main-nav.active {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .nav-button {
    width: 100%;
    text-align: center;
  }
}


/* ===== Responsive ===== */
@media (max-width: 850px) {
  .site-header .container {
    flex-direction: column;
    align-items: center;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .nav-button {
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .logo img {
    height: 45px;
  }
}



/* ===== Footer ===== */
.site-footer {
  background: #1c3c66;
  color: #f2f2f2;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto 20px;
  gap: 30px;
}

.footer-column {
  flex: 1 1 250px;
}

.footer-column h3 {
  color: #ffcc33;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin: 8px 0;
}

.footer-column a {
  color: #f2f2f2;
  text-decoration: none;
  transition: 0.3s;
}

.footer-column a:hover {
  color: #ffcc33;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 15px;
  font-size: 0.85rem;
  color: #ddd;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-column {
    width: 100%;
  }
}

/* ===== Compliance Checklist ===== */
.compliance .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

.compliance h1, .compliance h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #1c3c66;
}

.compliance p {
  text-align: center;
  margin-bottom: 25px;
  color: #333;
}

.diagram {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* ===== Local (page) navigation ===== */
.local-nav-toggle {
  display: none;
  background: #1c3c66;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 15px;
}

.local-nav {
  background: #f1f5fb;
  border-radius: 5px;
  padding: 10px 15px;
  margin-bottom: 30px;
}

.local-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.local-nav a {
  color: #1c3c66;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.local-nav a:hover {
  color: #294f86;
  text-decoration: underline;
}

@media (max-width: 850px) {
  .local-nav-toggle {
    display: block;
  }
  .local-nav {
    display: none;
    flex-direction: column;
  }
  .local-nav.active {
    display: block;
  }
  .local-nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
}

/* Optional sticky behavior while scrolling */
@media (min-width: 851px) {
  .local-nav {
    position: sticky;
    top: 80px;
    z-index: 10;
  }
}

/* ===== Breakdowns Table ===== */
.breakdowns .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.breakdowns h2 {
  text-align: center;
  color: #1c3c66;
  margin-bottom: 25px;
}

.actions-bar {
  text-align: right;
  margin-bottom: 15px;
}

.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
}

.data-table th {
  background: #1c3c66;
  color: #fff;
  text-align: left;
  padding: 12px;
}

.data-table td {
  border-bottom: 1px solid #ddd;
  padding: 12px;
  vertical-align: top;
}

.data-table .issue-cell {
  max-width: 400px;
  white-space: normal;
  word-wrap: break-word;
}

.data-table .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.no-data {
  text-align: center;
  padding: 20px;
  font-style: italic;
  color: #555;
}

.btn {
  display: inline-block;
  background: #1c3c66;
  color: #fff;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  transition: 0.3s ease;
}

.btn:hover {
  background: #294f86;
}

.btn.small {
  padding: 5px 8px;
  font-size: 0.85rem;
}

.btn.danger {
  background: #c0392b;
}
.btn.danger:hover {
  background: #e74c3c;
}

.btn-add {
  background: #27ae60;
}
.btn-add:hover {
  background: #2ecc71;
}

/* Responsive */
@media (max-width: 768px) {
  .data-table th, .data-table td {
    padding: 10px 8px;
  }

  .issue-cell {
    max-width: 250px;
  }

  .actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===== Sticky top info bar ===== */
.page-info-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #1c3c66;
  color: #fff;
  padding: 8px 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-info-bar .info-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1rem;
}

.page-info-bar strong {
  font-size: 1rem;
}

.page-info-bar span {
  font-size: 0.9rem;
  opacity: 0.9;
}

.page-info-bar .add-inline {
  background: #27ae60;
}
.page-info-bar .add-inline:hover {
  background: #2ecc71;
}

/* Add top space so table isn't hidden under sticky bar */
.page-spacer {
  height: 50px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .page-info-bar .info-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-spacer {
    height: 70px;
  }
}

/* ===== Engineer Dashboard ===== */
.dashboard .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.dashboard-header {
  text-align: center;
  margin-bottom: 30px;
}

.dashboard-header h2 {
  color: #1c3c66;
  font-weight: 600;
  margin-bottom: 5px;
}

.dashboard-header .subtext {
  color: #555;
  font-size: 0.95rem;
}

.search-panel {
  text-align: center;
  margin-bottom: 25px;
}

.search-panel input[type="text"] {
  width: 100%;
  max-width: 420px;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: 0.25s ease;
}

.search-panel input:focus {
  outline: none;
  border-color: #1c3c66;
  box-shadow: 0 0 5px rgba(28,60,102,0.3);
}

/* ===== Results Table from search-customers.php ===== */
.results-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.95rem;
  margin-top: 10px;
}

.results-table th, .results-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #ececec;
  text-align: left;
}

.results-table th {
  background: #1c3c66;
  color: #fff;
  font-weight: 500;
}

.results-table tr:hover {
  background: #f5f8fc;
}

.results-table a {
  color: #1c3c66;
  text-decoration: none;
  font-weight: 500;
}

.results-table a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .results-table table {
    font-size: 0.9rem;
  }
  .search-panel input[type="text"] {
    max-width: 100%;
  }
}

/* ===== Services Table ===== */
.services .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.services h2 {
  text-align: center;
  color: #1c3c66;
  margin-bottom: 25px;
}

/* Re‑use data-table, btn, etc. from previous pages */

/* Optional: differentiate services visually */
.services .data-table th {
  background: #294f86;
}

.services .add-inline {
  background: #27ae60;
}
.services .add-inline:hover {
  background: #2ecc71;
}

/* ===== Handover Page ===== */
.handover .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.handover h2 {
  text-align: center;
  color: #1c3c66;
  margin-bottom: 25px;
}

/* Optional: subtle handover color theme */
.handover .data-table th {
  background: #355b9b;
}

/* ===== Risk Page ===== */
.risk .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.risk h2 {
  text-align: center;
  color: #1c3c66;
  margin-bottom: 25px;
}

/* Info / Guidance Box */
.notice-box {
  background: #eef4fc;
  border-left: 5px solid #1c3c66;
  padding: 20px 25px;
  border-radius: 6px;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #333;
}

.notice-box ul {
  margin: 10px 0 15px 25px;
  padding: 0;
  list-style-type: disc;
}

/* Optional tone for this table */
.risk .data-table th {
  background: #3a5b9b;
}
/* ===== Health Check Page ===== */
.health .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

.health h2 {
  text-align: center;
  color: #1c3c66;
  margin-bottom: 25px;
}

.test-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.test-row label {
    width: 30px; /* keeps numbers aligned */
    font-weight: bold;
}

.test-row textarea {
    flex: 1; /* takes remaining space */
    min-height: 50px;
}

/* Checklist row */
.check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.test-row:nth-child(even) {
    background: #fafafa;
}

/* Label on the left */
.check-label {
    flex: 1;
    font-size: 1rem;
    padding-right: 20px;
}

/* Options on the right */
.check-options {
    display: flex;
    gap: 10px;
}


/* ===== Handover Form (Add/Edit) ===== */
.handover-form fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 25px 30px;
  margin-bottom: 25px;
}

.handover-form legend {
  font-weight: 600;
  color: #1c3c66;
  padding: 0 10px;
}

.handover-form label {
  display: block;
  font-weight: 500;
  color: #1c3c66;
  margin-bottom: 4px;
}

.handover-form input[type="text"],
.handover-form input[type="date"],
.handover-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  background: #fafafa;
  font-size: 1rem;
}

.handover-form textarea {
  resize: vertical;
  line-height: 1.5;
}

/* Layout helpers */
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row {
  margin-bottom: 15px;
}

/* Section headings inside fieldset */

.handover-section h3 {
  color: #1c3c66;
  border-bottom: 2px solid #1c3c66;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

/* Action buttons */
.form-actions, .form-actions-top {
  text-align: center;
  margin-top: 20px;
}

.handover-form .btn {
  background: #1c3c66;
  color: #fff;
  font-size: 1rem;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.handover-form .btn:hover {
  background: #294f86;
}

@media (max-width: 768px) {
  .row-2 { grid-template-columns: 1fr; }
}

/* ===== Risk Assessment Form ===== */
.risk-form fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 25px 30px;
  margin-bottom: 25px;
}

.risk-form legend {
  font-weight: 600;
  color: #1c3c66;
  padding: 0 10px;
}

.risk-form label { font-weight: 500; color: #1c3c66; margin-bottom: 4px; display: block; }

.risk-form input[type="text"],
.risk-form input[type="date"],
.risk-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  background: #fafafa;
  font-size: 1rem;
}

.risk-form textarea { resize: vertical; line-height: 1.5; }

.row-2, .row-3 { display: grid; gap: 20px; margin-bottom: 15px; }
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }

.hazard-row {
  display: grid;
  grid-template-columns: 40px 1fr 1fr 1fr;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.hazard-row label {
  text-align: right;
  color: #1c3c66;
  padding-right: 5px;
}

.file-list { margin: 10px 0; padding-left: 20px; }
.file-list li { margin-bottom: 4px; }

.form-actions, .form-actions-top { text-align: center; margin-top: 20px; }

.risk-form .btn, .upload-form .btn {
  background: #1c3c66;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.risk-form .btn:hover,
.upload-form .btn:hover { background: #294f86; }

@media (max-width: 768px) {
  .row-2, .row-3, .hazard-row {
    grid-template-columns: 1fr;
  }
}

/* ===== Health Check Form ===== */
.health-form fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 25px 30px;
  margin-bottom: 25px;
}

.health-form legend {
  font-weight: 600;
  color: #1c3c66;
  padding: 0 10px;
}

.health-form textarea,
.health-form input[type="text"],
.health-form input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  background: #fafafa;
  padding: 8px 10px;
  font-size: 1rem;
}

.health-form textarea { resize: vertical; line-height: 1.4; }

.row-2, .row-3 {
  display: grid;
  gap: 20px;
  margin-bottom: 15px;
}
.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: 1fr 1fr 1fr; }

.test-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: start;
  gap: 10px;
  margin-bottom: 12px;
}

.results-info {
  display: flex;
  justify-content: space-between;
  background: #eef4fc;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.form-actions, .form-actions-top {
  text-align: center;
  margin-top: 20px;
}

.health-form .btn {
  background: #1c3c66;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.health-form .btn:hover { background: #294f86; }

@media (max-width: 850px) {
  .row-2, .row-3, .test-row { grid-template-columns: 1fr; }
 }

/* ===== Service Form ===== */
.service-form fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 25px 30px;
  margin-bottom: 25px;
}

.service-form legend {
  font-weight: 600;
  color: #1c3c66;
  padding: 0 10px;
}

.service-form label {
  font-weight: 500;
  color: #1c3c66;
  display: block;
  margin-bottom: 4px;
}

.service-form input[type="text"],
.service-form input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  background: #fafafa;
  font-size: 1rem;
}

/* Checklist rows */
.check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #ececec;
}

.check-label { flex: 1; color: #333; }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.form-actions, .form-actions-top { text-align:center; margin-top:20px; }

.service-form .btn {
  background:#1c3c66;
  color:#fff;
  border:none;
  padding:10px 20px;
  border-radius:6px;
  cursor:pointer;
  transition:.3s;
}
.service-form .btn:hover { background:#294f86; }

@media(max-width:800px){ .row-2{grid-template-columns:1fr;} .check-row{flex-direction:column;align-items:flex-start;} }

/* ===== Edit Customer Form ===== */
.customer-form fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 25px 30px;
  margin-bottom: 25px;
}

.customer-form legend {
  font-weight: 600;
  color: #1c3c66;
  padding: 0 10px;
}

.customer-form label {
  display: block;
  font-weight: 500;
  color: #1c3c66;
  margin-bottom: 4px;
}

.customer-form input[type="text"],
.customer-form input[type="email"],
.customer-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  background: #fafafa;
  font-size: 1rem;
}

.customer-form textarea { resize: vertical; line-height: 1.5; }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row { margin-bottom: 15px; }

.form-actions { text-align: center; margin-top: 20px; }

.customer-form .btn {
  background: #1c3c66;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.customer-form .btn:hover { background: #294f86; }

.alert.error {
  background: #fdeaea;
  border-left: 4px solid #c0392b;
  color: #c0392b;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

@media (max-width: 800px) {
  .row-2 { grid-template-columns: 1fr; }
}

/* ===== Add / Edit Customer Shared ===== */
.customer-form fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 25px 30px;
  margin-bottom: 25px;
}

.customer-form legend {
  font-weight: 600;
  color: #1c3c66;
  padding: 0 10px;
}

.customer-form label {
  display: block;
  font-weight: 500;
  color: #1c3c66;
  margin-bottom: 4px;
}

.customer-form input[type="text"],
.customer-form input[type="email"],
.customer-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  background: #fafafa;
  font-size: 1rem;
}

.customer-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 15px;
}

.form-row {
  margin-bottom: 15px;
}

.form-actions {
  text-align: center;
  margin-top: 20px;
}

.customer-form .btn {
  background: #1c3c66;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.customer-form .btn:hover {
  background: #294f86;
}

.alert.error {
  background: #fdeaea;
  border-left: 4px solid #c0392b;
  color: #c0392b;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 20px;
}

@media (max-width: 850px) {
  .row-2 {
    grid-template-columns: 1fr;
  }
}

/* ===== Installation Form ===== */
.installation-form fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  padding: 25px 30px;
  margin-bottom: 25px;
}
.installation-form legend {
  font-weight: 600;
  color: #1c3c66;
  padding: 0 10px;
}
.installation-form label {
  font-weight: 500;
  color: #1c3c66;
  display: block;
  margin-bottom: 4px;
}
.installation-form input[type="text"],
.installation-form input[type="date"],
.installation-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  background: #fafafa;
  font-size: 1rem;
}
.installation-form textarea { resize: vertical; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 15px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; margin-bottom: 15px; }
.form-row { margin-bottom: 15px; }

.file-list { margin: 10px 0; padding-left: 20px; }
.file-list li { margin-bottom: 4px; }

.installation-form .btn,
.upload-form .btn {
  background: #1c3c66;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.installation-form .btn:hover,
.upload-form .btn:hover { background: #294f86; }

@media (max-width: 850px) {
  .row-2, .row-3 { grid-template-columns: 1fr; }
}

/* Optional primary shade tweak to distinguish health checks */
.health .data-table th {
  background: #2c6a70;
}

.health .add-inline {
  background: #27ae60;
}
.health .add-inline:hover {
  background: #2ecc71;
}

/* ===== Wider text areas for Breakdown Log ===== */
.breakdown-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.breakdown-form fieldset {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 25px 30px;
  background: #fff;
}

.breakdown-form legend {
  font-weight: 600;
  color: #1c3c66;
  padding: 0 10px;
}

.breakdown-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
  color: #1c3c66;
}

.breakdown-form input[type="text"],
.breakdown-form input[type="date"],
.breakdown-form input[type="tel"],
.breakdown-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c7c7c7;
  border-radius: 6px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 1rem;
  background: #fafafa;
  transition: 0.2s ease;
}

.breakdown-form input:focus,
.breakdown-form textarea:focus {
  border-color: #1c3c66;
  background: #fff;
  box-shadow: 0 0 5px rgba(28,60,102,0.3);
  outline: none;
}

/* Full‑width, comfortably tall text areas */
.breakdown-form textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.5;
}

/* Align checkboxes and small controls */
.form-row-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

/* Responsive tidy up */
@media (max-width: 768px) {
  .breakdown-form fieldset {
    padding: 20px;
  }
  .breakdown-form textarea {
    min-height: 160px;
  }
}



/* ===== General ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background: #fafafa;
}

/* Consistent container width */
section {
  padding: 60px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

h1, h2, h3 {
  color: #1c3c66;
  margin-bottom: 15px;
}
h1 {
  font-size: 2.4rem;
}
h2 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 40px;
}
h3 {
  font-size: 1.2rem;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.4)
    ),
    url('images/hero-bg.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
}

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero-logo {
  max-width: 180px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.1rem;
  margin-top: 10px;
  color: #f3f3f3;
}

/* ===== Services ===== */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.service-item {
  flex: 1 1 220px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: 0.3s ease;
}

.service-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

/* ===== Pricing ===== */
.pricing {
  background: #f1f5fb;
}

.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.price-item {
  flex: 1 1 260px;
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  transition: 0.3s ease;
}

.price-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.disclaimer {
  text-align: center;
  color: #666;
  margin-bottom: 25px;
  font-size: 0.9rem;
}

/* ===== Gallery ===== */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.gallery-grid img {
  width: 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  transition: 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

.gallery-link {
  text-align: center;
  margin-top: 20px;
}

.gallery-link a {
  color: #1c3c66;
  text-decoration: none;
  font-weight: 600;
}

/* ===== FAQ ===== */
.faq-item {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid #ddd;
}

.faq-item h3 {
  color: #1c3c66;
  margin-bottom: 10px;
}

/* ===== Contact ===== */
.contact {
  background: #f1f5fb;
  text-align: center;
}

.contact-info a {
  color: #1c3c66;
  text-decoration: none;
}

.contact-form {
  max-width: 600px;
  margin: 30px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

.contact-form button {
  background: #1c3c66;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.contact-form button:hover {
  background: #294f86;
}

/* ===== Footer & Header compatibility ===== */
footer {
  text-align: center;
  padding: 20px;
  background: #1c3c66;
  color: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero {
    padding: 80px 20px;
  }

  h1 {
    font-size: 1.9rem;
  }

  .gallery-grid img {
    width: 100%;
    max-width: 320px;
  }

  .services-grid,
  .pricing-grid {
    flex-direction: column;
    align-items: center;
  }
}



/* Navigation */
.main-nav {
  display: flex;
  gap: 15px;
}

.nav-button {
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  background: #374151;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
}

.nav-button:hover {
  background: #4b5563;
}

.login-btn {
  background: #0ea5e9;
}

.login-btn:hover {
  background: #0284c7;
}


body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
  color: #333;
}

header, footer {
  background: #222;
  color: white;
  padding: 1em;
  text-align: center;
}

.hero {
  text-align: center;
  padding: 2em;
  background: #ddd;
}

.hero img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.gallery {
  padding: 2em;
  background: white;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1em;
}

.gallery-grid img {
  width: 100%;
  border-radius: 8px;
}

.contact {
  padding: 2em;
  background: #eee;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 1000px;
  margin: auto;
}

colhead{
  padding: 1.0em;
  border: 0px solid #ccc;
  color: $yellow-300;
  background-color: $indigo-900;
}
input, textarea {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
}

notes {
  padding: 1.0em;
  border: 0px solid #ccc;
  border-radius: 1px;
}

button {
  background: #222;
  color: white;
  padding: 0.7em;
  border: none;
  cursor: pointer;
}

.nav-button {
  display: inline-block;
  background: #444;
  color: white;
  padding: 0.5em 1em;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1em;
}

.btn-primary {
  display: inline-block;
  background: #444;
  color: white;
  padding: 0.1em 1em;
  text-decoration: none;
  border-radius: 4px;
  margin-top: 1em;
}

#customerSearch {
  width: 30%;
  padding: 0.5em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
}


fieldset {
  border: 1px solid #ccc;
  border-radius: 6px;
}
legend {
  font-weight: bold;
  font-size: 1rem;
}


.btn-download {
  background-color: #000000;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.btn-download:hover {
  background-color: #0056b3;
}


/*gallery*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  padding: 20px;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/*Calendar*/
table.calendar {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
  }
  table.calendar th, table.calendar td {
    border: 1px solid #ccc;
    padding: 10px;
    vertical-align: top;
    height: 120px;
  }
  table.calendar th {
    background-color: #f4f4f4;
    text-align: center;
  }
  .today {
    background-color: #ffeeba;
    border: 2px solid #f0ad4e;
    }

  .entry {
    font-size: 0.85em;
    margin-top: 5px;
    display: block;
    padding: 2px 4px;
    border-radius: 4px;
  }
  
  .entry.Task {
  background-color: #d4edda;
  color: #155724;
  text-decoration: none;
  display: block;
  margin-top: 5px;
  padding: 2px 4px;
  border-radius: 4px;
}
  .entry.Task:hover {
  background-color: #c3e6cb;
}

  .Breakdown { background-color: #f8d7da; color: #721c24; }
  .Service   { background-color: #d1ecf1; color: #0c5460; }
  .NextService   { background-color: #e6a835; color: #0c5460; }
  .Task      { background-color: #d4edda; color: #155724; }

  
.thumbnail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 20px;
}

.thumb img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.thumb img:hover {
  transform: scale(1.05);
}


.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #fff;
  padding: 20px;
  width: 350px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
}

.modal-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar td {
    border: 1px solid #ddd;
    height: 120px;
    vertical-align: top;
    padding: 5px;
    overflow-y: auto;
}

.calendar th {
    background: #f0f0f0;
    padding: 10px;
    text-align: center;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.entry {
    font-size: 0.85rem;
    margin-bottom: 4px;
}

.entry.task {
    background: #e8f0ff;
    padding: 3px 6px;
    border-radius: 4px;
    cursor: pointer;
}

.entry.task:hover {
    background: #d4e2ff;
}

.entry.breakdown {
    background: #ffe8e8;
    padding: 3px 6px;
    border-radius: 4px;
}

.today {
    background: #fff7d1;
}

.empty {
    background: #fafafa;
}

.dropzone {
    border: 2px dashed #888;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: #fafafa;
}

.dropzone.hover {
    background: #e0f0ff;
    border-color: #1a73e8;
}


/* ============================================================
   UNIVERSAL RADIO BUTTON SYSTEM (YES / NO / N/A)
   ============================================================ */

/* Layout */
.check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.check-label {
    flex: 1;
    font-size: 1rem;
    padding-right: 20px;
}

.check-options {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

/* Base button */
.opt {
    position: relative;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    color: #000;
    font-weight: 600;
    user-select: none;
    transition: 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
}

/* Hide native radio completely */
.opt input {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Default colours (UNCHECKED) */
.opt.yes { background: #2ecc71; }
.opt.no  { background: #e74c3c; }
.opt.na  { background: #95a5a6; }

/* SELECTED state — entire button goes YELLOW */
.opt.active,
.opt input:checked {
    background: #ffeb3b !important;
    opacity: 1;
}

/* Hover */
.opt:hover {
    opacity: 1;
}

/* Kill the tiny yellow square forever */
.opt span {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    display: inline !important;
}

.opt input:checked + span {
    background: transparent !important;
}
.opt.active span {
    background: transparent !important;
}


